aboutsummaryrefslogtreecommitdiffstats
path: root/org.aspectj.ajdt.core
diff options
context:
space:
mode:
authoracolyer <acolyer>2005-09-22 15:45:06 +0000
committeracolyer <acolyer>2005-09-22 15:45:06 +0000
commit8a0f59ad18ace56ff59cd9108d18c70358a4f055 (patch)
tree45ca73c9880d6010a1676dd069c8166f161c845a /org.aspectj.ajdt.core
parent0442d2f26935d7da1a6819eb79c5e7a1c034b229 (diff)
downloadaspectj-8a0f59ad18ace56ff59cd9108d18c70358a4f055.tar.gz
aspectj-8a0f59ad18ace56ff59cd9108d18c70358a4f055.zip
tests and fix for 109283.
Diffstat (limited to 'org.aspectj.ajdt.core')
-rw-r--r--org.aspectj.ajdt.core/src/org/aspectj/ajdt/internal/compiler/ast/AspectDeclaration.java4
-rw-r--r--org.aspectj.ajdt.core/src/org/aspectj/ajdt/internal/compiler/lookup/EclipseFactory.java6
2 files changed, 2 insertions, 8 deletions
diff --git a/org.aspectj.ajdt.core/src/org/aspectj/ajdt/internal/compiler/ast/AspectDeclaration.java b/org.aspectj.ajdt.core/src/org/aspectj/ajdt/internal/compiler/ast/AspectDeclaration.java
index fa0735819..78387f762 100644
--- a/org.aspectj.ajdt.core/src/org/aspectj/ajdt/internal/compiler/ast/AspectDeclaration.java
+++ b/org.aspectj.ajdt.core/src/org/aspectj/ajdt/internal/compiler/ast/AspectDeclaration.java
@@ -1015,8 +1015,8 @@ public class AspectDeclaration extends TypeDeclaration {
hasAspectMethod = AjcMemberMaker.perObjectHasAspectMethod(typeX);
} else if (perClause.getKind() == PerClause.PERTYPEWITHIN) {
// PTWIMPL Use these variants of aspectOf()/hasAspect()
- aspectOfMethod = AjcMemberMaker.perTypeWithinAspectOfMethod(typeX);
- hasAspectMethod = AjcMemberMaker.perTypeWithinHasAspectMethod(typeX);
+ aspectOfMethod = AjcMemberMaker.perTypeWithinAspectOfMethod(typeX,world.getWorld().isInJava5Mode());
+ hasAspectMethod = AjcMemberMaker.perTypeWithinHasAspectMethod(typeX,world.getWorld().isInJava5Mode());
} else {
throw new RuntimeException("bad per clause: " + perClause);
}
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 e95c78233..68858e92e 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
@@ -570,12 +570,6 @@ public class EclipseFactory {
private ReferenceBinding lookupBinding(String sname) {
char[][] name = CharOperation.splitOn('.', sname.toCharArray());
ReferenceBinding rb = lookupEnvironment.getType(name);
- // XXX We do this because the pertypewithin aspectOf(Class) generated method needs it. Without this
- // we don't get a 'rawtype' as the argument type for a messagesend to aspectOf() and this leads to
- // a compile error if some client class calls aspectOf(A.class) or similar as it says Class<A> isn't
- // compatible with Class<T>
- if (sname.equals("java.lang.Class"))
- rb = lookupEnvironment.createRawType(rb,rb.enclosingType());
return rb;
}