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

java/awt/Graphics2D/DrawString/IgnoredWhitespaceTest.java fails on Linux after JDK-8350203

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: P4 P4
    • tbd
    • 25
    • client-libs
    • None
    • 2d
    • In Review
    • generic
    • linux

      The new test java/awt/Graphics2D/DrawString/IgnoredWhitespaceTest.java came with JDK-8350203 but fails on some Linux machines.
      One failure was seen on Linux x86_64 SLES 15.3 :
      java.lang.RuntimeException: for text '\\t\\t\\t\\t\\tXXXXX': java.awt.Rectangle[x=300,y=273,width=119,height=26] != java.awt.Rectangle[x=356,y=273,width=119,height=26]
      at IgnoredWhitespaceTest.assertEqual(IgnoredWhitespaceTest.java:126)
      at IgnoredWhitespaceTest.test(IgnoredWhitespaceTest.java:96)
      at IgnoredWhitespaceTest.test(IgnoredWhitespaceTest.java:69)
      at IgnoredWhitespaceTest.main(IgnoredWhitespaceTest.java:62)
      at java.base/jdk.internal.reflect.DirectMethodHandleAccessor.invoke(DirectMethodHandleAccessor.java:104)
      at java.base/java.lang.reflect.Method.invoke(Method.java:565)
      at com.sun.javatest.regtest.agent.MainWrapper$MainTask.run(MainWrapper.java:138)
      at java.base/java.lang.Thread.run(Thread.java:1447)


      Another on Linux ppc64le RHEL 8.5 :
      java.lang.RuntimeException: for text '\\t\\t\\t\\t\\tXXXXX': java.awt.Rectangle[x=300,y=273,width=119,height=26] != java.awt.Rectangle[x=356,y=273,width=119,height=26]
      at IgnoredWhitespaceTest.assertEqual(IgnoredWhitespaceTest.java:126)
      at IgnoredWhitespaceTest.test(IgnoredWhitespaceTest.java:96)
      at IgnoredWhitespaceTest.test(IgnoredWhitespaceTest.java:69)
      at IgnoredWhitespaceTest.main(IgnoredWhitespaceTest.java:62)
      at java.base/jdk.internal.reflect.DirectMethodHandleAccessor.invoke(DirectMethodHandleAccessor.java:104)
      at java.base/java.lang.reflect.Method.invoke(Method.java:565)
      at com.sun.javatest.regtest.agent.MainWrapper$MainTask.run(MainWrapper.java:138)
      at java.base/java.lang.Thread.run(Thread.java:1447)

            dgredler Daniel Gredler
            mbaesken Matthias Baesken
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

              Created:
              Updated: