-
Bug
-
Resolution: Not an Issue
-
P4
-
None
-
11.0.8
-
x86_64
-
os_x
A DESCRIPTION OF THE PROBLEM :
When generating javadoc for an automatic module, the javadoc tool adds the arguments --add-modules ALL-MODULE-PATH. This throws the error "--add-modules ALL-MODULE-PATH can only be used when compiling the unnamed module"
This is similar to bug https://bugs.java.com/bugdatabase/view_bug.do?bug_id=8220702 which was fixed in JDK13
STEPS TO FOLLOW TO REPRODUCE THE PROBLEM :
1. Create module with automatic-module-name in manifest
2. Run "mvn clean install javadoc:jar" under JDK 11.0.8
EXPECTED VERSUS ACTUAL BEHAVIOR :
EXPECTED -
Javadoc is generated
ACTUAL -
Build fails with: --add-modules ALL-MODULE-PATH can only be used when compiling the unnamed module
FREQUENCY : always
When generating javadoc for an automatic module, the javadoc tool adds the arguments --add-modules ALL-MODULE-PATH. This throws the error "--add-modules ALL-MODULE-PATH can only be used when compiling the unnamed module"
This is similar to bug https://bugs.java.com/bugdatabase/view_bug.do?bug_id=8220702 which was fixed in JDK13
STEPS TO FOLLOW TO REPRODUCE THE PROBLEM :
1. Create module with automatic-module-name in manifest
2. Run "mvn clean install javadoc:jar" under JDK 11.0.8
EXPECTED VERSUS ACTUAL BEHAVIOR :
EXPECTED -
Javadoc is generated
ACTUAL -
Build fails with: --add-modules ALL-MODULE-PATH can only be used when compiling the unnamed module
FREQUENCY : always
- relates to
-
JDK-8220702 compiling in the context of an automatic module disallows --add-modules ALL-MODULE-PATH
- Closed