This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.

Bug 181436 - AssertionError if lexer is inactive
Summary: AssertionError if lexer is inactive
Status: RESOLVED FIXED
Alias: None
Product: editor
Classification: Unclassified
Component: Lexer (show other bugs)
Version: 6.x
Hardware: PC Windows XP
: P2 normal (vote)
Assignee: issues@editor
URL:
Keywords:
: 177477 181633 (view as bug list)
Depends on:
Blocks: 180620 181562
  Show dependency tree
 
Reported: 2010-03-02 09:13 UTC by Anton Chechel
Modified: 2011-10-05 11:45 UTC (History)
3 users (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Anton Chechel 2010-03-02 09:13:44 UTC
If lexer set to inactive there is AE occured:

java.lang.AssertionError: ModCount already updated at org.netbeans.lib.lexer.inc.IncTokenList.replaceTokens(IncTokenList.java:304)
        at org.netbeans.lib.lexer.TokenHierarchyOperation.setActiveImpl(TokenHierarchyOperation.java:309)
        at org.netbeans.lib.lexer.TokenHierarchyOperation.setActive(TokenHierarchyOperation.java:286)
        at org.netbeans.spi.lexer.TokenHierarchyControl.setActive(TokenHierarchyControl.java:112)
        at org.netbeans.modules.javafx.editor.format.JFXReformatTask.reformatImpl(JFXReformatTask.java:196)
        at
Comment 1 Alexandr Scherbatiy 2010-03-05 06:09:31 UTC
This is high visible in the JavaFX editor.
Comment 2 Vitezslav Stejskal 2010-03-08 08:22:38 UTC
*** Bug 181633 has been marked as a duplicate of this bug. ***
Comment 3 Alexandr Scherbatiy 2010-03-09 05:15:31 UTC
The issue blocks the code formatting in the JavaFX editor
Comment 4 Vitezslav Stejskal 2010-03-09 06:23:35 UTC
We will have a look, please be patient. Thanks
Comment 5 Anton Chechel 2010-03-09 06:45:56 UTC
Alexander, it's not a blocker, there is workaround: remove -Jea from netbeans.conf.
Comment 6 Miloslav Metelka 2010-03-10 10:24:47 UTC
Hopefully fixed, Anton please re-test your FX case. Thanks.

http://hg.netbeans.org/jet-main/rev/57750d5afd18
Comment 7 Quality Engineering 2010-03-10 23:13:07 UTC
Integrated into 'main-golden', will be available in build *201003110200* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)
Changeset: http://hg.netbeans.org/main/rev/57750d5afd18
User: Miloslav Metelka <mmetelka@netbeans.org>
Log: #181436 - AssertionError if lexer is inactive.
Comment 8 Miloslav Metelka 2011-10-05 11:45:31 UTC
*** Bug 177477 has been marked as a duplicate of this bug. ***