-
Bug
-
Resolution: Fixed
-
P3
-
23
-
b05
-
generic
-
generic
Issue | Fix Version | Assignee | Priority | Status | Resolution | Resolved In Build |
---|---|---|---|---|---|---|
JDK-8336136 | 23.0.1 | Jan Lahoda | P3 | Resolved | Fixed | b03 |
JDK-8335437 | 23 | Jan Lahoda | P3 | Resolved | Fixed | b31 |
ADDITIONAL SYSTEM INFORMATION :
Tested on Windows 11 OpenJDK 23 build 27/26
A DESCRIPTION OF THE PROBLEM :
When jshell.exe starts it launches any executable called "test.exe" that is in the Path
STEPS TO FOLLOW TO REPRODUCE THE PROBLEM :
Setup path and verify no version of test.exe is in your path:
set Path=C:\java\jdk-23\bin
test.exe
=> Reports 'test.exe' is not recognized as an internal or external command,
operable program or batch file.
Then setup Path with any executable as test.exe: I just copied Notepad++.exe to a new folder:
> mkdir c:\Temp\abc
> copy "\Program Files\Notepad++\notepad++.exe" c:\Temp\abc
> set Path=C:\java\jdk-23\bin;c:\Temp\abc
> jshell
EXPECTED VERSUS ACTUAL BEHAVIOR :
EXPECTED -
Notepad++should not be launched each time I run jshell.exe.
Works as expected in JDK22
ACTUAL -
In JDK23 jshell launches Notepad++ (or whatever was copied as test.exe in the path).
CUSTOMER SUBMITTED WORKAROUND :
Remove all executables called "test.exe" from the Path
FREQUENCY : always
Tested on Windows 11 OpenJDK 23 build 27/26
A DESCRIPTION OF THE PROBLEM :
When jshell.exe starts it launches any executable called "test.exe" that is in the Path
STEPS TO FOLLOW TO REPRODUCE THE PROBLEM :
Setup path and verify no version of test.exe is in your path:
set Path=C:\java\jdk-23\bin
test.exe
=> Reports 'test.exe' is not recognized as an internal or external command,
operable program or batch file.
Then setup Path with any executable as test.exe: I just copied Notepad++.exe to a new folder:
> mkdir c:\Temp\abc
> copy "\Program Files\Notepad++\notepad++.exe" c:\Temp\abc
> set Path=C:\java\jdk-23\bin;c:\Temp\abc
> jshell
EXPECTED VERSUS ACTUAL BEHAVIOR :
EXPECTED -
Notepad++should not be launched each time I run jshell.exe.
Works as expected in JDK22
ACTUAL -
In JDK23 jshell launches Notepad++ (or whatever was copied as test.exe in the path).
CUSTOMER SUBMITTED WORKAROUND :
Remove all executables called "test.exe" from the Path
FREQUENCY : always
- backported by
-
JDK-8335437 jshell.exe runs an executable test.exe on startup
-
- Resolved
-
-
JDK-8336136 jshell.exe runs an executable test.exe on startup
-
- Resolved
-
- links to
-
Commit openjdk/jdk/4e523209
-
Commit openjdk/jdk/99d2bbf7
-
Review openjdk/jdk/19828
-
Review openjdk/jdk/19939
(1 links to)