I have the following code:
private static CtClass resolveCtClass(String clazz) throws NotFoundException {
ClassPool pool = ClassPool.getDefault();
return pool.get( clazz );
}
When running under JDK8, if this method is called using java.io.Serializable
, it works, but when running under the JDK9 environment, it throws the NotFoundException
.
Is there something I overlooked here?