[jboss-jira] [JBoss JIRA] Resolved: (JBVFS-10) Change VirtualFile.getChildren() to return empty list for a leaf node

Ales Justin (JIRA) jira-events at lists.jboss.org
Fri Mar 28 19:20:41 EDT 2008


     [ http://jira.jboss.com/jira/browse/JBVFS-10?page=all ]

Ales Justin resolved JBVFS-10.
------------------------------

    Resolution: Done

Returning Collections.emptyList() for leaves.
Also doing a no-op on leaves for visiting.

> Change VirtualFile.getChildren() to return empty list for a leaf node
> ---------------------------------------------------------------------
>
>                 Key: JBVFS-10
>                 URL: http://jira.jboss.com/jira/browse/JBVFS-10
>             Project: JBoss VFS
>          Issue Type: Task
>            Reporter: Scott M Stark
>         Assigned To: Ales Justin
>             Fix For: 2.0.0.Beta10
>
>
> Currently calling getChildren on a VirtualFile for which isLeaf is true results in an IllegalStateException or IOException or other depending on the vfs type. This complicates the vfs api usage. We should just return an empty list in this situation.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://jira.jboss.com/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        



More information about the jboss-jira mailing list