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 8203

Summary: ClassElement.forClass(Node.Cookie.class).getName().getQualifier -> "org.openide.nodes.Node"
Product: java Reporter: Jesse Glick <jglick>
Component: UnsupportedAssignee: issues@java <issues>
Status: CLOSED FIXED    
Severity: normal CC: issues
Priority: P4    
Version: 3.x   
Hardware: PC   
OS: Linux   
Issue Type: DEFECT Exception Reporter:
Attachments: test case script (internal execution)

Description Jesse Glick 2000-11-06 14:26:09 UTC
See subject. This behavior seems odd at least, perhaps incorrect. Docs for
getQualifier state that it gives a package name, but this is an outer class
name. Unclear whether the problem is in org.openide.src or in the clazz-module
implementation.
Comment 1 Jesse Glick 2000-11-06 14:27:59 UTC
Sorry, dev trunk Oct 30th.
Comment 2 Jesse Glick 2000-11-06 14:28:59 UTC
Created attachment 265 [details]
test case script (internal execution)
Comment 3 Svata Dedic 2000-11-06 16:27:59 UTC
Identifier.getQualifier() javadoc is misleading, I am afraid. The identifier has
no safe way how it could determine the *package*. It can only return the prefix
before the last dot. In the case of inner classes, the prefix equals to FQN of
the outer class.
Comment 4 Svata Dedic 2001-01-15 08:03:59 UTC
Javadoc changed.
Comment 5 Jan Becicka 2001-02-22 11:07:48 UTC
[010221_2] Verified
Comment 6 Quality Engineering 2003-06-30 16:43:57 UTC
Resolved for 3.3.x or earlier, no new info since then -> closing.