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

Lanai: BasicStroke/DashOffset.java: Unexpected color at 2, 2: ff000000; expected: ff0000ff, ff00ff00

XMLWordPrintable

    • 2d
    • x86_64
    • os_x

      The test java/awt/BasicStroke/DashOffset.java fails with the following output :

      #section:main
      ----------messages:(5/257)----------
      command: main -Dsun.java2d.uiScale=1 DashOffset
      reason: User specified action: run main/othervm -Dsun.java2d.uiScale=1 DashOffset
      Mode: othervm [/othervm specified]
      Additional options from @modules: --add-modules java.desktop
      elapsed time (seconds): 0.505
      ----------configuration:(3/40)----------
      Boot Layer
        add modules: java.desktop

      ----------System.out:(0/0)----------
      ----------System.err:(18/1139)----------
      metalEnabled=1
      java.lang.RuntimeException: Unexpected color at 2, 2: ff000000; expected: ff0000ff, ff00ff00
      at DashOffset.checkColor(DashOffset.java:226)
      at DashOffset.checkColor(DashOffset.java:209)
      at DashOffset.checkHorizontalLine(DashOffset.java:139)
      at DashOffset.validate(DashOffset.java:127)
      at DashOffset.main(DashOffset.java:105)
      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: Unexpected color at 2, 2: ff000000; expected: ff0000ff, ff00ff00
      JavaTest Message: shutting down test

      STATUS:Failed.`main' threw exception: java.lang.RuntimeException: Unexpected color at 2, 2: ff000000; expected: ff0000ff, ff00ff00

      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/java/awt/BasicStroke/DashOffset.java

      It looks like the following tests also fail because of this issue.

      RULE "java/awt/BasicStroke/DashScaleMinWidth.java" Exception java.lang.RuntimeException: Line should be dashed
      RULE "java/awt/BasicStroke/DashZeroWidth.java" java.lang.RuntimeException: Line should be visible and dashed

      If it is not so a separate ticket needs to be submitted

            psadhukhan Prasanta Sadhukhan
            vprovodin Vitaly Provodin
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved: