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
Many Micronaut builds failing with NPE with Gradle 7.1 & JDK 8 #17488
Comments
Since I wrote this part of code I took a quick look. I checked it with JDK8, JDK 11 and JDK 16. It works on JDK 11 and 16, but not on JDK 8. It looks like the issue is that we start with null context in line: Line 57 in 12254f2
Relevant stacktrace:
At the start we don't know what class is currently visited until But it looks like that on JDK 8 in that case |
After more digging, I think I found the problem. Problematic are The problem is that
I did not manage to test this with gradle, since I could not compile it. I had some issues with |
@asodja Thank you for looking into this! Could you provide a PR with your fix and a test?
We had problems with repo.gradle.org, causing some artifacts not being available. It seems like it should work again now. |
Of course, I can check it later today. |
This has been fixed by @asodja in #17518. I created a 7.1.1 nightly containing the fix: @graemerocher Can you try out this version to verify that the problem has been fixed? |
@graemerocher Can you confirm this is fixed now? Please try out |
I verified the fix on |
Many of our builds are failing with Gradle 7.1 with the following stack trace:
Expected Behavior
Should compile
Current Behavior
Fails with NPE
Context
Blocks upgrading to 7.1
Steps to Reproduce
git clone git@github.com:micronaut-projects/micronaut-kafka.git
git checkout sync-files-master
./gradlew cJ --stacktrace
Your Environment
The text was updated successfully, but these errors were encountered: