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

Undefined Behavior for Null Arguments in java.util.Properties#list Specification

XMLWordPrintable

    • Icon: Enhancement Enhancement
    • Resolution: Unresolved
    • Icon: P4 P4
    • None
    • None
    • core-libs

      The specification for the java.util.Properties#list method does not mention the expected behavior when a null argument is passed (the OpenJDK implementation throws a NullPointerException). We suggest that the specification should explicitly state the expected behavior when null is passed to the list method.

      The specifications for some methods (such as void load(InputStream inStream) and void store(Writer writer, String comments)) explicitly specify the NullPointerException behavior—something like this would be perfect.

            Unassigned Unassigned
            hnassour Hamza Nassour
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated: