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 50785 - [tests] ClassElement.getClasses() returns empty array
Summary: [tests] ClassElement.getClasses() returns empty array
Status: CLOSED DUPLICATE of bug 50759
Alias: None
Product: java
Classification: Unclassified
Component: Unsupported (show other bugs)
Version: 4.x
Hardware: PC Linux
: P2 blocker (vote)
Assignee: Daniel Prusa
URL:
Keywords: T9Y
Depends on:
Blocks:
 
Reported: 2004-10-25 09:14 UTC by ehucka
Modified: 2007-09-26 09:14 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description ehucka 2004-10-25 09:14:26 UTC
qa-functional, java automatedt test
"sourceexception.ClassChanged".

Code:

ClassElement clazz = ...;
ClassElement innerClass = new ClassElement();
innerClass.setModifiers(Modifier.PUBLIC);
innerClass.setSuperclass(Identifier.create("Obj"));
innerClass.setName(Identifier.create("Inn","Inn"));
clazz.addClass(innerClass);
innerClass  = clazz.getClasses()[0];

An ArrayIndexOutOfBoundsException is thrown at the
last line.
Comment 1 Martin Matula 2004-10-25 09:28:18 UTC
Dane please look at it.
Comment 2 Daniel Prusa 2004-10-25 15:41:24 UTC
I belive this is duplicate of issue 50759. The test passes without any
problems now.

*** This issue has been marked as a duplicate of 50759 ***
Comment 3 ehucka 2006-03-22 09:34:05 UTC
verified