Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[GR-61712] Trace zip file entries loaded from classpath zips as resources. #10677

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

graalvmbot
Copy link
Collaborator

The XML framework does not always load resources using traced APIs like getResource. For example, if an XSD (schema) file "include"s another file, it gets loading using a jar:file:<jarfile>!/<entry> URL.

There is no perfect call site to identify this access pattern (to my knowledge). The heuristic I chose is to trace ZipFile#getEntry invocations where the zip/jar file belongs to the classpath (while also filtering META-INF and *.class entries). This seems to do the trick, at least on the reproducer, without creating any extraneous entries.

@oracle-contributor-agreement oracle-contributor-agreement bot added the OCA Verified All contributors have signed the Oracle Contributor Agreement. label Feb 12, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
OCA Verified All contributors have signed the Oracle Contributor Agreement.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants