-
Bug
-
Resolution: Fixed
-
P4
-
8, 8u65
-
b22
-
Fix failed
Issue | Fix Version | Assignee | Priority | Status | Resolution | Resolved In Build |
---|---|---|---|---|---|---|
JDK-8130989 | 8u65 | Ivan Gerasimov | P4 | Resolved | Fixed | b05 |
JDK-8138276 | emb-8u65 | Unassigned | P4 | Resolved | Fixed | b05 |
JDK-8130596 | emb-8u60 | Ivan Gerasimov | P4 | Resolved | Fixed | b22 |
Here's one of possible failures observed on Compact Profile 1:
java.lang.NoClassDefFoundError: Ljavax/security/auth/kerberos/KerberosPrincipal;
at java.lang.Class.getDeclaredFields0(Native Method)
at java.lang.Class.privateGetDeclaredFields(Unknown Source)
at java.lang.Class.getDeclaredFields(Unknown Source)
at FieldSetAccessibleTest.testSetFieldsAccessible(FieldSetAccessibleTest.java:76)
at FieldSetAccessibleTest.test(FieldSetAccessibleTest.java:90)
at FieldSetAccessibleTest.test(FieldSetAccessibleTest.java:199)
at FieldSetAccessibleTest.test(FieldSetAccessibleTest.java:160)
at FieldSetAccessibleTest.run(FieldSetAccessibleTest.java:144)
at FieldSetAccessibleTest$TestCase.run(FieldSetAccessibleTest.java:275)
at FieldSetAccessibleTest.main(FieldSetAccessibleTest.java:135)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at com.sun.javatest.regtest.agent.MainWrapper$MainThread.run(MainWrapper.java:92)
at java.lang.Thread.run(Unknown Source)
java.lang.RuntimeException: Test failed for the following classes: [sun/security/ssl/krb5/KerberosClientKeyExchangeImpl$1.class, sun/security/ssl/krb5/KerberosClientKeyExchangeImpl.class]
This happens because the sun.security.ssl.krb5.KerberosClientKeyExchangeImpl class have a field of type javax.security.auth.kerberos.KerberosPrincipal whereas Compact 1 doesn't include javax.security.auth.kerberos package. Thus the dependency on KerberosPrincipal cannot be satisfied and NoClassDefFoundError exception is raised.
The class sun.security.ssl.krb5.KerberosClientKeyExchangeImpl is found in jsse.jar. When this jar is simply removed from the boot classpath all tests pass OK.
- backported by
-
JDK-8130596 [TESTBUG] java/lang/Class/getDeclaredField/FieldSetAccessibleTest.java fails on compact profiles due to unsatisfied dependencies in jsse.jar
- Resolved
-
JDK-8130989 [TESTBUG] java/lang/Class/getDeclaredField/FieldSetAccessibleTest.java fails on compact profiles due to unsatisfied dependencies in jsse.jar
- Resolved
-
JDK-8138276 [TESTBUG] java/lang/Class/getDeclaredField/FieldSetAccessibleTest.java fails on compact profiles due to unsatisfied dependencies in jsse.jar
- Resolved
- is cloned by
-
JDK-8133253 [TESTBUG] java/lang/Class/getDeclaredField/FieldSetAccessibleTest.java fails on compact profiles due to NoClassDefFoundError
- Resolved
- relates to
-
JDK-8061624 [TESTBUG] Some tests cannot be ran under compact profiles and therefore shall be excluded
- Resolved