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 16495 - ClassElement.getName().getFullName() returns bad name for nested classes
Summary: ClassElement.getName().getFullName() returns bad name for nested classes
Status: CLOSED INVALID
Alias: None
Product: java
Classification: Unclassified
Component: Unsupported (show other bugs)
Version: 3.x
Hardware: PC Linux
: P3 blocker (vote)
Assignee: Svata Dedic
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2001-10-12 09:33 UTC by Marian Petras
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 Marian Petras 2001-10-12 09:33:14 UTC
<ClassElement>.getName().getFullName() returns bad string if <ClassElement>
represents nested class.

E.g. if 'classElement' represents class "package.Outer$Inner", then:

    classElement.getName().getName() = "Outer$Inner"
    classElement.getName().getFullName() = "package.Outer.Outer$Inner"
Method 'getName()' is correct, method 'getFullName()' returns wrong result.
Comment 1 Marian Petras 2001-10-13 19:21:53 UTC
The ClassElement works correctly. The methods 'getName()' and
'getFullName()' returned bad data because the ClassElement object had
been badly created (bad arguments to constructor).
Comment 2 Quality Engineering 2003-07-01 13:12:05 UTC
Resolved for 3.3.x or earlier, no new info since then -> closing.
Comment 3 Quality Engineering 2003-07-01 13:21:35 UTC
Resolved for 3.4.x or earlier, no new info since then -> closing.