]> source.dussan.org Git - aspectj.git/commitdiff
AspectJ6: picking up compiler interface changes
authoraclement <aclement>
Thu, 17 Jan 2008 00:10:53 +0000 (00:10 +0000)
committeraclement <aclement>
Thu, 17 Jan 2008 00:10:53 +0000 (00:10 +0000)
org.aspectj.ajdt.core/src/org/aspectj/ajdt/internal/compiler/lookup/InterTypeFieldBinding.java

index fbcde4c71f1878d7dc877c36557c744ab4f1395b..6448581639aa124258fed2f86c06fbd4825fbff2 100644 (file)
@@ -40,7 +40,10 @@ public class InterTypeFieldBinding extends FieldBinding {
                
                targetType = (ReferenceBinding)world.makeTypeBinding(munger.getSignature().getDeclaringType());
                this.declaringClass = (ReferenceBinding)world.makeTypeBinding(withinType);
-       
+               // We called the super() with null, we must now do the last step that will have been skipped because of this, see the supers() final line:
+               // OPTIMIZE dont makeFieldBinding twice, HORRIBLE
+               setAnnotations(world.makeFieldBinding(munger.getSignature(),munger.getTypeVariableAliases()).getAnnotations());
+               
                reader = new SimpleSyntheticAccessMethodBinding(
                                                                world.makeMethodBinding(
                        AjcMemberMaker.interFieldGetDispatcher(munger.getSignature(), withinType)