smallrye / jandex

Java Annotation Indexer
Apache License 2.0
392 stars 94 forks source link

Improve reproducibility by sorting the Interned Indexes. #398

Closed chirino closed 3 months ago

chirino commented 3 months ago

Right now I'm running into a weird issue where the FieldInternal pool seems to contain two equal objects by the time we create the iterator at: https://github.com/smallrye/jandex/pull/398/files#diff-9e59701eb76c28bada79887bf73b356179c79202ee57587dc186b232038f5f99R504

Odd thing is that I have an assertion in the compare method to double check that https://github.com/smallrye/jandex/pull/398/files#diff-02062034d4ac60db32d95b1ef268dcd1aca668998e955eb4f2f70f832d972081R129 the objects being compare really are equal.

chirino commented 3 months ago

Figured it out.. I needed to implement comparable in some sub classes.