[ https://issues.apache.org/jira/browse/SLING-9980?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Bertrand Delacretaz resolved SLING-9980. ---------------------------------------- Resolution: Fixed Fixed with commit [2811d3b8|https://github.com/apache/sling-org-apache-sling-junit-core/commit/2811d3b8f086a309ff9e79562db26cec53932bb5], using org.apache.sling.testing.paxexam 4.0.0-SNAPSHOT [~cris] you're right that the servlets-annotations module has the same problem, I have created SLING-10216 for that. > Junit Core ITs fail with jdk11 > ------------------------------ > > Key: SLING-9980 > URL: https://issues.apache.org/jira/browse/SLING-9980 > Project: Sling > Issue Type: Improvement > Components: JUnit Core > Affects Versions: JUnit Core 1.1.0 > Reporter: Bertrand Delacretaz > Assignee: Bertrand Delacretaz > Priority: Minor > Fix For: JUnit Core 1.1.2 > > > The integration tests under {{src/it/annotations-it}} fail with jdk11 as > follows: > {code} > INFO] [INFO] Running org.apache.sling.junit.annotations.ReferenceIT > [INFO] [main] INFO org.ops4j.pax.exam.spi.DefaultExamSystem - Pax Exam System > (Version: 4.13.4) created. > ... > [INFO] WARNING: An illegal reflective access operation has occurred > [INFO] WARNING: Illegal reflective access by > org.apache.felix.framework.ext.ClassPathExtenderFactory$DefaultClassLoaderExtender > > (file:/Users/bert/workspace/apache/sling/sling-org-apache-sling-junit-core/target/it-repo/org/apache/felix/org.apache.felix.framework/6.0.3/org.apache.felix.framework-6.0.3.jar) > to method java.net.URLClassLoader.addURL(java.net.URL) > [INFO] WARNING: Please consider reporting this to the maintainers of > org.apache.felix.framework.ext.ClassPathExtenderFactory$DefaultClassLoaderExtender > [INFO] WARNING: Use --illegal-access=warn to enable warnings of further > illegal reflective access operations > ... > [INFO] [ERROR] Tests run: 1, Failures: 0, Errors: 1, Skipped: 0, Time > elapsed: 89.29 s <<< FAILURE! - in > org.apache.sling.junit.annotations.ReferenceIT > [INFO] [ERROR] org.apache.sling.junit.annotations.ReferenceIT Time elapsed: > 89.27 s <<< ERROR! > [INFO] org.ops4j.pax.exam.TestContainerException: > org.osgi.framework.BundleException: Could not create bundle object. > [INFO] at > org.ops4j.pax.exam.forked.ForkedTestContainer.start(ForkedTestContainer.java:168) > [INFO] at > org.ops4j.pax.exam.junit.PaxExamServer.before(PaxExamServer.java:87) > [INFO] at > org.apache.sling.junit.annotations.it@1.0.0/org.apache.sling.junit.annotations.ReferenceIT$1.before(ReferenceIT.java:61) > ... > [INFO] Caused by: org.osgi.framework.BundleException: Could not create bundle > object. > [INFO] at > org.apache.felix.framework.Felix.installBundle(Felix.java:3312) > [INFO] at > org.apache.felix.framework.BundleContextImpl.installBundle(BundleContextImpl.java:147) > [INFO] at > org.apache.felix.framework.BundleContextImpl.installBundle(BundleContextImpl.java:120) > [INFO] at > org.ops4j.pax.swissbox.framework.RemoteFrameworkImpl.installBundle(RemoteFrameworkImpl.java:132) > ... > [INFO] Caused by: java.lang.UnsupportedOperationException: Unable to add > extension bundle. > [INFO] at > org.apache.felix.framework.ExtensionManager.addExtensionBundle(ExtensionManager.java:430) > [INFO] at > org.apache.felix.framework.Felix.installBundle(Felix.java:3279) > [INFO] at > org.apache.felix.framework.BundleContextImpl.installBundle(BundleContextImpl.java:147) > [INFO] at > org.apache.felix.framework.BundleContextImpl.installBundle(BundleContextImpl.java:120) > [INFO] at > org.ops4j.pax.swissbox.framework.RemoteFrameworkImpl.installBundle(RemoteFrameworkImpl.java:132) > {code} -- This message was sent by Atlassian Jira (v8.3.4#803005)