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

java/awt/Color/AlphaColorTest.java fails in linux-x64 system

    XMLWordPrintable

    Details

    • Subcomponent:
      2d
    • Resolved In Build:
      b30
    • CPU:
      x86_64
    • OS:
      linux

      Backports

        Description

        When "jtreg" regression test "test/jdk/java/awt/Color/AlphaColorTest.java" is run on VM with current desktop set to Unity, it passes but when is run on "ubuntu:GNOME" desktop (which is default in 18.04] it fails. The frame shown is white in colour ie red is 255 but the test expects frame's red color to be between 122-132.

        java.lang.RuntimeException: Color is not as expected. Got java.awt.Color[r=255,g=255,b=255]
        jib > at AlphaColorTest.main(AlphaColorTest.java:70)
        jib > at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        jib > at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
        jib > at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
        jib > at java.base/java.lang.reflect.Method.invoke(Method.java:567)
        jib > at com.sun.javatest.regtest.agent.MainWrapper$MainThread.run(MainWrapper.java:127)

          Attachments

            Issue Links

              Activity

                People

                Assignee:
                alitvinov Anton Litvinov
                Reporter:
                psadhukhan Prasanta Sadhukhan
                Votes:
                0 Vote for this issue
                Watchers:
                5 Start watching this issue

                  Dates

                  Created:
                  Updated:
                  Resolved: