From: jhugunin Date: Fri, 9 May 2003 17:33:42 +0000 (+0000) Subject: handling Shadow.PreInitialization as a INITIALIZER_RELATION X-Git-Tag: V1_1_0_RC2~21 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=845cb02fae070fede825d0359d0395adab4aa052;p=aspectj.git handling Shadow.PreInitialization as a INITIALIZER_RELATION rather than printing a warning message to System.err this fixes the dirty output that was very visible when running the harness with -emacssym enabled --- diff --git a/weaver/src/org/aspectj/weaver/AsmAdaptor.java b/weaver/src/org/aspectj/weaver/AsmAdaptor.java index ba84390f9..15e94274e 100644 --- a/weaver/src/org/aspectj/weaver/AsmAdaptor.java +++ b/weaver/src/org/aspectj/weaver/AsmAdaptor.java @@ -53,6 +53,9 @@ public class AsmAdaptor { relation = AdviceAssociation.METHOD_RELATION; } else if (shadow.getKind().equals(Shadow.ConstructorExecution)) { relation = AdviceAssociation.CONSTRUCTOR_RELATION; + } else if (shadow.getKind().equals(Shadow.PreInitialization)) { + // TODO: someone should check that this behaves reasonably in the IDEs + relation = AdviceAssociation.INITIALIZER_RELATION; } else { System.err.println("> unmatched relation: " + shadow.getKind()); relation = AdviceAssociation.METHOD_RELATION;