Is it possible somehow to check at COMPILE time do classType points to an abstract type? Runtime check can be done:
void foo(Class<? extends SubType> classType) {
Modifier.isAbstract(classType.getModifiers());
}
foo(AbstractType.class); // this should pass
foo(NotAbstractType.class); // this should fail
If same could be done at COMPILE time?