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 252966 - IndexOutOfBoundsException: -1
Summary: IndexOutOfBoundsException: -1
Status: VERIFIED FIXED
Alias: None
Product: java
Classification: Unclassified
Component: Compiler (show other bugs)
Version: 8.1
Hardware: All All
: P3 normal with 1 vote (vote)
Assignee: Dusan Balek
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2015-06-13 07:49 UTC by cezariusz
Modified: 2015-07-27 08:43 UTC (History)
1 user (show)

See Also:
Issue Type: DEFECT
Exception Reporter: 217913


Attachments
stacktrace (4.36 KB, text/plain)
2015-06-13 07:49 UTC, cezariusz
Details

Note You need to log in before you can comment on or make changes to this bug.
Description cezariusz 2015-06-13 07:49:33 UTC
This issue was reported manually by cezariusz.
It already has 1 duplicates 


Build: NetBeans IDE Dev (Build 201506070001)
VM: Java HotSpot(TM) 64-Bit Server VM, 25.45-b02, Java(TM) SE Runtime Environment, 1.8.0_45-b15
OS: Windows 8

User Comments:
cezariusz: Just pasted some Java code from https://google-styleguide.googlecode.com/svn/trunk/javaguide.html#s5.2.4-constant-names




Stacktrace: 
java.lang.IndexOutOfBoundsException: -1
   at com.sun.tools.javac.util.List.get(List.java:468)
   at org.netbeans.modules.java.hints.suggestions.ConstantNameHint.checkZeroSizeArray(ConstantNameHint.java:241)
   at org.netbeans.modules.java.hints.suggestions.ConstantNameHint.isImmutableValue(ConstantNameHint.java:223)
   at org.netbeans.modules.java.hints.suggestions.ConstantNameHint.checkConstantName(ConstantNameHint.java:140)
   at sun.reflect.GeneratedMethodAccessor157.invoke(GeneratedMethodAccessor157.java:0)
   at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
Comment 1 cezariusz 2015-06-13 07:49:35 UTC
Created attachment 154192 [details]
stacktrace
Comment 2 Dusan Balek 2015-07-01 14:46:06 UTC
Fixed in jet-main.

http://hg.netbeans.org/jet-main/rev/6033a96c465d
Comment 3 Quality Engineering 2015-07-03 01:19:35 UTC
Integrated into 'main-silver', will be available in build *201507030001* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)

Changeset: http://hg.netbeans.org/main-silver/rev/6033a96c465d
User: Dusan Balek <dbalek@netbeans.org>
Log: Issue #252966 - IndexOutOfBoundsException - fixed.
Comment 4 cezariusz 2015-07-27 08:43:28 UTC
Verified with Build 201507240001.