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

Use Java 8 in annotation tests #300

Merged
merged 1 commit into from
Dec 19, 2021
Merged

Use Java 8 in annotation tests #300

merged 1 commit into from
Dec 19, 2021

Conversation

basil
Copy link
Member

@basil basil commented Dec 19, 2021

Some tests were still using Java 6. This updates them to use Java 8. The addition of -Xlint:none is because otherwise the tests fail with erors like "warning: Supported source version RELEASE_6 from annotation processor net.java.dev.hickory.prism.internal.PrismGenerator less than -source 1.8". Fixing this would require patching PrismGenerator, which doesn't even exist on GItHub (much less with any activity in the past decade), or finding some other library or method of testing annotation processors, both of which are a bit more effort than I'm willing to put in at the moment, so silencing the linter warnings in the tests seemed like the easiest choice.

@basil basil added the tests label Dec 19, 2021
@basil basil merged commit 1c743c5 into jenkinsci:master Dec 19, 2021
@basil basil deleted the java8 branch December 19, 2021 02:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant