I developed a simple app using the path class to access and copy some file
from one directory to the other.. After few months, i upgraded my JDK and later
found put that the .copyTo method is reporting an error... Has the method been deprecated?.
the code snippet is as follow;
According to the API docs, java.nio.file.Path, that method doesn't exist. It's not marked as deprecated, which means it was never officially part of the API. Maybe you were working with a pre-release version, and the API got changed?