Affects Version/s: JiBX 1.1.6
Fix Version/s: None
Number of attachments :
According to the binding tutorial, a name is not required on a mapping for a concrete-type if a custom marshaller-unmarshaller pair is defined. However, when I try to set a name on a structure that resolves to such a mapping, I get an error: "name attribute not allowed on concrete mapping reference". This seems inconsistent with the above exception but it's not the real problem.
When I do set the mapping element to abstract="true" and set a name on the structure, I get the following exception:
Error running binding compiler
org.jibx.runtime.JiBXException: Unable to change access permissions for <init> in class [my-package].JiBX_MungeAdapter
This seems pretty strange since this is created by Jibx i.e. why can't it change what it creates? And the name of the element has nothing to do with my code.
The only think I thought might be an issue is that the binaries for the custom mapped class are not provided for updating but the error doesn't refer to that class anyway and the name of the element is not relevant to that class.
It seems that I should be able to define the element name on the structure instead of defining a new mapping for every name I want to map my type to.