Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Make Spring integration with InterceptMode.PROXY_METHOD work for Spring versions prior to 5.0.0 #2290

Open
wants to merge 2 commits into
base: version4
Choose a base branch
from

Conversation

ellebrecht
Copy link

When using ShedLock 4.x in a Spring Boot 1.5/Spring 4.3 application with InterceptMode.PROXY_METHOD, this fails with NoSuchMethodError due to usage of an AnnotationMatchingPointcut constructor that was added in Spring 5.0.0.

It can easily be made to work by checking the Spring major version and using the appropriate constructor. With this fix, Spring 4.x-based applications should work again.

@lukas-krecan
Copy link
Owner

Hi, thanks for your contribution. I don't see why to support Spring 4.3. It's really old and unsupported. Maybe an old version of ShedLock will work with it.

@ellebrecht
Copy link
Author

I realize that Spring 4 went EOL in 2020, however I am currently tasked with maintaining a legacy application stuck at said version. Sadly, I know of a significant number of productive applications in large corporations in the same situation.

If you don't want to support it, I suggest to document version compatibilities in more detail.
Currently, the README only says: If you are on older JDK or library, use version 4.44.0
It would be helpful and time-saving to learn early that ShedLock does not plan to support Spring versions prior to 5.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants