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 219949 - StringIndexOutOfBoundsException: String index out of range: 76
Summary: StringIndexOutOfBoundsException: String index out of range: 76
Status: VERIFIED FIXED
Alias: None
Product: webservices
Classification: Unclassified
Component: Code (show other bugs)
Version: 7.3
Hardware: All All
: P2 normal (vote)
Assignee: Denis Anisimov
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-10-11 20:56 UTC by Chiana
Modified: 2012-10-16 21:53 UTC (History)
7 users (show)

See Also:
Issue Type: DEFECT
Exception Reporter: 193415


Attachments
stacktrace (2.32 KB, text/plain)
2012-10-11 20:56 UTC, Chiana
Details
stacktrace (2.32 KB, text/plain)
2012-10-11 21:02 UTC, Chiana
Details
stacktrace (2.33 KB, text/plain)
2012-10-11 21:20 UTC, Chiana
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Chiana 2012-10-11 20:56:47 UTC
Build: NetBeans IDE Dev (Build 201210110002)
VM: Java HotSpot(TM) 64-Bit Server VM, 23.3-b01, Java(TM) SE Runtime Environment, 1.7.0_07-b11
OS: Windows 7

User Comments:
Chiana: Was typing a Javadoc and was going to use a marker
"* Get's the result from execution if any is published, will return (@"
Occured after typing the "@"

ptomasek: Writing a JavaDoc to a public method of a public Java class in the Editor window.




Stacktrace: 
java.lang.StringIndexOutOfBoundsException: String index out of range: 76
   at java.lang.String.substring(String.java:1907)
   at org.netbeans.modules.websvc.editor.completion.WSCompletionProvider$WsCompletionQuery.getCompletionEnvironment(WSCompletionProvider.java:215)
   at org.netbeans.modules.websvc.editor.completion.WSCompletionProvider$WsCompletionQuery.resolveCompletion(WSCompletionProvider.java:174)
   at org.netbeans.modules.websvc.editor.completion.WSCompletionProvider$WsCompletionQuery.run(WSCompletionProvider.java:164)
   at org.netbeans.modules.websvc.editor.completion.WSCompletionProvider$WsCompletionQuery.run(WSCompletionProvider.java:114)
   at org.netbeans.api.java.source.JavaSource$MultiTask.run(JavaSource.java:488)
Comment 1 Chiana 2012-10-11 20:56:51 UTC
Created attachment 125807 [details]
stacktrace
Comment 2 Chiana 2012-10-11 21:02:14 UTC
Created attachment 125808 [details]
stacktrace

Same as report #617665.
Backed over the "@"  and typed it again.
Comment 3 Chiana 2012-10-11 21:06:38 UTC
This is a regression. I did exactly the same about a week ago and then it worked so this should be P2
Comment 4 Chiana 2012-10-11 21:20:14 UTC
Created attachment 125810 [details]
stacktrace

Oki, this happens every time you hit a "(@" inside a javadoc
Comment 5 Denis Anisimov 2012-10-15 07:21:32 UTC
web-main#371a1d3f61c3
Comment 6 Quality Engineering 2012-10-16 02:05:43 UTC
Integrated into 'main-golden', will be available in build *201210160002* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)
Changeset: http://hg.netbeans.org/main-golden/rev/371a1d3f61c3
User: Denis Anisimov <ads@netbeans.org>
Log: Fix for BZ#219949 - StringIndexOutOfBoundsException: String index out of range: 76
Comment 7 Chiana 2012-10-16 21:53:10 UTC
Looks working to me, so it's verified in 20121016.