Closed glassfishrobot closed 12 years ago
Reported by sameer_v_rao
rebeccas said: Please provide a test case to show the issue.
<complexType name="BType>
<complexType name="CType>
<complexType name="DType>
<complexType name="EType>
2. Download and use Xcollection-setter-injector plugin. 3. Also create a JAXB Custom binding file and set the following globalBinding options- generateElementProperty="false" generateIsSetMethod="true"
4. Create a ANT build script which defines the XJCTask. Also use the Xcollection-setter-injector plugin (by passing the args to the XJC).
5. Run the build script to generate the code. 6. The AType.java class should now have the IsSet method for all the 4 elements aType, bType, cType and dType. But it shoud also have setBType(List
kohsuke said: Please contact the plugin author. Sounds like you are really reporting an issue against a plugin not against XJC.
kohsuke said: Marking for exclusion from Glassfish v2.
kohsuke said: Still trying to exclude from GFv2.
snajper said: as911na
@pavelbucek said: adjusting priority
lexi said: Please use the Setters plugin from JAXB2-Basics:
This issue will be closed with "Won't Fix".
This issue was imported from java.net JIRA JAXB2_COMMONS-30
Marked as won't fix on Saturday, September 24th 2011, 5:54:32 am
If generateIsSetMethod attribute is set to True in globalBindings And the Collection-Setter-injector plugin is also being used in the XJCTask then the generated code does not contain the set<>() method.
Basically enabling the generateIsSetMethod attribute renders the Collector- Setter plugin ineffective.
The cause is that generateIsMethod causes all the declaredFields to be of instance of IsSetField. Whereas with generateIsMethod set to false (default) result in the ClassOutline.getDeclaredFields() to be of type UntypedListField for all schema elements which have maxOccurs unbounded.
Environment
Operating System: All Platform: All