summaryrefslogtreecommitdiffstats
path: root/org.aspectj.ajdt.core
diff options
context:
space:
mode:
authorjhugunin <jhugunin>2003-07-24 19:53:50 +0000
committerjhugunin <jhugunin>2003-07-24 19:53:50 +0000
commit01b77ac07d292a8bdafc9c10112f4f89bae204ec (patch)
tree4777c3a6a600d1fc3f1dea1aee55ce62219c5138 /org.aspectj.ajdt.core
parentfc3423e80f0640cd1e72e0f8f0efddc98f86793a (diff)
downloadaspectj-01b77ac07d292a8bdafc9c10112f4f89bae204ec.tar.gz
aspectj-01b77ac07d292a8bdafc9c10112f4f89bae204ec.zip
moved to 2.1.1 jdtcore. Updated our code to change one call to a
convenience method that was removed. Updated tests to enable the test for the horrible switch bug that this fixes.
Diffstat (limited to 'org.aspectj.ajdt.core')
-rw-r--r--org.aspectj.ajdt.core/src/org/aspectj/ajdt/internal/compiler/ast/AdviceDeclaration.java3
1 files changed, 2 insertions, 1 deletions
diff --git a/org.aspectj.ajdt.core/src/org/aspectj/ajdt/internal/compiler/ast/AdviceDeclaration.java b/org.aspectj.ajdt.core/src/org/aspectj/ajdt/internal/compiler/ast/AdviceDeclaration.java
index 122760fc2..94a026aa0 100644
--- a/org.aspectj.ajdt.core/src/org/aspectj/ajdt/internal/compiler/ast/AdviceDeclaration.java
+++ b/org.aspectj.ajdt.core/src/org/aspectj/ajdt/internal/compiler/ast/AdviceDeclaration.java
@@ -33,6 +33,7 @@ import org.eclipse.jdt.internal.compiler.ast.MethodDeclaration;
import org.eclipse.jdt.internal.compiler.ast.TypeDeclaration;
import org.eclipse.jdt.internal.compiler.ast.TypeReference;
import org.eclipse.jdt.internal.compiler.codegen.CodeStream;
+import org.eclipse.jdt.internal.compiler.lookup.ArrayBinding;
import org.eclipse.jdt.internal.compiler.lookup.ClassScope;
import org.eclipse.jdt.internal.compiler.lookup.MethodBinding;
import org.eclipse.jdt.internal.compiler.lookup.ReferenceBinding;
@@ -202,7 +203,7 @@ public class AdviceDeclaration extends MethodDeclaration {
// build the Object[]
codeStream.generateInlinedValue(nargs-1);
- codeStream.anewarrayJavaLangObject();
+ codeStream.newArray(classScope, new ArrayBinding(classScope.getType(TypeBinding.JAVA_LANG_OBJECT), 1));
int index = 0;
for (int i=0; i < nargs-1; i++) {