-
Bug
-
Resolution: Fixed
-
P3
-
17, 18, 19
Issue | Fix Version | Assignee | Priority | Status | Resolution | Resolved In Build |
---|---|---|---|---|---|---|
JDK-8289940 | 17.0.5-oracle | Alexey Semenyuk | P3 | Resolved | Fixed | b02 |
JDK-8290948 | 17.0.5 | Goetz Lindenmaier | P3 | Resolved | Fixed | b01 |
A DESCRIPTION OF THE PROBLEM :
When the java application exits with a non-zero exit code, starting with JDK 17.0.2 this is reported by the .exe launcher generated by jpackage. This breaks applications that use exit codes to report results to their surrounding context.
This is a regression introduced by (seemingly left over debug code from)JDK-8272328
REGRESSION : Last worked in version 17
STEPS TO FOLLOW TO REPRODUCE THE PROBLEM :
jpackage + run the attached program
EXPECTED VERSUS ACTUAL BEHAVIOR :
EXPECTED -
app exits with status code 1
ACTUAL -
error prompt displays "Child process exited with code 1"
---------- BEGIN SOURCE ----------
public static void main(String[] args) {
System.exit(1);
}
---------- END SOURCE ----------
CUSTOMER SUBMITTED WORKAROUND :
export PATH=%PATH%;C:\path\to\installation\app
FREQUENCY : always
When the java application exits with a non-zero exit code, starting with JDK 17.0.2 this is reported by the .exe launcher generated by jpackage. This breaks applications that use exit codes to report results to their surrounding context.
This is a regression introduced by (seemingly left over debug code from)
REGRESSION : Last worked in version 17
STEPS TO FOLLOW TO REPRODUCE THE PROBLEM :
jpackage + run the attached program
EXPECTED VERSUS ACTUAL BEHAVIOR :
EXPECTED -
app exits with status code 1
ACTUAL -
error prompt displays "Child process exited with code 1"
---------- BEGIN SOURCE ----------
public static void main(String[] args) {
System.exit(1);
}
---------- END SOURCE ----------
CUSTOMER SUBMITTED WORKAROUND :
export PATH=%PATH%;C:\path\to\installation\app
FREQUENCY : always
- backported by
-
JDK-8289940 jpackage'd launcher reports non-zero exit codes with error prompt
- Resolved
-
JDK-8290948 jpackage'd launcher reports non-zero exit codes with error prompt
- Resolved
- relates to
-
JDK-8272328 java.library.path is not set properly by Windows jpackage app launcher
- Resolved
- links to
-
Commit openjdk/jdk17u-dev/c402838c
-
Commit openjdk/jdk/b9cc3bc1
-
Review openjdk/jdk17u-dev/593
-
Review openjdk/jdk/8064
(2 links to)