JDK-4529325 - Java Issue Tracker
Nov 19, 2001 ... ... input stream of the InflaterOutputStream. This byte will lead to an error on the consequent iteration. Replacing in the submitter's example ...
Nov 19, 2001 ... ... input stream of the InflaterOutputStream. This byte will lead to an error on the consequent iteration. Replacing in the submitter's example ...
I have now isolated the problem into a single piece of code for demonstration purposes. This is cut down from a larger piece of software which uses the Java Activation Framework (hence the use of InputStreams). I have attached the code, and two trivial HTML documents.
I have included simple Java programs that demonstrate this bug. Run TCPServer with something like java TCPServer open exec "notepad" exit. Then try connecting to it with TCPClient java TCPClient <host TCPServer was on> <port> <string of text>.
addAttachment(String contentType, InputStream in). Because I don't know what type of InputStream that can be passed in, I can't use any of the provided DataSource implementation classes (e.g. java.activation.FileDataSource).