users@jaxb.java.net

Error replacing _at__at_JAXB_VERSION_at__at_ with certain system locales

From: <MrEasy_at_gmx.net>
Date: Tue, 24 May 2005 15:38:03 +0200 (MEST)

Hi all,

this occurs in JAXB 1.0.4 (not in 1.0.2).
If you invoke the JAXB-compiler on a system using e.g. locale setting=DE
then the class JAXBVersion.java, which should contain a String-field whose
value is "1.0.4" contains "@@JAXB_VERSION@@".

The error does not derive from the Java-File, but from the
Messages_??.properties files located under
xjc\src\com\sun\tools\xjc\generator\.
There exists a general (for EN) Messages.properties and several
Messages_??.properties. Now with a look at the xjc/build.xml one can see
what's wrong:

<!-- version string used by the VersionGenerator -->
<replace
file="${xjc.classes}/com/sun/tools/xjc/generator/Messages.properties">
  <replacefilter token="@@JAXB_VERSION@@" value="${release.impl.version}"/>
</replace>

Only the pattern in the not-localized Messages.properties is replaced, not
the localized properties which (obviously) are used afterwards in the
schema-compile-process.

For reproduction: set locale to e.g. DE, run schema-compiler and have a look
at the com..package..impl.JAXBVersion.java file

Would be great if this could be fixed - for JWSDP 1.5?

Best regards
Rico

-- 
Weitersagen: GMX DSL-Flatrates mit Tempo-Garantie!
Ab 4,99 Euro/Monat: http://www.gmx.net/de/go/dsl