- 
    Type:
Bug
 - 
    Resolution: Fixed
 - 
    Priority:
  P4                     
     - 
    Affects Version/s: 21, 22
 - 
    Component/s: tools
 - 
    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