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 188606

Summary: ModuleInfo.ownerOf(Class)
Product: platform Reporter: Jesse Glick <jglick>
Component: Module SystemAssignee: Jesse Glick <jglick>
Status: RESOLVED DUPLICATE    
Severity: normal Keywords: API, PERFORMANCE
Priority: P3    
Version: 7.0   
Hardware: All   
OS: All   
Issue Type: DEFECT Exception Reporter:

Description Jesse Glick 2010-07-12 20:55:16 UTC
Most code which uses ModuleInfo.owns actually iterates all available modules until it finds the right one. This is wasteful, when the implementation can determine the owner of a given class (if there is one) in O(1) time.
Comment 1 Jesse Glick 2010-07-12 21:44:05 UTC

*** This bug has been marked as a duplicate of bug 157828 ***