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

XMLWordPrintable

    • Type: Bug
    • Resolution: Fixed
    • Priority: P4
    • 6
    • Affects Version/s: 1.4.2
    • Component/s: 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

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

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: