diff options
Diffstat (limited to 'org.aspectj.matcher')
-rw-r--r-- | org.aspectj.matcher/src/main/java/org/aspectj/weaver/AbstractReferenceTypeDelegate.java | 10 |
1 files changed, 4 insertions, 6 deletions
diff --git a/org.aspectj.matcher/src/main/java/org/aspectj/weaver/AbstractReferenceTypeDelegate.java b/org.aspectj.matcher/src/main/java/org/aspectj/weaver/AbstractReferenceTypeDelegate.java index 9165fa514..9dadc2007 100644 --- a/org.aspectj.matcher/src/main/java/org/aspectj/weaver/AbstractReferenceTypeDelegate.java +++ b/org.aspectj.matcher/src/main/java/org/aspectj/weaver/AbstractReferenceTypeDelegate.java @@ -75,17 +75,15 @@ public abstract class AbstractReferenceTypeDelegate implements ReferenceTypeDele public final void setSourcefilename(String sourceFileName) { sourcefilename = sourceFileName; - if (sourceFileName != null && sourceFileName.equals(AbstractReferenceTypeDelegate.UNKNOWN_SOURCE_FILE)) { + if (AbstractReferenceTypeDelegate.UNKNOWN_SOURCE_FILE.equals(sourceFileName)) sourcefilename = "Type '" + getResolvedTypeX().getName() + "' (no debug info available)"; - } else { + else { String pname = getResolvedTypeX().getPackageName(); - if (pname != null) { + if (pname != null) sourcefilename = pname.replace('.', '/') + '/' + sourceFileName; - } } - if (sourcefilename != null && sourceContext instanceof SourceContextImpl) { + if (sourcefilename != null && sourceContext instanceof SourceContextImpl) ((SourceContextImpl) sourceContext).setSourceFileName(sourcefilename); - } } public ISourceLocation getSourceLocation() { |