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

AlgorithmConstraints:permits not throwing IllegalArgumentException when 'alg' is null

XMLWordPrintable

    • 19
    • b21

        One of the existing JCK test ( api/java_security/AlgorithmConstraints/PermitsMethodIAEx.html ) validating the below case failing with JDK19-ea-pre-b20 build.
        "Throws:IllegalArgumentException - if primitives or algorithm is null or empty" - when algorithm is null.

        Expected - IllegalArgumentException
        Actual - NullPointerException

        Looks like regression caused by - JDK-8285398
        Where - cachedCheckAlgorithm try to retrieve the null from the cache.

              djelinski Daniel Jelinski
              kganapureddy Krushnareddy Ganapureddy
              Votes:
              0 Vote for this issue
              Watchers:
              7 Start watching this issue

                Created:
                Updated:
                Resolved: