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

Nashorn is too precise

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Duplicate
    • Icon: P3 P3
    • None
    • None
    • core-libs
    • None

      Running it on V8 with
      d8 loop.js -- 1 666666666
      prints the output
      "iterations": 1,
      "n": 666666666,
      "result": 222222221844886660,

      Running it on Nashorn with
      jdk1.8.0/bin/jjs loop.js -- 1 666666666
      prints the output
      "iterations": 1,
      "n": 666666666,
      "result": 222222221844886656,

            hannesw Hannes Wallnoefer
            jlaskey Jim Laskey
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved: