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 199527 - [70cat] IndexOutOfBoundsException: Index: 0, Size: 0
Summary: [70cat] IndexOutOfBoundsException: Index: 0, Size: 0
Status: VERIFIED FIXED
Alias: None
Product: php
Classification: Unclassified
Component: Editor (show other bugs)
Version: 7.0
Hardware: All All
: P3 normal (vote)
Assignee: Petr Pisl
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-06-19 16:47 UTC by maghiel
Modified: 2011-06-21 16:32 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter: 178386


Attachments
stacktrace (6.74 KB, text/plain)
2011-06-19 16:47 UTC, maghiel
Details

Note You need to log in before you can comment on or make changes to this bug.
Description maghiel 2011-06-19 16:47:00 UTC
Build: NetBeans IDE Dev (Build nbms-and-javadoc-7200-on-20110515)
VM: Java HotSpot(TM) 64-Bit Server VM, 21.0-b14, Java(TM) SE Runtime Environment, 1.7.0-ea-b144
OS: Windows 7

User Comments:
maghiel: Typing: implements [ctrl+space]




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.php.editor.indent.FormatVisitor.visit(FormatVisitor.java:434)
   at org.netbeans.modules.php.editor.parser.astnodes.ClassDeclaration.accept(ClassDeclaration.java:90)
   at org.netbeans.modules.php.editor.parser.astnodes.visitors.DefaultVisitor.scan(DefaultVisitor.java:54)
   at org.netbeans.modules.php.editor.indent.FormatVisitor.scan(FormatVisitor.java:192)
Comment 1 maghiel 2011-06-19 16:47:05 UTC
Created attachment 108980 [details]
stacktrace
Comment 2 Petr Pisl 2011-06-20 12:40:54 UTC
It's easy to reproduce with this finishing cc in this case:

class Foo 
     implements |
     extends AAConf
{

     public function Func2() {
          echo "string  hallo";
     }

     public function __get($name) {
          ;
     }

}
Comment 3 Petr Pisl 2011-06-20 15:52:17 UTC
Fixed in web-main.
Comment 4 Quality Engineering 2011-06-21 16:05:06 UTC
Integrated into 'main-golden'
Changeset: http://hg.netbeans.org/main-golden/rev/b89b8304605b
User: Petr Pisl <ppisl@netbeans.org>
Log: #199527 - [70cat] IndexOutOfBoundsException: Index: 0, Size: 0
Comment 5 maghiel 2011-06-21 16:32:35 UTC
Verified fixed in: 

Product Version: NetBeans IDE Dev (Build 2011-06-21_15-04-02 )
Java: 1.6.0_23; Java HotSpot(TM) Client VM 19.0-b09
System: Windows 7 version 6.1 running on x86; Cp1252; nl_NL (nb)
Userdir: C:\Users\maghiel\.netbeans\dev