RFR: JDK-8314975: JavadocTester should set source path if not specified

Hannes Wallnöfer hannesw at openjdk.org
Mon Aug 28 12:04:10 UTC 2023


On Fri, 25 Aug 2023 08:00:57 GMT, Pavel Rappo <prappo at openjdk.org> wrote:

> I understand why you are doing it, but I wonder if it is possible to do it in a better way. If this is integrated, tests that use JavadocTester will always specify `-sourcepath`. That won't be clean and will likely cause suprises down the road.

As comments in the related JBS issues show, javadoc will always look for the sources somewhere. Using `testSrc` as explicit default seems preferable to the implicit default class path.

-------------

PR Comment: https://git.openjdk.org/jdk/pull/15424#issuecomment-1695572646


More information about the javadoc-dev mailing list