RFR: 8351232: NPE: Cannot invoke "getDeclarationAttributes" because "sym" is null

Adam Sotona asotona at openjdk.org
Thu May 15 12:06:57 UTC 2025


On Wed, 7 May 2025 14:40:15 GMT, Adam Sotona <asotona at openjdk.org> wrote:

> Javac throws NPE in very specific circumstances described in [JDK-8351232](https://bugs.openjdk.org/browse/JDK-8351232).
> The NPE has been fixed as a side effect of "stripMetadata" call in the recent [JDK-8355065](https://bugs.openjdk.org/browse/JDK-8355065) fix.
> 
> This PR only adds a test case to avoid regression of the NPE.
> 
> Please review.
> 
> Thank you,
> Adam

Thanks for the review!

-------------

PR Comment: https://git.openjdk.org/jdk/pull/25098#issuecomment-2883574443


More information about the compiler-dev mailing list