groovy

superfluous checked exception: IOException in Script#evaluate(String)

Details

  • Type: Improvement Improvement
  • Status: Closed Closed
  • Priority: Trivial Trivial
  • Resolution: Fixed
  • Affects Version/s: 1.5.1
  • Fix Version/s: 1.5.2
  • Component/s: None
  • Labels:
    None
  • Number of attachments :
    0

Description

The method evaluate(String) of class groovy.lang.Script declare to throw the checked exception IOException but the implementation actual does not throw it. It would be great to see the declaration to be dropped. So we don't need add a useless catch clause when calling the method.

Activity

Hide
Paul King added a comment -

Looks like a cut and paste glitch from the file version of the method - removed.

Show
Paul King added a comment - Looks like a cut and paste glitch from the file version of the method - removed.
Hide
Paul King added a comment -

close off release 1.5.4

Show
Paul King added a comment - close off release 1.5.4

People

Vote (0)
Watch (0)

Dates

  • Created:
    Updated:
    Resolved: