diff options
author | aclement <aclement> | 2005-11-28 15:52:50 +0000 |
---|---|---|
committer | aclement <aclement> | 2005-11-28 15:52:50 +0000 |
commit | 97b5f52b520f534ac712d1ce3cff7b6ed5cca14f (patch) | |
tree | baf2baf03a91614aa20bc760bd54ecc0a05db633 /weaver5/java5-src/org/aspectj | |
parent | 340f99477cb028f696760f54ebaaf91f840d9eca (diff) | |
download | aspectj-97b5f52b520f534ac712d1ce3cff7b6ed5cca14f.tar.gz aspectj-97b5f52b520f534ac712d1ce3cff7b6ed5cca14f.zip |
fixes for 118192
Diffstat (limited to 'weaver5/java5-src/org/aspectj')
-rw-r--r-- | weaver5/java5-src/org/aspectj/weaver/reflect/Java15ReflectionBasedReferenceTypeDelegate.java | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/weaver5/java5-src/org/aspectj/weaver/reflect/Java15ReflectionBasedReferenceTypeDelegate.java b/weaver5/java5-src/org/aspectj/weaver/reflect/Java15ReflectionBasedReferenceTypeDelegate.java index 9d6e99cb8..57909f6df 100644 --- a/weaver5/java5-src/org/aspectj/weaver/reflect/Java15ReflectionBasedReferenceTypeDelegate.java +++ b/weaver5/java5-src/org/aspectj/weaver/reflect/Java15ReflectionBasedReferenceTypeDelegate.java @@ -129,9 +129,13 @@ public class Java15ReflectionBasedReferenceTypeDelegate extends return superInterfaces; } + // If the superclass is null, return Object - same as bcel does public ResolvedType getSuperclass() { - if (superclass == null && getBaseClass()!=Object.class) // superclass of Object is null - superclass = fromType(this.getBaseClass().getGenericSuperclass()); + if (superclass == null && getBaseClass()!=Object.class) {// superclass of Object is null + Type t = this.getBaseClass().getGenericSuperclass(); + if (t!=null) superclass = fromType(t); + if (t==null) superclass = getWorld().resolve(UnresolvedType.OBJECT); + } return superclass; } |