diff options
author | ehilsdal <ehilsdal> | 2004-01-29 15:30:42 +0000 |
---|---|---|
committer | ehilsdal <ehilsdal> | 2004-01-29 15:30:42 +0000 |
commit | 520ad8a1aa6073e38f99c90c35b085cba96c76ae (patch) | |
tree | 65b18bdcdfd5b175df7ba468cea15efc0d2c9f34 /weaver | |
parent | 7cd8809a34dd3264b9c65b58d508c75cf534dfde (diff) | |
download | aspectj-520ad8a1aa6073e38f99c90c35b085cba96c76ae.tar.gz aspectj-520ad8a1aa6073e38f99c90c35b085cba96c76ae.zip |
Fix for Bugzilla Bug 42668
effect of an after returning type incompatible with a join point return type
Diffstat (limited to 'weaver')
-rw-r--r-- | weaver/src/org/aspectj/weaver/TypeX.java | 21 |
1 files changed, 0 insertions, 21 deletions
diff --git a/weaver/src/org/aspectj/weaver/TypeX.java b/weaver/src/org/aspectj/weaver/TypeX.java index c9204cbb1..b871d721b 100644 --- a/weaver/src/org/aspectj/weaver/TypeX.java +++ b/weaver/src/org/aspectj/weaver/TypeX.java @@ -372,27 +372,6 @@ public class TypeX { return world.isAssignableFrom(this, other); } - /** - * Determines if the variables of this type could be assigned values - * of another type without conversion. In other words, if the compiler can't tell whether - * such an assignment would be impossible. This still allows for assignment conversion - * for primitive types and casting conversion for reference types. For reference - * types, this is equivalent to isCastableFrom(THIS, OTHER). For primitive types, - * this is equivalent to isAssignableFrom(THIS, OTHER). - * - * @param other the other type - * @param world the {@link World} in which the possible assignment should be checked. - * @return true iff variables of this type could be assigned values of other without casting - * @exception NullPointerException if other is null - */ - public final boolean couldBeAssignableFrom(TypeX other, World world) { - // primitives override this method, so we know we're not primitive. - // So if the other is primitive, don't bother asking the world anything. - if (other.isPrimitive()) return false; - return world.isCoerceableFrom(this, other); - } - - /** * Determines if values of another type could possibly be cast to * this type. The rules followed are from JLS 2ed 5.5, "Casting Conversion". |