Nelson Minar wrote:
>
> If you call java.awt.List.removeAll() on a List that's never had
> anything added to it, you get a warning from Motif:
>
> Warning:
> Name: slist
> Class: XmList
> Item(s) to be deleted are not present is list.
>
> Should I file a bug report to the formerly Open Group about the typo
> in the warning message, too? :-)
By all means file a bug report about the typo. ;-)
I also found this while working an example in "Core Java 1.1", v.2,
"ZipTest". If I changed a method which exhibited the bug from:
public void scanZipFile()
{ fileList.removeAll();
try...
to
public void scanZipFile()
{ if (fileList.getItemCount() != 0)
fileList.removeAll();
try...
then the bug went away.
FWIW.
Bob L.
P.S. Where it is really irritating, and you cannot do anything to change
it, is the "GroupReader" applet at JavaSoft's Java Developer's
Connection. Grrrr!
--
Robert Lynch-Berkeley CA [EMAIL PROTECTED]
http://www.best.com/~rmlynch/