Imported GNU Classpath 0.20

Imported GNU Classpath 0.20
       * Makefile.am (AM_CPPFLAGS): Add classpath/include.
       * java/nio/charset/spi/CharsetProvider.java: New override file.
       * java/security/Security.java: Likewise.
       * sources.am: Regenerated.
       * Makefile.in: Likewise.

From-SVN: r109831
This commit is contained in:
Mark Wielaard 2006-01-17 18:09:40 +00:00
parent bcb36c3e02
commit 2127637945
444 changed files with 75778 additions and 30731 deletions

View file

@ -335,8 +335,15 @@ public class BoxLayout implements LayoutManager2, Serializable
checkTotalRequirements();
Insets i = container.getInsets();
return new Dimension(xTotal.maximum + i.left + i.right,
yTotal.maximum + i.top + i.bottom);
int xDim = xTotal.maximum + i.left + i.right;
int yDim = yTotal.maximum + i.top + i.bottom;
// Check for overflow
if (xDim < xTotal.maximum)
xDim = Integer.MAX_VALUE;
if (yDim < yTotal.maximum)
yDim = Integer.MAX_VALUE;
return new Dimension(xDim, yDim);
}
}