Java compilation error after batch translate

0
I just did some batch translation from dutch to english and when trying to start the model I get the following java compelation errors below. Does anyone know why I can get compile errors after an translation? From the error it looks like something with enumerations. But I thought proxies should never generate errors. Anybody? Regards, Ronald Buildfile: C:\Data\Mendix\Master Daywize-main\deployment\build.xml compile: [javac] Compiling 9 source files to C:\Data\Mendix\Master Daywize-main\deployment\model\lib\bin [javac] C:\Data\Mendix\Master Daywize-main\javasource\basis\proxies\TypeBankGiro.java:10: unclosed string literal [javac] Bank__Girorekening_2(new String[][] { new String[] { "nl_NL", "Bank-/Girorekening_2" }, new String[] { "en_US", "Bank account 2 [javac] ^ [javac] C:\Data\Mendix\Master Daywize-main\javasource\basis\proxies\TypeBankGiro.java:11: unclosed string literal [javac] " } }), [javac] ^ [javac] C:\Data\Mendix\Master Daywize-main\javasource\basis\proxies\TypeBankGiro.java:11: ')' expected [javac] " } }), [javac] ^ [javac] C:\Data\Mendix\Master Daywize-main\javasource\basis\proxies\TypeBankGiro.java:12: ',', '}', or ';' expected [javac] Bank__Girorekening_3(new String[][] { new String[] { "nl_NL", "Bank-/Girorekening_3" }, new String[] { "en_US", "Bank account 3" } }), [javac] ^ [javac] C:\Data\Mendix\Master Daywize-main\javasource\basis\proxies\TypeBankGiro.java:12: '}' expected [javac] Bank__Girorekening_3(new String[][] { new String[] { "nl_NL", "Bank-/Girorekening_3" }, new String[] { "en_US", "Bank account 3" } }), [javac] ^ [javac] C:\Data\Mendix\Master Daywize-main\javasource\basis\proxies\TypeBankGiro.java:18: class, interface, or enum expected [javac] private java.util.Map<String,String> captions; [javac] ^ [javac] C:\Data\Mendix\Master Daywize-main\javasource\basis\proxies\TypeBankGiro.java:20: class, interface, or enum expected [javac] private TypeBankGiro(String[][] captionStrings) [javac] ^ [javac] C:\Data\Mendix\Master Daywize-main\javasource\basis\proxies\TypeBankGiro.java:23: class, interface, or enum expected [javac] for (String[] captionString : captionStrings) [javac] ^ [javac] C:\Data\Mendix\Master Daywize-main\javasource\basis\proxies\TypeBankGiro.java:25: class, interface, or enum expected [javac] } [javac] ^ [javac] C:\Data\Mendix\Master Daywize-main\javasource\basis\proxies\TypeBankGiro.java:27: class, interface, or enum expected [javac] public String getCaption(String languageCode) [javac] ^ [javac] C:\Data\Mendix\Master Daywize-main\javasource\basis\proxies\TypeBankGiro.java:31: class, interface, or enum expected [javac] return captions.get("nl_NL"); [javac] ^ [javac] C:\Data\Mendix\Master Daywize-main\javasource\basis\proxies\TypeBankGiro.java:32: class, interface, or enum expected [javac] } [javac] ^ [javac] C:\Data\Mendix\Master Daywize-main\javasource\basis\proxies\TypeBankGiro.java:34: class, interface, or enum expected [javac] public String getCaption() [javac] ^ [javac] C:\Data\Mendix\Master Daywize-main\javasource\basis\proxies\TypeBankGiro.java:37: class, interface, or enum expected [javac] } [javac] ^ [javac] 14 errors BUILD FAILED C:\Data\Mendix\Master Daywize-main\deployment\build.xml:70: Compile failed; see the compiler error output for details. Total time: 15 seconds [EDIT] With eclipse I took a look at the TypeBankGiro.java in the proxies. There where some returns where they should not. I think this is a bug when the proxies are generated.
asked
1 answers
2

I think you might have a newline character at the end of your US English translation for "Bank__Girorekening_2" which messes up the generated Java proxy. Try clearing the translation (in the Modeler) and entering it again (without using copy+paste).

answered