错误:找不到符号' MENU_SELECTION_MANAGER_LISTENER_KEY'

时间:2015-06-02 13:34:35

标签: java compiler-errors java-7 src rt.jar

我编译了jdk源代码(jdk-7u79-linux-x64.tar.gz)并遇到以下错误。

jdk_src/javax/swing/MenuSelectionManager.java:66: error: cannot find symbol
                Object o = context.get(SwingUtilities2.MENU_SELECTION_MANAGER_LISTENER_KEY);
                                                      ^
  symbol:   variable MENU_SELECTION_MANAGER_LISTENER_KEY
  location: class SwingUtilities2

SwingUtilities2.java中根本没有src.zip,无处可定义MENU_SELECTION_MANAGER_LISTENER_KEY。如何解决?

0 个答案:

没有答案