diff -r 2b8d397c03a4 -r 046c9ccca33d jdk/src/java.desktop/share/classes/sun/swing/FilePane.java --- a/jdk/src/java.desktop/share/classes/sun/swing/FilePane.java Mon Jan 23 11:59:48 2017 -0800 +++ b/jdk/src/java.desktop/share/classes/sun/swing/FilePane.java Tue Jan 24 11:37:32 2017 +0300 @@ -548,7 +548,7 @@ actions = actionList.toArray(new Action[actionList.size()]); } - return actions; + return Arrays.copyOf(actions, actions.length); } protected void createActionMap() {