views:

237

answers:

3
A: 

I've just copied an pasted your code into my Eclipse Galileo and got no errors. What version of eclipse are you on?

Hannes de Jager
+1  A: 

With the latest Eclipse, I don't get the errors you're getting - so probably an Eclipse bug in your version.

At the same time, I think your AbstractModel should probably be

public abstract class AbstractModel<E extends Enum<E>>

If E extends Enum<? extends E>, then there must be some type T that extends E. So you then have E extends Enum<T>, where T itself extends E, meaning E is extending itself, meaning the only possible resolution here is that the Enum is Enum<E>.

Possibly, it's this oddity that's causing the errors in your version.

Jon Bright
A: 

Please delete this question.

The abstract class had an import of a package that should not be there and was causing the problem.

Tazzy531