From 9b1c6f8915bd8e2c9ae866caed54daf458812572 Mon Sep 17 00:00:00 2001 From: acolyer Date: Wed, 26 Feb 2003 22:11:00 +0000 Subject: [PATCH] Restored original mechanism of getting source location now that debug info is being generated. --- weaver/src/org/aspectj/weaver/AsmAdaptor.java | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/weaver/src/org/aspectj/weaver/AsmAdaptor.java b/weaver/src/org/aspectj/weaver/AsmAdaptor.java index caeeeaf41..dc7a94695 100644 --- a/weaver/src/org/aspectj/weaver/AsmAdaptor.java +++ b/weaver/src/org/aspectj/weaver/AsmAdaptor.java @@ -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()); -- 2.39.5