RFR: JDK-8239575: javadoc triggers javac AssertionError for annos on modules

Jan Lahoda jan.lahoda at oracle.com
Tue Mar 3 13:46:21 UTC 2020


Hi,

javadoc uses the javac's model to model the source files. But it starts 
javac in a very special way. As a consequence, if the module that is 
being documented is load from sources implicitly, it is loaded twice, 
which then may lead to trouble during annotation processing.

The proposed patch is to change the code to load the module only once.

Proposed webrev: http://cr.openjdk.java.net/~jlahoda/8239575/webrev.00/
JBS: https://bugs.openjdk.java.net/browse/JDK-8239575

How does this look?

Thanks,
      Jan


More information about the compiler-dev mailing list