<Swing Dev> [9-client] Review Request: 8068518: IllegalArgumentException in JTree.AccessibleJTree

Vivi An vivi.an at oracle.com
Tue Feb 3 21:27:20 UTC 2015


Hello,

Please review a fix for JDK 9.

Description:
Since TreePath(Object[] path) throws /IllegalArgumentException /in case 
the passed in "path" is null or last element of the array is null. We 
need to make sure the result of TreeModel.getRoot() is not null before 
using it to create TreePath. Fix made adding null guards in related 
areas to avoid /IllegalArgumentException/when creating TreePath/.

/Nospecific testcase,  jck tests for JTree all passed. /

/Bug: https://bugs.openjdk.java.net/browse/JDK-8068518
Webrev: http://cr.openjdk.java.net/~van/8068518/webrev.00/

Thanks

Regards,

Vivi
/
/

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.openjdk.java.net/pipermail/swing-dev/attachments/20150203/aa4f22f2/attachment.html>


More information about the swing-dev mailing list