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 build 200607291900 Given: public class Encloser1 { public static interface IConfiguration {} public static interface IConfigurationProvider { IConfiguration getClass(Class<? extends Encloser1.class>); } } class Encloser2 { public static interface IConfiguration extends Encloser1.IConfigurationProvider {} public static interface IConfigurationProvider { IConfiguration getClass(Class<? extends Encloser2.class>); } } class Configuration implements Encloser2.IConfigurationProvider { public Encloser1.IConfiguration getClass(Class<? extends Encloser1.class>) { // Netbeans shows an annotation showing this method implements an interface } public Encloser2.IConfiguration getClass(Class<? extends Encloser2.class>) { // Netbeans does not add an annotation to indicate that this method Encloser2.IConfigurationProvider } } I suspect there might be a problem to do with Generics erasure. I'd expect Netbeans to handle this better, by flagging errors if providing public Encloser2.IConfiguration getClass(Class<? extends Encloser2.class>) is illegal, otherwise show the "implements" annotation in the UI.
Can you provide directly the file, please? I've got some syntax error from code you've posted, and I'd like to test it with exactly the same code as you.
Created attachment 32542 [details] Testcase
I've updated a testcase for this issue which also shows a related bug I have not discussed before. "Override methods" does not display a Generic abstract method that the class is required to implement, a compiler error occurs if it is omitted. Please let me know if you are able to reproduce both on your end.
Yes, I can confirm both errors.
Javacore module was replaced by Retouche infrastructure. This bug is not valid in trunk any more.
Reorganization of java component