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 178893 - ArrayIndexOutOfBoundsException: 2
Summary: ArrayIndexOutOfBoundsException: 2
Status: RESOLVED FIXED
Alias: None
Product: php
Classification: Unclassified
Component: Editor (show other bugs)
Version: 6.x
Hardware: All All
: P2 normal with 1 vote (vote)
Assignee: rmatous
URL:
Keywords:
: 179395 (view as bug list)
Depends on:
Blocks:
 
Reported: 2009-12-20 00:23 UTC by xjflyttp
Modified: 2010-03-05 02:07 UTC (History)
11 users (show)

See Also:
Issue Type: DEFECT
Exception Reporter: 163456


Attachments
stacktrace (1.92 KB, text/plain)
2009-12-20 00:23 UTC, xjflyttp
Details
stacktrace (1.92 KB, text/plain)
2010-01-11 08:49 UTC, Tomas Mysik
Details
stacktrace (1.92 KB, text/plain)
2010-02-24 07:49 UTC, laurin1
Details

Note You need to log in before you can comment on or make changes to this bug.
Description xjflyttp 2009-12-20 00:23:39 UTC
Build: NetBeans IDE Dev (Build 200912170200)
VM: Java HotSpot(TM) Client VM, 14.3-b01, Java(TM) SE Runtime Environment, 1.6.0_17-b04
OS: Windows 7, 6.1, x86

User Comments:
stefanv: did nothing.

GUEST: if ????? "{" ?????



Stacktrace: 
java.lang.ArrayIndexOutOfBoundsException: 2
   at org.netbeans.modules.php.editor.model.impl.ParameterImpl.toParameters(ParameterImpl.java:133)
   at org.netbeans.modules.php.editor.index.PHPIndex.findFunctions(PHPIndex.java:292)
   at org.netbeans.modules.php.editor.index.PHPIndex.getAllTopLevel(PHPIndex.java:145)
   at org.netbeans.modules.php.editor.index.PHPIndex.getAllTopLevel(PHPIndex.java:130)
   at org.netbeans.modules.php.editor.PHPCodeCompletion.autoCompleteExpression(PHPCodeCompletion.java:860)
   at org.netbeans.modules.php.editor.PHPCodeCompletion.complete(PHPCodeCompletion.java:276)
Comment 1 xjflyttp 2009-12-20 00:23:42 UTC
Created attachment 92787 [details]
stacktrace
Comment 2 Exceptions Reporter 2009-12-23 20:11:26 UTC
This bug already has 10 duplicates 
see http://statistics.netbeans.org/exceptions/detail.do?id=163456
Comment 3 Tomas Mysik 2010-01-11 08:49:08 UTC
Created attachment 93188 [details]
stacktrace

CC in a php file
Comment 4 rmatous 2010-01-11 12:32:52 UTC
*** Bug 179395 has been marked as a duplicate of this bug. ***
Comment 5 Exceptions Reporter 2010-02-13 07:02:23 UTC
This bug already has 100 duplicates 
see http://statistics.netbeans.org/exceptions/detail.do?id=163456
Comment 6 rmatous 2010-02-15 01:45:55 UTC
Could someone confirm that deleting var/cache folder in userdir solves the problem. Seems like updating problem for me (old index is read by new code).
Comment 7 rmatous 2010-02-16 07:30:28 UTC
Fixed:
http://hg.netbeans.org/web-main/rev/973264a2e8bc
Comment 8 Quality Engineering 2010-02-16 21:52:20 UTC
Integrated into 'main-golden', will be available in build *201002170200* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)
Changeset: http://hg.netbeans.org/main/rev/973264a2e8bc
User: Radek Matous <rmatous@netbeans.org>
Log: #178893 - ArrayIndexOutOfBoundsException
Comment 9 laurin1 2010-02-24 07:49:18 UTC
Created attachment 94479 [details]
stacktrace
Comment 10 ota 2010-03-03 07:14:37 UTC
I guess this Bug should be reopend. The problem was gone after the fix but in the latest build it reoccurs now again?
Comment 11 Tomas Mysik 2010-03-04 02:06:55 UTC
(In reply to comment #10)
> I guess this Bug should be reopend. The problem was gone after the fix but in
> the latest build it reoccurs now again?

If so, please, reopen this issue and provide example file or project so we can reproduce and fix.

Thanks.
Comment 12 ota 2010-03-04 03:19:22 UTC
Unfortunately i cannot provide you neither of two because of copyright and security issues. :(

Hopefully someone else can and will provide the necessary files.
I am sorry.
Comment 13 Tomas Mysik 2010-03-05 02:07:42 UTC
(In reply to comment #12)
> Unfortunately i cannot provide you neither of two because of copyright and
> security issues. :(

Isn't possible to create "something similar"? I mean a PHP file with similar structure, language constructs etc.

Thanks a lot.