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

spec for java.awt.FontMetrics methods is silent about null args

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Duplicate
    • Icon: P4 P4
    • None
    • 1.4.0
    • client-libs
    • 2d
    • sparc
    • solaris_2.6

      Name: ktR10099 Date: 11/06/2001



      Spec doesn't describe the following methods' behavior when null is passed
      as a parameter:

      public int charsWidth(char[] data, int off, int len)
      public int bytesWidth(byte[] data, int off, int len)
      public int stringWidth(String str)

       The specification for these methods should be
       changed as it is described in the document
       "Requirements for Writing Java API Specifications":

       http://java.sun.com/j2se/javadoc/writingapispecs/index.html

       If NullPointerException should be thrown, it has to be defined
       explicitely by the spec.

      ======================================================================

            dougfelt Doug Felt
            kvtsunw Kvt Kvt (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: