I am trying to migrate a GWT 1.5 application (which definitely works
without problem) to 2.03 and I am having problems with the compilation
of the application. My application uses various locales which are
defined in the Main.gwt.xml file

        <extend-property name="locale" values="es"/>
        <extend-property name="locale" values="es_GTC"/>
        <extend-property name="locale" values="en"/>

The problem comes when the compiler attempts to compile the locale
es_GTC and the file InternationalizationConstants_es_GTC.properties

The error from the compiler was as follows :

        Validating newly compiled units
            [ERROR] Errors in 'generated://
6156E89F6D1ADDBDACCA415E145F7A5A/com/google/gwt/i18n/client/impl/
LocaleInfoImpl_es-gtc.java'
               [ERROR] Line 10: The type LocaleInfoImpl_es is already
defined
               [ERROR] Line 10: Syntax error on token "-", < expected
               [ERROR] Line 10: Syntax error, insert ">" to complete
ReferenceType1

This previously worked with GWT 1.5. If I remove the locale

<extend-property name="locale" values="es_GTC"/>

from the Main.gwt.xml file, the application compiles and runs without
problem. It seems that the GWT compiler has a problem with the -
character in the name of the autogenerated java method which is

public class LocaleInfoImpl_es-gtc extends LocaleInfoImpl_shared {

Anybody got any suggestions? I've looked in the documentation for GWT
2.x and there is nothing to indicate that this has changed.

Thanks

Craige

-- 
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.

Reply via email to