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

Alexander Scherbatiy alexandr.scherbatiy at oracle.com
Wed Aug 7 14:44:00 UTC 2013


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.




More information about the swing-dev mailing list