JDK-8234609 : Release Note: Protected javax.crypto.Cipher Constructor Throws IAE for Non-null Invalid Arguments
  • Type: Sub-task
  • Component: security-libs
  • Sub-Component: javax.crypto
  • Affected Version: 14
  • Priority: P4
  • Status: Closed
  • Resolution: Delivered
  • OS: generic
  • CPU: generic
  • Submitted: 2019-11-22
  • Updated: 2020-04-27
  • Resolved: 2020-01-17
The Version table provides details related to the release that this issue/RFE will be addressed.

Unresolved : Release in which this issue/RFE will be addressed.
Resolved: Release in which this issue/RFE has been resolved.
Fixed : Release in which this issue/RFE has been fixed. The release containing this fix may be available for download as an Early Access Release or a General Availability Release.

To download the current JDK release, click here.
JDK 14
14Resolved
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.