You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Based on the discussion in #42, I suggest that we add an assertion that verifies that the close method of the InputStream is invoked in the "try with resources" try block in the AboutTryWithResources. lookMaNoClose() koan.
Unfortunately, there is no isClosed method on InputStream. @matyb suggests that the koan have a helper method that attempts to read from the closed InputStream to verify that it is closed.
Based on the discussion in #42, I suggest that we add an assertion that verifies that the
close
method of theInputStream
is invoked in the "try with resources"try
block in theAboutTryWithResources. lookMaNoClose()
koan.Unfortunately, there is no
isClosed
method onInputStream
. @matyb suggests that the koan have a helper method that attempts to read from the closedInputStream
to verify that it is closed.See also http://stackoverflow.com/questions/8655901/how-to-check-whether-an-outputstream-is-closed
The text was updated successfully, but these errors were encountered: