mbien opened a new pull request, #9050:
URL: https://github.com/apache/netbeans/pull/9050

   The code replaced a typed `ListModel` with a dummy model containing a single 
String which can sometimes cause a CCE in the interface selector filter.
   
   The dummy model isn't really needed since the goto component does handle the 
"search in progress" state already, so I removed it.
   
   Fixed more `rawtype` compiler warnings to avoid similar issues in future.
   
   exception:
   
   <details>
   
   ```
   java.lang.ClassCastException: class java.lang.String cannot be cast to class 
org.netbeans.spi.jumpto.type.TypeDescriptor (java.lang.String is in module 
java.base of loader 'bootstrap'; org.netbeans.spi.jumpto.type.TypeDescriptor is 
in unnamed module of loader org.netbeans.StandardModule$OneModuleClassLoader 
@20e1c8f2)
        at 
org.netbeans.modules.jumpto.type.GoToPanel$PatternListener.valueChanged(GoToPanel.java:554)
        at 
java.desktop/javax.swing.JList.fireSelectionValueChanged(JList.java:1831)
        at 
java.desktop/javax.swing.JList$ListSelectionHandler.valueChanged(JList.java:1845)
        at 
java.desktop/javax.swing.DefaultListSelectionModel.fireValueChanged(DefaultListSelectionModel.java:231)
        at 
java.desktop/javax.swing.DefaultListSelectionModel.fireValueChanged(DefaultListSelectionModel.java:206)
        at 
java.desktop/javax.swing.DefaultListSelectionModel.fireValueChanged(DefaultListSelectionModel.java:258)
        at 
java.desktop/javax.swing.DefaultListSelectionModel.changeSelection(DefaultListSelectionModel.java:459)
        at 
java.desktop/javax.swing.DefaultListSelectionModel.changeSelection(DefaultListSelectionModel.java:469)
        at 
java.desktop/javax.swing.DefaultListSelectionModel.setSelectionInterval(DefaultListSelectionModel.java:513)
        at java.desktop/javax.swing.JList.setSelectedIndex(JList.java:2232)
        at 
org.netbeans.modules.jumpto.type.GoToPanel.setModel(GoToPanel.java:149)
        at 
org.netbeans.modules.jumpto.type.GoToPanel.revalidateModel(GoToPanel.java:163)
        at 
org.netbeans.modules.jumpto.type.GoToTypeAction.setListModel(GoToTypeAction.java:282)
        at 
org.netbeans.modules.jumpto.type.GoToPanel$PatternListener.update(GoToPanel.java:572)
        at 
org.netbeans.modules.jumpto.type.GoToPanel$PatternListener.update(GoToPanel.java:563)
        at 
org.netbeans.modules.jumpto.type.GoToPanel$PatternListener.insertUpdate(GoToPanel.java:533)
        at 
java.desktop/javax.swing.text.AbstractDocument.fireInsertUpdate(AbstractDocument.java:220)
   ...
   ```
   
   </details>
   
   reproduce:
   
   open new java class wizard, and use the interfaces filter (browse button) 
often enough until the exception occurs.
   
   
   regression since https://github.com/apache/netbeans/pull/8896


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

For further information about the NetBeans mailing lists, visit:
https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists

Reply via email to