我编译 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
。如何解决?