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

Details

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

    Description

      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?

      Attachments

        Issue Links

          Activity

            People

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

              Dates

                Created:
                Updated:
                Resolved:
                Imported:
                Indexed: