Differentiate between TypeDescriptors with same annotations but different attributes

Issue: SPR-13714
This commit is contained in:
Juergen Hoeller
2015-12-18 22:10:50 +01:00
parent 06056e6aa6
commit 387c8a8181
3 changed files with 399 additions and 298 deletions

View File

@@ -468,7 +468,7 @@ public class TypeDescriptor implements Serializable {
return false;
}
for (Annotation ann : getAnnotations()) {
if (!other.hasAnnotation(ann.annotationType())) {
if (!ann.equals(other.getAnnotation(ann.annotationType()))) {
return false;
}
}