Skip to content
Permalink
Browse files
8273366: [testbug] javax/swing/UIDefaults/6302464/bug6302464.java fai…
…ls on macOS12

Reviewed-by: aivanov, serb
  • Loading branch information
prsadhuk committed Sep 15, 2021
1 parent 1017a2c commit febcc72a549e973de4649503fc686fc520e3b3cd
Showing 1 changed file with 10 additions and 4 deletions.
@@ -119,7 +119,7 @@ private static void testAntialiasingHints() {
setMetalLookAndFeel();

boolean isMacOSX14 = false;
boolean isMacOSXBigSur = false;
boolean isMacOSXBigSurOrAbove = false;
if (System.getProperty("os.name").contains("OS X")) {
String version = System.getProperty("os.version", "");
if (version.startsWith("10.")) {
@@ -133,11 +133,17 @@ private static void testAntialiasingHints() {
isMacOSX14 = (v >= 14);
} catch (NumberFormatException e) {
}
} else if (version.startsWith("11.")) {
isMacOSXBigSur = true;
} else {
String majorVersion = version.substring(0, version.indexOf("."));
System.out.println(majorVersion);
try {
int ver = Integer.parseInt(majorVersion);
isMacOSXBigSurOrAbove = (ver >= 11);
} catch (NumberFormatException e){
}
}
}
if (!isMacOSX14 && !isMacOSXBigSur) {
if (!isMacOSX14 && !isMacOSXBigSurOrAbove) {
HashSet colorsAAOff = getAntialiasedColors(VALUE_TEXT_ANTIALIAS_OFF, 100);

if (colorsAAOff.size() > 2) {

3 comments on commit febcc72

@openjdk-notifier
Copy link

@openjdk-notifier openjdk-notifier bot commented on febcc72 Sep 15, 2021

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@GoeLin
Copy link
Member

@GoeLin GoeLin commented on febcc72 Dec 20, 2021

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

/backport jdk17u-dev

@openjdk
Copy link

@openjdk openjdk bot commented on febcc72 Dec 20, 2021

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@GoeLin the backport was successfully created on the branch GoeLin-backport-febcc72a in my personal fork of openjdk/jdk17u-dev. To create a pull request with this backport targeting openjdk/jdk17u-dev:master, just click the following link:

➡️ Create pull request

The title of the pull request is automatically filled in correctly and below you find a suggestion for the pull request body:

Hi all,

This pull request contains a backport of commit febcc72a from the openjdk/jdk repository.

The commit being backported was authored by Prasanta Sadhukhan on 15 Sep 2021 and was reviewed by Alexey Ivanov and Sergey Bylokhov.

Thanks!

If you need to update the source branch of the pull then run the following commands in a local clone of your personal fork of openjdk/jdk17u-dev:

$ git fetch https://github.com/openjdk-bots/jdk17u-dev GoeLin-backport-febcc72a:GoeLin-backport-febcc72a
$ git checkout GoeLin-backport-febcc72a
# make changes
$ git add paths/to/changed/files
$ git commit --message 'Describe additional changes made'
$ git push https://github.com/openjdk-bots/jdk17u-dev GoeLin-backport-febcc72a

Please sign in to comment.