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

[Policy|Configuration].getInstance do not properly throw IllegalArgumentException

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: P4 P4
    • 6
    • 6
    • security-libs
    • None
    • beta
    • generic
    • generic


      Policy.getInstance and Configuration.getInstance are specified to throw IllegalArgumentException if the parameter input is invalid.

      In these three cases, Policy and Configuration.getInstance should catch the NoSuchAlgorithmException from Provider.Service.newInstance, and see if the chained exception is IllegalArgumentException. If so, throw the IllegalArgumentException.
      ###@###.### 2005-05-20 17:26:12 GMT

      In addition, if the construction of an SPI implementation fails, we try another provider and swallow the exception (if it is a checked exception). we should investigate dumping debug output to ease debugging in this case.

      ###@###.### 2005-05-20 17:36:38 GMT
      ###@###.### 2005-05-27 00:30:02 GMT

            claisunw Charlie Lai (Inactive)
            claisunw Charlie Lai (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: