< prev index next >

src/java.base/share/classes/sun/reflect/annotation/TypeAnnotationParser.java

Print this page

        

*** 121,130 **** --- 121,134 ---- @SuppressWarnings("unchecked") ArrayList<TypeAnnotation> tmp = l[pos]; tmp.add(t); } } + if (decl instanceof Constructor) { + l = AnnotationSupport.fixConstructorParameterAnnotations( + (Constructor<?>) decl, l, null, ArrayList[]::new); + } for (int i = 0; i < size; i++) { @SuppressWarnings("unchecked") ArrayList<TypeAnnotation> list = l[i]; TypeAnnotation[] typeAnnotations; if (list != null) {
< prev index next >