[jdk11u-dev] RFR: 8222091: Javadoc does not handle package annotations correctly on package-info.java

duke duke at openjdk.org
Thu Jun 27 17:25:11 UTC 2024


On Tue, 25 Oct 2022 17:06:11 GMT, Liam Miller-Cushon <cushon at openjdk.org> wrote:

> This is a backport of [JDK-8222091: Javadoc does not handle package annotations correctly on package-info.java](https://bugs.openjdk.java.net/browse/JDK-8222091)
> 
> This fixes a regression in 11.0.17 caused by the backport of [JDK-8193462](https://bugs.openjdk.org/browse/JDK-8193462), see [JDK-8295850](https://bugs.openjdk.org/browse/JDK-8295850)
> 
> Original patch applied cleanly, the test was updated due to some changes in test infrastructrure:
> 
> 
> diff --git a/test/langtools/jdk/javadoc/doclet/testPackageAnnotation/TestPackageAnnotation.java b/test/langtools/jdk/javadoc/doclet/testPackageAnnotation/TestPackageAnnotation.java
> index cd9697eede..9f04777f81 100644
> --- a/test/langtools/jdk/javadoc/doclet/testPackageAnnotation/TestPackageAnnotation.java
> +++ b/test/langtools/jdk/javadoc/doclet/testPackageAnnotation/TestPackageAnnotation.java
> @@ -25,14 +25,12 @@
>   * @test
>   * @bug  8222091
>   * @summary  Javadoc does not handle package annotations correctly on package-info.java
> - * @library  ../../lib/
> + * @library  ../lib/
>   * @modules jdk.javadoc/jdk.javadoc.internal.tool
> - * @build   javadoc.tester.*
> + * @build   JavadocTester
>   * @run main TestPackageAnnotation
>   */
> 
> -import javadoc.tester.JavadocTester;
> -
>  public class TestPackageAnnotation extends JavadocTester {
> 
>      public static void main(String... args) throws Exception {
> 
> 
> Tested: tier1 langtools tests passed

@cushon 
Your change (at version 3deb993b66e0c6b838b9540f4ae127cb6d2616ab) is now ready to be sponsored by a Committer.

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

PR Comment: https://git.openjdk.org/jdk11u-dev/pull/1475#issuecomment-1332533962


More information about the jdk-updates-dev mailing list