diff --git a/org.springframework.context.support/src/main/java/org/springframework/scheduling/quartz/ResourceLoaderClassLoadHelper.java b/org.springframework.context.support/src/main/java/org/springframework/scheduling/quartz/ResourceLoaderClassLoadHelper.java index 18593865af4..c77a1480a50 100644 --- a/org.springframework.context.support/src/main/java/org/springframework/scheduling/quartz/ResourceLoaderClassLoadHelper.java +++ b/org.springframework.context.support/src/main/java/org/springframework/scheduling/quartz/ResourceLoaderClassLoadHelper.java @@ -1,5 +1,5 @@ /* - * Copyright 2002-2008 the original author or authors. + * Copyright 2002-2011 the original author or authors. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -75,6 +75,11 @@ public class ResourceLoaderClassLoadHelper implements ClassLoadHelper { return this.resourceLoader.getClassLoader().loadClass(name); } + @SuppressWarnings("unchecked") + public Class loadClass(String name, Class clazz) throws ClassNotFoundException { + return loadClass(name); + } + public URL getResource(String name) { Resource resource = this.resourceLoader.getResource(name); try {