Bug 222631 - IndexOutOfBoundsException: Index: 0, Size: 0
IndexOutOfBoundsException: Index: 0, Size: 0
Status: RESOLVED FIXED
Product: java
Classification: Unclassified
Component: Editor
7.3
All All
: P3 (vote)
: 7.3
Assigned To: Dusan Balek
issues@java
EXCEPTIONS_REPORT
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2012-11-23 02:35 UTC by mexer
Modified: 2012-11-24 13:08 UTC (History)
1 user (show)

See Also:
Issue Type: DEFECT
:


Attachments
stacktrace (5.02 KB, text/plain)
2012-11-23 02:35 UTC, mexer
Details

Note You need to log in before you can comment on or make changes to this bug.
Description mexer 2012-11-23 02:35:38 UTC
Build: NetBeans IDE 7.3 Beta 2 (Build 201211062253)
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:
mexer: I have this code
class Collar{
private int collarSize;
private Collar (int size){
collarSize=size;
}
}

then "Generate getters"  I didnt check any fields. When I check the only field it works perfecly




Stacktrace: 
java.lang.IndexOutOfBoundsException: Index: 0, Size: 0
   at java.util.ArrayList.RangeCheck(ArrayList.java:604)
   at java.util.ArrayList.get(ArrayList.java:382)
   at org.netbeans.modules.java.editor.codegen.GeneratorUtils.insertClassMembers(GeneratorUtils.java:368)
   at org.netbeans.modules.java.editor.codegen.GeneratorUtils.generateGettersAndSetters(GeneratorUtils.java:295)
   at org.netbeans.modules.java.editor.codegen.GetterSetterGenerator$1.run(GetterSetterGenerator.java:237)
   at org.netbeans.modules.java.editor.codegen.GetterSetterGenerator$1.run(GetterSetterGenerator.java:216)
Comment 1 mexer 2012-11-23 02:35:40 UTC
Created attachment 128289 [details]
stacktrace
Comment 2 Dusan Balek 2012-11-23 09:12:11 UTC
Fixed in jet-main.

http://hg.netbeans.org/jet-main/rev/bf744db1a608
Comment 3 Quality Engineering 2012-11-24 13:08:04 UTC
Integrated into 'main-golden', will be available in build *201211240959* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)
Changeset: http://hg.netbeans.org/main-golden/rev/bf744db1a608
User: Dusan Balek <dbalek@netbeans.org>
Log: Issue #222631: IndexOutOfBoundsException: Index: 0, Size: 0 - fixed.


By use of this website, you agree to the NetBeans Policies and Terms of Use. © 2012, Oracle Corporation and/or its affiliates. Sponsored by Oracle logo