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

DelegationPermission implementation doesn't completely follow the updated specification

    XMLWordPrintable

    Details

    • Subcomponent:
    • Resolved In Build:
      b27
    • Verification:
      Verified

      Description

      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"""

        Attachments

          Issue Links

            Activity

              People

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

                Dates

                Created:
                Updated:
                Resolved: