DelegationPermission implementation doesn't completely follow the updated specification

XMLWordPrintable

    • b27
    • Verified

      JDK-8232155 added the following statement to DelegationPermission(String) constructor spec:

      + * @throws IllegalArgumentException if {@code principals} is empty,
      + * or does not contain a pair of principals, or is improperly quoted

      However this is not followed by OpenJDK14 implementation as

      new DelegationPermission("\"ab\" \"cd")

      is still possible to instantiate without IAE thrown

      The same happens for
      ""ab"" "cd"
      "ab" "cd"""

            Assignee:
            Weijun Wang
            Reporter:
            Dmitry Bessonov
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: