Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
…anged how to find Classes.
  • Loading branch information
survivant committed Sep 11, 2010
1 parent 904f40e commit 7cba387
Showing 1 changed file with 1 addition and 1 deletion.
Expand Up @@ -90,7 +90,7 @@ public DefaultCometSupportResolver(final AtmosphereConfig config) {
*/
protected boolean testClassExists(final String testClass) {
try {
return testClass != null && testClass.length() > 0 && Class.forName(testClass) != null;
return testClass != null && testClass.length() > 0 && Thread.currentThread().getContextClassLoader().loadClass(testClass) != null;
} catch (ClassNotFoundException ex) {
return false;
} catch (NoClassDefFoundError ex) {
Expand Down

0 comments on commit 7cba387

Please sign in to comment.