CSR :
|
JDK-8213945 :
|
It's possible to create a java.net.URLPermission (contrary to the spec) with a query and/or fragment after the path, and this affects the behavior of the implies() method such that it behaves incorrectly. URLPermission is specified that query and fragments are not part of the URL string passed to the constructor, but it is not specified to throw IAE. The simplest solution might be to strip these components when the object is constructed.