mirror of
https://github.com/openjdk/jdk.git
synced 2025-08-27 23:04:50 +02:00
8202473: A type variable with multiple bounds does not correctly place type annotation
Reviewed-by: jfranck
This commit is contained in:
parent
b87a159967
commit
53a4ef2670
2 changed files with 83 additions and 3 deletions
|
@ -301,11 +301,12 @@ public final class TypeAnnotationParser {
|
|||
l.add(t);
|
||||
}
|
||||
}
|
||||
TypeAnnotation[] typeAnnotations = l.toArray(EMPTY_TYPE_ANNOTATION_ARRAY);
|
||||
res[i] = AnnotatedTypeFactory.buildAnnotatedType(bounds[i],
|
||||
AnnotatedTypeFactory.nestingForType(bounds[i], loc),
|
||||
l.toArray(EMPTY_TYPE_ANNOTATION_ARRAY),
|
||||
candidates.toArray(EMPTY_TYPE_ANNOTATION_ARRAY),
|
||||
(AnnotatedElement)decl);
|
||||
typeAnnotations,
|
||||
typeAnnotations,
|
||||
decl);
|
||||
}
|
||||
return res;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue