JDK-8176296 : Test sun/security/krb5/auto/Basic.java faling after adding module declaration into TEST.properties.
  • Type: Bug
  • Component: security-libs
  • Sub-Component: org.ietf.jgss:krb5
  • Affected Version: 9
  • Priority: P3
  • Status: Resolved
  • Resolution: Fixed
  • OS: generic
  • CPU: generic
  • Submitted: 2017-03-07
  • Updated: 2017-03-25
  • Resolved: 2017-03-15
The Version table provides details related to the release that this issue/RFE will be addressed.

Unresolved : Release in which this issue/RFE will be addressed.
Resolved: Release in which this issue/RFE has been resolved.
Fixed : Release in which this issue/RFE has been fixed. The release containing this fix may be available for download as an Early Access Release or a General Availability Release.

To download the current JDK release, click here.
JDK 10 JDK 9
10Fixed 9 b162Fixed
Related Reports
Relates :  
Description
The test needs to be revised.

Execute the test with below command line:

jtreg -jdk:/jdk9_latest -verbose:all -javaoptions:"--limit-modules java.base,java.security.jgss,jdk.security.auth" /jdk9-dev/jdk/test/sun/security/krb5/auto/Basic.java

cut from logs:
command: main --limit-modules java.security.jgss,jdk.security.auth Basic java.security.jgss
reason: User specified action: run main/othervm --limit-modules java.security.jgss,jdk.security.auth Basic java.security.jgss 
Mode: othervm [/othervm specified]

STDERR:
java.lang.Exception: Expected: java.security.jgss. Actual: jdk.security.jgss
        at Basic.main(Basic.java:70)
        at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
        at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
        at java.base/java.lang.reflect.Method.invoke(Method.java:547)
        at com.sun.javatest.regtest.agent.MainWrapper$MainThread.run(MainWrapper.java:110)
        at java.base/java.lang.Thread.run(Thread.java:844)