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

Resolve var/val only once in eclipse #3007

Merged
merged 1 commit into from Oct 22, 2021

Conversation

Rawi01
Copy link
Collaborator

@Rawi01 Rawi01 commented Oct 22, 2021

This PR fixes #2985

The actual problem was the changed method signature of LocalDeclaration::resolve. I also changed the ecj test system to set a lower java version than the maximum supported one. This is something that happens a lot in real world usage e.g. current eclipse but java 8 project and is required to test the < java 10 val code. I also updated the tests to no longer stop if an error occours to trigger the reported bug. This also revealed another bug related to conditional expressions (eclipse does not throw an AbortCompilation during normal compilation)

@rzwitserloot
Copy link
Collaborator

That's some fancy footwork on the compliance level stuff. Love it.

@rzwitserloot rzwitserloot merged commit 341c458 into projectlombok:master Oct 22, 2021
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

Successfully merging this pull request may close these issues.

[BUG] Launching JUnit test via editor window in Eclipse fails with NullPointerException
2 participants