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

Add a way to configure a different annotated JDK #671

Closed
netdpb opened this issue Jan 4, 2024 · 1 comment
Closed

Add a way to configure a different annotated JDK #671

netdpb opened this issue Jan 4, 2024 · 1 comment

Comments

@netdpb
Copy link

netdpb commented Jan 4, 2024

Right now the annotated JDK is included in the artifact, so the only way to use an alternative is to build locally. It would be good, especially for JSpecify, to make it possible to substitute an alternative annotated JDK.

@wmdietl
Copy link
Member

wmdietl commented Oct 3, 2024

This turned out to be already implemented:

URL resourceURL = atypeFactory.getClass().getResource("/annotated-jdk");
looks up the annotated-jdk resources relative to the type factory.

jspecify/jspecify-reference-checker#188 uses this in the JSpecify reference checker.

@wmdietl wmdietl closed this as completed Oct 3, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants