diff options
author | jhugunin <jhugunin> | 2003-05-09 17:33:42 +0000 |
---|---|---|
committer | jhugunin <jhugunin> | 2003-05-09 17:33:42 +0000 |
commit | 845cb02fae070fede825d0359d0395adab4aa052 (patch) | |
tree | 38f1d8efb18a2b193df9600a66e1a65debdf27f9 | |
parent | 76f6b9a3004bfbfce6c5452a2447d67948e7c0e4 (diff) | |
download | aspectj-845cb02fae070fede825d0359d0395adab4aa052.tar.gz aspectj-845cb02fae070fede825d0359d0395adab4aa052.zip |
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
-rw-r--r-- | weaver/src/org/aspectj/weaver/AsmAdaptor.java | 3 |
1 files changed, 3 insertions, 0 deletions
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; |