On Fri, 2 Jan 2026 02:42:50 GMT, Jeremy Wood <[email protected]> wrote:

>> 4197755 is marked as a duplicate of 
>> [JDK-8176501](https://bugs.openjdk.org/browse/JDK-8176501) , but I think 
>> that is a mistake. The complaint in that ticket still reproduces, and it is 
>> resolved in this PR.
>> 
>> The complaint is: Arc2D.getBounds() is too large. If an Arc2D represents a 
>> small slice of an ellipse, then Arc2D.getBounds() always returns the size of 
>> the total ellipse. Arc2D.getBounds2D(), by contrast, has been 
>> "high-precision" for decades.
>> 
>> This PR makes Arc2D.getBounds() resemble the same implementation already 
>> used in Area, CubicCurve2D, Line2D, Path2D, and QuadCurve2D:
>> 
>>     public Rectangle getBounds() {
>>         return getBounds2D().getBounds();
>>     }
>> 
>> 
>> This modifies (simplifies) the javadoc for Arc2D.getBounds2D(). If we 
>> generally like this PR I assume we'll need a CSR to approve the javadoc 
>> change.
>
> Jeremy Wood has updated the pull request incrementally with one additional 
> commit since the last revision:
> 
>   4197755: Updating copyright year

I'm not very familiar with CSR's, so please let me know if this needs 
improvement/rewriting: https://bugs.openjdk.org/browse/JDK-8374859

-------------

PR Comment: https://git.openjdk.org/jdk/pull/26715#issuecomment-3727835732

Reply via email to