java.nio.file API with JDK 1.6 and older
Alan Bateman
Alan.Bateman at oracle.com
Sun Jun 26 13:07:45 PDT 2011
Semen,
There have been a couple of projects started to get this API working
with jdk6 but I don't know if anyone actually released anything. A
non-technical snag is that the API would need to be in its own name
spaces (can't be java.**). Another thing to keep in mind is that the
API isn't standalone as it includes changes in other areas
(java.nio.channels in particular). Otherwise I think the only technical
issue is that there are a dependencies on some JDK internal classes
(such as sun.misc.Unsafe) that will require attention.
You asked about tests and I would expect the tests in
jdk/test/java/nio/file/** will be useful. The test harness we use is
jtreg [1] so you would need to change them if you wan to use JUnit or
another test framework.
I can't help on the license questions.
-Alan
[1] http://openjdk.java.net/jtreg/index.html
More information about the nio-discuss
mailing list