You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@netbeans.apache.org by "Constantin Drabo (JIRA)" <ji...@apache.org> on 2018/03/29 21:16:00 UTC

[jira] [Created] (NETBEANS-549) An exception occurs when ignite the for template between the package declaration and the class block statement

Constantin Drabo created NETBEANS-549:
-----------------------------------------

             Summary: An exception occurs when ignite the for template between the package declaration and the class block statement
                 Key: NETBEANS-549
                 URL: https://issues.apache.org/jira/browse/NETBEANS-549
             Project: NetBeans
          Issue Type: Bug
          Components: cnd - Code Completion, java - Editor
    Affects Versions: 9.0
         Environment: Fedora  25
            Reporter: Constantin Drabo


java.lang.AssertionError
 at com.sun.tools.javac.util.Assert.error(Assert.java:155)
 at com.sun.tools.javac.util.Assert.checkNonNull(Assert.java:62)
 at com.sun.tools.javac.comp.Annotate.queueScanTreeAndTypeAnnotate(Annotate.java:1022)
 at com.sun.tools.javac.comp.Attr.visitVarDef(Attr.java:1179)
 at com.sun.tools.javac.tree.JCTree$JCVariableDecl.accept(JCTree.java:962)
 at com.sun.tools.javac.comp.Attr.attribTree(Attr.java:660)
 at com.sun.tools.javac.comp.Attr.attribStat(Attr.java:736)
 at com.sun.tools.javac.comp.Attr.attribStats(Attr.java:760)
 at com.sun.tools.javac.comp.Attr.visitForLoop(Attr.java:1361)
 at com.sun.tools.javac.tree.JCTree$JCForLoop.accept(JCTree.java:1126)
 at com.sun.tools.javac.comp.Attr.attribTree(Attr.java:660)
 at com.sun.tools.javac.comp.Attr.attribStat(Attr.java:736)
 at com.sun.tools.javac.comp.Attr.attribStats(Attr.java:760)
 at com.sun.tools.javac.comp.Attr.visitBlock(Attr.java:1337)
 at org.netbeans.lib.nbjavac.services.NBAttr.visitBlock(NBAttr.java:69)
 at com.sun.tools.javac.tree.JCTree$JCBlock.accept(JCTree.java:1026)
 at com.sun.tools.javac.comp.Attr.attribTree(Attr.java:660)
 at com.sun.tools.javac.comp.Attr.attribStat(Attr.java:736)
 at com.sun.tools.javac.comp.Attr.attribStatToTree(Attr.java:420)
 at org.netbeans.api.java.source.TreeUtilities.attributeTreeTo(TreeUtilities.java:879)
 at org.netbeans.api.java.source.TreeUtilities.attributeTreeTo(TreeUtilities.java:796)
 at org.netbeans.modules.editor.java.JavaCodeTemplateProcessor.newVarName(JavaCodeTemplateProcessor.java:878)
 at org.netbeans.modules.editor.java.JavaCodeTemplateProcessor.getProposedValue(JavaCodeTemplateProcessor.java:512)
 at org.netbeans.modules.editor.java.JavaCodeTemplateProcessor.updateDefaultValues(JavaCodeTemplateProcessor.java:143)
 at org.netbeans.lib.editor.codetemplates.CodeTemplateInsertHandler.processTemplate(CodeTemplateInsertHandler.java:225)
 at org.netbeans.lib.editor.codetemplates.CodeTemplateManagerOperation.insert(CodeTemplateManagerOperation.java:273)
 at org.netbeans.lib.editor.codetemplates.api.CodeTemplate.insert(CodeTemplate.java:82)
 at org.netbeans.lib.editor.codetemplates.AbbrevDetection.expand(AbbrevDetection.java:517)
 at org.netbeans.lib.editor.codetemplates.AbbrevDetection.expand(AbbrevDetection.java:411)
 at org.netbeans.lib.editor.codetemplates.AbbrevDetection.checkExpansionKeystroke(AbbrevDetection.java:315)
 at org.netbeans.lib.editor.codetemplates.AbbrevDetection.keyPressed(AbbrevDetection.java:267)
 at java.awt.AWTEventMulticaster.keyPressed(AWTEventMulticaster.java:250)
 at java.awt.AWTEventMulticaster.keyPressed(AWTEventMulticaster.java:249)
 at java.awt.AWTEventMulticaster.keyPressed(AWTEventMulticaster.java:249)
 at java.awt.AWTEventMulticaster.keyPressed(AWTEventMulticaster.java:249)
 at java.awt.Component.processKeyEvent(Component.java:6491)
 at javax.swing.JComponent.processKeyEvent(JComponent.java:2832)
 at java.awt.Component.processEvent(Component.java:6310)
 at java.awt.Container.processEvent(Container.java:2236)
 at java.awt.Component.dispatchEventImpl(Component.java:4889)
 at java.awt.Container.dispatchEventImpl(Container.java:2294)
 at java.awt.Component.dispatchEvent(Component.java:4711)
 at java.awt.KeyboardFocusManager.redispatchEvent(KeyboardFocusManager.java:1954)
 at java.awt.DefaultKeyboardFocusManager.dispatchKeyEvent(DefaultKeyboardFocusManager.java:806)
 at java.awt.DefaultKeyboardFocusManager.preDispatchKeyEvent(DefaultKeyboardFocusManager.java:1074)
 at java.awt.DefaultKeyboardFocusManager.typeAheadAssertions(DefaultKeyboardFocusManager.java:945)
 at java.awt.DefaultKeyboardFocusManager.dispatchEvent(DefaultKeyboardFocusManager.java:771)
 at java.awt.Component.dispatchEventImpl(Component.java:4760)
 at java.awt.Container.dispatchEventImpl(Container.java:2294)
 at java.awt.Window.dispatchEventImpl(Window.java:2746)
 at java.awt.Component.dispatchEvent(Component.java:4711)
 at java.awt.EventQueue.dispatchEventImpl(EventQueue.java:758)
 at java.awt.EventQueue.access$500(EventQueue.java:97)
 at java.awt.EventQueue$3.run(EventQueue.java:709)
 at java.awt.EventQueue$3.run(EventQueue.java:703)
 at java.security.AccessController.doPrivileged(Native Method)
 at java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:76)
 at java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:86)
 at java.awt.EventQueue$4.run(EventQueue.java:731)
 at java.awt.EventQueue$4.run(EventQueue.java:729)
 at java.security.AccessController.doPrivileged(Native Method)
 at java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:76)
 at java.awt.EventQueue.dispatchEvent(EventQueue.java:728)
 at org.netbeans.core.TimableEventQueue.dispatchEvent(TimableEventQueue.java:136)
[catch] at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:201)
 at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:116)
 at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:105)
 at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:101)
 at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:93)
 at java.awt.EventDispatchThread.run(EventDispatchThread.java:82)



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@netbeans.apache.org
For additional commands, e-mail: commits-help@netbeans.apache.org

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