-
Notifications
You must be signed in to change notification settings - Fork 58
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
NullPointerException
when setting -XDuseUnsharedTable=true
#371
Comments
it looks like a bug in JDK ... what do you think? |
Reference PR #309 |
Agreed. Shared it here because |
great. As workaround we can check if |
I think moving this block before the Lines 436 to 438 in 4a37bfd
That way, one can pass |
Yes it is this place of code ... can be simply check if |
Not a plexus-compiler per se, but since
-XDuseUnsharedTable=true
is now default since 2.14.0 in c396cc8, I thought I share it here.I can reproduce it with both Java 17 and 21. I first noticed it while upgrading maven-compiler-plugin from 3.11.0 to 3.12.1 (which uses plexus-compiler 2.14.2). But it also happens with maven-compiler-plugin 3.11.0 +
-XDuseUnsharedTable=true
compiler argument.The problematic code was using raw parameterized class. Something like
var context = new Context(...)
. Specifying the parameterized type fixed the issue, i.e.,var context = new Context<Key, Value>(...)
. I didn't debug it further, though.The stack trace:
The text was updated successfully, but these errors were encountered: