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

Indexed or polymorphic set on global affects Object.prototype

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: P2
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 9
    • Component/s: core-libs
    • Subcomponent:
    • Resolved In Build:
      b33
    • CPU:
      generic
    • OS:
      generic
    • Verification:
      Verified

      Backports

        Description

        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.

          Attachments

            Issue Links

              Activity

                People

                Assignee:
                hannesw Hannes Wallnoefer
                Reporter:
                jtulach Jaroslav Tulach
                Votes:
                0 Vote for this issue
                Watchers:
                5 Start watching this issue

                  Dates

                  Created:
                  Updated:
                  Resolved: