Uploaded image for project: 'Commons IO'
  1. Commons IO
  2. IO-536

2.5 ExceptionInInitializerError

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 2.5
    • Fix Version/s: 2.6
    • Component/s: Utilities
    • Labels:
      None
    • Environment:

      This occurs on Android devices. But I think it is a general issue.

      Description

      In its static block, org.apache.commons.io.Java7Support executes:

      ClassLoader cl = Thread.currentThread().getContextClassLoader();

      This can be null.

      In that case, I believe the class should fall back to using:

      Java7Support.class.getClassLoader();

      But someone with a better understanding of the security implications should weigh in on that change.

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              mitchellsundt Mitch Sundt
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: