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

absolute math function returns incorrect value in jdk17

XMLWordPrintable

    • x86_64
    • os_x

      A DESCRIPTION OF THE PROBLEM :
      In JDK11, abs(-6) = returned 6
      But in JDK17, abs(-6) returns 6.0 which is wrong as we are taking an absolute value of an integer, so the result should also be an integer


            tongwan Andrew Wang
            webbuggrp Webbug Group
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: