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

Behavior of java.lang.StrictMath.toRadians() has changed between Java 8 and Java 9

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Not an Issue
    • Icon: P2 P2
    • 9
    • None
    • core-libs

      The following program returns different results on Java 8 and Java 9:

      public class zz
      {
          public static void main( String... args ) throws Exception
          {
              System.out.println( java.lang.StrictMath.toRadians( 2.225E-307 ) );
          }
      }

      On 1.8.0-b132 the result is 3.88335758568738E-309

      On 1.9.0-ea-b33 the result is 3.883357585687384E-309

      We are seeing this discrepancy in the regression tests for Java DB on Solaris_sparc_jdk9. I am seeing this on Mac OSX as well. See http://sthjavadb01.se.oracle.com/javadb-testing/request_5597089/

            bpb Brian Burkhalter
            rhillega Rick Hillegas (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: