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.
I select a few lines of text in a Ruby source file and then comment out this selection 2 times via the appropriate button. When I try to remove the second comment, jave.exe gets 99% of CPU and NetBeans hangs
This is a bug in the editor/lexer. I think this is a duplicate of another P1 bug that I analyzed and reassigned to the lexer but I don't have the bug id.
The problem was in M9 and is still in M10
Possibly a duplicate of issue 106547
I dont think so, because it doesnt matter, what the lines contain before inserting comments and removing them twice.
I'm already working on this, there is a problem with updating of embedded token lists. I was not able to reproduce a hang but with the same steps I get a AIOOBE. I was able to simplify the steps to just have a single line with # a and press Ctrl+Shift+T to comment line. The embedded token is incorrectly past the modification point. I have added some extra logging and I'm working on a fix.
Added failing test: Checking in TokenListUpdaterExtraTest.java; /cvs/lexer/test/unit/src/org/netbeans/lib/lexer/test/inc/TokenListUpdaterExtraTest.java,v <-- TokenListUpdaterExtraTest.java new revision: 1.2; previous revision: 1.1
Fixed. Checking in lib/lexer/inc/OriginalText.java; /cvs/lexer/src/org/netbeans/lib/lexer/inc/OriginalText.java,v <-- OriginalText.java new revision: 1.4; previous revision: 1.3 done Checking in lib/lexer/inc/TokenListChange.java; /cvs/lexer/src/org/netbeans/lib/lexer/inc/TokenListChange.java,v <-- TokenListChange.java new revision: 1.10; previous revision: 1.9 done Checking in lib/lexer/inc/IncTokenList.java; /cvs/lexer/src/org/netbeans/lib/lexer/inc/IncTokenList.java,v <-- IncTokenList.java new revision: 1.9; previous revision: 1.8 done Checking in lib/lexer/inc/TokenListUpdater.java; /cvs/lexer/src/org/netbeans/lib/lexer/inc/TokenListUpdater.java,v <-- TokenListUpdater.java new revision: 1.14; previous revision: 1.13 done Checking in api/lexer/TokenHierarchy.java; /cvs/lexer/src/org/netbeans/api/lexer/TokenHierarchy.java,v <-- TokenHierarchy.java new revision: 1.9; previous revision: 1.8 done Checking in lib/lexer/TokenHierarchyOperation.java; /cvs/lexer/src/org/netbeans/lib/lexer/TokenHierarchyOperation.java,v <-- TokenHierarchyOperation.java new revision: 1.15; previous revision: 1.14 done Checking in lib/lexer/LexerUtilsConstants.java; /cvs/lexer/src/org/netbeans/lib/lexer/LexerUtilsConstants.java,v <-- LexerUtilsConstants.java new revision: 1.13; previous revision: 1.12