src/java.sql/share/classes/java/sql/Time.java
changeset 48065 c4f2b6749c86
parent 47216 71c04702a3d5
--- a/src/java.sql/share/classes/java/sql/Time.java	Tue Dec 05 14:10:11 2017 +0100
+++ b/src/java.sql/share/classes/java/sql/Time.java	Tue Dec 05 14:25:16 2017 +0100
@@ -27,8 +27,6 @@
 
 import java.time.Instant;
 import java.time.LocalTime;
-import jdk.internal.misc.SharedSecrets;
-import jdk.internal.misc.JavaLangAccess;
 
 /**
  * <P>A thin wrapper around the <code>java.util.Date</code> class that allows the JDBC
@@ -43,8 +41,6 @@
  */
 public class Time extends java.util.Date {
 
-    private static final JavaLangAccess jla = SharedSecrets.getJavaLangAccess();
-
     /**
      * Constructs a <code>Time</code> object initialized with the
      * given values for the hour, minute, and second.
@@ -134,7 +130,7 @@
         buf[5] = ':';
         Date.formatDecimalInt(second, buf, 6, 2);
 
-        return jla.newStringUnsafe(buf);
+        return new String(buf);
     }
 
     // Override all the date operations inherited from java.util.Date;