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

2.5 ExceptionInInitializerError

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 2.5
    • 2.6
    • Utilities
    • None
    • 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

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

            Dates

              Created:
              Updated:
              Resolved: