summaryrefslogtreecommitdiffstats
path: root/org.aspectj.ajdt.core
diff options
context:
space:
mode:
authoraclement <aclement>2004-08-23 10:25:37 +0000
committeraclement <aclement>2004-08-23 10:25:37 +0000
commitd0be7b851b7bcedce43ab31cc307f44ebf0a2f2e (patch)
tree6d01cc289069d82a6cd81ba76942be31eec9346e /org.aspectj.ajdt.core
parenteed1b054c9c27d6d112e9e66de290dd5f6188f47 (diff)
downloadaspectj-d0be7b851b7bcedce43ab31cc307f44ebf0a2f2e.tar.gz
aspectj-d0be7b851b7bcedce43ab31cc307f44ebf0a2f2e.zip
More 'cant find types' improved.
Diffstat (limited to 'org.aspectj.ajdt.core')
-rw-r--r--org.aspectj.ajdt.core/src/org/aspectj/ajdt/internal/compiler/ast/InterTypeFieldDeclaration.java6
1 files changed, 4 insertions, 2 deletions
diff --git a/org.aspectj.ajdt.core/src/org/aspectj/ajdt/internal/compiler/ast/InterTypeFieldDeclaration.java b/org.aspectj.ajdt.core/src/org/aspectj/ajdt/internal/compiler/ast/InterTypeFieldDeclaration.java
index cbfbc0c04..954a20f0a 100644
--- a/org.aspectj.ajdt.core/src/org/aspectj/ajdt/internal/compiler/ast/InterTypeFieldDeclaration.java
+++ b/org.aspectj.ajdt.core/src/org/aspectj/ajdt/internal/compiler/ast/InterTypeFieldDeclaration.java
@@ -233,9 +233,11 @@ public class InterTypeFieldDeclaration extends InterTypeDeclaration {
codeStream.initializeMaxLocals(binding);
if (isGetter) {
if (onTypeBinding.isInterface()) {
+ TypeX declaringTX = sig.getDeclaringType();
+ ResolvedTypeX declaringRTX = world.getWorld().resolve(declaringTX,munger.getSourceLocation());
MethodBinding readMethod = world.makeMethodBinding(
AjcMemberMaker.interFieldInterfaceGetter(
- sig, world.getWorld().resolve(sig.getDeclaringType()), aspectType));
+ sig, declaringRTX, aspectType));
generateInterfaceReadBody(binding, readMethod, codeStream);
} else {
generateClassReadBody(binding, classField, codeStream);
@@ -244,7 +246,7 @@ public class InterTypeFieldDeclaration extends InterTypeDeclaration {
if (onTypeBinding.isInterface()) {
MethodBinding writeMethod = world.makeMethodBinding(
AjcMemberMaker.interFieldInterfaceSetter(
- sig, world.getWorld().resolve(sig.getDeclaringType()), aspectType));
+ sig, world.getWorld().resolve(sig.getDeclaringType(),munger.getSourceLocation()), aspectType));
generateInterfaceWriteBody(binding, writeMethod, codeStream);
} else {
generateClassWriteBody(binding, classField, codeStream);