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.
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)
Created attachment 108980 [details] stacktrace
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) { ; } }
Fixed in web-main.
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
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