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 25636

Summary: RefPackage.refPackage("CertainlyWrongPackageName") returns null
Product: java Reporter: matiouchkine <matiouchkine>
Component: UnsupportedAssignee: issues@java <issues>
Status: VERIFIED FIXED    
Severity: blocker CC: hkrug
Priority: P2    
Version: 3.x   
Hardware: PC   
OS: Linux   
Issue Type: DEFECT Exception Reporter:

Description matiouchkine 2002-07-15 16:51:57 UTC
According to JMI spec:

====================================================
RefPackage.refPackage(String nestedPackageName)
...
InvalidNameException is raised when the
"nestedPackageName" does not denote a valid nested
package name.
====================================================

Current JMI implementation of MDR in such case
simply returns *null* silently, without throwing
any exceptions.
Comment 1 Martin Matula 2002-07-18 11:47:13 UTC
Fixed.
Comment 2 Jiri Prox 2005-07-27 09:01:13 UTC
quiet for too long, verified