RFR: 8351232: NPE: Cannot invoke "getDeclarationAttributes" because "sym" is null
Chen Liang
liach at openjdk.org
Wed May 7 14:58:12 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
Looks reasonable to me
-------------
Marked as reviewed by liach (Reviewer).
PR Review: https://git.openjdk.org/jdk/pull/25098#pullrequestreview-2822117363
More information about the compiler-dev
mailing list