mirror of
https://github.com/vanitasvitae/Smack.git
synced 2024-11-26 22:12:05 +01:00
Removed system classloader for finding resources. SMACK-32
git-svn-id: http://svn.igniterealtime.org/svn/repos/smack/trunk@2423 b35dd754-fafc-0310-a699-88a17e54d16e
This commit is contained in:
parent
04177913dc
commit
1e36bdd143
2 changed files with 6 additions and 5 deletions
|
@ -107,6 +107,7 @@ public final class SmackConfiguration {
|
|||
}
|
||||
}
|
||||
catch (Exception e) {
|
||||
e.printStackTrace();
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -200,10 +201,9 @@ public final class SmackConfiguration {
|
|||
* @return an array of ClassLoader instances.
|
||||
*/
|
||||
private static ClassLoader[] getClassLoaders() {
|
||||
ClassLoader[] classLoaders = new ClassLoader[3];
|
||||
ClassLoader[] classLoaders = new ClassLoader[2];
|
||||
classLoaders[0] = new SmackConfiguration().getClass().getClassLoader();
|
||||
classLoaders[1] = Thread.currentThread().getContextClassLoader();
|
||||
classLoaders[2] = ClassLoader.getSystemClassLoader();
|
||||
return classLoaders;
|
||||
}
|
||||
}
|
||||
|
|
|
@ -214,7 +214,9 @@ public class ProviderManager {
|
|||
}
|
||||
}
|
||||
}
|
||||
catch (Exception e) { }
|
||||
catch (Exception e) {
|
||||
e.printStackTrace();
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -346,10 +348,9 @@ public class ProviderManager {
|
|||
* @return an array of ClassLoader instances.
|
||||
*/
|
||||
private static ClassLoader[] getClassLoaders() {
|
||||
ClassLoader[] classLoaders = new ClassLoader[3];
|
||||
ClassLoader[] classLoaders = new ClassLoader[2];
|
||||
classLoaders[0] = new ProviderManager().getClass().getClassLoader();
|
||||
classLoaders[1] = Thread.currentThread().getContextClassLoader();
|
||||
classLoaders[2] = ClassLoader.getSystemClassLoader();
|
||||
return classLoaders;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue