Hi!

This patch improves the reference implementation of several VMFile methods 
(isHidden, getName, isAbsolute, toURL).

ChangeLog entries:
        * vm/reference/java/io/VMFile.java:
        (canWriteDirectory(File)): Remove unused method.
        (listRoots()): Add FIXME.
        (isHidden(String)): Filter out "." and ".." cases; inline getName()
        call for Unix case.
        (getName(String)): Use PlatformHelper.beginWithRootPathPrefix() and
        handle all Windows path cases correctly.
        (isAbsolute(String)): Likewise.
        (isAbsolute(String)): Update the documentation.
        (toURL(File)): Don't append '/' if the path is already terminated
        with it; handle Windows UNC paths.

Regards.

Attachment: classpath-ivmai-36.diff
Description: Binary data

Reply via email to