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

Graphics/Graphics2D text rendering methods don't spec null arg behaviour

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: P4 P4
    • 6
    • 1.4.2
    • client-libs
    • None
    • 2d
    • b53
    • generic
    • generic

      The current specification (JDK14 and JDK15) doesn't specify the behave for some draw* methods in java.awt.Graphics when the parameter is null.
      For example, the Graphics.drawString(String, str, int x, int y) doesn't state NullPointerException thrown if str is null, however, the jdk14, jdk15 and personal profile implemetatoin throws NullPointerException while personal basis does not.

      The spec should clarify that NullPointerException thrown if it is expected behave, otherwise, no exception expected could be assumed.

      ###@###.### 2004-09-09
      ###@###.### 10/13/04 21:32 GMT

            prr Philip Race
            hji Huafang Ji (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: