Varargs Array functions still leaking longs

XMLWordPrintable

    • Type: Bug
    • Resolution: Fixed
    • Priority: P4
    • 9
    • Affects Version/s: 9
    • Component/s: core-libs
    • None
    • b103
    • generic
    • generic

        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

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

                Created:
                Updated:
                Resolved: