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

Lanai: DefaultCaret/HidingSelection: menu hides selection

    XMLWordPrintable

Details

    • 2d
    • x86_64
    • os_x

    Description

      The test javax/swing/text/DefaultCaret/HidingSelection/HidingSelectionTest.java fails with the following output :

      #section:main
      ----------messages:(5/198)----------
      command: main HidingSelectionTest
      reason: User specified action: run main HidingSelectionTest
      Mode: othervm
      Additional options from @modules: --add-modules java.desktop
      elapsed time (seconds): 2.7
      ----------configuration:(3/40)----------
      Boot Layer
        add modules: java.desktop

      ----------System.out:(0/0)----------
      ----------System.err:(22/2934)----------
      metalEnabled=1
      2020-01-31 14:48:42.273 java[1882:73484] 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-31 14:48:42.273 java[1882:73484] CoreText note: Set a breakpoint on CTFontLogSystemFontNameRequest to debug.
      2020-01-31 14:48:42.274 java[1882:73484] 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-31 14:48:42.275 java[1882:73484] 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-31 14:48:42.278 java[1882:73484] 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-31 14:48:42.279 java[1882:73484] 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-31 14:48:42.282 java[1882:73484] 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-31 14:48:42.282 java[1882:73484] 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:].
      java.lang.RuntimeException: Test fails: menu hides selection
      at HidingSelectionTest.main(HidingSelectionTest.java:93)
      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: Test fails: menu hides selection
      JavaTest Message: shutting down test

      STATUS:Failed.`main' threw exception: java.lang.RuntimeException: Test fails: menu hides selection

      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/text/DefaultCaret/HidingSelection/HidingSelectionTest.java

      Attachments

        Issue Links

          Activity

            People

              jdv Jayathirth D V
              vprovodin Vitaly Provodin
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: