return (sm2.getSourceLocation().getOffset()-sm1.getSourceLocation().getOffset());
}
});
-
+
+ if (inReweavableMode)
+ world.showMessage(IMessage.INFO,
+ WeaverMessages.format(WeaverMessages.REWEAVABLE_MODE),
+ null, null);
+
if (trace.isTraceEnabled()) trace.exit("prepareForWeave");
}
// bug 119882 - see above comment for bug 113531
ReferenceTypeDelegate theDelegate = ((ReferenceType)theType).getDelegate();
+
+ // TODO urgh - put a method on the interface to check this, string compare is hideous
if (theDelegate.getClass().getName().endsWith("EclipseSourceType")) continue;
throw new BCException("Can't find bcel delegate for "+className+" type="+theType.getClass());
deletedTypenames = new ArrayList();
- warnOnUnmatchedAdvice();
-
requestor.weaveCompleted();
CompilationAndWeavingContext.leavingPhase(weaveToken);
if (trace.isTraceEnabled()) trace.exit("weave",wovenClassNames);
return wovenClassNames;
}
+
+ public void allWeavingComplete() {
+ warnOnUnmatchedAdvice();
+ }
/**
* In 1.5 mode and with XLint:adviceDidNotMatch enabled, put out messages for any
if (!(ba.getSignature() instanceof BcelMethod)
|| !Utility.isSuppressing((AnnotationX[])ba.getSignature().getAnnotations(),"adviceDidNotMatch")) {
- world.getLint().adviceDidNotMatch.signal(ba.getDeclaringAspect().toString(),element.getSourceLocation());
+ world.getLint().adviceDidNotMatch.signal(ba.getDeclaringAspect().toString(),
+ new SourceLocation(element.getSourceLocation().getSourceFile(),element.getSourceLocation().getLine()));//element.getSourceLocation());
}
}
}
}
public void prepareToProcessReweavableState() {
- if (inReweavableMode)
- world.showMessage(IMessage.INFO,
- WeaverMessages.format(WeaverMessages.REWEAVABLE_MODE),
- null, null);
}
public void processReweavableStateIfPresent(String className, BcelObjectType classType) {