Skip to content

Implement new method from ClassLoadHelper to make Spring work with Quartz 2.1 [SPR-8727] #13369

Closed
@spring-projects-issues

Description

@spring-projects-issues

Stefan Gybas opened SPR-8727 and commented

The method

<T> Class<? extends T> loadClass(String name, Class<T> clazz) throws ClassNotFoundException;

was added to org.quartz.spi.ClassLoadHelper with Quartz 2.1.0 (see http://svn.terracotta.org/fisheye/changelog/Quartz/?cs=1614). It should be implemented by org.springframework.scheduling.quartz.ResourceLoaderClassLoadHelper, for example like this:

@SuppressWarnings("unchecked")
public <T> Class<? extends T> loadClass(String name, Class<T> clazz)
        throws ClassNotFoundException {
    return loadClass(name);
}

This will make Spring 3.1 compatibe with Quartz 2.1 while still being compatible with Quartz 1.x and 2.0. Spring can even be compiled against Quartz 2.0 and Quartz 2.1 with Java 5 since there's no @Override annotation.


Affects: 3.1 M2

Issue Links:

1 votes, 3 watchers

Metadata

Metadata

Assignees

Labels

in: coreIssues in core modules (aop, beans, core, context, expression)type: enhancementA general enhancement

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions