Hi Krishna,

> Please review a simple fix for enhancement:
>
> JDK-4842658: https://bugs.openjdk.java.net/browse/JDK-4842658
>
> Webrev: http://cr.openjdk.java.net/~kaddepalli/4842658/webrev00/
>
> CSR: https://bugs.openjdk.java.net/browse/JDK-8201289


src/java.desktop/share/classes/javax/swing/DefaultComboBoxModel.java

195         fireIntervalAdded(this, startIndex, getSize());

It should be:

195         fireIntervalAdded(this, startIndex, getSize() - 1);


221         fireIntervalAdded(this, index, index + c.size());

It should be:

221         fireIntervalAdded(this, index, index + c.size() - 1);


src/java.desktop/share/classes/javax/swing/DefaultListModel.java

574         if(c.isEmpty()) {

There should be a space after 'if'.

Best regards,
Andrej Golovnin

Reply via email to