Integrated: 8332236: javac crashes with module imports and implicitly declared class
Jan Lahoda
jlahoda at openjdk.org
Wed May 15 05:46:05 UTC 2024
On Tue, 14 May 2024 14:54:45 GMT, Jan Lahoda <jlahoda at openjdk.org> wrote:
> 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.
This pull request has now been integrated.
Changeset: d04ac14b
Author: Jan Lahoda <jlahoda at openjdk.org>
URL: https://git.openjdk.org/jdk/commit/d04ac14bdbab4187d0be98b8471f90be8a14f649
Stats: 24 lines in 2 files changed: 22 ins; 0 del; 2 mod
8332236: javac crashes with module imports and implicitly declared class
Reviewed-by: vromero
-------------
PR: https://git.openjdk.org/jdk/pull/19232
More information about the compiler-dev
mailing list