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

Add note constrain/restriction for <task:scheduled> about method signature such as @Scheduled [SPR-14195] #18768

Closed
spring-issuemaster opened this issue Apr 20, 2016 · 0 comments
Assignees
Milestone

Comments

@spring-issuemaster
Copy link
Collaborator

@spring-issuemaster spring-issuemaster commented Apr 20, 2016

Manuel Jordan opened SPR-14195 and commented

In the 33.4.2 The @Scheduled Annotation section says:

Notice that the methods to be scheduled must have void returns and must not expect any arguments. If the method needs to interact with other objects from the Application Context, then those would typically have been provided through dependency injection.

Now, for the 33.5.3 The 'scheduled-tasks' element section, for the <task:scheduled> does not appear a similar message for the method attribute.


Affects: 4.2 GA, 4.2.5

Issue Links:

  • #18746 Let @Scheduled work with a non-void method how is possible with task:scheduled

Referenced from: commits b331ad5

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

Successfully merging a pull request may close this issue.

None yet
2 participants
You can’t perform that action at this time.