title: Manual closing inside try-with-resource
body: <p>Let's say I'm using a poorly documented third party library, one for which no source code is available. One of the library's methods accepts an <code>InputStream</code> to load various data.</p>
  
  <p>Due to the lack of documentation, it's not clear whether or not the method closes the stream once it's done with it, so one possible solution might be to wrap the call in a try-with-resource, just to be on the safe side.</p>
  
  <p>Unfortunately, the Java specification makes (as far as I can tell) no mention of what happens if a resource is manually closed inside a try-with-resource. Does anyone happen to know?</p>