IO-568: AutoCloseInputStream should disable mark/reset
I am glad that you have some flexibility here and for the civil discourse as well :-) My main concern is for compatibility so throwing an exception in the place where code worked before is a bad thing.
What is the exception you are seeing?
What is the exception you are seeing?
Sorry, I actually meant reset() only since reset is supposed to throw an exception when markSupported() return false. For mark() I would just not call the target InpuStream mark() method. For the exception itself I was thinking about the standard throw new IOException("mark/reset not supported");.
Here is a new version which does not completely abandon AutoCloseInputStream to its fate but still don't change its default behavior.