Build error with older bootjdk in nashorn
Lindenmaier, Goetz
goetz.lindenmaier at sap.com
Fri Jun 7 01:37:25 PDT 2013
Hi,
I experienced a problem building nashorn with a jdk that
contains an older version of nashorn:
Running nasgen
/bin/mkdir -p /sapmnt/home1/d045726/oJ/check8/jdk8/build/nashorn/classes
/bin/rm -f -rf /sapmnt/home1/d045726/oJ/check8/jdk8/build/nashorn/classes/jdk /sapmnt/home1/d045726/oJ/check8/jdk8/build/nashorn/classes/netscape
/bin/cp -R -p /sapmnt/home1/d045726/oJ/check8/jdk8/build/nashorn/nashorn_classes/* /sapmnt/home1/d045726/oJ/check8/jdk8/build/nashorn/classes/
/net/usr.work/openjdk/nb/linuxx86_64/last_known_good/output-jdk8/images/j2sdk-image/bin/java -Xms64M -Xmx1100M -XX:ThreadStackSize=1536 \
-cp "/sapmnt/home1/d045726/oJ/check8/jdk8/build/nashorn/nasgen_classes:/sapmnt/home1/d045726/oJ/check8/jdk8/build/nashorn/nashorn_classes" \
jdk.nashorn.internal.tools.nasgen.Main /sapmnt/home1/d045726/oJ/check8/jdk8/build/nashorn/classes jdk.nashorn.internal.objects /sapmnt/home1/d045726/oJ/check8/jdk8/build/nashorn/classes
Exception in thread "main" java.lang.VerifyError: class jdk.nashorn.internal.objects.ScriptFunctionImpl overrides final method getPrototype.()Ljava/lang/Object;
at java.lang.ClassLoader.defineClass1(Native Method)
at java.lang.ClassLoader.defineClass(ClassLoader.java:751)
at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:142)
at java.net.URLClassLoader.defineClass(URLClassLoader.java:448)
at java.net.URLClassLoader.access$100(URLClassLoader.java:70)
at java.net.URLClassLoader$1.run(URLClassLoader.java:360)
at java.net.URLClassLoader$1.run(URLClassLoader.java:354)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.java:353)
at java.lang.ClassLoader.loadClass(ClassLoader.java:422)
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:308)
at java.lang.ClassLoader.loadClass(ClassLoader.java:355)
at jdk.nashorn.internal.tools.nasgen.StringConstants.<clinit>(StringConstants.java:55)
at jdk.nashorn.internal.tools.nasgen.ScriptClassInstrumentor$2.visitMethodInsn(ScriptClassInstrumentor.java:161)
at jdk.internal.org.objectweb.asm.ClassReader.accept(ClassReader.java:1551)
at jdk.internal.org.objectweb.asm.ClassReader.accept(ClassReader.java:562)
at jdk.nashorn.internal.tools.nasgen.Main.process(Main.java:121)
at jdk.nashorn.internal.tools.nasgen.Main.processAll(Main.java:88)
at jdk.nashorn.internal.tools.nasgen.Main.main(Main.java:62)
gmake[1]: *** [/sapmnt/home1/d045726/oJ/check8/jdk8/build/nashorn/classes/_the.nasgen.run] Error 1
gmake[1]: Leaving directory `/net/usr.work/d045726/oJ/check8/jdk8/nashorn/makefiles'
make: *** [nashorn-only] Error 2
This can be solved by setting the bootclasspath instead of the classpath in the call to nasgen:
http://cr.openjdk.java.net/~goetz/webrevs/nasgen_build_error/
The jdk I use for building is based on jdk8-b85.
I would appreciate if you fix this in nashorn.
Best regards,
Goetz.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mail.openjdk.java.net/pipermail/ppc-aix-port-dev/attachments/20130607/e5f42f60/attachment.html
More information about the ppc-aix-port-dev
mailing list