#2 OptionParser.printHelpOn(OutputStream) closes the stream

closed-fixed
nobody
None
5
2008-06-09
2008-05-02
Anonymous
No

The OptionParser.printHelpOn (OutputStream) creates an OutputStreamWriter, and calls close () on it when the method has finished, which also closes the underlying OutputStream. The method should flush the OutputStreamWriter instead because the OutputStream can be System.out.

Discussion

  • Paul Holser

    Paul Holser - 2008-05-21

    Logged In: YES
    user_id=259182
    Originator: NO

    Good point [smacks forehead]. Will be in 2.4.

     
  • Paul Holser

    Paul Holser - 2008-05-21
    • status: open --> open-fixed
     
  • Paul Holser

    Paul Holser - 2008-05-26
    • status: open-fixed --> pending-fixed
     
  • Paul Holser

    Paul Holser - 2008-06-09
    • status: pending-fixed --> closed-fixed
     

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:





No, thanks