1 Reply Latest reply on Jan 14, 2010 12:06 PM by Andrew Rubinger

    Java 7 - java.nio.file.Path(s)

    Aslak Knutsen Master

      As Nicklas Karlsson so kindly pointed out, the upcoming Java 7 release has a some new classes in the nio package.


      * [java.nio.file.Path|http://download.java.net/jdk7/docs/api/java/nio/file/Path.html]

      * [java.nio.file.Paths|http://download.java.net/jdk7/docs/api/java/nio/file/Paths.html]


      [The Java NIO.2 File System in JDK 7|http://java.sun.com/developer/technicalArticles/javase/nio/]


      ... java.io.file.Path, which in the new API is the equivalent to the java.io.File ...



      ShrinkWrap should probably support this in some future release, but the naming conflicts with our own classes:

      * org.jboss.shrinkwrap.api.Path

      * org.jboss.shrinkwrap.api.Paths


      Using all of these classes in the same API will make it a bit cumbersome.

      Think java.util.Date - java.sql.Date.


      Since it's fat chance we can get JDK 7 to change, I believe we should.



      * org.jboss.shrinkwrap.api.ArchivePath

      * org.jboss.shrinkwrap.api.ArchivePaths