Uploaded image for project: 'NetBeans'
  1. NetBeans
  2. NETBEANS-1426

AssertionError in "Introduce method" refactoring

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 10.0
    • Fix Version/s: 10.0
    • Component/s: java - Refactoring
    • Labels:
      None

      Description

      I get this exteption invokingĀ the "Introduce method" refactoring from the light bulb icon in the editor:

      java.lang.AssertionError
      	at org.openide.awt.HtmlRendererImpl.reset(HtmlRendererImpl.java:78)
      	at org.openide.awt.HtmlRendererImpl.getListCellRendererComponent(HtmlRendererImpl.java:140)
      	at org.netbeans.modules.java.hints.introduce.CommonMembersPanel$TargetsRendererImpl.getListCellRendererComponent(CommonMembersPanel.java:95)
      	at java.desktop/javax.swing.plaf.basic.BasicListUI.updateLayoutState(BasicListUI.java:1439)
      	at java.desktop/javax.swing.plaf.basic.BasicListUI.maybeUpdateLayoutState(BasicListUI.java:1389)
      	at java.desktop/javax.swing.plaf.basic.BasicListUI$Handler.valueChanged(BasicListUI.java:2784)
      	at java.desktop/javax.swing.DefaultListSelectionModel.fireValueChanged(DefaultListSelectionModel.java:219)
      	at java.desktop/javax.swing.DefaultListSelectionModel.fireValueChanged(DefaultListSelectionModel.java:199)
      	at java.desktop/javax.swing.DefaultListSelectionModel.fireValueChanged(DefaultListSelectionModel.java:246)
      	at java.desktop/javax.swing.DefaultListSelectionModel.changeSelection(DefaultListSelectionModel.java:443)
      	at java.desktop/javax.swing.DefaultListSelectionModel.changeSelection(DefaultListSelectionModel.java:453)
      	at java.desktop/javax.swing.DefaultListSelectionModel.setSelectionInterval(DefaultListSelectionModel.java:497)
      	at java.desktop/javax.swing.JList.setSelectedIndex(JList.java:2222)
      	at java.desktop/javax.swing.plaf.basic.BasicComboPopup.setListSelection(BasicComboPopup.java:1234)
      	at java.desktop/javax.swing.plaf.basic.BasicComboPopup.access$300(BasicComboPopup.java:66)
      	at java.desktop/javax.swing.plaf.basic.BasicComboPopup$Handler.itemStateChanged(BasicComboPopup.java:1058)
      	at java.desktop/javax.swing.JComboBox.fireItemStateChanged(JComboBox.java:1227)
      	at java.desktop/javax.swing.JComboBox.selectedItemChanged(JComboBox.java:1288)
      	at java.desktop/javax.swing.JComboBox.contentsChanged(JComboBox.java:1335)
      	at java.desktop/javax.swing.AbstractListModel.fireContentsChanged(AbstractListModel.java:123)
      	at java.desktop/javax.swing.DefaultComboBoxModel.setSelectedItem(DefaultComboBoxModel.java:94)
      	at java.desktop/javax.swing.JComboBox.setSelectedItem(JComboBox.java:579)
      	at java.desktop/javax.swing.JComboBox.setSelectedIndex(JComboBox.java:624)
      	at org.netbeans.modules.java.hints.introduce.CommonMembersPanel.updateTargetsModel(CommonMembersPanel.java:75)
      	at org.netbeans.modules.java.hints.introduce.CommonMembersPanel.initialize(CommonMembersPanel.java:58)
      	at org.netbeans.modules.java.hints.introduce.IntroduceMethodPanel.<init>(IntroduceMethodPanel.java:115)
      	at org.netbeans.modules.java.hints.introduce.IntroduceExpressionBasedMethodFix.implement(IntroduceExpressionBasedMethodFix.java:178)
      	at org.netbeans.modules.editor.hints.HintsUI$1.run(HintsUI.java:810)
      	at org.openide.util.RequestProcessor$Task.run(RequestProcessor.java:1418)
      	at org.netbeans.modules.openide.util.GlobalLookup.execute(GlobalLookup.java:45)
      	at org.openide.util.lookup.Lookups.executeWith(Lookups.java:278)
      	at org.openide.util.RequestProcessor$Processor.run(RequestProcessor.java:2033)
      Caused: org.openide.util.RequestProcessor$SlowItem: task failed due to
      	at org.openide.util.RequestProcessor.post(RequestProcessor.java:395)
      	at org.netbeans.modules.editor.hints.HintsUI.invokeHint(HintsUI.java:807)
      	at org.netbeans.modules.editor.hints.HintsUI.keyPressed(HintsUI.java:733)
      	at java.desktop/java.awt.AWTEventMulticaster.keyPressed(AWTEventMulticaster.java:258)
      	at java.desktop/java.awt.Component.processKeyEvent(Component.java:6547)
      	at java.desktop/javax.swing.JComponent.processKeyEvent(JComponent.java:2849)
      	at java.desktop/java.awt.Component.processEvent(Component.java:6366)
      	at java.desktop/java.awt.Container.processEvent(Container.java:2261)
      	at java.desktop/java.awt.Component.dispatchEventImpl(Component.java:4966)
      	at java.desktop/java.awt.Container.dispatchEventImpl(Container.java:2319)
      	at java.desktop/java.awt.Component.dispatchEvent(Component.java:4798)
      	at java.desktop/java.awt.KeyboardFocusManager.redispatchEvent(KeyboardFocusManager.java:1950)
      	at java.desktop/java.awt.DefaultKeyboardFocusManager.dispatchKeyEvent(DefaultKeyboardFocusManager.java:871)
      	at java.desktop/java.awt.DefaultKeyboardFocusManager.preDispatchKeyEvent(DefaultKeyboardFocusManager.java:1140)
      	at java.desktop/java.awt.DefaultKeyboardFocusManager.typeAheadAssertions(DefaultKeyboardFocusManager.java:1010)
      	at java.desktop/java.awt.DefaultKeyboardFocusManager.dispatchEvent(DefaultKeyboardFocusManager.java:836)
      	at java.desktop/java.awt.Component.dispatchEventImpl(Component.java:4847)
      	at java.desktop/java.awt.Container.dispatchEventImpl(Container.java:2319)
      	at java.desktop/java.awt.Window.dispatchEventImpl(Window.java:2772)
      	at java.desktop/java.awt.Component.dispatchEvent(Component.java:4798)
      	at java.desktop/java.awt.EventQueue.dispatchEventImpl(EventQueue.java:772)
      	at java.desktop/java.awt.EventQueue.access$600(EventQueue.java:97)
      	at java.desktop/java.awt.EventQueue$4.run(EventQueue.java:721)
      	at java.desktop/java.awt.EventQueue$4.run(EventQueue.java:715)
      	at java.base/java.security.AccessController.doPrivileged(Native Method)
      	at java.base/java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:87)
      	at java.base/java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:97)
      	at java.desktop/java.awt.EventQueue$5.run(EventQueue.java:745)
      	at java.desktop/java.awt.EventQueue$5.run(EventQueue.java:743)
      	at java.base/java.security.AccessController.doPrivileged(Native Method)
      	at java.base/java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:87)
      	at java.desktop/java.awt.EventQueue.dispatchEvent(EventQueue.java:742)
      	at org.netbeans.core.TimableEventQueue.dispatchEvent(TimableEventQueue.java:136)
      	at java.desktop/java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:203)
      	at java.desktop/java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:124)
      	at java.desktop/java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:113)
      	at java.desktop/java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:109)
      	at java.desktop/java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:101)
      [catch] at java.desktop/java.awt.EventDispatchThread.run(EventDispatchThread.java:90)
      

      ok

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              aldobrucale Aldo Brucale
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: