file - Possible error in the oracle java tutorial? -
from this oracle java tutorial:
the asfileattribute method accepts set of file permissions , constructs file attribute can passed path.createfile or path.createdirectory method.
did mean files.createfile
?
the documentation correct no more date.
in jdk7 build b129, abstract method path.createfile present in abstract class path. in jdk 7 build b130 abstract path class becomes interface , method moved in files class.
here link changeset in openjdk 7 mercurial repository.
-public abstract class path - implements fileref, comparable<path>, iterable<path>, watchable +public interface path + extends comparable<path>, iterable<path>, watchable
and link related bug in jdk bug system.
Comments
Post a Comment