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

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

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: P3
    • Resolution: Duplicate
    • Affects Version/s: 5.0
    • Fix Version/s: None
    • Component/s: tools
    • Subcomponent:
    • CPU:
      generic
    • OS:
      generic

      Description

      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

        Attachments

          Issue Links

            Activity

              People

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

                Dates

                Created:
                Updated:
                Resolved:
                Imported:
                Indexed: