Skip to content

TaskScheduler interface should support java.time.Instant/Duration [SPR-14875] #19441

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

Closed
spring-projects-issues opened this issue Nov 3, 2016 · 0 comments
Assignees
Labels
in: core Issues in core modules (aop, beans, core, context, expression) type: enhancement A general enhancement
Milestone

Comments

@spring-projects-issues
Copy link
Collaborator

spring-projects-issues commented Nov 3, 2016

Periata Breatta opened SPR-14875 and commented

For the sake of convenience, the task scheduler interface should be modernized to support Java 8 improvements in date & time handling. At the very least, methods accepting a java.util.Date should have an overload accepting a java.time.Instant, while methods taking a long millisecond count should have an overload accepting a java.time.Duration. These can, of course, be implemented trivially using default methods.


Affects: 5.0 M2

Issue Links:

Referenced from: commits 313c89d

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
in: core Issues in core modules (aop, beans, core, context, expression) type: enhancement A general enhancement
Projects
None yet
Development

No branches or pull requests

2 participants