mirror of
https://github.com/openjdk/jdk.git
synced 2025-08-28 07:14:30 +02:00
8213905: reflection not working for type annotations applied to exception types in the inner class constructor
Reviewed-by: jlahoda
This commit is contained in:
parent
295c0474c4
commit
2eab86b513
2 changed files with 15 additions and 5 deletions
|
@ -132,7 +132,8 @@ public final class TypeAnnotationParser {
|
|||
Class<?> declaringClass = ctor.getDeclaringClass();
|
||||
if (!declaringClass.isEnum() &&
|
||||
(declaringClass.isMemberClass() &&
|
||||
(declaringClass.getModifiers() & Modifier.STATIC) == 0) ) {
|
||||
(declaringClass.getModifiers() & Modifier.STATIC) == 0) &&
|
||||
filter == TypeAnnotation.TypeAnnotationTarget.METHOD_FORMAL_PARAMETER) {
|
||||
offset = true;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue