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

reg. test java/awt/font/StyledMetrics/StyledMetrics.java fails on Vista

    Details

    • Subcomponent:
      2d
    • CPU:
      x86
    • OS:
      windows_vista

      Description

      JDK: /net/jano.sfbay/export/disk29/jcg/NightlyBuilds/update.int/5.0u10/archived/2006-09-26-int.5.0u10
      platform: Windows Vista 5734, 64bit
      test: java/awt/font/StyledMetrics/StyledMetrics.java fails

      The following exceptions are thrown:

      ----------System.out:(1/95)*----------
      java.awt.Font[family=\uff2d\uff33 \u30b4\u30b7\u30c3\u30af,name=MS Gothic,style=bold,size=12]
      ----------System.err:(14/1209)*----------
      java.lang.Exception: Differing advances for java.awt.Font[family=\uff2d\uff33 \u30b4\u30b7\u30c3\u30af,name=MS Gothic,style=bold,size=12] this ch=12353 read ch=12353 this adv=0.65625 read adv=12.65625
      at StyledMetrics.testFont(StyledMetrics.java:159)
      at StyledMetrics.main(StyledMetrics.java:22)
      at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
      at java.lang.reflect.Method.invoke(Method.java:585)
      at com.sun.javatest.regtest.MainWrapper$MainThread.run(MainWrapper.java:82)
      at java.lang.Thread.run(Thread.java:595)

      JavaTest Message: Test threw exception: java.lang.Exception: Differing advances for java.awt.Font[family=\uff2d\uff33 \u30b4\u30b7\u30c3\u30af,name=MS Gothic,style=bold,size=12] this ch=12353 read ch=12353 this adv=0.65625 read adv=12.65625
      JavaTest Message: shutting down test

      The same test also failed with 5.0u10 and 5.0u9 promotion builds, for Vista only, the test passed in WindowsXP, with same builds.
      A similar bug 6418004 was reported and fixed for JDK 6.

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                Unassigned
                Reporter:
                mtiensunw Minchi Tien (Inactive)
              • Votes:
                0 Vote for this issue
                Watchers:
                0 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:
                  Imported:
                  Indexed: