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