sun/security/util/AlgorithmConstraints/InvalidCryptoDisabledAlgos.java fails after JDK-8244336

XMLWordPrintable

    • b16
    • generic
    • generic

        The following test failed in the JDK26 CI:

        sun/security/util/AlgorithmConstraints/InvalidCryptoDisabledAlgos.java

        after the integration of the fix for:

        JDK-8244336 Restrict algorithms at JCE layer

        Here's a snippet from the linux-x64 sighting:

        #section:main
        ----------messages:(8/397)----------
        command: main InvalidCryptoDisabledAlgos "*"
        reason: User specified action: run main/othervm InvalidCryptoDisabledAlgos "*"
        started: Fri Sep 12 21:57:17 UTC 2025
        Mode: othervm [/othervm specified]
        Additional options from @modules: --add-modules java.base --add-exports java.base/sun.security.util=ALL-UNNAMED
        Process id: 63498
        finished: Fri Sep 12 21:57:17 UTC 2025
        elapsed time (seconds): 0.139
        ----------configuration:(4/111)----------
        Boot Layer
          add modules: java.base
          add exports: java.base/sun.security.util ALL-UNNAMED

        ----------System.out:(1/29)----------
        Invalid Property Value = "*"
        ----------System.err:(18/1131)----------
        java.lang.ExceptionInInitializerError
        at java.base/sun.security.util.CryptoAlgorithmConstraints.permits(CryptoAlgorithmConstraints.java:66)
        at java.base/java.security.MessageDigest.getInstance(MessageDigest.java:199)
        at jdk.test.lib.Utils.<clinit>(Utils.java:175)
        at InvalidCryptoDisabledAlgos.main(InvalidCryptoDisabledAlgos.java:53)
        at java.base/jdk.internal.reflect.DirectMethodHandleAccessor.invoke(DirectMethodHandleAccessor.java:104)
        at java.base/java.lang.reflect.Method.invoke(Method.java:565)
        at com.sun.javatest.regtest.agent.MainWrapper$MainTask.run(MainWrapper.java:138)
        at java.base/java.lang.Thread.run(Thread.java:1474)
        Caused by: java.lang.IllegalArgumentException: Invalid entry: *
        at java.base/sun.security.util.CryptoAlgorithmConstraints.<init>(CryptoAlgorithmConstraints.java:90)
        at java.base/sun.security.util.CryptoAlgorithmConstraints$CryptoHolder.<clinit>(CryptoAlgorithmConstraints.java:55)
        ... 8 more

        JavaTest Message: Test threw exception: java.lang.ExceptionInInitializerError
        JavaTest Message: shutting down test

        STATUS:Failed.`main' threw exception: java.lang.ExceptionInInitializerError
        ----------rerun:(44/7622)*----------

              Assignee:
              Jaikiran Pai
              Reporter:
              Daniel Daugherty
              Votes:
              0 Vote for this issue
              Watchers:
              6 Start watching this issue

                Created:
                Updated:
                Resolved: