8244146: javac changes for JEP 306

8266399: Core libs update for JEP 306

Reviewed-by: sadayapalam, bpb, naoto
This commit is contained in:
Joe Darcy 2021-06-01 21:59:39 +00:00
parent c2c0208dfd
commit 0ae4ceb413
28 changed files with 578 additions and 56 deletions

View file

@ -86,7 +86,6 @@ import jdk.internal.vm.annotation.IntrinsicCandidate;
* @author Joseph D. Darcy
* @since 1.3
*/
public final class StrictMath {
/**
@ -207,10 +206,8 @@ public final class StrictMath {
* @return the measurement of the angle {@code angdeg}
* in radians.
*/
public static strictfp double toRadians(double angdeg) {
// Do not delegate to Math.toRadians(angdeg) because
// this method has the strictfp modifier.
return angdeg * DEGREES_TO_RADIANS;
public static double toRadians(double angdeg) {
return Math.toRadians(angdeg);
}
/**
@ -224,10 +221,8 @@ public final class StrictMath {
* @return the measurement of the angle {@code angrad}
* in degrees.
*/
public static strictfp double toDegrees(double angrad) {
// Do not delegate to Math.toDegrees(angrad) because
// this method has the strictfp modifier.
return angrad * RADIANS_TO_DEGREES;
public static double toDegrees(double angrad) {
return Math.toDegrees(angrad);
}
/**