My arch nemesis is back to haunt me again.... GRRRR

For some reason 150+ packages build fine. This ONE package "editor"
fails unless it can find Bundle.properties. It is just 1 class or the
classes in 1 directory. I do not get any other errors about missing
bundles. There are several, so something must be different to cause
this one to fail and no others. Its 1 error not more, so other
Bundle.properties are not needed at compile. Bundle.class is but this
is before that is even generated.

src/org/netbeans/modules/editor/impl/actions/NavigationHistoryLastEditAction.java:44:
error: Cannot find resource
org/netbeans/modules/editor/impl/actions/Bundle.properties public final
class NavigationHistoryLastEditAction extends BaseAction implements
PropertyChangeListener { ^

1 error
13 warnings

Which means my deleting and re-generation causes a problem there. Since
once I delete it causes it to not be found. If I do not delete, it is
not generated. Thus I get bundle error message at runtime.

java.util.MissingResourceException: Can't find resource for bundle
org.openide.util.NbBundle$PBundle, key CTL_ExportHtmlAction at
java.base/java.util.ResourceBundle.getObject(ResourceBundle.java:544)
at
java.base/java.util.ResourceBundle.getString(ResourceBundle.java:501)
at org.openide.util.NbBundle.getMessage(NbBundle.java:617) at
org.netbeans.modules.editor.ExportHtmlAction.getName(ExportHtmlAction.java:210)

Though in this case I can see the messages in Bundle.properties. Why it
cannot find I have no idea.

$ unzip -p /usr/share/netbeans-editor-9/lib/netbeans-editor.jar
org/netbeans/modules/editor/Bundle.properties | grep
CTL_ExportHtmlAction CTL_ExportHtmlAction=Print to &HTML...

The Bundle.properties is in the path its looking for and right next to
the class looking for it, and it has the right contents.

org/netbeans/modules/editor/Bundle.properties
org/netbeans/modules/editor/ExportHtmlAction.class
org/netbeans/modules/editor/ExportHtmlAction$HtmlOrDirFilter.class
org/netbeans/modules/editor/ExportHtmlAction$Presenter.class
org/netbeans/modules/editor/ExportHtmlAction$Presenter$1.class
org/netbeans/modules/editor/ExportHtmlAction$2.class
org/netbeans/modules/editor/ExportHtmlAction$1.class 
org/netbeans/modules/editor/ExportHtmlAction$1$1.class

-- 
William L. Thomson Jr.

Attachment: pgpVvASbDaCui.pgp
Description: OpenPGP digital signature

Reply via email to