Xyz is not within the bounds of T
I have the following class:
public class Blub extends AbstractPreloadDefinition<AddressmasterModel>
The javac compiler is giving me the following error:
Error: (15, 79) java: argument of type AddressmasterModel is not within the bound of a variable of type T
AbstractPreloadDefinition
as follows:
abstract class AbstractPreloadDefinition<T extends PersistedEntity<?>> implements PreloadDefinition<T>
and AddressmasterModel
looks like this:
public abstract class AddressmasterModel<V extends VoucherModel> implements Serializable, Auditable, PersistedEntity<Integer>, Comparable<AddressmasterModel<V>>
So it AddressmasterModel
does PersistedEntity
. Where is the mistake? I can not find him:/
I am using IntelliJ 2017.1 and javac as compiler. If I switch to eclipse as compiler this error goes away ...
+3
source to share