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.
As of Java 1.5.0_01 a certain bug in the generics support of java was fixed (see Java Bug-ID: 4856983) concerning e. g. an Enum as a generic type including an additional Interface as its erasure. A class signature like the following is now supported: public class MyClass<E extends Enum<E> & MyInterface> NetBeans editor gives a (wrong|misleading) warning for that class signature line (red underlined, tooltip saying: "class cannot directly extend java.lang.Enum"). Probably, parsing of the keyword "extend" leads to that (wrong) result.
This works for me in the current trunk build. It might have not worked in older builds on NetBeans (e.g. 4.0) since we are internally using javac for errors underlining and we were co-bundling a version that was most recent at that time and the bug was not fixed in it yet.
Reorganization of java component