Configuration class processing explicitly skips java.* classes since we'll never find @Bean annotations there anyway

Issue: SPR-11718
(cherry picked from commit 470e9c8)
This commit is contained in:
Juergen Hoeller 2014-04-28 00:17:19 +02:00
parent 656fc52ff9
commit c8ea80d7ed
1 changed files with 1 additions and 1 deletions

View File

@ -267,7 +267,7 @@ class ConfigurationClassParser {
// process superclass, if any
if (sourceClass.getMetadata().hasSuperClass()) {
String superclass = sourceClass.getMetadata().getSuperClassName();
if (!this.knownSuperclasses.containsKey(superclass)) {
if (!superclass.startsWith("java") && !this.knownSuperclasses.containsKey(superclass)) {
this.knownSuperclasses.put(superclass, configClass);
// superclass found, return its annotation metadata and recurse
try {