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

Clarify the javadoc of java.security.CodeSource as to the nullability of 'location'

XMLWordPrintable

    • b127
    • Not verified

      https://docs.oracle.com/javase/8/docs/api/java/security/CodeSource.html

      The constructors of CodeSource explicitely state that signers or certificates may be null, but say nothing about location - which implies that location may not be null.
      Similarly - other getters are specified to return 'or null' - but not getLocation().

      However, the specification of CodeSource.implies describes what happens when 'location' is null, which implies that location might be null.

      If location may be null, it should be properly specified in the constructors javadoc as well as in the @return clause of getLocation().

            jnimeh Jamil Nimeh
            dfuchs Daniel Fuchs
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: