Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

WADL example fix #5722

Merged
merged 2 commits into from
Aug 16, 2024
Merged

WADL example fix #5722

merged 2 commits into from
Aug 16, 2024

Conversation

senivam
Copy link
Contributor

@senivam senivam commented Aug 8, 2024

No description provided.

Signed-off-by: Maxim Nesen <maxim.nesen@oracle.com>
@senivam senivam self-assigned this Aug 8, 2024
@senivam
Copy link
Contributor Author

senivam commented Aug 9, 2024

Since JDK 13+ the javadoc tool returns error:

Exit code: 4
Note: Doclet using locale: en_US
error: fatal error encountered: java.lang.AssertionError
error: Please file a bug against the javadoc tool via the Java bug reporting page
  (https://bugreport.java.com) after checking the Bug Database (https://bugs.java.com)
  for duplicates. Include error messages and the following diagnostic in your report. Thank you.
java.lang.AssertionError
	at jdk.compiler/com.sun.tools.javac.util.Assert.error(Assert.java:155)
	at jdk.compiler/com.sun.tools.javac.util.Assert.checkNonNull(Assert.java:62)
	at jdk.compiler/com.sun.tools.javac.comp.Modules.allModules(Modules.java:1222)
	at jdk.javadoc/jdk.javadoc.internal.tool.ElementsTable.findModuleOfPackageName(ElementsTable.java:855)
	at jdk.javadoc/jdk.javadoc.internal.tool.ElementsTable.addPackagesFromLocations(ElementsTable.java:535)
	at jdk.javadoc/jdk.javadoc.internal.tool.ElementsTable.computeSubpackages(ElementsTable.java:508)
	at jdk.javadoc/jdk.javadoc.internal.tool.ElementsTable.computeSpecifiedPackages(ElementsTable.java:745)
	at jdk.javadoc/jdk.javadoc.internal.tool.ElementsTable.analyze(ElementsTable.java:345)
	at jdk.javadoc/jdk.javadoc.internal.tool.JavadocTool.getEnvironment(JavadocTool.java:215)
	at jdk.javadoc/jdk.javadoc.internal.tool.Start.parseAndExecute(Start.java:565)
	at jdk.javadoc/jdk.javadoc.internal.tool.Start.begin(Start.java:398)
	at jdk.javadoc/jdk.javadoc.internal.tool.Start.begin(Start.java:347)
	at jdk.javadoc/jdk.javadoc.internal.tool.Main.execute(Main.java:57)
	at jdk.javadoc/jdk.javadoc.internal.tool.Main.main(Main.java:46)

This is documented in the JDK bug JDK-8239575

In the same bug, there is a description of some workaround however it does not seem applicable for the doclet case.

Signed-off-by: Maxim Nesen <maxim.nesen@oracle.com>
@senivam senivam merged commit 88ebd40 into eclipse-ee4j:2.x Aug 16, 2024
7 checks passed
@senivam senivam deleted the 2x_wadlExampleFix branch August 16, 2024 06:00
@jansupol
Copy link
Contributor

The JDK bug says it is fixed in 15...

@senivam
Copy link
Contributor Author

senivam commented Aug 16, 2024

so, in JDK 21 it appears to be still broken, I was trying using JDK 21 and it gives listed above error

JDK 17 - same error

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants