This patch accompanies test file gnu.testlet.java.awt.BorderLayout.maxLayoutSize . We now pass all these tests. This fixes part of PR 25233 so I've attached it to that bug report with a comment. I'll work on the remaining part of the bug now.
2005-12-06 Anthony Balkissoon <[EMAIL PROTECTED]> * java/awt/BorderLayout.java: (maximumLayoutSize): Don't calculate anything, just return a new Dimension with Integer.MAX_VALUE for both dimensions. --Tony
Index: java/awt/BorderLayout.java =================================================================== RCS file: /cvsroot/classpath/classpath/java/awt/BorderLayout.java,v retrieving revision 1.21 diff -u -r1.21 BorderLayout.java --- java/awt/BorderLayout.java 8 Nov 2005 14:29:54 -0000 1.21 +++ java/awt/BorderLayout.java 6 Dec 2005 16:22:32 -0000 @@ -415,7 +415,7 @@ */ public Dimension maximumLayoutSize(Container target) { - return calcSize(target, MAX); + return new Dimension (Integer.MAX_VALUE, Integer.MAX_VALUE); } /**
_______________________________________________ Classpath-patches mailing list Classpath-patches@gnu.org http://lists.gnu.org/mailman/listinfo/classpath-patches