[ https://issues.apache.org/jira/browse/NETBEANS-1139?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Aidar Myrzahanov updated NETBEANS-1139: --------------------------------------- Attachment: Bug.java > AssertionError in > org.netbeans.modules.editor.java.JavaCodeTemplateProcessor.getProposedValue > --------------------------------------------------------------------------------------------- > > Key: NETBEANS-1139 > URL: https://issues.apache.org/jira/browse/NETBEANS-1139 > Project: NetBeans > Issue Type: Bug > Components: java - Editor > Affects Versions: 9.0, Next > Reporter: Austin Stephens > Priority: Critical > Attachments: AutoCompleteBug1.java, Bug.java > > > Attempting to Autocomplete the constructor after new in the attached file > throws an AssertionError. > StackTrace: > {noformat} > java.lang.AssertionError > at com.sun.tools.javac.util.Assert.error(Assert.java:155) > at com.sun.tools.javac.util.Assert.check(Assert.java:46) > at com.sun.tools.javac.code.Scope$ScopeImpl.dble(Scope.java:410) > at com.sun.tools.javac.code.Scope$ScopeImpl.enter(Scope.java:433) > at com.sun.tools.javac.comp.MemberEnter.visitVarDef(MemberEnter.java:476) > at > com.sun.tools.javadoc.main.JavadocMemberEnter.visitVarDef(JavadocMemberEnter.java:83) > at > org.netbeans.lib.nbjavac.services.NBJavadocMemberEnter.visitVarDef(NBJavadocMemberEnter.java:92) > at com.sun.tools.javac.tree.JCTree$JCVariableDecl.accept(JCTree.java:962) > at com.sun.tools.javac.comp.MemberEnter.memberEnter(MemberEnter.java:171) > at com.sun.tools.javac.comp.Attr.visitVarDef(Attr.java:1171) > 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.visitBlock(Attr.java:1337) > at org.netbeans.lib.nbjavac.services.NBAttr.visitBlock(NBAttr.java:73) > 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 > org.netbeans.api.java.source.TreeUtilities.attributeTree(TreeUtilities.java:878) > at > org.netbeans.api.java.source.TreeUtilities.attributeTree(TreeUtilities.java:808) > at > org.netbeans.modules.editor.java.JavaCodeTemplateProcessor.type(JavaCodeTemplateProcessor.java:716) > at > org.netbeans.modules.editor.java.JavaCodeTemplateProcessor.getProposedValue(JavaCodeTemplateProcessor.java:431) > 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.modules.editor.java.JavaCompletionItem.process(JavaCompletionItem.java:566) > at > org.netbeans.modules.editor.java.JavaCompletionItem.defaultAction(JavaCompletionItem.java:286) > at > org.netbeans.modules.editor.completion.CompletionImpl.dispatchKeyEvent(CompletionImpl.java:785) > at > org.netbeans.modules.editor.completion.CompletionImpl.keyPressed(CompletionImpl.java:386) > at > java.desktop/java.awt.AWTEventMulticaster.keyPressed(AWTEventMulticaster.java:258) > at > java.desktop/java.awt.AWTEventMulticaster.keyPressed(AWTEventMulticaster.java:257) > at > java.desktop/java.awt.AWTEventMulticaster.keyPressed(AWTEventMulticaster.java:257) > 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) > [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) > {noformat} -- This message was sent by Atlassian JIRA (v7.6.14#76016) --------------------------------------------------------------------- To unsubscribe, e-mail: commits-unsubscr...@netbeans.apache.org For additional commands, e-mail: commits-h...@netbeans.apache.org For further information about the NetBeans mailing lists, visit: https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists