diff options
author | aclement <aclement> | 2004-08-23 10:25:37 +0000 |
---|---|---|
committer | aclement <aclement> | 2004-08-23 10:25:37 +0000 |
commit | d0be7b851b7bcedce43ab31cc307f44ebf0a2f2e (patch) | |
tree | 6d01cc289069d82a6cd81ba76942be31eec9346e /org.aspectj.ajdt.core | |
parent | eed1b054c9c27d6d112e9e66de290dd5f6188f47 (diff) | |
download | aspectj-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.java | 6 |
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); |