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: | Do not use getClass().getResource() in forms | ||
---|---|---|---|
Product: | guibuilder | Reporter: | Jesse Glick <jglick> |
Component: | Code | Assignee: | issues@guibuilder <issues> |
Status: | NEW --- | ||
Severity: | blocker | CC: | nickdegraeve |
Priority: | P4 | ||
Version: | 6.x | ||
Hardware: | All | ||
OS: | All | ||
Issue Type: | DEFECT | Exception Reporter: | |
Attachments: | Suggested patch |
Description
Jesse Glick
2009-02-18 20:22:40 UTC
Since it uses an absolute icon path, a subclass would still be able to load the icon even if it were in a different package, and probably even if in a different class loader (unless package restrictions are in effect). Still poor style and may trigger warnings from code style checkers looking for getClass().getResource("relative") which is always wrong. Created attachment 77125 [details]
Suggested patch
*** Bug 122477 has been marked as a duplicate of this bug. *** |