JDK-8177142 : sun/security/krb5/auto/HttpNegotiateServer.java compilation error
  • Type: Bug
  • Component: security-libs
  • Sub-Component: org.ietf.jgss:krb5
  • Affected Version: 9
  • Priority: P3
  • Status: Closed
  • Resolution: Duplicate
  • Submitted: 2017-03-20
  • Updated: 2017-03-20
  • Resolved: 2017-03-20
Related Reports
Duplicate :  
Relates :  
Description
Fails with errors like the following:

KDC.java:1162: error: package sun.security.krb5.internal.ccache is not visible
                sun.security.krb5.internal.ccache.Credentials credentials =

The following fixed it in my workspace:

diff --git a/test/sun/security/krb5/auto/HttpNegotiateServer.java b/test/sun/security/krb5/auto/HttpNegotiateServer.java
--- a/test/sun/security/krb5/auto/HttpNegotiateServer.java
+++ b/test/sun/security/krb5/auto/HttpNegotiateServer.java
@@ -28,6 +28,7 @@
  *          java.security.jgss/sun.security.krb5.internal:+open
  *          java.security.jgss/sun.security.jgss
  *          java.security.jgss/sun.security.krb5:+open
+ *          java.security.jgss/sun.security.krb5.internal.ccache
  *          java.security.jgss/sun.security.krb5.internal.crypto
  *          java.security.jgss/sun.security.krb5.internal.ktab
  *          jdk.security.auth

However, I think this deserves to be looked at more closely by someone else as it may just crop up in other tests that depend on KDC.java. Seems to also be related to JDK-8176213.