summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authoraclement <aclement>2008-01-17 00:11:58 +0000
committeraclement <aclement>2008-01-17 00:11:58 +0000
commitc3a96ab7368037ebd2bd1a4b176d6767560f39ac (patch)
tree89649076cebcd2d5f4b919acf2ad4e6e00c673d3
parent3b0d0cea728844785cf0627e6b13d4c81e9746c4 (diff)
downloadaspectj-c3a96ab7368037ebd2bd1a4b176d6767560f39ac.tar.gz
aspectj-c3a96ab7368037ebd2bd1a4b176d6767560f39ac.zip
AspectJ6: picking up compiler interface changes
-rw-r--r--org.aspectj.ajdt.core/src/org/aspectj/ajdt/internal/compiler/ast/InterTypeConstructorDeclaration.java12
1 files changed, 8 insertions, 4 deletions
diff --git a/org.aspectj.ajdt.core/src/org/aspectj/ajdt/internal/compiler/ast/InterTypeConstructorDeclaration.java b/org.aspectj.ajdt.core/src/org/aspectj/ajdt/internal/compiler/ast/InterTypeConstructorDeclaration.java
index 2586eec95..8bc56df31 100644
--- a/org.aspectj.ajdt.core/src/org/aspectj/ajdt/internal/compiler/ast/InterTypeConstructorDeclaration.java
+++ b/org.aspectj.ajdt.core/src/org/aspectj/ajdt/internal/compiler/ast/InterTypeConstructorDeclaration.java
@@ -22,6 +22,8 @@ import org.aspectj.org.eclipse.jdt.internal.compiler.ast.StringLiteral;
import org.aspectj.org.eclipse.jdt.internal.compiler.ClassFile;
import org.aspectj.org.eclipse.jdt.internal.compiler.CompilationResult;
import org.aspectj.org.eclipse.jdt.internal.compiler.ast.*;
+import org.aspectj.org.eclipse.jdt.internal.compiler.classfmt.ClassFileConstants;
+import org.aspectj.org.eclipse.jdt.internal.compiler.impl.Constant;
import org.aspectj.org.eclipse.jdt.internal.compiler.lookup.*;
import org.aspectj.org.eclipse.jdt.internal.compiler.parser.Parser;
@@ -133,7 +135,7 @@ public class InterTypeConstructorDeclaration extends InterTypeDeclaration {
MethodDeclaration pre = new MethodDeclaration(compilationResult);
- pre.modifiers = AccPublic | AccStatic;
+ pre.modifiers = ClassFileConstants.AccPublic | ClassFileConstants.AccStatic;
pre.returnType = AstUtil.makeTypeReference(objectArrayBinding);
pre.selector = NameMangler.postIntroducedConstructor(aspectTypeX, targetTypeX).toCharArray();
@@ -233,7 +235,7 @@ public class InterTypeConstructorDeclaration extends InterTypeDeclaration {
newArray.initializer = init;
newArray.type = AstUtil.makeTypeReference(scope.getJavaLangObject());
newArray.dimensions = new Expression[1];
- newArray.constant = NotAConstant;
+ newArray.constant = Constant.NotAConstant;
@@ -311,7 +313,9 @@ public class InterTypeConstructorDeclaration extends InterTypeDeclaration {
if (explicitConstructor.alwaysNeedsAccessMethod()) {
explicitConstructor = explicitConstructor.getAccessMethod(true);
}
-
+ if (explicitConstructor instanceof ParameterizedMethodBinding) {
+ explicitConstructor = explicitConstructor.original();
+ }
((NewConstructorTypeMunger)munger).setExplicitConstructor(
world.makeResolvedMember(explicitConstructor));
} else {
@@ -329,7 +333,7 @@ public class InterTypeConstructorDeclaration extends InterTypeDeclaration {
EclipseFactory world = EclipseFactory.fromScopeLookupEnvironment(classScope);
classFile.extraAttributes.add(new EclipseAttributeAdapter(makeAttribute(world)));
super.generateCode(classScope, classFile);
-
+// classFile.codeStream.generateAttributes &= ~ClassFileConstants.ATTR_VARS;
preMethod.generateCode(classScope, classFile);
}
protected Shadow.Kind getShadowKindForBody() {