Details
-
Type:
Bug
-
Status:
Open
-
Priority:
Major
-
Resolution: Unresolved
-
Affects Version/s: JiBX 1.1, JiBX 1.1.2, JiBX 1.1.3, JiBX 1.1.4, JiBX 1.1.5, JiBX 1.1.6, JiBX 1.2 beta 1, JiBX 1.2, JiBX 1.2.1, JiBX 1.2.2
-
Fix Version/s: JiBX 1.2.3
-
Component/s: core
-
Labels:None
-
Patch Submitted:Yes
Description
If one uses a derived java.util.Iterator the binding compiler exits with error "iter - method ... not found". The reason for the error is located within the class "CollectionElement.java" and the method "prevalidate". Here the use of method "clas.getBestMethod(iname,"java.util.Iterator", new String[0])" is not usable because it doesn't handle derived Iterators.
During unmarshalling the method "unmarshallStructure" within BindingBuilder.java gets the iter - method only with Iterator - signatur. In order to get it to work I changed the getMethod to an empty signatur. The validity check is already done during binding compile in above method.
The case of an enumeration was deleted because it was'nt allowed during prevalidate. The documentation should be changed accordingly.
The changes are attached and were successfully testet with the jibx - build.