RFR: JDK-8241519: javac crashes with wrong module-info.class in module path

Jan Lahoda jan.lahoda at oracle.com
Fri May 15 14:53:54 UTC 2020


Hi,

When javac loads module-info.class, that is broken, and hence a 
CompletionFailure (or BadClassFile) is thrown, the corresponding 
ModuleSymbol is not marked as erroneous, and is not fully completed, 
which may lead to follow on exceptions.

The proposal is to mark the ModuleSymbol as erroneous, and do basic 
initialization of it, when CompletionFailure is thrown while loading the 
module-info.class.

Proposed webrev:
http://cr.openjdk.java.net/~jlahoda/8241519/webrev.00/

JBS:
https://bugs.openjdk.java.net/browse/JDK-8241519

How does this look?

Thanks,
     Jan


More information about the compiler-dev mailing list