[7u]: org.omg.PortableServer.AdapterActivator.java compile fails on French platform

Francis ANDRE francis.andre.kampbell at orange.fr
Tue Dec 3 04:03:37 UTC 2013


Found a surprising issue when building the jdk7u on a French platform with this 
compile error

error: unmappable character for encoding ascii
* lundi 2 d?cembre 2013 19 h 22 CET

In effect, the header generated is

* org/omg/PortableServer/AdapterActivator.java .
* Generated by the IDL-to-Java compiler (portable), version "3.2"
* from ../../../../src/share/classes/org/omg/PortableServer/poa.idl
* lundi 2 décembre 2013 19 h 22 CET
  which contains the "é" character in the french month of december.

As the compiling command request an ASCII encoding, it fails as "é" is not ASCII.

make[5]: Entering directory 
if [ -s 
] ; then \
   C:/Progra~1/Java/jdk1.6.0_35/bin/java -XX:-PrintVMOptions 
-XX:+UnlockDiagnosticVMOptions -XX:-LogVMOutput -client -Xmx512m -Xms512m 
-XX:PermSize=32m -XX:MaxPermSize=160m 
-jar Z:/JDK/JDK7U-~2/build/WINDOW~1/LANGTO~1/dist/bootstrap/lib/javac.jar 
-XDignore.symbol.file=true -source 7 -target 7 *-encoding ascii *-classpath 
C:/Progra~1/Java/jdk1.6.0_35/lib/tools.jar  -Xprefer:source -sourcepath 
-d Z:/JDK/JDK7U-~2/build/windows-i586/corba/classes 

I would suggest to fix this issue by removing the "-encoding ascii" parameter 
since pao.idl should contains only ascii characters and is not subject to i18n 
problem (except for the idl-to-java translation time in the header comment).


More information about the core-libs-dev mailing list