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

Missed initialization of baselineY in sun.font.StrikeMetrics

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • P4
    • 17
    • 15, 16, 17
    • client-libs
    • 2d
    • b21

    Description

      Raised here : https://mail.openjdk.java.net/pipermail/swing-dev/2021-January/011513.html

      git diff StrikeMetrics.java
      diff --git a/src/java.desktop/share/classes/sun/font/StrikeMetrics.java b/src/java.desktop/share/classes/sun/font/StrikeMetrics.java
      index ca561fb99e8..f6c791572d3 100644
      --- a/src/java.desktop/share/classes/sun/font/StrikeMetrics.java
      +++ b/src/java.desktop/share/classes/sun/font/StrikeMetrics.java
      @@ -88,7 +88,7 @@ public final class StrikeMetrics {
           StrikeMetrics() {
               ascentX = ascentY = Integer.MAX_VALUE;
               descentX = descentY = leadingX = leadingY = Integer.MIN_VALUE;
      - baselineX = baselineX = maxAdvanceX = maxAdvanceY = Integer.MIN_VALUE;
      + baselineX = baselineY = maxAdvanceX = maxAdvanceY = Integer.MIN_VALUE;
           }
       
           StrikeMetrics(float ax, float ay, float dx, float dy, float bx, float by,

      Attachments

        Issue Links

          Activity

            People

              prr Philip Race
              prr Philip Race
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: