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

Popular posts from this blog

image - ClassNotFoundException when add a prebuilt apk into system.img in android -

I need to import mysql 5.1 to 5.5? -

Java, Hibernate, MySQL - store UTC date-time -