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 215015 - IndexOutOfBoundsException: start < 0 (-1 < 0)
Summary: IndexOutOfBoundsException: start < 0 (-1 < 0)
Status: VERIFIED FIXED
Alias: None
Product: editor
Classification: Unclassified
Component: Hints & Annotations (show other bugs)
Version: 7.2
Hardware: All All
: P3 normal (vote)
Assignee: Jan Lahoda
URL:
Keywords:
: 217062 (view as bug list)
Depends on:
Blocks:
 
Reported: 2012-06-30 09:47 UTC by everflux
Modified: 2012-09-10 12:49 UTC (History)
5 users (show)

See Also:
Issue Type: DEFECT
Exception Reporter: 187817


Attachments
stacktrace (4.24 KB, text/plain)
2012-06-30 09:47 UTC, everflux
Details
stacktrace (4.24 KB, text/plain)
2012-07-22 12:20 UTC, everflux
Details

Note You need to log in before you can comment on or make changes to this bug.
Description everflux 2012-06-30 09:47:38 UTC
Build: NetBeans IDE 7.2 RC1 (Build 201206272359)
VM: Java HotSpot(TM) 64-Bit Server VM, 23.1-b03, Java(TM) SE Runtime Environment, 1.7.0_05-b05
OS: Linux

User Comments:
GUEST: inspect and transform

GUEST: Running various refactorization checks as preview

mps77: Inspect & Transform on single file

GUEST: Preview Inspect and Transform with nearly all rules activated

everflux: Ran inspections on complete code base, added new configuration and added all inspections available.

GUEST: Inspect and Transform




Stacktrace: 
java.lang.IndexOutOfBoundsException: start < 0 (-1 < 0)
   at org.netbeans.spi.editor.hints.ErrorDescriptionFactory.createErrorDescription(ErrorDescriptionFactory.java:230)
   at org.netbeans.modules.java.hints.suggestions.ExpandEnhancedForLoop.run(ExpandEnhancedForLoop.java:115)
   at sun.reflect.GeneratedMethodAccessor112.invoke(GeneratedMethodAccessor112.java:0)
   at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
   at java.lang.reflect.Method.invoke(Method.java:601)
   at org.netbeans.modules.java.hints.providers.code.CodeHintProviderImpl$WorkerImpl.createErrors(CodeHintProviderImpl.java:299)
Comment 1 everflux 2012-06-30 09:47:44 UTC
Created attachment 121607 [details]
stacktrace
Comment 2 everflux 2012-07-22 12:20:12 UTC
Created attachment 122244 [details]
stacktrace

running inspections (all) on maven/spring based web project
Comment 3 Jan Lahoda 2012-08-20 16:33:55 UTC
*** Bug 217062 has been marked as a duplicate of this bug. ***
Comment 4 Jan Lahoda 2012-08-24 11:26:06 UTC
http://hg.netbeans.org/jet-main/rev/487dbf9b62e1
Comment 5 Quality Engineering 2012-08-27 02:44:24 UTC
Integrated into 'main-golden', will be available in build *201208270001* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)
Changeset: http://hg.netbeans.org/main-golden/rev/487dbf9b62e1
User: Jan Lahoda <jlahoda@netbeans.org>
Log: #215015: do not show suggestions in Refactor/Inspec&Transform and Source/Inspect and ignore any suggestions that would happen to be sent to computing backend.
Comment 6 Jan Lahoda 2012-08-29 20:50:18 UTC
To reproduce (IIRC), select Suggestions/Expand Enhanced for Loop in Inspect&Transform and select a scope that contains a file with the enhanced for loop.

Expected: no "Suggestions" in Source/Inspect and Refactor/Inspect&Transform.
Comment 7 Stepan Zebra 2012-08-30 09:39:43 UTC
verified in trunk, please integrate
Comment 8 Jan Lahoda 2012-08-31 09:27:11 UTC
Transplated to release72 branch:
http://hg.netbeans.org/releases/rev/35ad13470ddc
Comment 9 Quality Engineering 2012-09-01 11:10:48 UTC
Integrated into 'releases', will be available in build *201209010822* or newer. Wait for official and publicly available build.
Changeset: http://hg.netbeans.org/releases/rev/35ad13470ddc
User: Jan Lahoda <jlahoda@netbeans.org>
Log: #215015: do not show suggestions in Refactor/Inspec&Transform and Source/Inspect and ignore any suggestions that would happen to be sent to computing backend.