Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8233016 Specify the exceptions that can be thrown by the javax.crypto.Cipher constructor
  3. JDK-8234609

Release Note: Protected javax.crypto.Cipher Constructor Throws IAE for Non-null Invalid Arguments

XMLWordPrintable

    • generic
    • generic
    • Verified

      The protected constructor of `javax.crypto.Cipher` has been changed to throw `IllegalArgumentException` instead of `NullPointerException` if the supplied arguments are deemed invalid for constructing the `Cipher` object. If the provider argument is null, the constructor will throw `NullPointerException` as before. Both exceptions are now documented in the javadoc specification of the protected constructor.

            valeriep Valerie Peng
            valeriep Valerie Peng
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: