New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
8288137: The set of available printers is not updated without application restart #817
Conversation
|
/reviewers 2 |
@kevinrushforth |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I tested it on Windows by adding and removing a printer, and it does what I would expect. I left a couple questions on the implementation, along with a minor formatting issue. You'll also need to fix the whitespace error that jcheck
reported.
modules/javafx.graphics/src/main/java/com/sun/prism/j2d/PrismPrintPipeline.java
Outdated
Show resolved
Hide resolved
modules/javafx.graphics/src/main/java/com/sun/prism/j2d/PrismPrintPipeline.java
Outdated
Show resolved
Hide resolved
modules/javafx.graphics/src/main/java/com/sun/prism/j2d/PrismPrintPipeline.java
Show resolved
Hide resolved
modules/javafx.graphics/src/main/java/javafx/print/Printer.java
Outdated
Show resolved
Hide resolved
Webrevs
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The changes to when lastTime
is stored looks good (both of them). I just noticed that the test is backwards, though.
modules/javafx.graphics/src/main/java/com/sun/prism/j2d/PrismPrintPipeline.java
Outdated
Show resolved
Hide resolved
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Verified that available printers get updated correctly, by running provided test.
@prrace This change now passes all automated pre-integration checks. 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 9 new commits pushed to the
Please see this link for an up-to-date comparison between the source branch of this pull request and the
|
/integrate |
Going to push as commit b9a1ec5.
Your commit was automatically rebased without conflicts. |
This fixes the issue that the default printer or set of available printers is fixed from the first call to it in the lifetime of the application.
Now subsequent calls will check to see if there are changes.
A manual test is provided for verifying this - it requires you to add/remove printers at the system level to verify anything related to this fix.
Progress
Issue
Reviewers
Reviewing
Using
git
Checkout this PR locally:
$ git fetch https://git.openjdk.org/jfx pull/817/head:pull/817
$ git checkout pull/817
Update a local copy of the PR:
$ git checkout pull/817
$ git pull https://git.openjdk.org/jfx pull/817/head
Using Skara CLI tools
Checkout this PR locally:
$ git pr checkout 817
View PR using the GUI difftool:
$ git pr show -t 817
Using diff file
Download this PR as a diff file:
https://git.openjdk.org/jfx/pull/817.diff