OS:
macOS
Environments:
Operating System: macOS version 13.6.7
Language: English (Regional Setting: English)
Chip: Apple M1
Memory: 16 GB
LAF: Defult
Reproducible: Always
Failed on Release/Build: JDK_23_b26
Is it a Regression in JDK 23 release: NO
[If Regression] Regression introduced in JDK 23 release/build: N/A
Test result on the last GAed release for this train: Failed on JDK_23_b24
Is it a platform-specific issue: Yes. This issue only happens on macOS.
General description of the problem:
The case didn't get the expected PrintAbortException
Steps to reproduce:
1. Run command:
#!/bin/sh -x
export JAVA_HOME=/Users/mac13/Desktop/galahad/jdk-23/Contents/Home
export JT_HOME=/Users/mac13/Desktop/galahad/jtreg
export PATH=$PATH:$JAVA_HOME/bin:$JT_HOME/bin
jtreg \
-ignore:quiet \
-ea \
-esa \
-m \
-gui \
-vmoption:-XX:+UnlockExperimentalVMOptions -vmoption:-XX:+UseJVMCICompiler \
-nativepath:/Users/mac13/Desktop/galahad/macos-aarch64_bin-tests/jdk/jtreg/native \
-exclude:/Users/mac13/Desktop/galahad/open/test/ProblemList-galahad-ee.txt \
-testjdk:/Users/mac13/Desktop/galahad/jdk-23/Contents/Home \
-dir:/Users/mac13/Desktop/galahad/open/test/jdk \
-reportDir:results/JTreport \
-workDir:results/JTwork \
-timeoutHandlerDir:/Users/mac13/Desktop/galahad/macos-aarch64_bin-tests/failure_handler/jtregFailureHandler.jar \
-observerDir:/Users/mac13/Desktop/galahad/macos-aarch64_bin-tests/failure_handler/jtregFailureHandler.jar \
-timeoutHandler:jdk.test.failurehandler.jtreg.GatherProcessInfoTimeoutHandler \
-observer:jdk.test.failurehandler.jtreg.GatherDiagnosticInfoObserver \
-timeoutHandlerTimeout:0 \
/Users/mac13/Desktop/galahad/open/test/jdk/:jdk_desktop
2. Run test case: java/awt/print/PrinterJob/Cancel/PrinterJobCancel.java
3. Presses on the print button and wait for few seconds
4. Observe
Expected behavior:
The test case should automatically PASSED after the user presses the 'print' button.
Actual behavior:
The test case didn't get the expected PrintAbortException
Any non-default VM flags
/Users/mac13/Desktop/galahad/jdk-23/Contents/Home/bin/java \\
-Dtest.vm.opts='-ea -esa -XX:+UnlockExperimentalVMOptions -XX:+UseJVMCICompiler' \\
-Dtest.tool.vm.opts='-J-ea -J-esa -J-XX:+UnlockExperimentalVMOptions -J-XX:+UseJVMCICompiler' \\
-Dtest.compiler.opts= \\
-Dtest.java.opts= \\
-Dtest.jdk=/Users/mac13/Desktop/galahad/jdk-23/Contents/Home \\
-Dcompile.jdk=/Users/mac13/Desktop/galahad/jdk-23/Contents/Home \\
-Dtest.timeout.factor=1.0 \\
-Dtest.nativepath=/Users/mac13/Desktop/galahad/macos-aarch64_bin-tests/jdk/jtreg/native \\
-Dtest.root=/Users/mac13/Desktop/galahad/open/test/jdk \\
-Dtest.name=java/awt/print/PrinterJob/Cancel/PrinterJobCancel.java \\
-Dtest.file=/Users/mac13/Desktop/galahad/open/test/jdk/java/awt/print/PrinterJob/Cancel/PrinterJobCancel.java \\
-Dtest.src=/Users/mac13/Desktop/galahad/open/test/jdk/java/awt/print/PrinterJob/Cancel \\
-Dtest.src.path=/Users/mac13/Desktop/galahad/open/test/jdk/java/awt/print/PrinterJob/Cancel:/Users/mac13/Desktop/galahad/open/test/jdk/java/awt/regtesthelpers \\
-Dtest.classes=/Users/mac13/Desktop/galahad/results/JTwork/classes/java/awt/print/PrinterJob/Cancel/PrinterJobCancel.d \\
-Dtest.class.path=/Users/mac13/Desktop/galahad/results/JTwork/classes/java/awt/print/PrinterJob/Cancel/PrinterJobCancel.d:/Users/mac13/Desktop/galahad/results/JTwork/classes/java/awt/regtesthelpers \\
-Dtest.modules=java.desktop \\
--add-modules java.desktop \\
-ea \\
-esa \\
-XX:+UnlockExperimentalVMOptions \\
-XX:+UseJVMCICompiler \\
-Djava.library.path=/Users/mac13/Desktop/galahad/macos-aarch64_bin-tests/jdk/jtreg/native \\
com.sun.javatest.regtest.agent.MainWrapper /Users/mac13/Desktop/galahad/results/JTwork/java/awt/print/PrinterJob/Cancel/PrinterJobCancel.d/main.0.jta
result: Failed. Execution failed: `main' threw exception: java.lang.RuntimeException: Failure Reason: Didn't get the expected PrintAbortExceptionjava/awt/print/PrinterJob/Cancel/PrinterJobCancel.java
macOS
Environments:
Operating System: macOS version 13.6.7
Language: English (Regional Setting: English)
Chip: Apple M1
Memory: 16 GB
LAF: Defult
Reproducible: Always
Failed on Release/Build: JDK_23_b26
Is it a Regression in JDK 23 release: NO
[If Regression] Regression introduced in JDK 23 release/build: N/A
Test result on the last GAed release for this train: Failed on JDK_23_b24
Is it a platform-specific issue: Yes. This issue only happens on macOS.
General description of the problem:
The case didn't get the expected PrintAbortException
Steps to reproduce:
1. Run command:
#!/bin/sh -x
export JAVA_HOME=/Users/mac13/Desktop/galahad/jdk-23/Contents/Home
export JT_HOME=/Users/mac13/Desktop/galahad/jtreg
export PATH=$PATH:$JAVA_HOME/bin:$JT_HOME/bin
jtreg \
-ignore:quiet \
-ea \
-esa \
-m \
-gui \
-vmoption:-XX:+UnlockExperimentalVMOptions -vmoption:-XX:+UseJVMCICompiler \
-nativepath:/Users/mac13/Desktop/galahad/macos-aarch64_bin-tests/jdk/jtreg/native \
-exclude:/Users/mac13/Desktop/galahad/open/test/ProblemList-galahad-ee.txt \
-testjdk:/Users/mac13/Desktop/galahad/jdk-23/Contents/Home \
-dir:/Users/mac13/Desktop/galahad/open/test/jdk \
-reportDir:results/JTreport \
-workDir:results/JTwork \
-timeoutHandlerDir:/Users/mac13/Desktop/galahad/macos-aarch64_bin-tests/failure_handler/jtregFailureHandler.jar \
-observerDir:/Users/mac13/Desktop/galahad/macos-aarch64_bin-tests/failure_handler/jtregFailureHandler.jar \
-timeoutHandler:jdk.test.failurehandler.jtreg.GatherProcessInfoTimeoutHandler \
-observer:jdk.test.failurehandler.jtreg.GatherDiagnosticInfoObserver \
-timeoutHandlerTimeout:0 \
/Users/mac13/Desktop/galahad/open/test/jdk/:jdk_desktop
2. Run test case: java/awt/print/PrinterJob/Cancel/PrinterJobCancel.java
3. Presses on the print button and wait for few seconds
4. Observe
Expected behavior:
The test case should automatically PASSED after the user presses the 'print' button.
Actual behavior:
The test case didn't get the expected PrintAbortException
Any non-default VM flags
/Users/mac13/Desktop/galahad/jdk-23/Contents/Home/bin/java \\
-Dtest.vm.opts='-ea -esa -XX:+UnlockExperimentalVMOptions -XX:+UseJVMCICompiler' \\
-Dtest.tool.vm.opts='-J-ea -J-esa -J-XX:+UnlockExperimentalVMOptions -J-XX:+UseJVMCICompiler' \\
-Dtest.compiler.opts= \\
-Dtest.java.opts= \\
-Dtest.jdk=/Users/mac13/Desktop/galahad/jdk-23/Contents/Home \\
-Dcompile.jdk=/Users/mac13/Desktop/galahad/jdk-23/Contents/Home \\
-Dtest.timeout.factor=1.0 \\
-Dtest.nativepath=/Users/mac13/Desktop/galahad/macos-aarch64_bin-tests/jdk/jtreg/native \\
-Dtest.root=/Users/mac13/Desktop/galahad/open/test/jdk \\
-Dtest.name=java/awt/print/PrinterJob/Cancel/PrinterJobCancel.java \\
-Dtest.file=/Users/mac13/Desktop/galahad/open/test/jdk/java/awt/print/PrinterJob/Cancel/PrinterJobCancel.java \\
-Dtest.src=/Users/mac13/Desktop/galahad/open/test/jdk/java/awt/print/PrinterJob/Cancel \\
-Dtest.src.path=/Users/mac13/Desktop/galahad/open/test/jdk/java/awt/print/PrinterJob/Cancel:/Users/mac13/Desktop/galahad/open/test/jdk/java/awt/regtesthelpers \\
-Dtest.classes=/Users/mac13/Desktop/galahad/results/JTwork/classes/java/awt/print/PrinterJob/Cancel/PrinterJobCancel.d \\
-Dtest.class.path=/Users/mac13/Desktop/galahad/results/JTwork/classes/java/awt/print/PrinterJob/Cancel/PrinterJobCancel.d:/Users/mac13/Desktop/galahad/results/JTwork/classes/java/awt/regtesthelpers \\
-Dtest.modules=java.desktop \\
--add-modules java.desktop \\
-ea \\
-esa \\
-XX:+UnlockExperimentalVMOptions \\
-XX:+UseJVMCICompiler \\
-Djava.library.path=/Users/mac13/Desktop/galahad/macos-aarch64_bin-tests/jdk/jtreg/native \\
com.sun.javatest.regtest.agent.MainWrapper /Users/mac13/Desktop/galahad/results/JTwork/java/awt/print/PrinterJob/Cancel/PrinterJobCancel.d/main.0.jta
result: Failed. Execution failed: `main' threw exception: java.lang.RuntimeException: Failure Reason: Didn't get the expected PrintAbortExceptionjava/awt/print/PrinterJob/Cancel/PrinterJobCancel.java
- duplicates
-
JDK-8341043 [macos15] java/awt/print/PrinterJob/Cancel/PrinterJobCancel.java fails on aarch64
- Closed
-
JDK-8343116 java/awt/print/PrinterJob/Cancel/PrinterJobCancel.java fails with java.lang.NullPointerException: Null component provided to invokeLater
- Closed
- links to
-
Review(master) openjdk/jdk/20027