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

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

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

              Created:
              Updated:
              Resolved: