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 251502 - IndexOutOfBoundsException: Index: 1, Size: 1
Summary: IndexOutOfBoundsException: Index: 1, Size: 1
Status: RESOLVED FIXED
Alias: None
Product: java
Classification: Unclassified
Component: Source (show other bugs)
Version: 8.1
Hardware: All All
: P2 normal (vote)
Assignee: Svata Dedic
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2015-03-30 10:18 UTC by Ralph Ruijs
Modified: 2015-04-03 03:07 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter: 216440


Attachments
stacktrace (4.62 KB, text/plain)
2015-03-30 10:18 UTC, Ralph Ruijs
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Ralph Ruijs 2015-03-30 10:18:47 UTC
Build: NetBeans IDE Dev (Build 20150330-13d7fa804398)
VM: Java HotSpot(TM) 64-Bit Server VM, 24.76-b04, Java(TM) SE Runtime Environment, 1.7.0_76-b13
OS: Linux

User Comments:
ralphbenjamin: Tried to reproduce #250399




Stacktrace: 
java.lang.IndexOutOfBoundsException: Index: 1, Size: 1
   at java.util.ArrayList.RangeCheck(ArrayList.java:635)
   at java.util.ArrayList.get(ArrayList.java:411)
   at org.netbeans.modules.java.source.builder.CommentHandlerService.copyComments(CommentHandlerService.java:168)
   at org.netbeans.api.java.source.WorkingCopy$CommentReplicator.scan(WorkingCopy.java:1006)
   at com.sun.source.util.TreeScanner.scanAndReduce(TreeScanner.java:81)
   at com.sun.source.util.TreeScanner.visitMethod(TreeScanner.java:144)
Comment 1 Ralph Ruijs 2015-03-30 10:18:49 UTC
Created attachment 152917 [details]
stacktrace
Comment 2 Svata Dedic 2015-03-30 13:24:38 UTC
fixed by jet-main#63dc5a36cfed
Comment 3 Quality Engineering 2015-04-03 03:07:20 UTC
Integrated into 'main-silver', will be available in build *201504030001* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)

Changeset: http://hg.netbeans.org/main-silver/rev/63dc5a36cfed
User: Svata Dedic <sdedic@netbeans.org>
Log: #251502: invalid indexes used if comments start with whitespace placeholder