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

Document NPE for passing null insets to constructors and methods of several javax.swing.border.* classes

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: P4 P4
    • 20
    • 6
    • client-libs
    • b25
    • generic
    • generic

      The behavior of MatteBorder constructors taking Insets object as a parameter is not quite clear. What should happened if Insets parameter of constructor will be null? There is nothing about it in the specs. Raise NullPointerException, set insets to (0, 0, 0, 0) or something else?

            psadhukhan Prasanta Sadhukhan
            aglasman Alexander Glasman (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: