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.
I tried to count number of java.util.MissingResourceException that are caught in NbLocalizer and ignored. 853 missing resources during warmup related to base and Java editor settings. The number raises to 1720 if any XML document is opened. They are ignored - does it mean it is OK or is it a bug? Why these resources are loaded? At least you can do it lazily.
It is OK. It is happening during the creating of editor actions and putting additional properties to action like Action.SHORT_DESCRIPTION or BaseAction.POPUP_MENU_TEXT See constructor BaseAction(String name, int updateMask) "short description" and "popup menu text" are retrieving from locales. If there is no localized text for them, null is set.
Maybe that you really want to find popup menu text so that it is possible to create popup menu quickly. Why you need short description? Anyway the way how it is searched is bad. The cost of exception creating is much higher than for any oher object. The code produces many of them and forces processing of many bundles. It means that the whole operation is too expensive.
Yes, Radim. You are right. We would like to get rid of NbLocalizer later. As a short term solution of this issue we will load the resources lazily. And as for short description, it is needed i.e. in keybindings property editor.
fixed in [maintrunk] /cvs/editor/libsrc/org/netbeans/editor/BaseAction.java,v <-- BaseAction.java new revision: 1.31; previous revision: 1.30
additional minor fix Get the short description name (instead of action name) for popup items if there is no specific localized text for them /cvs/editor/libsrc/org/netbeans/editor/BaseAction.java,v <-- BaseAction.java new revision: 1.32; previous revision: 1.31
Radime, could you please verify this issue? Thanks
Verified