-
Notifications
You must be signed in to change notification settings - Fork 6.2k
8269269: [macos11] SystemIconTest fails with ClassCastException #4776
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
Conversation
Do not test situation where UIResource icon is returned Added a whole bunch of debug information to see what file test is filed upon.
|
👋 Welcome back kizune! A progress list of the required criteria for merging this PR into |
|
@azuev-java 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 issue is not specific to macOS 11, it is reproducible in my 10.15.7 also. |
| if (!(i instanceof ImageIcon)) { | ||
| // Default UI resource icon returned - it is not covered | ||
| // by new implementation so we can not test it | ||
| continue; |
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 see that we are hitting this condition for all sizes on my 10.15.7 mac. Basically making testSystemIcon() to not run in my Mac. Do we have any other use case where we dont hit this condition in Mac or non-Windows platform?
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 on Ubuntu - it does not hit that condition. In future, when similar functionality with multiresolution icons might be implemented on Mac we might pass the test on Mac in similar way but right now it is implemented using the UIResourceIcon and that is - while being within spec - makes test to fail.
|
@azuev-java 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 48 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 |
|
/integrate |
|
Going to push as commit eab959c.
Your commit was automatically rebased without conflicts. |
|
@azuev-java Pushed as commit eab959c. 💡 You may see a message that your pull request was closed with unmerged commits. This can be safely ignored. |
|
Documents that changes to the specification made between Java SE 15 and Java SE 16. This document includes descriptions of those new features and enhancements that are also changes to the specification. The descriptions also identify potential compatibility issues that you might encounter when migrating to JDK 16. |
|
@azuev-java |
|
@azuev-java I thought we agreed to fix the product bug mentioned here? openjdk/jdk17#178 (comment) Why the test was changed only? |
Yeah, and i did it here: #4777 The original PR covered two bugs at once to save time before we went into RDP2 but since we decided not to try it i split review into two separate ones. |
|
Thank you! |
Do not test situation where UIResource icon is returned
Added a whole bunch of debug information to see what file test is filed
upon.
Progress
Issue
Reviewers
Reviewing
Using
gitCheckout this PR locally:
$ git fetch https://git.openjdk.java.net/jdk pull/4776/head:pull/4776$ git checkout pull/4776Update a local copy of the PR:
$ git checkout pull/4776$ git pull https://git.openjdk.java.net/jdk pull/4776/headUsing Skara CLI tools
Checkout this PR locally:
$ git pr checkout 4776View PR using the GUI difftool:
$ git pr show -t 4776Using diff file
Download this PR as a diff file:
https://git.openjdk.java.net/jdk/pull/4776.diff