Re: Bug in Text.append(String)

Thomas Scheffler <[email protected]>
Newsgroups gmane.comp.java.jdom.general
Organization Friedrich-Schiller-Universität Jena
Message-ID <[email protected]>
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
_______________________________________________
To control your jdom-interest membership:
http://www.jdom.org/mailman/options/jdom-interest/[email protected]
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.