diff options
author | aclement <aclement> | 2008-08-07 18:19:13 +0000 |
---|---|---|
committer | aclement <aclement> | 2008-08-07 18:19:13 +0000 |
commit | 277941b7a9536b0c210d468177e62306f6d4f3a7 (patch) | |
tree | 09eb2847198ea9ec99c236bb5c7b7efd9a591ae5 | |
parent | d2a1ab0511494acf60a1fe919c944b92e4d0c089 (diff) | |
download | aspectj-277941b7a9536b0c210d468177e62306f6d4f3a7.tar.gz aspectj-277941b7a9536b0c210d468177e62306f6d4f3a7.zip |
242797: resolve earlier so that any generic method type vars are recognized.
-rw-r--r-- | weaver/src/org/aspectj/weaver/ResolvedType.java | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/weaver/src/org/aspectj/weaver/ResolvedType.java b/weaver/src/org/aspectj/weaver/ResolvedType.java index ed049bef3..97c2f1678 100644 --- a/weaver/src/org/aspectj/weaver/ResolvedType.java +++ b/weaver/src/org/aspectj/weaver/ResolvedType.java @@ -1648,8 +1648,8 @@ public abstract class ResolvedType extends UnresolvedType implements AnnotatedEl if (world.isInJava5Mode() && parent.getKind()==Member.METHOD) { // Look at the generic types when doing this comparison - ResolvedType rtParentReturnType = parent.getGenericReturnType().resolve(world); - ResolvedType rtChildReturnType = child.getGenericReturnType().resolve(world); + ResolvedType rtParentReturnType = parent.resolve(world).getGenericReturnType().resolve(world); + ResolvedType rtChildReturnType = child.resolve(world).getGenericReturnType().resolve(world); incompatibleReturnTypes = !rtParentReturnType.isAssignableFrom(rtChildReturnType); if (incompatibleReturnTypes) { incompatibleReturnTypes = !rtParentReturnType.isAssignableFrom(rtChildReturnType); |