-
Bug
-
Resolution: Fixed
-
P3
-
6
-
b45
-
sparc
-
solaris_10
-
Verified
I am running an application which opens up a frame. This frame contains a button and a choice. On clicking the button, I am removing the currently selected item in the choice. I am running this app on XToolkit and clicking the button repeatedly. The items in the list are getting removed one by one. When I remove the last item in the choice, I expect the choice to appear empty. But on XToolkit, the last item is retained in the display even though it is removed internally. Subsequent button clicks throws exception saying choice is empty. When the choice is empty, it should not display anything on the screen.
This is reproducible only on XToolkit and not on win32, motif. This is not seen on the previous mustang builds (b41) because of another bug - 6248016. Use the following PIT build:
java version "1.6.0-awt.pit-int-awt-blade"
Java(TM) 2 Runtime Environment, Standard Edition (build 1.6.0-awt.pit-int-awt-blade-df153228_16_Jun_2005_09_53-b00)
Java HotSpot(TM) Server VM (build 1.6.0-ea-b40, mixed mode)
Run the attached test and click on the button repeatedly. Even after all the items are removed, you would see the last item being shown in the choice.
###@###.### 2005-06-29 11:52:18 GMT
This is reproducible only on XToolkit and not on win32, motif. This is not seen on the previous mustang builds (b41) because of another bug - 6248016. Use the following PIT build:
java version "1.6.0-awt.pit-int-awt-blade"
Java(TM) 2 Runtime Environment, Standard Edition (build 1.6.0-awt.pit-int-awt-blade-df153228_16_Jun_2005_09_53-b00)
Java HotSpot(TM) Server VM (build 1.6.0-ea-b40, mixed mode)
Run the attached test and click on the button repeatedly. Even after all the items are removed, you would see the last item being shown in the choice.
###@###.### 2005-06-29 11:52:18 GMT
- relates to
-
JDK-6248016 Removal of the selected item at runtime removes all the elements in the choice, XToolkit
-
- Closed
-