diff options
author | wisberg <wisberg> | 2004-01-09 09:30:21 +0000 |
---|---|---|
committer | wisberg <wisberg> | 2004-01-09 09:30:21 +0000 |
commit | f029a06e9778e64cb336dbc3220ebb79f1a6c2f1 (patch) | |
tree | d9afcfedfdbd6a30aed4d31285550ad51c5f65c7 /testing/src/org | |
parent | 7b081f2e0bece3414ac4f385cde75d7b54981099 (diff) | |
download | aspectj-f029a06e9778e64cb336dbc3220ebb79f1a6c2f1.tar.gz aspectj-f029a06e9778e64cb336dbc3220ebb79f1a6c2f1.zip |
-logXML... round-tripping fixed
Diffstat (limited to 'testing/src/org')
-rw-r--r-- | testing/src/org/aspectj/testing/xml/SoftMessage.java | 2 | ||||
-rw-r--r-- | testing/src/org/aspectj/testing/xml/SoftSourceLocation.java | 5 |
2 files changed, 4 insertions, 3 deletions
diff --git a/testing/src/org/aspectj/testing/xml/SoftMessage.java b/testing/src/org/aspectj/testing/xml/SoftMessage.java index 208b155b7..8caa77828 100644 --- a/testing/src/org/aspectj/testing/xml/SoftMessage.java +++ b/testing/src/org/aspectj/testing/xml/SoftMessage.java @@ -101,7 +101,7 @@ public class SoftMessage implements IMessage { String value = message.getMessage(); if (null != value) { value = XMLWriter.attributeValue(value); - out.printAttribute("message", value); + out.printAttribute("text", value); } value = message.getDetails(); if (null != value) { diff --git a/testing/src/org/aspectj/testing/xml/SoftSourceLocation.java b/testing/src/org/aspectj/testing/xml/SoftSourceLocation.java index 7df8436a0..022342aa2 100644 --- a/testing/src/org/aspectj/testing/xml/SoftSourceLocation.java +++ b/testing/src/org/aspectj/testing/xml/SoftSourceLocation.java @@ -44,8 +44,9 @@ public class SoftSourceLocation implements ISourceLocation { out.printAttribute("line", "" + sl.getLine()); // other attributes not supported File file = sl.getSourceFile(); - if (null != file) { - out.printAttribute("file", file.getPath()); + if ((null != file) && !ISourceLocation.NO_FILE.equals(file)) { + String value = XMLWriter.attributeValue(file.getPath()); + out.printAttribute("file", value); } out.endElement(elementName); } |