Uploaded image for project: 'Commons Discovery'
  1. Commons Discovery
  2. DISCOVERY-11

Service.providers Enumeration does not catch and discard UnsatisfiedLinkErrors and ExceptionInInitializerErrors

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 0.4
    • Fix Version/s: 0.5
    • Labels:
      None
    • Environment:

      Windows, Sun JDK 1.5.0.10

      Description

      The enumeration created by Service.providers does not catch UnsatisfiedLinkErrors and ExceptionInInitializerErrors. The former can arise, if a class contains a call to System.loadLibrary(String) in its static initializer, while the latter will be thrown, when a runtime exception is thrown from the static initializer. Service.providers should catch and ignore these and it should simply discard the class provoking the error as not available. As of version 0.4, Commons Discovery just forwards these errors.

        Attachments

          Activity

            People

            • Assignee:
              simone.tripodi Simone Tripodi
              Reporter:
              javaprog Michael Rudolf
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: