Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8013369

nashorn build failure with jdk8 b84

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • P2
    • 8
    • None
    • core-libs
    • None
    • b89
    • generic
    • generic
    • Verified

    Description

      nashorn build failure with jdk8 b84.

      After a recent change (8006559: Octane:pdfjs leaks memory, runs slower iteration to iteration), nasgen step in nashorn build fails when using "ant clean jar". The error stack trace is as follows:


      run-nasgen:
           [java] Exception in thread "main" java.lang.VerifyError: class jdk.nashorn.internal.objects.ScriptFunctionImpl overrides final method getPrototype.()Ljava/lang/Object;
           [java] at java.lang.ClassLoader.defineClass1(Native Method)
           [java] at java.lang.ClassLoader.defineClass(ClassLoader.java:751)
           [java] at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:142)
           [java] at java.net.URLClassLoader.defineClass(URLClassLoader.java:448)
           [java] at java.net.URLClassLoader.access$100(URLClassLoader.java:70)
           [java] at java.net.URLClassLoader$1.run(URLClassLoader.java:360)
           [java] at java.net.URLClassLoader$1.run(URLClassLoader.java:354)
           [java] at java.security.AccessController.doPrivileged(Native Method)
           [java] at java.net.URLClassLoader.findClass(URLClassLoader.java:353)
           [java] at java.lang.ClassLoader.loadClass(ClassLoader.java:422)
           [java] at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:308)
           [java] at java.lang.ClassLoader.loadClass(ClassLoader.java:355)
           [java] at jdk.nashorn.internal.tools.nasgen.StringConstants.<clinit>(StringConstants.java:55)
           [java] at jdk.nashorn.internal.tools.nasgen.MemberInfo.verify(MemberInfo.java:283)
           [java] at jdk.nashorn.internal.tools.nasgen.ScriptClassInfo.verify(ScriptClassInfo.java:227)
           [java] at jdk.nashorn.internal.tools.nasgen.Main.process(Main.java:108)
           [java] at jdk.nashorn.internal.tools.nasgen.Main.processAll(Main.java:88)
           [java] at jdk.nashorn.internal.tools.nasgen.Main.main(Main.java:62)

      BUILD FAILED

      Attachments

        Activity

          People

            sundar Sundararajan Athijegannathan
            sundar Sundararajan Athijegannathan
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: