Skip to content

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

Closed

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

Activity

  1. added
    type: enhancement
    in: core
    on Jan 11, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

in: coretype: enhancement

Type

No type

Projects

No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions