Skip to main content

Code generation with Choice Works in version 1.5 but fails in version 1.6

1 reply [Last post]
Joined: 2005-07-12
Points: 0

This day, I accidentally started working on Jwsdp1.5 and the JAXB code generator using the complicated choice as found in the schema below generates the desired code with proper getter and setter methods. Also I can see that with control statements it is ensured that the the choice condition is also validated in impl class. However when I move forward to version 1.6, I see that we are no more generating of the code but only generating the List item.

I have raised quite a few questions in the forum under JAX-WS. But now I believe the reason for non-generation of the code can be with JAXB api’s. Is it possible that we can go back to older version of jaxb.

Please note that I am not sure of how version for JAXB is maintained as it comes bundled with JWSDP, this is the reason there is no mention of JAXB version.

Schema is:
<?xml version="1.0" encoding="utf-8"?>

Reply viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.
Joined: 2003-06-09
Points: 0

This looks like a JAXB 1.0.x issue. It would be great if you would file an issue on and attach this schema, along with the expected results and what you got.