]> source.dussan.org Git - aspectj.git/commitdiff
Restored original mechanism of getting source location
authoracolyer <acolyer>
Wed, 26 Feb 2003 22:11:00 +0000 (22:11 +0000)
committeracolyer <acolyer>
Wed, 26 Feb 2003 22:11:00 +0000 (22:11 +0000)
now that debug info is being generated.

weaver/src/org/aspectj/weaver/AsmAdaptor.java

index caeeeaf419509222c2d1d90dc61fe4b5e8d218b3..dc7a9469582391a21c04dc316bfc2ad13186aee9 100644 (file)
@@ -23,6 +23,7 @@ import org.aspectj.asm.Relation;
 import org.aspectj.asm.RelationNode;
 import org.aspectj.asm.StructureModel;
 import org.aspectj.bridge.ISourceLocation;
+import org.aspectj.bridge.SourceLocation;
 
 public class AsmAdaptor {
        public static void noteMunger(StructureModel model, Shadow shadow, ShadowMunger munger) {
@@ -149,8 +150,8 @@ public class AsmAdaptor {
                ProgramElementNode peNode = new ProgramElementNode(
                        shadow.toString(),
                        ProgramElementNode.Kind.CODE,
-//                     new SourceLocation(enclosingNode.getSourceLocation().getSourceFile(), sl.getLine()),
-                       enclosingNode.getSourceLocation(),
+                       new SourceLocation(enclosingNode.getSourceLocation().getSourceFile(), sl.getLine()),
+//                     enclosingNode.getSourceLocation(),
                        0,
                        "",
                        new ArrayList());