![]() Please wait while updating issue type...
Could not save your changes
This issue has been changed since you started editing it
Data that has been changed is highlighted in red below. Undo your changes to see the updated information
You have changed this issue, but haven't saved your changes yet. To save it, press the Save changes button to the right
This issue is blocking the next release
![]() There are no comments
There is nothing attached to this issue
This issue has no duplicates
There are no code checkins for this issue |
|||||||||||||||||||||||||||||||||||
Really delete this comment?
Really delete this comment?
Really delete this comment?
Fixed in:
Really delete this comment?
Really delete this comment?
This wasn't code review - I was stuck when trying to wrap code to be executed in the functional way (by passing closure), instead of overriding Task base class. Straightforward way (calling closure from Task-derived wrapper) didn't work due to issue above - the only solution I've found after digging into jppf sources was to use JPPF AnnotatedTask as a base (which I think isn't really meant to be used by client code directly).
It took me quite a while to find out that I can use getTaskObject to control classloading behavior. It seems the sole purpose of that method is just be able to get getTaskObject().getClass().getClassLoader(). In that case it would be much more natural (and self-descriptive), if Task simply had getTaskClassloader() instead, which should default to this.getClass().getClassLoader(), being overriden in AnnotatedTask (and my wrapper...) to use payload's classloader.
regards, Marcin
Really delete this comment?
Really delete this comment?