8377167: javax/imageio/ReadAbortTest.java throw NPE when x11 unavailable#29569
8377167: javax/imageio/ReadAbortTest.java throw NPE when x11 unavailable#29569sendaoYan wants to merge 1 commit intoopenjdk:masterfrom
Conversation
|
👋 Welcome back syan! A progress list of the required criteria for merging this PR into |
|
@sendaoYan This change now passes all automated pre-integration checks. ℹ️ This project also has non-automated pre-integration requirements. Please see the file CONTRIBUTING.md for details. After integration, the commit message for the final commit will be: You can use pull request commands such as /summary, /contributor and /issue to adjust it as needed. At the time when this comment was updated there had been 4 new commits pushed to the
As there are no conflicts, your changes will automatically be rebased on top of these commits when integrating. If you prefer to avoid this automatic rebasing, please check the documentation for the /integrate command for further details. ➡️ To integrate this PR with the above commit message to the |
|
@sendaoYan The following label will be automatically applied to this pull request:
When this pull request is ready to be reviewed, an "RFR" email will be sent to the corresponding mailing list. If you would like to change these labels, use the /label pull request command. |
|
This does not make one bit of sense. These tests do nothing with DISPLAY. They do not start AWT. |
Since DISPLAY is set, the GraphicsEnvironment considers the system as headful and tries to connect to display. After this patch, the test will not pass in that environment but will instead show the real stack trace. java.awt.AWTError: Can't connect to X11 window server using ':123' as the value of the DISPLAY variable. |
|
Going to push as commit d93bd18.
Your commit was automatically rebased without conflicts. |
|
@sendaoYan Pushed as commit d93bd18. 💡 You may see a message that your pull request was closed with unmerged commits. This can be safely ignored. |
Hi all,
Test javax/imageio/ReadAbortTest.java and javax/imageio/WriteAbortTest.java throw java.lang.NullPointerException when x11 display unavailable, because object
pathunable to initial. This PR check thepathis null or not before use it, this will make test failure report friendly when x11 display unavailable but DISPLAY was seted.Change has been verified locally on linux-x64.
Progress
Issue
Reviewers
Reviewing
Using
gitCheckout this PR locally:
$ git fetch https://git.openjdk.org/jdk.git pull/29569/head:pull/29569$ git checkout pull/29569Update a local copy of the PR:
$ git checkout pull/29569$ git pull https://git.openjdk.org/jdk.git pull/29569/headUsing Skara CLI tools
Checkout this PR locally:
$ git pr checkout 29569View PR using the GUI difftool:
$ git pr show -t 29569Using diff file
Download this PR as a diff file:
https://git.openjdk.org/jdk/pull/29569.diff
Using Webrev
Link to Webrev Comment