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

AssertionError when writing a new ToggleGroup object

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Critical
    • Resolution: Not A Bug
    • Affects Version/s: 10.0
    • Fix Version/s: 10.0
    • Component/s: javafx - Editor
    • Labels:
    • Environment:

      Windows 10, Incubator NetBeans Linux 945, Java 12 Early-Access 25

      Description

      Hello,

      When, in the JavaFX project, I write

      and confirm with ENTER, the code will not complete and will display the error.

      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:479)
      at com.sun.tools.javadoc.main.JavadocMemberEnter.visitVarDef(JavadocMemberEnter.java:84)
      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:172)
      at com.sun.tools.javac.comp.Attr.visitVarDef(Attr.java:1184)
      at com.sun.tools.javac.tree.JCTree$JCVariableDecl.accept(JCTree.java:962)
      at com.sun.tools.javac.comp.Attr.attribTree(Attr.java:673)
      at com.sun.tools.javac.comp.Attr.attribStat(Attr.java:749)
      at com.sun.tools.javac.comp.Attr.attribStats(Attr.java:773)
      at com.sun.tools.javac.comp.Attr.visitBlock(Attr.java:1350)
      at org.netbeans.lib.nbjavac.services.NBAttr.visitBlock(NBAttr.java:78)
      at com.sun.tools.javac.tree.JCTree$JCBlock.accept(JCTree.java:1026)
      at com.sun.tools.javac.comp.Attr.attribTree(Attr.java:673)
      at com.sun.tools.javac.comp.Attr.attribStat(Attr.java:749)
      at org.netbeans.api.java.source.TreeUtilities.attributeTree(TreeUtilities.java:880)
      at org.netbeans.api.java.source.TreeUtilities.attributeTree(TreeUtilities.java:810)
      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.Component.processKeyEvent(Component.java:6590)
      at java.desktop/javax.swing.JComponent.processKeyEvent(JComponent.java:2849)
      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:870)
      at java.desktop/java.awt.DefaultKeyboardFocusManager.preDispatchKeyEvent(DefaultKeyboardFocusManager.java:1139)
      at java.desktop/java.awt.DefaultKeyboardFocusManager.typeAheadAssertions(DefaultKeyboardFocusManager.java:1009)
      at java.desktop/java.awt.DefaultKeyboardFocusManager.dispatchEvent(DefaultKeyboardFocusManager.java:835)
      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:2762)
      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(AccessController.java:389)
      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(AccessController.java:389)
      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)
      

      Please repair.

      Thank you

      PS. If I finish the code manually, the error does not occur.

      UPDATE: The version of JDK in the project is the same as the version in which NetBeans is running.

      That's why I use the additional OpenJavaFX libraries (version 12 Early-Access 6)

        Attachments

        1. picture.png
          23 kB
          Michal Rama

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              Michal_cat Michal Rama
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: