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 - ModuleInfo.ownerOf(Class)
Summary: ModuleInfo.ownerOf(Class)
Status: RESOLVED DUPLICATE of bug 157828
Alias: None
Product: platform
Classification: Unclassified
Component: Module System (show other bugs)
Version: 7.0
Hardware: All All
: P3 normal (vote)
Assignee: Jesse Glick
URL:
Keywords: API, PERFORMANCE
Depends on:
Blocks:
 
Reported: 2010-07-12 20:55 UTC by Jesse Glick
Modified: 2010-07-12 21:44 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 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 ***