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

Varargs Array functions still leaking longs

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: P4
    • Resolution: Fixed
    • Affects Version/s: 9
    • Fix Version/s: 9
    • Component/s: core-libs
    • Labels:
      None
    • Subcomponent:
    • Resolved In Build:
      b103
    • CPU:
      generic
    • OS:
      generic

      Backports

        Description

        The varargs methods of the Array unshift() and push() methods can still return longs, which shouldn't be the case after JDK-8143896 as longs are no longer considered JavaScript Numbers. This normally only occurs with optimistic types disabled.

        var x = [1, 2, 3];
        print(x.push() === 3); // prints false instead of true
        print(x.unshift() === 3); // prints false instead of true

          Activity

          Hide
          hgupdate HG Updates added a comment -
          URL: http://hg.openjdk.java.net/jdk9/dev/nashorn/rev/7d884d7c0834
          User: hannesw
          Date: 2016-01-21 15:32:34 +0000
          Show
          hgupdate HG Updates added a comment - URL: http://hg.openjdk.java.net/jdk9/dev/nashorn/rev/7d884d7c0834 User: hannesw Date: 2016-01-21 15:32:34 +0000
          Hide
          hgupdate HG Updates added a comment -
          URL: http://hg.openjdk.java.net/jdk9/jdk9/nashorn/rev/7d884d7c0834
          User: lana
          Date: 2016-01-27 21:41:48 +0000
          Show
          hgupdate HG Updates added a comment - URL: http://hg.openjdk.java.net/jdk9/jdk9/nashorn/rev/7d884d7c0834 User: lana Date: 2016-01-27 21:41:48 +0000

            People

            • Assignee:
              hannesw Hannes Wallnoefer
              Reporter:
              hannesw Hannes Wallnoefer
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: