void (String[] args) { Factory factory = new Factory(); final Class<? extends ClassB> bClass = null; ClassB b = factory.create(bClass); String str = <error descr="Incompatible types. Found: 'capture<? extends Test.ClassB>', required: 'java.lang.String'">factory.create(bClass);</error> }