Integrated: JDK-8314975: JavadocTester should set source path if not specified
Jonathan Gibbons
jjg at openjdk.org
Tue Oct 17 21:35:26 UTC 2023
On Fri, 25 Aug 2023 00:30:23 GMT, Jonathan Gibbons <jjg at openjdk.org> wrote:
> Please review a test-only fix, for `JavadocTester`, to set the source path to a sensible value if none specified explicitly, to override the tool default to use the class path.
>
> The underlying issue is that TestNG is on the class path, and contains a file `Version.java` in the root directory -- i.e. the unnamed package. This can interfere with various tests that use classes in the unnamed package.
>
> The fix is to set the source path to `testSrc`, so that `testng.jar` is never on the source path.
This pull request has now been integrated.
Changeset: 2f4d601a
Author: Jonathan Gibbons <jjg at openjdk.org>
URL: https://git.openjdk.org/jdk/commit/2f4d601a56bf02db2766d1f8a2ddfff906b78678
Stats: 12 lines in 1 file changed: 12 ins; 0 del; 0 mod
8314975: JavadocTester should set source path if not specified
Reviewed-by: hannesw
-------------
PR: https://git.openjdk.org/jdk/pull/15424
More information about the javadoc-dev
mailing list