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

Indexed or polymorphic set on global affects Object.prototype

XMLWordPrintable

    • b33
    • generic
    • generic
    • Verified

        When working with latest version of Nashorn I noticed a regression. Code that used to work on 1.8.0_05-b13 does not work on home made build from 847387339a56 tag jdk8u20-b18. To reproduce

        $ hg clone http://source.apidesign.org/hg/html~html4j/
        $ cd html~html4j
        $ hg up -C 444b861dc45a
        $ mvn clean install

        this passes OK on 1.8.0_05-b13 (my default VM), but when I execute it as

        JAVA_HOME=/build-jdk8u20-b18/linux-x86_64-normal-server-release/images/j2sdk-image mvn clean install -Djfxrt.jar=/usr/lib/jvm/java-8-oracle/jre/lib/ext/jfxrt.jar

        there is a ClassCastException:

        java.lang.ClassCastException: jdk.nashorn.api.scripting.ScriptObjectMirror cannot be cast to [Ljava.lang.Object;
                at org.netbeans.html.ko4j.Knockout.allocJS(Knockout.java)

        I will investigate the details, but clearly something changed significantly and I feel I should report that as soon as possible.

              hannesw Hannes Wallnoefer
              jtulach Jaroslav Tulach (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

                Created:
                Updated:
                Resolved: