Exception in thread "main" java.lang.IllegalArgumentException: object is not an instance of declaring class 对象不是声明类的实例,需要的是一个声明类的实例,而不是声明类本身。