Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8314552

Fix javadoc tests to work with jtreg 7

XMLWordPrintable

         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.

              dlutker Dan Lutker
              dlutker Dan Lutker
              Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

                Created:
                Updated:
                Resolved: