1
0
Fork 0
mirror of https://github.com/vanitasvitae/Smack.git synced 2024-11-30 07:52:06 +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:
Gaston Dombiak 2004-11-27 02:04:43 +00:00 committed by gaston
parent 04177913dc
commit 1e36bdd143
2 changed files with 6 additions and 5 deletions

View file

@ -107,6 +107,7 @@ public final class SmackConfiguration {
} }
} }
catch (Exception e) { catch (Exception e) {
e.printStackTrace();
} }
} }
@ -200,10 +201,9 @@ public final class SmackConfiguration {
* @return an array of ClassLoader instances. * @return an array of ClassLoader instances.
*/ */
private static ClassLoader[] getClassLoaders() { private static ClassLoader[] getClassLoaders() {
ClassLoader[] classLoaders = new ClassLoader[3]; ClassLoader[] classLoaders = new ClassLoader[2];
classLoaders[0] = new SmackConfiguration().getClass().getClassLoader(); classLoaders[0] = new SmackConfiguration().getClass().getClassLoader();
classLoaders[1] = Thread.currentThread().getContextClassLoader(); classLoaders[1] = Thread.currentThread().getContextClassLoader();
classLoaders[2] = ClassLoader.getSystemClassLoader();
return classLoaders; return classLoaders;
} }
} }

View file

@ -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. * @return an array of ClassLoader instances.
*/ */
private static ClassLoader[] getClassLoaders() { private static ClassLoader[] getClassLoaders() {
ClassLoader[] classLoaders = new ClassLoader[3]; ClassLoader[] classLoaders = new ClassLoader[2];
classLoaders[0] = new ProviderManager().getClass().getClassLoader(); classLoaders[0] = new ProviderManager().getClass().getClassLoader();
classLoaders[1] = Thread.currentThread().getContextClassLoader(); classLoaders[1] = Thread.currentThread().getContextClassLoader();
classLoaders[2] = ClassLoader.getSystemClassLoader();
return classLoaders; return classLoaders;
} }