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.
For most of the operation TokenSequence will synchronize on root TokenList that it will cache. Custom embedding removal should be simplified by removal of EmbeddingContainer class and just linking ETLs. There's a problem with TS.isValid() on removed custom embedding. For that case a new EmbeddingContainer used to be created (that was marked as removed) which made ETL.embeddingContainer non-final. Newly with EC removal the situation should be simpler. NO_DEFAULT_EMBEDDING flag could be handled by a bit flag in DefaultToken.tokenLength (and similarly for other token impls).
I have a fix (the diff is about 236KB) that I'll soon integrate into the trunk once I'll fix remaining 4 tests in the lexer module that are currently failing. However the fix should be tested for some time in the trunk first so I ask for waiver for 7.4 for this issue.
http://hg.netbeans.org/jet-main/rev/8822288ae30c
Additional fix of removed token sequences: http://hg.netbeans.org/jet-main/rev/75bae758be34
Integrated into 'main-silver', will be available in build *201310160001* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress) Changeset: http://hg.netbeans.org/main-silver/rev/8822288ae30c User: Miloslav Metelka <mmetelka@netbeans.org> Log: #230125 - Simplify locking mechanism of lexer.
In release74: 8822288ae30c transplanted as 4a364bff396c 75bae758be34 transplanted as fab748867dc9
Integrated into 'releases/release74', will be available in build *201311141216* or newer. Wait for official and publicly available build. Changeset: http://hg.netbeans.org/releases/rev/4a364bff396c User: Miloslav Metelka <mmetelka@netbeans.org> Log: #230125 - Simplify locking mechanism of lexer. (transplanted from 8822288ae30cb6e103417afe5bb72de6d34c1acc)
Integrated into 'releases/release74', will be available in build *201311142201* or newer. Wait for official and publicly available build. Changeset: http://hg.netbeans.org/releases/rev/fab748867dc9 User: Miloslav Metelka <mmetelka@netbeans.org> Log: #230125 - Simplify locking mechanism of lexer - additional fix of removed token sequences. (transplanted from 75bae758be34aa85cc568305abaff893643d7ba9)