Skip to content
This repository has been archived by the owner on Dec 17, 2020. It is now read-only.

@TaskAttach does not support automatic casting the Task argument to a preferred subclass of Task. #3

Closed
Rolf-Smit opened this issue Jul 6, 2017 · 0 comments
Labels
Milestone

Comments

@Rolf-Smit
Copy link
Collaborator

Rolf-Smit commented Jul 6, 2017

Version 1.0.0-rc-1 does not seem to support automatic casting the Task argument to a preferred subclass of Task. This should however work as other annotations do support it. The generated _TaskBinding class will currently causes a compile error:

Error:(23, 37) error: incompatible types: Task cannot be converted to MyCustomTask

Example code:

@TaskAttach("task-id")
public void onAttachMyCustomTask(MyCustomTask task) {
    
}
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

1 participant