Details
-
Type:
Bug
-
Status:
Closed
-
Priority:
Major
-
Resolution: Fixed
-
Affects Version/s: None
-
Fix Version/s: JiBX 1.1.6
-
Component/s: core
-
Labels:None
-
Number of attachments :
Description
I have multiple binding files for a single class. When selecting the proper binding file with the BindingDirectory.getFactory(Class targetClass, String bindingName) i get the following exception:
org.jibx.runtime.JiBXException: Binding information for class xyz.MyTargetClass must be regenerated with current binding compiler at org.jibx.runtime.BindingDirectory.getFactoryFromName(BindingDirectory.java:134) at org.jibx.runtime.BindingDirectory.getFactory(BindingDirectory.java:211)
I had a debugging session on this, for more details see my blog: http://twelve-programmers.blogspot.com/2008/03/jibx-exception-with-special-chars-in.html
I found out that a "-" character in my binding file name was the root cause for the problem. Jibx should check binding names for illegal characters, that are not allowed as Java class names.
This check should happen while running the binding compiler.
Fixed for 1.1.6. Thanks for pointing this out!