New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
xjc mark-generated sometimes produces a wrong date value #1105
Comments
@glassfishrobot Commented |
@glassfishrobot Commented |
@glassfishrobot Commented |
@glassfishrobot Commented |
@glassfishrobot Commented |
|
Any news on this? I just encountered this issue. |
…date value Signed-off-by: Lukas Jungmann <lukas.jungmann@oracle.com>
…date value Signed-off-by: Lukas Jungmann <lukas.jungmann@oracle.com>
2.3.4/3.0.1 having the fix are out already |
When using the parameter "-mark-generated" to generate the @generated annotation, the content of the date attribute may be wrong.
In fact, the PM dates are wrong as they stay at the AM format.
It's because the date pattern used for generating the ISO-8601 string is wrong.
It's "yyyy-MM-dd'T'hh:mm:ssZ" but it should be "yyyy-MM-dd'T'HH:mm:ssZ"
The code to fix is in com.sun.tools.xjc.addon.at_generated.PluginImpl
Maven artifact : com.sun.xml.bind:jaxb-xjc:2.2.11
Thanks.
Environment
JDK 8, JDK 7
Affected Versions
[2.2.11]
The text was updated successfully, but these errors were encountered: