JPPF Issue Tracker
star_faded.png
Please log in to bookmark issues
feature_request_small.png
CLOSED  Feature request JPPF-330  -  Add a Task.getTaskClassLoader() method
Posted Sep 19, 2014 - updated Sep 21, 2014
action_vote_minus_faded.png
0
Votes
action_vote_plus_faded.png
icon_info.png This issue has been closed with status "Closed" and resolution "RESOLVED".
Issue details
  • Type of issue
    Feature request
  • Status
     
    Closed
  • Assigned to
     lolo4j
  • Type of bug
    Not triaged
  • Likelihood
    Not triaged
  • Effect
    Not triaged
  • Posted by
     lolo4j
  • Owned by
    Not owned by anyone
  • Category
    Core
  • Resolution
    RESOLVED
  • Priority
    Normal
  • Targetted for
    icon_milestones.png JPPF 5.0
Issue description
From this excellent comment in Bug report JPPF-329 - Inconsistent classloading in org.jppf.client.balancer.ChannelWrapperRemote :
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.



#1
Comment posted by
 lolo4j
Sep 21, 10:25
implemented in trunk revision 3391