-
Bug
-
Resolution: Fixed
-
P4
-
21, 22
-
None
-
b14
Consider this code:
import java.lang.annotation.*;
public class ArrayAnno {
@Retention(RetentionPolicy.RUNTIME)
@Target(ElementType.TYPE_USE)
@Documented
public @interface Anno { int value(); }
public void method(@Anno(1) int @Anno(2) [] @Anno(3) [] arg) {}
public void method(@Anno(1) String @Anno(2) [] @Anno(3) [] arg) {}
}
Javadoc outputs @Anno(1) int @Anno(3) [] @Anno(2) [] arg, which is incorrect. The HtmlLinkFactory should fix the annotation placement on nested arrays.
import java.lang.annotation.*;
public class ArrayAnno {
@Retention(RetentionPolicy.RUNTIME)
@Target(ElementType.TYPE_USE)
@Documented
public @interface Anno { int value(); }
public void method(@Anno(1) int @Anno(2) [] @Anno(3) [] arg) {}
public void method(@Anno(1) String @Anno(2) [] @Anno(3) [] arg) {}
}
Javadoc outputs @Anno(1) int @Anno(3) [] @Anno(2) [] arg, which is incorrect. The HtmlLinkFactory should fix the annotation placement on nested arrays.
- links to
-
Commit openjdk/jdk/35b00e64
-
Review(master) openjdk/jdk/18211