JPPF Issue Tracker
star_faded.png
Please log in to bookmark issues
enhancement_small.png
CLOSED  Enhancement JPPF-305  -  JPPFClient.submitJob() has a useless throws clause
Posted Aug 12, 2014 - updated Aug 15, 2018
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
    Enhancement
  • 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
    Client
  • Resolution
    RESOLVED
  • Priority
    Normal
  • Targetted for
    icon_milestones.png JPPF 4.2.x
Issue description
From this forum thread: the method JPPFClient.submitJob(JPPFJob) declares a "throws Exception" clause, however it only throws runtime exceptions and none of the methods it invkes throws a checked exception.

Thus, there is no use for the throws clause in the method declaration, which forces users to either catch the exception or declare a throws Exception clause in their own code. This clause should be removed.


#4
Comment posted by
 lolo4j
Aug 12, 19:57
implemented in: