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

Undefined behavior of methods from LayoutManeger, LayoutManager2 taking null parameter

XMLWordPrintable

    • Cause Known
    • generic
    • generic

      The behavior of methods from LayoutManager, LayoutManager2 taking null parameter is undefined in the documentation. Almost all methods (minimumLayoutSize, maximumLayoutSize, preferredLayoutSize, layoutContainer...) throw NPE in this case, but invalidateLayout, removeLayoutComponent doesn't throw any exception. Is it correct behavior?
      This should be documented in LayoutManager, LayoutManager2 and all implementing classes.

            dav Andrei Dmitriev (Inactive)
            aglasman Alexander Glasman (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Imported:
              Indexed: