test/sun/security/krb5/ccache/TimeInCCache.java

Print this page
rev 10175 : 8048073: Cannot read ccache entry with a realm-less service name

@@ -26,20 +26,18 @@
  * @run main/othervm TimeInCCache
  * @summary read/write does not match for ccache
  */
 
 import java.io.ByteArrayInputStream;
-import java.lang.reflect.Field;
 import java.lang.reflect.Method;
-import java.nio.file.Files;
-import java.nio.file.Paths;
 
 import sun.security.krb5.internal.ccache.CCacheInputStream;
 import sun.security.krb5.internal.ccache.Credentials;
 
 public class TimeInCCache {
-    // Attention: this field is also used by CorruptedCC.java test
+    // Attention: this field is also used by 2 other tests:
+    // CorruptedCC.java and EmptyRealmCC.java
     public static byte[] ccache;
 
     static {
         // A trivial cache file, with startdate and renewTill being zero.
         // The endtime is set to sometime in year 2022, so that isValid()