ibmruntimes / openj9-openjdk-jdk17

Extensions for OpenJDK 17 for Eclipse OpenJ9
GNU General Public License v2.0
23 stars 53 forks source link

Parse jar index when using SCC #331

Closed hangshao0 closed 6 months ago

hangshao0 commented 6 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+.

Internal issue semeru-runtimes/issues/1

pshipton commented 6 months ago

What testing was already run?

pshipton commented 6 months ago

Pls add the information about why this change doesn't need to be forward ported.

hangshao0 commented 6 months ago

What testing was already run?

It has been tested by functional (sanity + extended) and system (sanity + extended)

hangshao0 commented 6 months ago

Pls add the information about why this change doesn't need to be forward ported.

Added.

pshipton commented 6 months ago

jenkins test sanity.openjdk,extended.openjdk amac jdk17