Change IAE to NPE in java.awt.image.Kernel when data is null

XMLWordPrintable

    • Type: Enhancement
    • Resolution: Unresolved
    • Priority: P4
    • 26
    • Affects Version/s: 26
    • Component/s: client-libs
    • None
    • 2d
    • Fix Understood
    • generic
    • generic

      After JDK-8368729, the java.awt.image.Kernel constructor started to throw IAE when the data array is null.

      It is common practice in the jdk to throw NPE for null arguments. Some other API in the same package throw NPE as well.

      NPE also matches the old behavior before JDK-8368729, where NPE was thrown, but not specified.

            Assignee:
            Sergey Bylokhov
            Reporter:
            Sergey Bylokhov
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated: