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

Opening type from Go To Type fails

Rank to TopRank to BottomVotersWatch issueWatchersConvert to sub-taskLinkCloneUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    XMLWordPrintableJSON

    Details

      Description

      It is simply not open a type that it is clicked from dialog and dialog is closed, but you have to type such type to editor and import it and then click it from there for sucessful open.

      It seems that does not happend for opened project/sub-projects sources, even seems no issue e.g. with junit or Java SE API sources.

      Additionally this is seen from notification after:

      java.lang.ClassCastException: class com.sun.tools.javac.code.Type$ClassType cannot be cast to class com.sun.tools.javac.code.Type$ErrorType (com.sun.tools.javac.code.Type$ClassType and com.sun.tools.javac.code.Type$ErrorType are in unnamed module of loader org.netbeans.StandardModule$OneModuleClassLoader @27597305)
       at org.netbeans.modules.java.source.builder.TreeFactory.Type(TreeFactory.java:863)
       at org.netbeans.api.java.source.TreeMaker.Type(TreeMaker.java:1119)
       at org.netbeans.modules.java.classfile.CodeGenerator$TreeBuilder.computeAnnotationTree(CodeGenerator.java:449)
       at org.netbeans.modules.java.classfile.CodeGenerator$TreeBuilder.computeMods(CodeGenerator.java:411)
       at org.netbeans.modules.java.classfile.CodeGenerator$TreeBuilder.visitType(CodeGenerator.java:373)
       at org.netbeans.modules.java.classfile.CodeGenerator$TreeBuilder.visitType(CodeGenerator.java:285)
       at com.sun.tools.javac.code.Symbol$ClassSymbol.accept(Symbol.java:1473)
       at javax.lang.model.util.AbstractElementVisitor6.visit(AbstractElementVisitor6.java:106)
       at org.netbeans.modules.java.classfile.CodeGenerator.generateCode(CodeGenerator.java:275)
       at org.netbeans.modules.java.classfile.CodeGenerator$1.run(CodeGenerator.java:232)
       at org.netbeans.modules.java.classfile.CodeGenerator$1.run(CodeGenerator.java:152)
       at org.netbeans.api.java.source.JavaSource$1.run(JavaSource.java:672)
       at org.netbeans.api.java.source.JavaSource$1.run(JavaSource.java:662)
       at org.netbeans.api.java.source.JavaSource$MultiTask.run(JavaSource.java:501)
       at org.netbeans.modules.parsing.impl.TaskProcessor.callUserTask(TaskProcessor.java:586)
       at org.netbeans.modules.parsing.api.ParserManager$UserTaskAction.run(ParserManager.java:130)
       at org.netbeans.modules.parsing.api.ParserManager$UserTaskAction.run(ParserManager.java:114)
       at org.netbeans.modules.parsing.impl.TaskProcessor$2.call(TaskProcessor.java:181)
       at org.netbeans.modules.parsing.impl.TaskProcessor$2.call(TaskProcessor.java:178)
       at org.netbeans.modules.masterfs.filebasedfs.utils.FileChangedManager.priorityIO(FileChangedManager.java:153)
       at org.netbeans.modules.masterfs.providers.ProvidedExtensions.priorityIO(ProvidedExtensions.java:335)
       at org.netbeans.modules.parsing.nb.DataObjectEnvFactory.runPriorityIO(DataObjectEnvFactory.java:118)
       at org.netbeans.modules.parsing.impl.Utilities.runPriorityIO(Utilities.java:67)
       at org.netbeans.modules.parsing.impl.TaskProcessor.runUserTask(TaskProcessor.java:178)
       at org.netbeans.modules.parsing.api.ParserManager.parse(ParserManager.java:81)
       at org.netbeans.api.java.source.JavaSource.runUserActionTaskImpl(JavaSource.java:451)
       at org.netbeans.api.java.source.JavaSource.runUserActionTask(JavaSource.java:422)
       at org.netbeans.api.java.source.JavaSource.runModificationTask(JavaSource.java:683)
       at org.netbeans.modules.java.classfile.CodeGenerator.generateCode(CodeGenerator.java:152)
       at org.netbeans.modules.java.classfile.BinaryElementOpenImpl.open(BinaryElementOpenImpl.java:44)
       at org.netbeans.api.java.source.ui.ElementOpen.binaryOpen(ElementOpen.java:118)
       at org.netbeans.api.java.source.ui.ElementOpen.open(ElementOpen.java:99)
       at org.netbeans.modules.java.source.ui.JavaTypeDescription.open(JavaTypeDescription.java:121)
       at org.netbeans.modules.jumpto.type.GoToTypeAction.actionPerformed(GoToTypeAction.java:153)
       at org.openide.windows.TopComponent.processKeyBinding(TopComponent.java:1151)
       at java.desktop/javax.swing.JComponent.processKeyBindings(JComponent.java:2962)
       at java.desktop/javax.swing.JComponent.processKeyEvent(JComponent.java:2862)
       at java.desktop/java.awt.Component.processEvent(Component.java:6409)
       at java.desktop/java.awt.Container.processEvent(Container.java:2263)
       at java.desktop/java.awt.Component.dispatchEventImpl(Component.java:5008)
       at java.desktop/java.awt.Container.dispatchEventImpl(Container.java:2321)
       at java.desktop/java.awt.Component.dispatchEvent(Component.java:4840)
       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:4889)
       at java.desktop/java.awt.Container.dispatchEventImpl(Container.java:2321)
       at java.desktop/java.awt.Window.dispatchEventImpl(Window.java:2772)
       at java.desktop/java.awt.Component.dispatchEvent(Component.java:4840)
       at java.desktop/java.awt.EventQueue.dispatchEventImpl(EventQueue.java:772)
       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:85)
       at java.base/java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:95)
       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:85)
       at java.desktop/java.awt.EventQueue.dispatchEvent(EventQueue.java:742)
       at org.netbeans.core.TimableEventQueue.dispatchEvent(TimableEventQueue.java:136)
      [catch] 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)
       at java.desktop/java.awt.EventDispatchThread.run(EventDispatchThread.java:90)

       

       

        Attachments

        Issue Links

          Activity

          $i18n.getText('security.level.explanation', $currentSelection) Viewable by All Users
          Cancel

            People

            • Assignee:
              jlahoda Jan Lahoda
              Reporter:
              nb-user-2019 Netbeans User 2019

              Dates

              • Created:
                Updated:
                Resolved:

                Time Tracking

                Estimated:
                Original Estimate - Not Specified
                Not Specified
                Remaining:
                Remaining Estimate - 0h
                0h
                Logged:
                Time Spent - 50m
                50m

                  Issue deployment