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

LOGGING APIs: LoggingPermission throws undocumented IllegalArgumentException

XMLWordPrintable

    • beta2
    • generic
    • generic
    • Verified



      Name: elR10090 Date: 07/12/2001



      The following is the specification (from Merlin-b70) for
      LoggingPermission(String, String) constructor:

          public LoggingPermission(String name, String actions)
          
          Creates a new LoggingPermission object. This constructor exists for
          use by the Policy object to instantiate new Permission objects.
          
          Parameters: name - Permission name. Must be "control".
                      actions - Must be either null or the empty string.
                      
      The spec does not clarify behavior of the constructor if
      1. name is not "control" String
      2. actions is not null and is not empty String.

      The current implementation throws IllegalArgumentException in both cases.

      I believe that exception should be specified for
      LoggingPermission(String, String) constructor.

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

            ghamiltosunw Graham Hamilton (Inactive)
            latkinsunw Latkin Latkin (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: