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 26302 - ClassElement's getSuperClass() method behaves inconsistently on java.lang.Object class
Summary: ClassElement's getSuperClass() method behaves inconsistently on java.lang.Obj...
Status: RESOLVED FIXED
Alias: None
Product: java
Classification: Unclassified
Component: Unsupported (show other bugs)
Version: 3.x
Hardware: PC Windows 3.1/NT
: P3 blocker (vote)
Assignee: issues@java
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2002-08-06 01:10 UTC by Louise Avila
Modified: 2007-09-26 09:14 UTC (History)
0 users

See Also:
Issue Type: ENHANCEMENT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Louise Avila 2002-08-06 01:10:05 UTC
When I use this method in my module, sometimes this method returns null when the super 
class is java.lang.Object and sometimes it returns java.lang.Object. It seems that when the 
original class is in a .jar file and only the .class is available it returns java.lang.Object as the 
superclass. This is causing my windows to display information about a class's methods 
inconsistently because sometimes Object's methods appear and other times they don't.
Comment 1 Svata Dedic 2002-09-20 12:59:18 UTC
Sorry, this is (currently) as designed: superClass property reports
what is explicitly written in either class file or java file. If you
had a .java file with 
public class Foo extends Object {
}
its ClassElement.getSuperclass() would return j.l.Object as well. In
.class files, the reference is always explicit.

My colleagues are designing a better model for source manipulation, so
I changed the issue to an enhancement request for them
Comment 2 Martin Matula 2004-11-12 10:52:29 UTC
Fixed in 4.0.