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.
[dev jan 27] Create a public class. Create an empty private static nested class. Make the nested class implement e.g. java.util.Observer. When the dialog appears asking you to add the method update(...), accept. Added as package-private (no access modifier), when it should be public to satisfy the interface.
Probably problem of Java module.
Yes; this happens specifically when source for the interface is mounted and the `public' access is implicit (== is not specified in the source). Fixed in trunk: /cvs/java/src/org/netbeans/modules/java/codesync/ClassDependencyImpl.java,v <-- ClassDependencyImpl.java new revision: 1.27; previous revision: 1.26
Note that specifying any modifiers (public, abstract) on interface methods is discouraged (only accidentally permitted in JLS 1.0), so the *normal* case should be to have no modifiers.
Yes, of course. My point was that the bug only appears when the IDE has access to the interface's source. .class files always contain public access flag.