静态getter方法返回null,但返回的属性不为NULL

时间:2019-09-09 08:06:43

标签: java eclipse java-7

我有以下静态方法:

public static String getFile2kvleistPath() {
    return file2kvleistPath;
}

其中file2kvleistPath是定义如下的类成员:

public class KvleistNamingConstants {

    private static String file2kvleistPath;

    //.... more code here
}

当我在Eclipse中调试应用程序时,在调试器中看到以下内容:

enter image description here

当我使用F5在Debugger中输入方法时,会看到以下内容:

enter image description here

那怎么可能?它有名字吗?有人看到过这样的东西吗?!

1 个答案:

答案 0 :(得分:0)

重新启动Windows很有帮助。我没有问题了。