-
Bug
-
Resolution: Cannot Reproduce
-
P4
-
None
-
1.1.5, 1.3.0
-
generic, sparc
-
generic, solaris_7
orig synopsis:
"JDK 1.1.x: calling List.removeAll on empty list generates
motif warning message"
If you create a java.awt.List, and call removeAll on it when it is empty,
you get an annoying message from Motif.
Warning:
Name: slist
Class: XmList
Invalid item(s) to delete.
If you trace the calls down from List.removeAll, you get down to
src/solaris/sun/awt_List.c, in method: sun_awt_motif_MListPeer_delItems.
If called from removeAll, start = 0 and end = countItems() = 0.
Thus the code falls into:
if (start == end) {
XmListDeletePos(sdata->list, start);
which is incorrect, since there is no item to delete.
"JDK 1.1.x: calling List.removeAll on empty list generates
motif warning message"
If you create a java.awt.List, and call removeAll on it when it is empty,
you get an annoying message from Motif.
Warning:
Name: slist
Class: XmList
Invalid item(s) to delete.
If you trace the calls down from List.removeAll, you get down to
src/solaris/sun/awt_List.c, in method: sun_awt_motif_MListPeer_delItems.
If called from removeAll, start = 0 and end = countItems() = 0.
Thus the code falls into:
if (start == end) {
XmListDeletePos(sdata->list, start);
which is incorrect, since there is no item to delete.