Details
-
Type:
Bug
-
Status:
Closed
-
Priority:
Major
-
Resolution: Fixed
-
Affects Version/s: JiBX 1.2
-
Fix Version/s: JiBX 1.2.2
-
Component/s: BindGen
-
Labels:None
-
Number of attachments :
Description
Trying to run the binding generator on a class in the default package (i.e. no package name) strips the first letter from the class name and fails.
The bug seems to b in the GlobalCustom class (split + 1).
private ClassCustom buildClassCustomization(String type) {
int split = type.lastIndexOf('.');
if (split < 0)
PackageCustom pack = getPackage(type.substring(0, split));
ClassCustom clas = pack.addClassCustomization(type.substring(split + 1));
return clas;
}
Added test case and corrected problems.