diff options
author | acolyer <acolyer> | 2005-09-09 14:19:19 +0000 |
---|---|---|
committer | acolyer <acolyer> | 2005-09-09 14:19:19 +0000 |
commit | 2942ca0f23ee0489efce58272768529e6b907a63 (patch) | |
tree | 8c71702707ed2548de5e4e228d5fb9b3e96a9a44 /org.aspectj.ajdt.core | |
parent | dc4ba2950b8ad87956d93eba5110d7a18288021c (diff) | |
download | aspectj-2942ca0f23ee0489efce58272768529e6b907a63.tar.gz aspectj-2942ca0f23ee0489efce58272768529e6b907a63.zip |
tests and fix for pr108826, not correctly converting from T[] to ResolvedType.
Diffstat (limited to 'org.aspectj.ajdt.core')
-rw-r--r-- | org.aspectj.ajdt.core/src/org/aspectj/ajdt/internal/compiler/lookup/EclipseFactory.java | 7 |
1 files changed, 7 insertions, 0 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 de3f7b028..406542ec1 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 @@ -36,6 +36,7 @@ import org.aspectj.org.eclipse.jdt.internal.compiler.ast.TypeDeclaration; import org.aspectj.org.eclipse.jdt.internal.compiler.ast.Wildcard; import org.aspectj.org.eclipse.jdt.internal.compiler.impl.Constant; import org.aspectj.org.eclipse.jdt.internal.compiler.impl.ReferenceContext; +import org.aspectj.org.eclipse.jdt.internal.compiler.lookup.ArrayBinding; import org.aspectj.org.eclipse.jdt.internal.compiler.lookup.BaseTypes; import org.aspectj.org.eclipse.jdt.internal.compiler.lookup.Binding; import org.aspectj.org.eclipse.jdt.internal.compiler.lookup.FieldBinding; @@ -199,6 +200,12 @@ public class EclipseFactory { return fromTypeVariableBinding((TypeVariableBinding)binding); } + // handle arrays since the component type may need special treatment too... + if (binding instanceof ArrayBinding) { + ArrayBinding aBinding = (ArrayBinding) binding; + UnresolvedType componentType = fromBinding(aBinding.leafComponentType); + return UnresolvedType.makeArray(componentType, aBinding.dimensions); + } if (binding instanceof WildcardBinding) { WildcardBinding eWB = (WildcardBinding) binding; |