diff options
author | aclement <aclement> | 2005-04-22 16:32:03 +0000 |
---|---|---|
committer | aclement <aclement> | 2005-04-22 16:32:03 +0000 |
commit | 84b6ae3220671222d40a5546ea1c6a7e266e582a (patch) | |
tree | b8d6f9483c7dd37aa10654160618de302782023f | |
parent | 5f5ec77a5f5e5785167fec2fa8eab336834c39c4 (diff) | |
download | aspectj-84b6ae3220671222d40a5546ea1c6a7e266e582a.tar.gz aspectj-84b6ae3220671222d40a5546ea1c6a7e266e582a.zip |
Workaround/fix for Wes' problem with the compiler building his article code. Ignores raw types which are subtypes of ParameterizedTypeBinding but have no arguments to worry about.
-rw-r--r-- | org.aspectj.ajdt.core/src/org/aspectj/ajdt/internal/compiler/lookup/EclipseFactory.java | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/org.aspectj.ajdt.core/src/org/aspectj/ajdt/internal/compiler/lookup/EclipseFactory.java b/org.aspectj.ajdt.core/src/org/aspectj/ajdt/internal/compiler/lookup/EclipseFactory.java index 931c7db15..ef960113e 100644 --- a/org.aspectj.ajdt.core/src/org/aspectj/ajdt/internal/compiler/lookup/EclipseFactory.java +++ b/org.aspectj.ajdt.core/src/org/aspectj/ajdt/internal/compiler/lookup/EclipseFactory.java @@ -48,6 +48,7 @@ import org.aspectj.org.eclipse.jdt.internal.compiler.lookup.FieldBinding; import org.aspectj.org.eclipse.jdt.internal.compiler.lookup.LookupEnvironment; import org.aspectj.org.eclipse.jdt.internal.compiler.lookup.MethodBinding; import org.aspectj.org.eclipse.jdt.internal.compiler.lookup.ParameterizedTypeBinding; +import org.aspectj.org.eclipse.jdt.internal.compiler.lookup.RawTypeBinding; import org.aspectj.org.eclipse.jdt.internal.compiler.lookup.ReferenceBinding; import org.aspectj.org.eclipse.jdt.internal.compiler.lookup.Scope; import org.aspectj.org.eclipse.jdt.internal.compiler.lookup.SourceTypeBinding; @@ -167,7 +168,8 @@ public class EclipseFactory { TypeVariableBinding tvb = (TypeVariableBinding) binding; return TypeX.forName(getName(tvb.firstBound)); // XXX needs more investigation as to whether this is correct in all cases } - if (binding instanceof ParameterizedTypeBinding) { + // FIXME asc/amc cope properly with RawTypeBindings + if (binding instanceof ParameterizedTypeBinding && !(binding instanceof RawTypeBinding)) { ParameterizedTypeBinding ptb = (ParameterizedTypeBinding) binding; String[] arguments = new String[ptb.arguments.length]; for (int i = 0; i < arguments.length; i++) { |