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

    Details

    • Subcomponent:
    • CPU:
      generic
    • OS:
      generic
    • Verification:
      Verified

      Description

      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.

        Attachments

          Activity

            People

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

              Dates

              • Created:
                Updated:
                Resolved: