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

(spec) Unspecified exceptions in SSLPermission constructors

XMLWordPrintable

    • beta
    • generic
    • generic

      Name: bkR10012 Date: 05/27/2004


      The descriptions of the SSLPermission constructors
      SSLPermission(String name) and SSLPermission(String name, String actions)
      do not describe any exception.

      But the implementation throws:
      NullPointerException - if name is null;
      IllegalArgumentException - if name is empty.

      While this is reasonable specification should mention this explicitly
      as the BasicPermission constructors description.

      Also description of the parameter actions should be changed from
      "actions - should be null" to "actions - ignored". Otherwise the spec.
      should describe the implementation behavior if actions is a some string.

      ======================================================================

            xuelei Xuelei Fan
            kuzsunw Kuz Kuz (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: