Exception in thread "main" java.lang.IllegalArgumentException: Attempt to use non-static field with ReferenceType
我跟踪下面的代码:
if(!var5.isStatic()) {
throw new IllegalArgumentException("Attempt to use non-static field with ReferenceType");
}
我的班级是:
public class App {
private String version;
private int system;}
我知道不是静态的,但我想得到版本的值,但值的类型是com.sun.jdi.ObjectReference,那么我怎么能得到版本的值?