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 70827 - IllegalArgumentException when using CC
Summary: IllegalArgumentException when using CC
Status: VERIFIED FIXED
Alias: None
Product: java
Classification: Unclassified
Component: Unsupported (show other bugs)
Version: 5.x
Hardware: All All
: P2 blocker (vote)
Assignee: issues@java
URL:
Keywords:
: 70973 71013 75214 (view as bug list)
Depends on:
Blocks:
 
Reported: 2005-12-27 21:57 UTC by Max Sauer
Modified: 2007-09-26 09:14 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
exception stack trace (1.27 KB, text/plain)
2005-12-27 21:58 UTC, Max Sauer
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Max Sauer 2005-12-27 21:57:08 UTC
Using popped-up CC leads to IAE in some cases.

Steps to reproduce:
-------------------
1) Create new j2se project
2) Paste following code inside main()

  int[] index = new int[1];
	index[0] = 0;
	ind|                // pipe stands for carret

3) Place carret as shown above
4) Finish typing of index and press 'dot', like this:

        index.|

5) Wait for CC to appear, use up/down arrow few times
--> IllegalArgumentException

java.lang.IllegalArgumentException: Unknown type class
org.netbeans.modules.javacore.jmiimpl.javamodel.ArrayCloneMethod
	at
org.netbeans.modules.javacore.internalapi.JavaModelUtil.unwrapElement(JavaModelUtil.java:387)
	at
org.netbeans.modules.javacore.internalapi.JavaModelUtil.getOverriddenMethods(JavaModelUtil.java:396)
	at
org.netbeans.modules.editor.java.NbJMICompletionJavaDoc$JMIParsingThread.setFeature(NbJMICompletionJavaDoc.java:534)
...
(whole stack trace attached)

[5.0 200512262030, JDK 1.5.0_02, GNU/Linux 2.6.11.3 i686]
Comment 1 Max Sauer 2005-12-27 21:58:14 UTC
Created attachment 28089 [details]
exception stack trace
Comment 2 Jan Becicka 2006-01-03 10:05:41 UTC
Checking in JavaModelUtil.java;

/cvs/java/javacore/src/org/netbeans/modules/javacore/internalapi/JavaModelUtil.java,v
 <--  JavaModelUtil.java

new revision: 1.19; previous revision: 1.18

done
Comment 3 Max Sauer 2006-01-04 09:13:26 UTC
Verified in 5.1 200601031900.
Comment 4 Daniel Prusa 2006-01-04 16:08:47 UTC
*** Issue 70973 has been marked as a duplicate of this issue. ***
Comment 5 Dusan Balek 2006-01-05 10:11:57 UTC
*** Issue 71013 has been marked as a duplicate of this issue. ***
Comment 6 Jan Becicka 2006-05-10 08:18:22 UTC
*** Issue 75214 has been marked as a duplicate of this issue. ***
Comment 7 Daniel Prusa 2006-05-10 14:13:58 UTC
Fix merged into release55 branch.

/cvs/java/javacore/src/org/netbeans/modules/javacore/internalapi/JavaModelUtil.java
new revision: 1.12.4.3.2.1; previous revision: 1.12.4.3
Comment 8 Max Sauer 2006-05-11 15:46:59 UTC
Thanks, Dane. Verified inside 5.5dev branch.

----------
NetBeans 5.5 Dev (Build 200605110500)
SunOS version 5.10 running on sparc
Java HotSpot(TM) Client VM 1.6.0-beta2-b81
Comment 9 Quality Engineering 2007-09-20 12:46:13 UTC
Reorganization of java component