Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-4526248

should throw exception instead of discarding it for the unused input parameters

XMLWordPrintable

    • mantis
    • generic
    • generic
    • Verified

      <com.sun.crypto.provider.BlowfishParameters>
        72 protected void engineInit(byte[] encoded, String decodingMethod)
        73 throws IOException
        74 {
        75 engineInit(encoded);
        76 }
      we should throw an exception if decodingMethod is not the valid value we can cope with since the caller might pass in something on purpose and expect that will take some effect.
      if we just swallow it, the caller might get confused under some circumstance

            valeriep Valerie Peng
            skesunw Stuart Ke (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: