You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Feb 5, 2019. It is now read-only.
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
private String getISO8601Date() {
if(date==null) {
StringBuffer tstamp = new StringBuffer();
tstamp.append((new SimpleDateFormat("yyyy-MM-dd'T'hh:mm:ssZ")).format(new Date()));
// hack to get ISO 8601 style timezone - is there a better way that doesn't require
// a bunch of timezone offset calculations?
tstamp.insert(tstamp.length()-2, ':');
date = tstamp.toString();
}
return date;
}
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:
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: