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) now throws NoSuchPaddingException instead of wrapping it inside a NoSuchAlgorithmException

XMLWordPrintable

      The <code>Cipher.getInstance(String)</code> method is declared to throw <i>NoSuchPaddingException</i> and <i>NoSuchAlgorithmException</i>. In prior releases, <i>NoSuchPaddingException</i> is never thrown and is instead wrapped inside a <i>NoSuchAlgorithmException</i> as the cause. This issue has been fixed and <i>NoSuchPaddingException</i> is 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:
              Resolved: