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

LineBreakMeasurer doc cites non-existent single-arg constructor

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: P3 P3
    • 1.4.0
    • 1.3.0
    • docs
    • beta
    • generic
    • generic



      Name: krC82822 Date: 11/15/2000


      java version "1.3.0rc1"
      Java(TM) 2 Runtime Environment, Standard Edition (build 1.3.0rc1-T)
      Java HotSpot(TM) Client VM (build 1.3.0rc1-S, mixed mode)

      The first block of example code in the LineBreakMeasurer javadocs won't compile.
      It contains the following line:

           LineBreakMeasurer measurer = new LineBreakMeasurer(styledText);

      This won't compile because LineBreakMeasurer doesn't have a
      one-argument public constructor.


      http://java.sun.com/j2se/1.3/docs/api/java/awt/font/LineBreakMeasurer.html
      (Review ID: 112335)
      ======================================================================

            sharonz Sharon Zakhour (Inactive)
            kryansunw Kevin Ryan (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: