mirror of
https://github.com/openjdk/jdk.git
synced 2026-01-28 03:58:21 +00:00
8345614: Improve AnnotationFormatError message for duplicate annotation interfaces
Reviewed-by: liach
This commit is contained in:
parent
35c00532a1
commit
7aa0cbc91d
@ -123,7 +123,7 @@ public class AnnotationParser {
|
||||
if (AnnotationType.getInstance(klass).retention() == RetentionPolicy.RUNTIME &&
|
||||
result.put(klass, a) != null) {
|
||||
throw new AnnotationFormatError(
|
||||
"Duplicate annotation for class: "+klass+": " + a);
|
||||
"Duplicate annotation " + klass + " in " + container);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user