RFR: 8370216: Fix of new File("").exists() causes undefined behavior in libraries

Alan Bateman alanb at openjdk.org
Mon Nov 10 08:36:09 UTC 2025


On Fri, 7 Nov 2025 16:34:04 GMT, Brian Burkhalter <bpb at openjdk.org> wrote:

> That's correct. Would it be better to change it to package scope?

It doesn't matter as the class is not public so the non-private members are only access to code in the java.io package.

-------------

PR Review Comment: https://git.openjdk.org/jdk/pull/28158#discussion_r2509283806


More information about the core-libs-dev mailing list