Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8360463 Ambiguity in Cipher.getInstance() specification between NoSuchAlgorithmException and NoSuchPaddingException
  3. JDK-8367577

Release Note: Cipher.getInstance(String) will now throw NoSuchPaddingException instead of wrapping it inside a NoSuchAlgorithmException

XMLWordPrintable

      The <code>Cipher.getInstance(String)</code> method declares to throw <i>NoSuchPaddingException</i> and <i>NoSuchAlgorithmException</i>. However, in earlier releases, the <i>NoSuchPaddingException</i> is never thrown but rather wrapped inside an <i>NoSuchAlgorithmException</i> as the cause, This has been fixed so that <i>NoSuchPaddingException</i> will be thrown directly instead of as the cause of the <i>NoSuchAlgorithmException</i>.

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

              Created:
              Updated: