RFR: 8332236: javac crashes with module imports and implicitly declared class
Jan Lahoda
jlahoda at openjdk.org
Tue May 14 15:00:11 UTC 2024
When parsing implicitly declared class, javac wraps the elements it finds in the file by the implicitly declared (and created) class. But, it avoids wrapping imports. But, accidentally, it is wrapping the module imports into the class, which then inevitably fails.
The proposed fix is to simply handle the the module imports in the same way normal imports are handled.
-------------
Commit messages:
- 8332236: javac crashes with module imports and implicitly declared class
Changes: https://git.openjdk.org/jdk/pull/19232/files
Webrev: https://webrevs.openjdk.org/?repo=jdk&pr=19232&range=00
Issue: https://bugs.openjdk.org/browse/JDK-8332236
Stats: 24 lines in 2 files changed: 22 ins; 0 del; 2 mod
Patch: https://git.openjdk.org/jdk/pull/19232.diff
Fetch: git fetch https://git.openjdk.org/jdk.git pull/19232/head:pull/19232
PR: https://git.openjdk.org/jdk/pull/19232
More information about the compiler-dev
mailing list