[prev in list] [next in list] [prev in thread] [next in thread] 

List:       openjdk-compiler-dev
Subject:    Integrated: 8332236: javac crashes with module imports and implicitly declared class
From:       Jan Lahoda <jlahoda () openjdk ! org>
Date:       2024-05-15 5:46:05
Message-ID: zYPULzihflA7x-9Y_VcANJ7Is4XlwYQ6caRnIyb_yCQ=.02260a1c-0a73-4da6-890c-37c44ef8bdd6 () github ! com
[Download RAW message or body]

On Tue, 14 May 2024 14:54:45 GMT, Jan Lahoda <jlahoda@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@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


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic