-
Type:
Bug
-
Resolution: Duplicate
-
Priority:
P3
-
None
-
Affects Version/s: 25.0.1
-
Component/s: core-libs
-
generic
-
generic
A DESCRIPTION OF THE PROBLEM :
A file "" is reported to exist, in the past it didn't.
REGRESSION : Last worked in version 21.0.9
STEPS TO FOLLOW TO REPRODUCE THE PROBLEM :
$ jshell
| Welcome to JShell -- Version 25.0.1
| For an introduction type: /help intro
jshell> new File("").exists()
$1 ==> true
while
$ jshell
| Welcome to JShell -- Version 21.0.8
| For an introduction type: /help intro
jshell> new File("").exists()
$1 ==> false
EXPECTED VERSUS ACTUAL BEHAVIOR :
EXPECTED -
false
---------- BEGIN SOURCE ----------
new File("").exists()
---------- END SOURCE ----------
A file "" is reported to exist, in the past it didn't.
REGRESSION : Last worked in version 21.0.9
STEPS TO FOLLOW TO REPRODUCE THE PROBLEM :
$ jshell
| Welcome to JShell -- Version 25.0.1
| For an introduction type: /help intro
jshell> new File("").exists()
$1 ==> true
while
$ jshell
| Welcome to JShell -- Version 21.0.8
| For an introduction type: /help intro
jshell> new File("").exists()
$1 ==> false
EXPECTED VERSUS ACTUAL BEHAVIOR :
EXPECTED -
false
---------- BEGIN SOURCE ----------
new File("").exists()
---------- END SOURCE ----------
- 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
-