Hi Everyone, I came up with this solution here:
@Override
public Object clone() throws CloneNotSupportedException {
        if(this instanceof B && !(this instanceof C)) return new CloneNotSupportedException();
    return super.clone();
}
During testing it works fine but it won't pass the validator. I wonder if there is a test case in which it won't work? Is this solution just wrong? Or maybe it's too specific to this particular case and a more general solution would be better? Any help would be greatly appreciated to understand why it doesn't work. Thanks in advanced!