diff options
author | aclement <aclement> | 2006-06-12 13:09:51 +0000 |
---|---|---|
committer | aclement <aclement> | 2006-06-12 13:09:51 +0000 |
commit | 4dcb8f3d88ed5e464bf31378d9c222fdf791ff4a (patch) | |
tree | 33e156385995a2fa2194b72a6ba29a7e73ba38f4 /asm | |
parent | 75afb31e38f75e61de5c15058d3332f3dac0df15 (diff) | |
download | aspectj-4dcb8f3d88ed5e464bf31378d9c222fdf791ff4a.tar.gz aspectj-4dcb8f3d88ed5e464bf31378d9c222fdf791ff4a.zip |
test and fix for 145963: faulting in aspects coming in as binary inputs
Diffstat (limited to 'asm')
-rw-r--r-- | asm/src/org/aspectj/asm/internal/AspectJElementHierarchy.java | 4 | ||||
-rw-r--r-- | asm/src/org/aspectj/asm/internal/ProgramElement.java | 4 |
2 files changed, 5 insertions, 3 deletions
diff --git a/asm/src/org/aspectj/asm/internal/AspectJElementHierarchy.java b/asm/src/org/aspectj/asm/internal/AspectJElementHierarchy.java index 42c60a203..8224c6d9f 100644 --- a/asm/src/org/aspectj/asm/internal/AspectJElementHierarchy.java +++ b/asm/src/org/aspectj/asm/internal/AspectJElementHierarchy.java @@ -272,8 +272,8 @@ public class AspectJElementHierarchy implements IHierarchy { lastSlash = sourceFilePath.lastIndexOf('/'); } String fileName = sourceFilePath.substring(lastSlash+1); - IProgramElement fileNode = new ProgramElement(fileName, IProgramElement.Kind.FILE_JAVA, null); - fileNode.setSourceLocation(new SourceLocation(new File(sourceFilePath), 1, 1)); + IProgramElement fileNode = new ProgramElement(fileName, IProgramElement.Kind.FILE_JAVA, new SourceLocation(new File(sourceFilePath), 1, 1),0,null,null); + //fileNode.setSourceLocation(); fileNode.addChild(NO_STRUCTURE); return fileNode; } diff --git a/asm/src/org/aspectj/asm/internal/ProgramElement.java b/asm/src/org/aspectj/asm/internal/ProgramElement.java index acddddfb2..af5a16960 100644 --- a/asm/src/org/aspectj/asm/internal/ProgramElement.java +++ b/asm/src/org/aspectj/asm/internal/ProgramElement.java @@ -162,8 +162,10 @@ public class ProgramElement implements IProgramElement { return sourceLocation; } + // not really sure why we have this setter ... how can we be in the situation where we didn't + // know the location when we built the node but we learned it later on? public void setSourceLocation(ISourceLocation sourceLocation) { - //this.sourceLocation = sourceLocation; +// this.sourceLocation = sourceLocation; } public IMessage getMessage() { |