javac error: inconvertible types with generics?
问题 There are several other SO questions talking about generics compiling OK w/ Eclipse's compiler but not javac (i.e. Java: Generics handled differenlty in Eclipse and javac and Generics compiles and runs in Eclipse, but doesn't compile in javac) -- however this looks like a slightly different one. I have an enum class: public class LogEvent { public enum Type { // ... values here ... } ... } and I have another class with a method that takes in arbitrary objects of types descended from Enum :