ibmruntimes / openj9-openjdk-jdk11

Extensions for OpenJDK 11 for Eclipse OpenJ9
GNU General Public License v2.0
31 stars 112 forks source link

Parse jar index when using SCC #762

Closed hangshao0 closed 7 months ago

hangshao0 commented 7 months ago

If a jarIndex exists, the JDK by default (i.e. SCC is off) uses the URLs in the JarIndex to search for resources, the class path in manifest is ignored.

However, when SCC is on, the jarIndex is always ignored and the class path in manifest is used, which differs from the default JDK behavior.

Change SCC code in URLClassPath to always use URLs in jarIndex if it exists.

Add a property "com.ibm.oti.shared.disableJarIndex" that can be used to control the behavior.

JarIndex is removed in Java 21, no need to port to Java 21+.

Port of https://github.com/ibmruntimes/openj9-openjdk-jdk17/pull/331/

Internal issue semeru-runtimes/issues/1

pshipton commented 7 months ago

jenkins test sanity,extended amac jdk11

pshipton commented 7 months ago

The CryptoTests_0 failure is unrelated.