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.
Summary: | setSuperclass doesn't set correct name when passed parameter identifies an inner class | ||
---|---|---|---|
Product: | java | Reporter: | Vitezslav Stejskal <vstejskal> |
Component: | Unsupported | Assignee: | issues@java <issues> |
Status: | CLOSED INVALID | ||
Severity: | blocker | ||
Priority: | P3 | ||
Version: | 3.x | ||
Hardware: | PC | ||
OS: | Windows ME/2000 | ||
Issue Type: | DEFECT | Exception Reporter: | |
Attachments: | junit test |
Description
Vitezslav Stejskal
2001-03-21 13:08:23 UTC
Created attachment 841 [details]
junit test
As I understand the test source, you have some existing inner class coded as public class OuterClass { public class InnerClass { } } then theInnerClassElement.getName() has sourceName property = "InnerClass", and its fullName property should be set to "whatever.package.OuterClass.InnerClass". The superclass property is just an identifier, nothing more - you, as the caller, are responsible for translating the name into appropriate target context (e.g. prefix it with outerclass/package). If you want to be sure, the best is maybe create Identifier from the inner class' full name. Resolved for 3.3.x or earlier, no new info since then -> closing. Resolved for 3.4.x or earlier, no new info since then -> closing. |