Problem when patching platform modules that use @Message annotation

"jhuber" <[email protected]>
Newsgroups gmane.comp.java.netbeans.modules.openide.devel
Message-ID <[email protected]>
Hello!

I'm trying to patch a platform module for the first time.  It seems to work fine, except when I have classes that use the @Message annotation.  I have set up for patching modules per the following FAQ:
http://wiki.netbeans.org/DevFaqOrphanedNetBeansOrgModules

Many of the classes use a construct like

Code:
import static org.netbeans.modules.autoupdate.ui.Bundle.*;



The are no red flags in the IDE, but there is a compiler error when compiling or building:

Code:
error: cannot find symbol
import static org.netbeans.modules.autoupdate.ui.Bundle.*;
  symbol:   class Bundle
  location: package org.netbeans.modules.autoupdate.ui



A typical usage would be 

Code:
@Messages("CTL_OsgiBundleFilterDescription=OSGi Bundle files (*.jar)")
        public String getDescription() {
            return CTL_OsgiBundleFilterDescription(); // NOI18N
        }



If I comment out the import line, and use Bundle. CTL_OsgiBundleFilterDescription();, there are no red flags in the IDE, but compile still fails with

Code:
error: cannot find symbol
            return Bundle.CTL_OsgiBundleFilterDescription(); // NOI18N
  symbol:   variable Bundle
  location: class OsgiBundleFilter



I'm using JDK 7 for the module patching (as required by 8.0.2); I switched back to JDK 6, but the problem still occurs.  It seems that the compiler cannot find the items created from the annotations.  

Any ideas? I suspect something is wrong in my patching setup, but not sure what.

Thanks!
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.