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 a
I don't know why it's happening, but a workaround is easy:
@Override public > void postEvent( Context context, E code, Object additionalData) { Object tmp = code; if (tmp instanceof LogEvent.Type) { LogEvent.Type scode = (LogEvent.Type)tmp; ...
It's ugly, but it works...