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.
The code generated when getting resources is getClass().getResource(..) but it may be unsafe according to FindBugs (http://findbugs.sourceforge.net/bugDescriptions.html#UI_INHERITANCE_UNSAFE_GETRESOURCE): "Usage of GetResource may be unsafe if class is extended Calling this.getClass().getResource(...) could give results other than expected if this class is extended by a class in another package."
could you be more precise ? which module generates this code or where we can find it ? thanks in advance
Without requested information for long time - INVALID. We can't do anything in this case, so please reporter add requested information and reopen issue. Thanks in advance.
My apologies for not reacting sooner. I don't know the exact name of the module but the code is generated when you try to set an icon for a Swing component using the "Properties" window of the "Design" view. Example of the code generated when an icon is set for a JButton: jButton1.setIcon(new javax.swing.ImageIcon(getClass().getResource("/javaapplication3/myIcon.gif")));
Reassigning to form for further evaluation.
*** This bug has been marked as a duplicate of bug 158777 ***