-
Bug
-
Resolution: Fixed
-
P3
-
9
-
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
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
- relates to
-
JDK-8161477 URLPermission.getActions() order of methods and headers in methodList and headerList is changing
-
- Closed
-
-
JDK-8163482 java.net.URLPermission.getActions() adds a trailing colon when header-names is empty
-
- Closed
-
-
JDK-8161291 Serialization Tests for URLPermission is failing
-
- Closed
-