<html>
<head>
<meta content="text/html; charset=ISO-8859-1"
http-equiv="Content-Type">
</head>
<body bgcolor="#FFFFFF" text="#000000">
Hi Jack.<br>
<br>
I already found this issue, the fix is in github on both the 1.x and
2.x branches, but not in any official jars yet.<br>
<br>
<a class="moz-txt-link-freetext" href="https://github.com/hunterhacker/jdom/issues/23">https://github.com/hunterhacker/jdom/issues/23</a><br>
<br>
Rolf<br>
<br>
On 29/09/2011 3:30 AM, Jack Punt wrote:
<blockquote cite="mid:CA671D6CB6CE464097A9EA0F13CD0804@blue"
type="cite">
<meta http-equiv="Content-Type" content="text/html;
charset=ISO-8859-1">
<meta content="MSHTML 6.00.6002.18494" name="GENERATOR">
<style></style>
<div><font face="Arial" size="2">This does the wrong thing when
str = EMPTY_STRING</font></div>
<div><font face="Arial" size="2">(dubious: should be
str.equals("") since new String() != "")</font></div>
<div><font face="Arial" size="2">but the real bug is that
value=str; clears the old value instead of appending...</font></div>
<div> </div>
<div><font face="Arial" size="2"> public void append(String
str) {<br>
String reason;</font></div>
<div> </div>
<div><font face="Arial" size="2"> if (str == null) {<br>
return;<br>
}<br>
if ((reason = Verifier.checkCharacterData(str)) !=
null) {<br>
throw new IllegalDataException(str, "character
content", reason);<br>
}</font></div>
<div> </div>
<div><font face="Arial" size="2"> if (str == EMPTY_STRING)<br>
value = str;<br>
else value += str;<br>
}</font></div>
<br>
<fieldset class="mimeAttachmentHeader"></fieldset>
<br>
<pre wrap="">_______________________________________________
To control your jdom-interest membership:
<a class="moz-txt-link-freetext" href="http://www.jdom.org/mailman/options/jdom-interest/youraddr@yourhost.com">http://www.jdom.org/mailman/options/jdom-interest/youraddr@yourhost.com</a></pre>
</blockquote>
<br>
</body>
</html>