--- old/test/java/awt/GridBagLayout/GridBagLayoutIpadXYTest/GridBagLayoutIpadXYTest.java 2015-06-18 01:21:54.792761789 -0700 +++ new/test/java/awt/GridBagLayout/GridBagLayoutIpadXYTest/GridBagLayoutIpadXYTest.java 2015-06-18 01:21:54.542760230 -0700 @@ -1,5 +1,5 @@ /* - * Copyright (c) 2009, Oracle and/or its affiliates. All rights reserved. + * Copyright (c) 2009, 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 @@ -23,7 +23,7 @@ /* test - @bug 5004032 + @bug 5004032 8081361 @summary GridBagConstraints.ipad(x|y) defined in a new way @author dav@sparc.spb.su area= @run applet GridBagLayoutIpadXYTest.html @@ -81,8 +81,8 @@ } Dimension minSize = jtf.getMinimumSize(); - if ( minSize.width + customIpadx != jtf.getSize().width || - minSize.height + customIpady != jtf.getSize().height ){ + if (!(minSize.width + customIpadx <= jtf.getSize().width) || + !(minSize.height + customIpady <= jtf.getSize().height)){ System.out.println("TextField originally has min size = " + jtf.getMinimumSize()); System.out.println("TextField supplied with ipadx = 300, ipady =40"); System.out.println("Frame size: " + frame.getSize());