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 ...
Nov 5, 2001 ... ... InputStream in = PathTest.class.getResourceAsStream( fileName ); ... program really does what it should) and when some user installs it ...
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.
If you just replace the jar with the same jar not modified (example by cp the jar to it), the exception does not occurs, it occurs simply if the jar file has been modified. The strangest thing is that if I use a ZipInputStream instead of a JarInputStream, there is no problem.
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).
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>.
JDK-8193302 : Javac AssertionError: typeSig ERROR on usage of @Generated Type: Bug Component: tools Sub-Component: javac Affected Version: 9,9.0.1,10 Priority: P3 Status: Closed Resolution: Fixed OS: generic CPU: x86_64 Submitted: 2017-12-08 Updated: 2018-06-30 Resolved: 2018-06-13
HttpExchange.getRequestBody().close() throws the following excpetion when the data is not read from the InputStream.at sun.net.httpserver.LeftOverInputStream.close(LeftOverInputStream.java:48). Attaching the program to produce it. Alos need the port of http.jar for JDK 1.5.
Sub-Component: java.util.jar. Affected Version: 7.public class Test { public static void main(String[] args) throws Exception {. InputStream is = Test.class.getResourceAsStream("Test.class")