--- a/src/java.sql/share/classes/java/sql/Date.java Tue Dec 05 14:10:11 2017 +0100
+++ b/src/java.sql/share/classes/java/sql/Date.java Tue Dec 05 14:25:16 2017 +0100
@@ -27,8 +27,6 @@
import java.time.Instant;
import java.time.LocalDate;
-import jdk.internal.misc.SharedSecrets;
-import jdk.internal.misc.JavaLangAccess;
/**
* <P>A thin wrapper around a millisecond value that allows
@@ -46,8 +44,6 @@
*/
public class Date extends java.util.Date {
- private static final JavaLangAccess jla = SharedSecrets.getJavaLangAccess();
-
/**
* Constructs a <code>Date</code> object initialized with the given
* year, month, and day.
@@ -168,7 +164,7 @@
buf[7] = '-';
Date.formatDecimalInt(day, buf, 8, 2);
- return jla.newStringUnsafe(buf);
+ return new String(buf);
}
/**