8145990: Move sun.misc math support classes to jdk.internal.math
Reviewed-by: bpb, darcy
This commit is contained in:
parent
69bd68385c
commit
7e4d56677d
@ -25,7 +25,7 @@
|
||||
|
||||
package java.lang;
|
||||
|
||||
import sun.misc.FloatingDecimal;
|
||||
import jdk.internal.math.FloatingDecimal;
|
||||
import java.util.Arrays;
|
||||
import java.util.Spliterator;
|
||||
import java.util.stream.IntStream;
|
||||
|
@ -25,8 +25,8 @@
|
||||
|
||||
package java.lang;
|
||||
|
||||
import sun.misc.FloatingDecimal;
|
||||
import sun.misc.DoubleConsts;
|
||||
import jdk.internal.math.FloatingDecimal;
|
||||
import jdk.internal.math.DoubleConsts;
|
||||
import jdk.internal.HotSpotIntrinsicCandidate;
|
||||
|
||||
/**
|
||||
|
@ -25,9 +25,9 @@
|
||||
|
||||
package java.lang;
|
||||
|
||||
import sun.misc.FloatingDecimal;
|
||||
import sun.misc.FloatConsts;
|
||||
import sun.misc.DoubleConsts;
|
||||
import jdk.internal.math.FloatingDecimal;
|
||||
import jdk.internal.math.FloatConsts;
|
||||
import jdk.internal.math.DoubleConsts;
|
||||
import jdk.internal.HotSpotIntrinsicCandidate;
|
||||
|
||||
/**
|
||||
|
@ -26,8 +26,8 @@
|
||||
package java.lang;
|
||||
|
||||
import java.util.Random;
|
||||
import sun.misc.FloatConsts;
|
||||
import sun.misc.DoubleConsts;
|
||||
import jdk.internal.math.FloatConsts;
|
||||
import jdk.internal.math.DoubleConsts;
|
||||
import jdk.internal.HotSpotIntrinsicCandidate;
|
||||
|
||||
/**
|
||||
|
@ -26,7 +26,7 @@
|
||||
package java.lang;
|
||||
|
||||
import java.util.Random;
|
||||
import sun.misc.DoubleConsts;
|
||||
import jdk.internal.math.DoubleConsts;
|
||||
import jdk.internal.HotSpotIntrinsicCandidate;
|
||||
|
||||
/**
|
||||
|
@ -38,8 +38,8 @@ import java.util.Objects;
|
||||
import java.util.Random;
|
||||
import java.util.concurrent.ThreadLocalRandom;
|
||||
|
||||
import sun.misc.DoubleConsts;
|
||||
import sun.misc.FloatConsts;
|
||||
import jdk.internal.math.DoubleConsts;
|
||||
import jdk.internal.math.FloatConsts;
|
||||
import jdk.internal.HotSpotIntrinsicCandidate;
|
||||
|
||||
/**
|
||||
|
@ -41,7 +41,7 @@ package java.text;
|
||||
import java.math.BigDecimal;
|
||||
import java.math.BigInteger;
|
||||
import java.math.RoundingMode;
|
||||
import sun.misc.FloatingDecimal;
|
||||
import jdk.internal.math.FloatingDecimal;
|
||||
|
||||
/**
|
||||
* Digit List. Private to DecimalFormat.
|
||||
|
@ -60,8 +60,8 @@ import java.time.temporal.TemporalAccessor;
|
||||
import java.time.temporal.TemporalQueries;
|
||||
import java.time.temporal.UnsupportedTemporalTypeException;
|
||||
|
||||
import sun.misc.DoubleConsts;
|
||||
import sun.misc.FormattedFloatingDecimal;
|
||||
import jdk.internal.math.DoubleConsts;
|
||||
import jdk.internal.math.FormattedFloatingDecimal;
|
||||
|
||||
/**
|
||||
* An interpreter for printf-style format strings. This class provides support
|
||||
|
@ -23,7 +23,7 @@
|
||||
* questions.
|
||||
*/
|
||||
|
||||
package sun.misc;
|
||||
package jdk.internal.math;
|
||||
|
||||
/**
|
||||
* This class contains additional constants documenting limits of the
|
@ -22,7 +22,7 @@
|
||||
* or visit www.oracle.com if you need additional information or have any
|
||||
* questions.
|
||||
*/
|
||||
package sun.misc;
|
||||
package jdk.internal.math;
|
||||
|
||||
import java.math.BigInteger;
|
||||
import java.util.Arrays;
|
@ -23,7 +23,7 @@
|
||||
* questions.
|
||||
*/
|
||||
|
||||
package sun.misc;
|
||||
package jdk.internal.math;
|
||||
|
||||
/**
|
||||
* This class contains additional constants documenting limits of the
|
@ -23,7 +23,7 @@
|
||||
* questions.
|
||||
*/
|
||||
|
||||
package sun.misc;
|
||||
package jdk.internal.math;
|
||||
|
||||
import java.util.Arrays;
|
||||
import java.util.regex.*;
|
@ -23,7 +23,7 @@
|
||||
* questions.
|
||||
*/
|
||||
|
||||
package sun.misc;
|
||||
package jdk.internal.math;
|
||||
|
||||
import java.util.Arrays;
|
||||
|
@ -24,8 +24,8 @@
|
||||
*/
|
||||
package sun.java2d.marlin;
|
||||
|
||||
import sun.misc.DoubleConsts;
|
||||
import sun.misc.FloatConsts;
|
||||
import jdk.internal.math.DoubleConsts;
|
||||
import jdk.internal.math.FloatConsts;
|
||||
|
||||
/**
|
||||
* Faster Math ceil / floor routines derived from StrictMath
|
||||
|
@ -36,7 +36,7 @@ import java.math.BigInteger;
|
||||
import java.text.DateFormatSymbols;
|
||||
import java.util.*;
|
||||
#if[double]
|
||||
import sun.misc.DoubleConsts;
|
||||
import jdk.internal.math.DoubleConsts;
|
||||
#end[double]
|
||||
|
||||
import static java.util.Calendar.*;
|
||||
|
@ -28,7 +28,7 @@
|
||||
* 6344623 6369500 6534606 6282094 6286592 6476425 5063507 6469160 6476168
|
||||
* 8059175
|
||||
*
|
||||
* @modules java.base/sun.misc
|
||||
* @modules java.base/jdk.internal.math
|
||||
* @run shell/timeout=240 Basic.sh
|
||||
*/
|
||||
|
||||
|
@ -36,7 +36,7 @@ import java.math.BigInteger;
|
||||
import java.text.DateFormatSymbols;
|
||||
import java.util.*;
|
||||
|
||||
import sun.misc.DoubleConsts;
|
||||
import jdk.internal.math.DoubleConsts;
|
||||
|
||||
|
||||
import static java.util.Calendar.*;
|
||||
@ -1169,6 +1169,10 @@ public class BasicDouble extends Basic {
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
@ -21,7 +21,7 @@
|
||||
* questions.
|
||||
*/
|
||||
|
||||
//package sun.misc;
|
||||
//package jdk.internal.math;
|
||||
|
||||
/*
|
||||
* A really, really simple bigint package
|
@ -21,7 +21,7 @@
|
||||
* questions.
|
||||
*/
|
||||
|
||||
//package sun.misc;
|
||||
//package jdk.internal.math;
|
||||
|
||||
import java.util.regex.*;
|
||||
|
@ -23,13 +23,13 @@
|
||||
|
||||
import java.math.BigInteger;
|
||||
import java.util.Random;
|
||||
import sun.misc.FDBigInteger;
|
||||
import jdk.internal.math.FDBigInteger;
|
||||
|
||||
/**
|
||||
* @test
|
||||
* @bug 7032154
|
||||
* @summary unit testys of sun.misc.FDBigInteger
|
||||
* @modules java.base/sun.misc
|
||||
* @summary unit testys of FDBigInteger
|
||||
* @modules java.base/jdk.internal.math
|
||||
* @author Dmitry Nadezhin
|
||||
*/
|
||||
public class TestFDBigInteger {
|
@ -22,7 +22,7 @@
|
||||
*/
|
||||
|
||||
import java.util.Random;
|
||||
import sun.misc.FloatingDecimal;
|
||||
import jdk.internal.math.FloatingDecimal;
|
||||
|
||||
/*
|
||||
OldFloatingDecimalForTest
|
||||
@ -40,26 +40,26 @@ public class OldFloatingDecimalForTest {
|
||||
public strictfp float floatValue();
|
||||
}
|
||||
|
||||
sun.misc.FloatingDecimal
|
||||
jdk.internal.math.FloatingDecimal
|
||||
|
||||
public class sun.misc.FloatingDecimal {
|
||||
public sun.misc.FloatingDecimal();
|
||||
public class jdk.internal.math.FloatingDecimal {
|
||||
public jdk.internal.math.FloatingDecimal();
|
||||
public static java.lang.String toJavaFormatString(double);
|
||||
public static java.lang.String toJavaFormatString(float);
|
||||
public static void appendTo(double, java.lang.Appendable);
|
||||
public static void appendTo(float, java.lang.Appendable);
|
||||
public static double parseDouble(java.lang.String) throws java.lang.NumberFormatException;
|
||||
public static float parseFloat(java.lang.String) throws java.lang.NumberFormatException;
|
||||
public static sun.misc.FloatingDecimal$AbstractD2ABuffer getD2ABuffer(double);
|
||||
public static jdk.internal.math.FloatingDecimal$AbstractD2ABuffer getD2ABuffer(double);
|
||||
}
|
||||
*/
|
||||
|
||||
/**
|
||||
* @test
|
||||
* @bug 7032154
|
||||
* @summary unit tests of sun.misc.FloatingDecimal
|
||||
* @modules java.base/sun.misc
|
||||
* @library ../../../java/lang/Math
|
||||
* @summary unit tests of FloatingDecimal
|
||||
* @modules java.base/jdk.internal.math
|
||||
* @library /java/lang/Math
|
||||
* @build DoubleConsts FloatConsts
|
||||
* @run main TestFloatingDecimal
|
||||
* @author Brian Burkhalter
|
Loading…
Reference in New Issue
Block a user