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

Lanai: javax/swing/JInternalFrame/DockIconRepaint: Wrong color

XMLWordPrintable

    • 2d
    • x86_64
    • os_x

      The test javax/swing/JInternalFrame/DockIconRepaint/DockIconRepaint.java fails with the following output :

      #section:main
      ----------messages:(5/204)----------
      command: main DockIconRepaint
      reason: Assumed action based on file name: run main DockIconRepaint
      Mode: othervm
      Additional options from @modules: --add-modules java.desktop
      elapsed time (seconds): 7.821
      ----------configuration:(3/40)----------
      Boot Layer
        add modules: java.desktop

      ----------System.out:(0/0)----------
      ----------System.err:(25/2972)----------
      metalEnabled=1
      2020-01-30 16:36:47.340 java[22288:1090505] CoreText note: Client requested name ".SFNS-Regular", it will get Times-Roman rather than the intended font. All system UI font access should be through proper APIs such as CTFontCreateUIFontForLanguage() or +[NSFont systemFontOfSize:].
      2020-01-30 16:36:47.340 java[22288:1090505] CoreText note: Set a breakpoint on CTFontLogSystemFontNameRequest to debug.
      2020-01-30 16:36:47.342 java[22288:1090505] CoreText note: Client requested name ".SFNS-Bold", it will get Times-Roman rather than the intended font. All system UI font access should be through proper APIs such as CTFontCreateUIFontForLanguage() or +[NSFont systemFontOfSize:].
      2020-01-30 16:36:47.342 java[22288:1090505] CoreText note: Client requested name ".SFNSMono-Regular", it will get Times-Roman rather than the intended font. All system UI font access should be through proper APIs such as CTFontCreateUIFontForLanguage() or +[NSFont systemFontOfSize:].
      2020-01-30 16:36:47.346 java[22288:1090505] CoreText note: Client requested name ".SFNSMono-Regular", it will get Times-Roman rather than the intended font. All system UI font access should be through proper APIs such as CTFontCreateUIFontForLanguage() or +[NSFont systemFontOfSize:].
      2020-01-30 16:36:47.346 java[22288:1090505] CoreText note: Client requested name ".SFNSMono-Regular", it will get Times-Roman rather than the intended font. All system UI font access should be through proper APIs such as CTFontCreateUIFontForLanguage() or +[NSFont systemFontOfSize:].
      2020-01-30 16:36:47.350 java[22288:1090505] CoreText note: Client requested name ".SFNS-Regular", it will get Times-Roman rather than the intended font. All system UI font access should be through proper APIs such as CTFontCreateUIFontForLanguage() or +[NSFont systemFontOfSize:].
      2020-01-30 16:36:47.350 java[22288:1090505] CoreText note: Client requested name ".SFNS-Bold", it will get Times-Roman rather than the intended font. All system UI font access should be through proper APIs such as CTFontCreateUIFontForLanguage() or +[NSFont systemFontOfSize:].
      Exp: ff00ff00
      Actual: ff00ff02
      java.lang.RuntimeException: Wrong color.
      at DockIconRepaint.test(DockIconRepaint.java:104)
      at DockIconRepaint.main(DockIconRepaint.java:68)
      at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
      at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
      at java.base/java.lang.reflect.Method.invoke(Method.java:564)
      at com.sun.javatest.regtest.agent.MainWrapper$MainThread.run(MainWrapper.java:127)
      at java.base/java.lang.Thread.run(Thread.java:832)

      JavaTest Message: Test threw exception: java.lang.RuntimeException: Wrong color.
      JavaTest Message: shutting down test

      STATUS:Failed.`main' threw exception: java.lang.RuntimeException: Wrong color.

      The failure was not observed on OpenJDK builds jdk-14-ea+33_osx-x64, jdk-15-ea+7_osx-x64

      The reproducibility: 100%
      Steps to reproduce:

      $ jtreg -Dsun.java2d.metal=true -testjdk:[path_to_lanai_home] test/jdk/javax/swing/JInternalFrame/DockIconRepaint/DockIconRepaint.java

            avu Alexey Ushakov
            vprovodin Vitaly Provodin
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: