-
Notifications
You must be signed in to change notification settings - Fork 155
8269269: [macos11] SystemIconTest fails with ClassCastException #176
Conversation
8268280: javax/swing/JFileChooser/FileSystemView/SystemIconTest.java fails on windows Added additional checks that will protect from false negative due to the file being inaccessible or system environment variable overwritten
|
👋 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. |
|
/ussue add 8268280 |
Webrevs
|
|
@azuev-java Unknown command |
|
|
||
| static void testSystemIcon(File file, boolean implComplete) { | ||
| int[] sizes = new int[] {16, 32, 48, 64, 128}; | ||
| if (!file.exists() || !file.canRead()) { |
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 main reason for the Windows failure is that for some reason the default windir was not accessible - this check will avoid the situation where we are testing the icon for non-accessible folder - because in this case we will return the default UIManager icon for a file or a folder and this icon is not multi-resolution. On Mac it leads to the IconUIResource being returned and this Icon representation can not be casted to ImageIcon hence test fails.
|
/issue add 8268280 |
|
@azuev-java The issue |
|
/issue add JDK-8268280 |
|
@azuev-java The issue |
|
/issue add JDK-8268280 |
|
@azuev-java |
…fails in Windows debug build Reviewed-by: serb, psadhukhan, pbansal
8268280: javax/swing/JFileChooser/FileSystemView/SystemIconTest.java fails on windows Added additional checks that will protect from false negative due to the file being inaccessible or system environment variable overwritten
|
|
8268280: javax/swing/JFileChooser/FileSystemView/SystemIconTest.java fails on windows
Progress
Issues
8268280.Reviewing
Using
gitCheckout this PR locally:
$ git fetch https://git.openjdk.java.net/jdk17 pull/176/head:pull/176$ git checkout pull/176Update a local copy of the PR:
$ git checkout pull/176$ git pull https://git.openjdk.java.net/jdk17 pull/176/headUsing Skara CLI tools
Checkout this PR locally:
$ git pr checkout 176View PR using the GUI difftool:
$ git pr show -t 176Using diff file
Download this PR as a diff file:
https://git.openjdk.java.net/jdk17/pull/176.diff