Details
-
Bug
-
Resolution: Fixed
-
P4
-
17
-
b05
Backports
Issue | Fix Version | Assignee | Priority | Status | Resolution | Resolved In Build |
---|---|---|---|---|---|---|
JDK-8315641 | 17.0.10-oracle | Shivangi Gupta | P4 | Resolved | Fixed | b01 |
JDK-8335972 | 11.0.25-oracle | Sean Coffey | P4 | Resolved | Fixed | b02 |
JDK-8327033 | 11.0.24 | Aleksey Shipilev | P4 | Resolved | Fixed | b01 |
Description
Some javadoc tests fail with jtreg 7 due to the testng.jar including some non-ascii chars.
In 18+ this is not an issue because of JEP 400 that switches to UTF-8 by default.
Example Error:
/home/runner/work/jdk17u-dev/jdk17u-dev/jtreg/installed/lib/testng-7.3.0.jar(/Version.java):12: error: unmappable character (0xC3) for encoding US-ASCII
System.out.println("...\\\\n... TestNG " + getVersionString() + " by C??dric Beust (cedric@beust.com)\\\\n...\\\\n");
Failing tests:
jdk/javadoc/doclet/testSerialVersionUID/TestSerialVersionUID
jdk/javadoc/doclet/testTagMisuse/TestTagMisuse
jdk/javadoc/doclet/testThrows/TestThrows
jdk/javadoc/doclet/testThrowsHead/TestThrowsHead
jdk/javadoc/doclet/testUnnamedPackage/TestUnnamedPackage
jdk/javadoc/tool/nonConstExprs/Test
See https://github.com/openjdk/jdk17u-dev/pull/1595 for detailed failures.
In 18+ this is not an issue because of JEP 400 that switches to UTF-8 by default.
Example Error:
/home/runner/work/jdk17u-dev/jdk17u-dev/jtreg/installed/lib/testng-7.3.0.jar(/Version.java):12: error: unmappable character (0xC3) for encoding US-ASCII
System.out.println("...\\\\n... TestNG " + getVersionString() + " by C??dric Beust (cedric@beust.com)\\\\n...\\\\n");
Failing tests:
jdk/javadoc/doclet/testSerialVersionUID/TestSerialVersionUID
jdk/javadoc/doclet/testTagMisuse/TestTagMisuse
jdk/javadoc/doclet/testThrows/TestThrows
jdk/javadoc/doclet/testThrowsHead/TestThrowsHead
jdk/javadoc/doclet/testUnnamedPackage/TestUnnamedPackage
jdk/javadoc/tool/nonConstExprs/Test
See https://github.com/openjdk/jdk17u-dev/pull/1595 for detailed failures.
Attachments
Issue Links
- backported by
-
JDK-8315641 Fix javadoc tests to work with jtreg 7
- Resolved
-
JDK-8327033 Fix javadoc tests to work with jtreg 7
- Resolved
-
JDK-8335972 Fix javadoc tests to work with jtreg 7
- Resolved
- relates to
-
JDK-8314975 JavadocTester should set source path if not specified
- Resolved
- links to
-
Commit openjdk/jdk11u-dev/b183cd23
-
Commit openjdk/jdk17u-dev/e8304640
-
Review openjdk/jdk11u-dev/2557
-
Review openjdk/jdk17u-dev/1672
(3 links to)