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

Behavior of java.net.URLPermission.getActions() contradicts spec

XMLWordPrintable

    • b125
    • Verified

      Behavior of java.net.URLPermission.getActions() contradicts the following assertions:
       
      Assertion 1: "If header-names is empty then the colon separator will not be present."

      -> colon separator is present in this case

      Assertion 2: "Returns the normalized method list and request header list, in the form:
              "method-names : header-names"

      where method-names is the list of methods separated by commas and header-names is the list of permitted headers separated by commas.

      -> no commas between methods and header-names

      Spec: http://download.java.net/jdk9/docs/api/java/net/URLPermission.html

      Please find the details and examples in the attached Test.java

      api/java_net/URLPermission/GetActions/index.html#GetActionsTests fails due to this issue

            vtewari Vyom Tewari
            ostrizhe Olga Strizhenko (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            7 Start watching this issue

              Created:
              Updated:
              Resolved: