The getBounds2D() method in java.awt.geom.Path2D, java.awt.geom.CubicCurve2D and java.awt.geom.QuadCurve2D now return a more concise bounding box.
Without this change the getBounds2D() methods may return a bounding box based on the bezier control points of curves. Sometimes it would return a bounding box that has too much space between the visual bounds of the shape and the bounding box.
Update the implementation to be more precise in the returned bounding box. The caveat is that applications which used the imprecise bounds to (for example) size a UI may be adversely impacted. However that would definitely be an application bug.
There is no change to the Java SE specification for the affected methods which are
public Rectangle java.awt.geom.Path2D.getBounds(); public Rectangle java.awt.geom.CubicCurve2D.getBounds(); public Rectangle java.awt.geom.QuadCurve2D.getBounds();