[jdom-interest] Bug in Text.append(String)

Thomas Scheffler thomas.scheffler at uni-jena.de
Thu Sep 29 02:26:52 PDT 2011


Am 29.09.2011 09:30, schrieb Jack Punt:
> This does the wrong thing when str = EMPTY_STRING
> (dubious: should be str.equals("") since new String() != "")
> but the real bug is that value=str; clears the old value instead of
> appending...

Hi,

what about (str.length() == 0) ?

regards

Thomas


More information about the jdom-interest mailing list