Skip to content

Javadoc API reference in build.xml throws error in JDK 11+ #1

@sjohn330

Description

@sjohn330

**COPIED FROM https://github.com/MetroCS/redistricting/issues/40 **

Describe the bug
When building under JDK 11, the javadoc task throws error:

[javadoc] javadoc: error - The code being documented uses modules but the packages defined in https://docs.oracle.com/javase/8/docs/api/ are in the unnamed module.
When building under JDK 16, the javadoc task displays warning:

[javadoc] javadoc: warning - The code being documented uses modules but the packages defined in https://docs.oracle.com/javase/8/docs/api/ are in the unnamed module.
To Reproduce
Steps to reproduce the behavior:

Establish JDK 11 or later (verify via javadoc --version)
From project root directory
Issue command ant doc
See error/warning message (shown above)
Expected behavior
No error or warning message associated with use of modules.

Desktop (please complete the following information):

OS: [OSX 10.14.6; OSX 11.5.2]
Version [Oracle JDK 11.0.5, openJDK 12, openJDK 16]

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions