Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8273366

[testbug] javax/swing/UIDefaults/6302464/bug6302464.java fails on macOS12

XMLWordPrintable

        javax/swing/UIDefaults/6302464/bug6302464.java fails as follows

        jdk17/Contents/Home/bin/java -Djava.awt.headless=true bug6302464

        Exception in thread "main" java.lang.reflect.InvocationTargetException
        at java.desktop/java.awt.EventQueue.invokeAndWait(EventQueue.java:1369)
        at java.desktop/java.awt.EventQueue.invokeAndWait(EventQueue.java:1344)
        at java.desktop/javax.swing.SwingUtilities.invokeAndWait(SwingUtilities.java:1480)
        at bug6302464.main(bug6302464.java:56)
        Caused by: java.lang.RuntimeException: Wrong number of antialiased colors.
        at bug6302464.testAntialiasingHints(bug6302464.java:143)
        at bug6302464.testAntialiasingProperties(bug6302464.java:62)
        at java.desktop/java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:308)
        at java.desktop/java.awt.EventQueue.dispatchEventImpl(EventQueue.java:771)
        at java.desktop/java.awt.EventQueue$4.run(EventQueue.java:722)
        at java.desktop/java.awt.EventQueue$4.run(EventQueue.java:716)
        at java.base/java.security.AccessController.doPrivileged(AccessController.java:399)
        at java.base/java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:86)
        at java.desktop/java.awt.EventQueue.dispatchEvent(EventQueue.java:741)
        at java.desktop/java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:203)
        at java.desktop/java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:124)
        at java.desktop/java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:113)
        at java.desktop/java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:109)
        at java.desktop/java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:101)
        at java.desktop/java.awt.EventDispatchThread.run(EventDispatchThread.java:90)


        seems to have some
        choices where it has expectations that if
                if (!isMacOSX14 && !isMacOSXBigSur) {
        then we are on some older release ..

        the problem is this
                    } else if (version.startsWith("11.")) {
                        isMacOSXBigSur = true;
                    }

        I think it means 11 or later ..

              psadhukhan Prasanta Sadhukhan
              prr Philip Race
              Votes:
              0 Vote for this issue
              Watchers:
              7 Start watching this issue

                Created:
                Updated:
                Resolved: