You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@commons.apache.org by "Mitch Sundt (JIRA)" <ji...@apache.org> on 2017/05/09 17:17:04 UTC

[jira] [Created] (IO-536) 2.5 ExceptionInInitializerError

Mitch Sundt created IO-536:
------------------------------

             Summary: 2.5 ExceptionInInitializerError
                 Key: IO-536
                 URL: https://issues.apache.org/jira/browse/IO-536
             Project: Commons IO
          Issue Type: Bug
          Components: Utilities
    Affects Versions: 2.5
         Environment: This occurs on Android devices. But I think it is a general issue.

            Reporter: Mitch Sundt


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.




--
This message was sent by Atlassian JIRA
(v6.3.15#6346)