Details
-
Enhancement
-
Resolution: Done
-
Major
-
None
-
None
Description
I have a AnnotationInstance like this,
javax.persistence.JoinTable:
Method: org.hibernate.test.annotations.onetoone.Father org.hibernate.test.annotations.onetoone.Son.getFather()
(name = "father_son", joinColumns = [@javax.persistence.JoinColumn(name = "foo")], inverseJoinColumns = [@javax.persistence.JoinColumn(name = "bar")])
but when I call annotationInstance.value("name"), it returns me null, apparently, this is caused by the Arrays.binarySearch used in value(String name) method.
the AnnotationValue array in AnnotationInstance is unsorted, at least, it is not documented in org.jboss.jandex.AnnotationInstance#create that a sorted AnnotationValue array is required