Categories
Coding

Generics Problem #1 Solved

Found a solution for the generics-related error in Eclipse I mentioned earlier.

I have found a solution for the generics related error I mentioned here. The solution was to parameterize Comparable, e.g. instead of:

Foo implements Comparable
use:
Foo implements Comparable<ActionState>

This solves the issue for Eclipse. It’s slightly strange that Eclipse flags this as an error, and not IDEA.

Leave a Reply