Hi All,

 

Please review the fix for JDK 11.

 

Bug:

https://bugs.openjdk.java.net/browse/JDK-5076761

 

Webrev:

http://cr.openjdk.java.net/~pbansal/5076761/webrev.00/

 

Issue:

When setSelectedValue is called on JList with null object, it should clear all 
selection. But it is not doing anything.

 

Fix:

In setSelectedValue if the object is null, the setSelectedIndex is called with 
-1. but this does not clear the selection. We should be calling clearSelection 
instead of SetSelectedIndex.

 

Regards,

Pankaj Bansal

 

Reply via email to