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 205129 - [71cat] ArrayIndexOutOfBoundsException: 2
Summary: [71cat] ArrayIndexOutOfBoundsException: 2
Status: RESOLVED FIXED
Alias: None
Product: java
Classification: Unclassified
Component: Hints (show other bugs)
Version: 7.1
Hardware: All All
: P2 normal (vote)
Assignee: Jan Lahoda
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-11-15 08:58 UTC by stefan79
Modified: 2011-11-17 07:28 UTC (History)
1 user (show)

See Also:
Issue Type: DEFECT
Exception Reporter: 182904


Attachments
stacktrace (1.82 KB, text/plain)
2011-11-15 08:58 UTC, stefan79
Details

Note You need to log in before you can comment on or make changes to this bug.
Description stefan79 2011-11-15 08:58:11 UTC
Build: NetBeans IDE Dev (Build 201111140600)
VM: Java HotSpot(TM) 64-Bit Server VM, 20.0-b11, Java(TM) SE Runtime Environment, 1.6.0_25-b06
OS: Windows 7

User Comments:
stefan79: Tried Inspect & Transform




Stacktrace: 
java.lang.ArrayIndexOutOfBoundsException: 2
   at org.netbeans.modules.java.hints.jackpot.impl.batch.ProgressHandleWrapper.currentPartWorkDoneUpdated(ProgressHandleWrapper.java:133)
   at org.netbeans.modules.java.hints.jackpot.impl.batch.ProgressHandleWrapper.startNextPart(ProgressHandleWrapper.java:107)
   at org.netbeans.modules.java.hints.jackpot.impl.batch.ProgressHandleWrapper$ProgressHandleWrapperBasedProgressHandleAbstraction.start(ProgressHandleWrapper.java:251)
   at org.netbeans.modules.java.hints.jackpot.impl.batch.ProgressHandleWrapper.startNextPart(ProgressHandleWrapper.java:98)
   at org.netbeans.modules.java.hints.jackpot.impl.batch.BatchSearch.getVerifiedSpans(BatchSearch.java:208)
   at org.netbeans.modules.java.hints.jackpot.impl.batch.BatchSearch.getVerifiedSpans(BatchSearch.java:192)
Comment 1 stefan79 2011-11-15 08:58:13 UTC
Created attachment 113215 [details]
stacktrace
Comment 2 Jiri Prox 2011-11-16 12:35:13 UTC
This blocks using some hints in inspect&transform
Comment 3 Jiri Prox 2011-11-16 16:22:48 UTC
Reproducible with several hints:

Assignment to catch block parameter
Assignment to method parameter
Nested assignment
Generate missing hashCode or equals

etc...
Comment 4 Jan Lahoda 2011-11-16 16:24:13 UTC
(In reply to comment #3)
> Reproducible with several hints:
> 
> Assignment to catch block parameter
> Assignment to method parameter
> Nested assignment
> Generate missing hashCode or equals
> 
> etc...

Thanks.
Comment 6 Quality Engineering 2011-11-17 07:28:05 UTC
Integrated into 'main-golden'
Changeset: http://hg.netbeans.org/main-golden/rev/309d4bdb90ee
User: Jan Lahoda <jlahoda@netbeans.org>
Log: #205129: trying to prevent ArrayIndexOutOfBoundsException, caused by entering extra parts of a ProgressHandleWrapper.