wyona / yarep

4 stars 1 forks source link

Copy on write #3

Open michaelwechner opened 12 years ago

michaelwechner commented 12 years ago

The branch copy-on-write does not seem to work with java version "1.6.0_31"

http://www.coderanch.com/t/501383/java/java/package-java-nio-file-does

EOL of Java 1.6 seems to be by Nov 2012 (http://www.oracle.com/technetwork/java/eol-135779.html), but even though we cannot expect people to switch to Java 1.7 right away.

Do we have an alternative for java.nio.file package, which also works with Java 1.6?

csstaub commented 12 years ago

It would be possible to use a regular file move, but then that would defeat the purpose of the copy-on-write mechanism. In that case, it would only make sense to enable copy-on-write when using (at least) Java 7.