--- old/src/share/classes/javax/swing/MenuSelectionManager.java 2014-06-30 09:09:29.000000000 -0700 +++ new/src/share/classes/javax/swing/MenuSelectionManager.java 2014-06-30 09:09:29.000000000 -0700 @@ -221,7 +221,6 @@ MenuElement menuElement; MenuElement subElements[]; MenuElement path[]; - Vector tmp; int selectionSize; p = event.getPoint(); @@ -250,7 +249,8 @@ screenX = p.x; screenY = p.y; - tmp = (Vector)selection.clone(); + @SuppressWarnings("unchecked") + Vector tmp = (Vector)selection.clone(); selectionSize = tmp.size(); boolean success = false; for (i=selectionSize - 1;i >= 0 && success == false; i--) { @@ -385,7 +385,6 @@ int cWidth,cHeight; MenuElement menuElement; MenuElement subElements[]; - Vector tmp; int selectionSize; SwingUtilities.convertPointToScreen(p,source); @@ -393,7 +392,8 @@ screenX = p.x; screenY = p.y; - tmp = (Vector)selection.clone(); + @SuppressWarnings("unchecked") + Vector tmp = (Vector)selection.clone(); selectionSize = tmp.size(); for(i=selectionSize - 1 ; i >= 0 ; i--) { menuElement = tmp.elementAt(i);