<Swing Dev> [8] Review request for 7121409 Two conformance tests for AccessibleText.getCharacterBounds(int i) fail

Sergey Bylokhov Sergey.Bylokhov at oracle.com
Wed Aug 7 17:12:25 UTC 2013


Hi, Alexander.
Fix looks fine.

On 07.08.2013 18:44, Alexander Scherbatiy wrote:
>
> Hello,
>
> Could you review the fix:
>   bug: http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=7121409
>   webrev: http://cr.openjdk.java.net/~alexsch/7121409/webrev.00
>
>
> The javadoc for the method "Rectangle getCharacterBounds(int i)" from 
> javax.swing.JLabel class declares:
> "Determines the bounding box of the character at the given index into 
> the string. The bounds are returned in local coordinates. If the index 
> is invalid an empty rectangle is returned."
> But the method always returns null for an invalid index since JDK 1.4.0.
>
> The fix updates the javadoc to mention that the method returns null 
> for the invalid index.
>
> The necessary CCC request has been approved.
>
>
> Thanks,
> Alexandr.
>


-- 
Best regards, Sergey.




More information about the swing-dev mailing list