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 184333 - java.util.ConcurrentModificationException: Caller uses obsolete token sequence which is no longer valid. Underlying token hierarchy has been modified: modCount=6 != upToDateModCount=-2 Please report a
Summary: java.util.ConcurrentModificationException: Caller uses obsolete token sequenc...
Status: RESOLVED FIXED
Alias: None
Product: editor
Classification: Unclassified
Component: Lexer (show other bugs)
Version: 6.x
Hardware: All All
: P2 normal (vote)
Assignee: Marek Fukala
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-04-16 09:04 UTC by rmatous
Modified: 2010-04-16 13:03 UTC (History)
1 user (show)

See Also:
Issue Type: DEFECT
Exception Reporter: 168030


Attachments
stacktrace (2.81 KB, text/plain)
2010-04-16 09:04 UTC, rmatous
Details

Note You need to log in before you can comment on or make changes to this bug.
Description rmatous 2010-04-16 09:04:06 UTC
Build: NetBeans IDE Dev (Build 100414-5222a3b6c584)
VM: Java HotSpot(TM) 64-Bit Server VM, 14.1-b02, Java(TM) SE Runtime Environment, 1.6.0_15-b03
OS: Linux

User Comments:
rmatous: <?php
class x
{
  function y() {

  }
}

class foo
{
  public function bar()
  {
    $this->a = new x();
    $this->a->**code complete here**
  }
}

ppisl: formatting simple php file

ppisl: Eiting php file

on the line i wrote:

echo "1"; /*

when I want to continu in the comment, it fails.




Stacktrace: 
java.util.ConcurrentModificationException: Caller uses obsolete token sequence which is no longer valid. Underlying token hierarchy has been modified: modCount=6 != upToDateModCount=-2
Please report against caller's module which needs to be fixed (not the lexer module).
   at org.netbeans.api.lexer.TokenSequence.checkModCount(TokenSequence.java:745)
   at org.netbeans.api.lexer.TokenSequence.move(TokenSequence.java:629)
   at org.netbeans.modules.spellchecker.bindings.htmlxml.HtmlTokenList.findNextSpellSpan(HtmlTokenList.java:108)
   at org.netbeans.modules.spellchecker.bindings.htmlxml.AbstractTokenList.nextWordImpl(AbstractTokenList.java:92)
   at org.netbeans.modules.spellchecker.bindings.htmlxml.AbstractTokenList.nextWord(AbstractTokenList.java:82)
   at org.netbeans.modules.spellchecker.ComponentPeer$9.run(ComponentPeer.java:577)
Comment 1 rmatous 2010-04-16 09:04:11 UTC
Created attachment 97507 [details]
stacktrace
Comment 2 rmatous 2010-04-16 09:07:10 UTC
Happened to me couple of times again
Comment 3 Marek Fukala 2010-04-16 13:03:08 UTC
this was fixed on April 14th w/o an issue:

http://hg.netbeans.org/web-main/rev/8294d2bdc4cd