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 195145 - StringIndexOutOfBoundsException if collate<typename _CharT> item is selected in Code Completion
Summary: StringIndexOutOfBoundsException if collate<typename _CharT> item is selected ...
Status: RESOLVED FIXED
Alias: None
Product: cnd
Classification: Unclassified
Component: Code Completion (show other bugs)
Version: 7.0
Hardware: PC Windows XP
: P2 normal (vote)
Assignee: Alexander Simon
URL:
Keywords:
: 195593 196896 (view as bug list)
Depends on:
Blocks:
 
Reported: 2011-02-07 21:23 UTC by soldatov
Modified: 2011-03-22 08:44 UTC (History)
2 users (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
test file (482 bytes, text/plain)
2011-02-07 21:34 UTC, soldatov
Details

Note You need to log in before you can comment on or make changes to this bug.
Description soldatov 2011-02-07 21:23:07 UTC
Windows XP

Scenario:
- Create Welcome
- Open welcome.cc
- Call Code Completion on std:co
- Select collate<typename _CharT>
==>
java.lang.StringIndexOutOfBoundsException: String index out of range: 451
	at java.lang.String.substring(String.java:1934)
	at org.netbeans.lib.lexer.token.DefaultToken$InputSourceSubsequence.toString(DefaultToken.java:275)
	at org.netbeans.modules.cnd.completion.doxygensupport.DoxygenDocumentation.getDocText(DoxygenDocumentation.java:292)
	at org.netbeans.modules.cnd.completion.doxygensupport.DoxygenDocumentation.create(DoxygenDocumentation.java:218)
	at org.netbeans.modules.cnd.completion.doxygensupport.CompletionDocumentationProviderImpl.createDocumentationImpl(CompletionDocumentationProviderImpl.java:101)
	at org.netbeans.modules.cnd.completion.doxygensupport.CompletionDocumentationProviderImpl.access$000(CompletionDocumentationProviderImpl.java:72)
	at org.netbeans.modules.cnd.completion.doxygensupport.CompletionDocumentationProviderImpl$DocQuery.query(CompletionDocumentationProviderImpl.java:146)
	at org.netbeans.spi.editor.completion.support.AsyncCompletionTask.run(AsyncCompletionTask.java:223)
	at org.openide.util.RequestProcessor$Task.run(RequestProcessor.java:1424)
	at org.openide.util.RequestProcessor$Processor.run(RequestProcessor.java:1968)
Caused: org.openide.util.RequestProcessor$FastItem: task failed due to
Comment 1 soldatov 2011-02-07 21:34:30 UTC
Created attachment 105711 [details]
test file
Comment 2 Vladimir Voskresensky 2011-02-08 09:57:54 UTC
Sasha, please, have a look.
Something wrong with FileImpl.FileBufferFile.getText based text?
Comment 3 Alexander Simon 2011-02-08 15:47:48 UTC
fixed, change set:
http://hg.netbeans.org/cnd-main/rev/8b042cd0a8f1
Comment 4 Quality Engineering 2011-02-09 06:07:11 UTC
Integrated into 'main-golden', will be available in build *201102090000* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)
Changeset: http://hg.netbeans.org/main/rev/8b042cd0a8f1
User: Alexander Simon <alexvsimon@netbeans.org>
Log: fixed Bug #195145 StringIndexOutOfBoundsException if collate<typename _CharT> item is selected in Code Completion
Comment 5 Vladimir Voskresensky 2011-02-17 16:29:52 UTC
*** Bug 195593 has been marked as a duplicate of this bug. ***
Comment 6 Vladimir Voskresensky 2011-03-22 08:44:06 UTC
*** Bug 196896 has been marked as a duplicate of this bug. ***