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 234906 - !!WARNING!! Missing READ-LOCK when accessing TokenHierarchy (org.netbeans.modules.spellchecker.bindings.java.JavaTokenList)
Summary: !!WARNING!! Missing READ-LOCK when accessing TokenHierarchy (org.netbeans.mod...
Status: RESOLVED FIXED
Alias: None
Product: editor
Classification: Unclassified
Component: Spellchecker (show other bugs)
Version: 7.4
Hardware: PC Windows 7
: P3 normal (vote)
Assignee: Jan Lahoda
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-08-23 19:54 UTC by markiewb
Modified: 2013-08-27 01:06 UTC (History)
0 users

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 markiewb 2013-08-23 19:54:16 UTC
I saw this warning in the logfile

INFO [org.netbeans.spi.lexer.MutableTextInput]: !!WARNING!! Missing READ-LOCK when accessing TokenHierarchy: input-source:org.netbeans.modules.editor.NbEditorDocument@3bfd32be, mimeType='text/x-java', kitClass=null, length=0, version=10, file=null
java.lang.Exception
	at org.netbeans.lib.lexer.TokenHierarchyOperation.ensureReadLocked(TokenHierarchyOperation.java:397)
	at org.netbeans.lib.lexer.TokenHierarchyOperation.tokenSequence(TokenHierarchyOperation.java:422)
	at org.netbeans.api.lexer.TokenHierarchy.tokenSequence(TokenHierarchy.java:201)
	at org.netbeans.modules.spellchecker.bindings.java.JavaTokenList.findNextJavaDocComment(JavaTokenList.java:102)
	at org.netbeans.modules.spellchecker.bindings.java.JavaTokenList.nextWordImpl(JavaTokenList.java:159)
	at org.netbeans.modules.spellchecker.bindings.java.JavaTokenList.nextWord(JavaTokenList.java:91)
	at org.netbeans.modules.spellchecker.spi.language.support.MultiTokenList$MultiTokenListImpl.setStartOffset(MultiTokenList.java:86)
	at org.netbeans.modules.spellchecker.ComponentPeer$9.run(ComponentPeer.java:611)
	at org.netbeans.editor.BaseDocument.render(BaseDocument.java:1390)
	at org.netbeans.modules.spellchecker.ComponentPeer.computeHint(ComponentPeer.java:608)
	at org.netbeans.modules.spellchecker.ComponentPeer.access$200(ComponentPeer.java:125)
	at org.netbeans.modules.spellchecker.ComponentPeer$3.run(ComponentPeer.java:181)
	at org.openide.util.RequestProcessor$Task.run(RequestProcessor.java:1432)
	at org.openide.util.RequestProcessor$Processor.run(RequestProcessor.java:2042)

---
Product Version: NetBeans IDE Dev (Build 201308192300)
Java: 1.7.0_25; Java HotSpot(TM) 64-Bit Server VM 23.25-b01
Runtime: Java(TM) SE Runtime Environment 1.7.0_25-b16
System: Windows 7 version 6.1 running on amd64; Cp1252; en_US (nb)
Comment 1 Jan Lahoda 2013-08-26 06:34:37 UTC
http://hg.netbeans.org/jet-main/rev/eebb98283a01
Comment 2 Quality Engineering 2013-08-27 01:06:11 UTC
Integrated into 'main-silver', will be available in build *201308270001* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)

Changeset: http://hg.netbeans.org/main-silver/rev/eebb98283a01
User: Jan Lahoda <jlahoda@netbeans.org>
Log: #234906: ensure the tokenlist uses the same document as locked.