--- old/src/java.desktop/share/classes/java/awt/PopupMenu.java 2015-03-04 01:20:46.000000000 +0300 +++ new/src/java.desktop/share/classes/java/awt/PopupMenu.java 2015-03-04 01:20:46.000000000 +0300 @@ -1,5 +1,5 @@ /* - * Copyright (c) 1996, 2014, Oracle and/or its affiliates. All rights reserved. + * Copyright (c) 1996, 2015, Oracle and/or its affiliates. All rights reserved. * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. * * This code is free software; you can redistribute it and/or modify it @@ -153,7 +153,6 @@ * parent's hierarchy * @exception RuntimeException if the parent is not showing on screen */ - @SuppressWarnings("deprecation") public void show(Component origin, int x, int y) { // Use localParent for thread safety. MenuContainer localParent = parent; @@ -177,7 +176,7 @@ throw new IllegalArgumentException("origin not in parent's hierarchy"); } } - if (compParent.getPeer() == null || !compParent.isShowing()) { + if (compParent.peer == null || !compParent.isShowing()) { throw new RuntimeException("parent not showing on screen"); } if (peer == null) {