Uploaded image for project: 'Groovy'
  1. Groovy
  2. GROOVY-710

Removed a needless IOException from GroovyShell

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Trivial
    • Resolution: Fixed
    • 1.0-beta-10
    • 1.0-beta-10
    • None
    • None

    Description

      The method GroovyShell#parse(String) declares to throw an IOException. This is a bit of a drag as it will never throw one - internally the method uses ByteArrayInputStream, which (to my knowledge) never actually throws an IOException.
      The only method in ByteArrayInputStream that even declares to throw IOException is close() and in its javadoc it says it won't throw one.

      I have a patch for this which I will attach if I can just find out how...

      Attachments

        Activity

          People

            sstirling sstirling
            antti.karanta@napa.fi Antti Karanta
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Time Tracking

                Estimated:
                Original Estimate - 2m
                2m
                Remaining:
                Remaining Estimate - 2m
                2m
                Logged:
                Time Spent - Not Specified
                Not Specified