-
Type:
Bug
-
Resolution: Duplicate
-
Priority:
P4
-
Affects Version/s: 25, 26
-
Component/s: core-libs
ADDITIONAL SYSTEM INFORMATION :
Java Runtime 25+ on macOS, windows, linux.
A DESCRIPTION OF THE PROBLEM :
WithJDK-8024695 the behaviour of the File class was changed to behave similar to NIO classes.
This breaks a lot of legacy apps which rely on the former behaviour and were created 10+ years ago.
From comments in the mentioned bug a compat knob was planned but not implemented.
REGRESSION : Last worked in version 24
Java Runtime 25+ on macOS, windows, linux.
A DESCRIPTION OF THE PROBLEM :
With
This breaks a lot of legacy apps which rely on the former behaviour and were created 10+ years ago.
From comments in the mentioned bug a compat knob was planned but not implemented.
REGRESSION : Last worked in version 24
- caused by
-
JDK-8024695 new File("").exists() returns false whereas it is the current working directory
-
- Resolved
-
- duplicates
-
JDK-8370216 Fix of new File("").exists() causes undefined behavior in libraries
-
- In Progress
-
-
JDK-8371214 File.exists() method returns true on Java 25, false on Java 24 and before
-
- Closed
-