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

XMLWordPrintable

    • Type: Bug
    • Resolution: Not an Issue
    • Priority: P2
    • 9
    • Affects Version/s: None
    • Component/s: 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/

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

              Created:
              Updated:
              Resolved: