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

regression java/awt/font/TextLayout/CheckLayoutLTR.java : Compilation fails

XMLWordPrintable

    • generic
    • generic

      Platform General
      JDK Tiger-beta2 b38

      Compiling java/awt/font/TextLayout/CheckLayoutLTR.java fails.
      Needs this program to be fixed. Error is as follows.

      so129345@yo[1674] javac CheckLayoutLTR.java
      CheckLayoutLTR.java:20: reference to Float is ambiguous, both class java.lang.Float in java.lang and class java.awt.geom.Rectangle2D.Float in java.awt.geom.Rectangle2D match
              rtl.put(TextAttribute.SIZE, new Float(20));
                                              ^
      CheckLayoutLTR.java:24: reference to Float is ambiguous, both class java.lang.Float in java.lang and class java.awt.geom.Rectangle2D.Float in java.awt.geom.Rectangle2D match
              ltr.put(TextAttribute.SIZE, new Float(20));
                                              ^
      CheckLayoutLTR.java:27: reference to Float is ambiguous, both class java.lang.Float in java.lang and class java.awt.geom.Rectangle2D.Float in java.awt.geom.Rectangle2D match
              none.put(TextAttribute.SIZE, new Float(20));
                                               ^
      3 errors

      Test case can be found at
      /java/re/jdk/1.5.0/promoted/all/b38/ws/j2se/test

            Unassigned Unassigned
            ogino Shinya Ogino (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: