Adding Path-based constructors to various classes

Andrew Luo andrewluotechnologies at outlook.com
Tue Dec 18 00:12:00 UTC 2018


Many classes such as:

https://docs.oracle.com/en/java/javase/11/docs/api/java.base/java/io/RandomAccessFile.html
https://docs.oracle.com/en/java/javase/11/docs/api/java.base/java/util/zip/ZipFile.html

have constructors that use the File API or String but no constructor that takes Path.  Is there any interest in adding these?  The reason I ask this is because we now encourage new code to use Path instead of File, so having to do .toFile() in many places can seems unnecessary.  Then again, this is a minor annoyance, but I think it is a useful addition.  What do you guys think?

Thanks,

-Andrew


More information about the core-libs-dev mailing list