JDK-4291371 - Java Issue Tracker
Nov 14, 1999 ... ... zero. The looping code is actually in the InputStreamReader.fill() method. The first call to the stream's read(byte[]) method returns zero.
Nov 14, 1999 ... ... zero. The looping code is actually in the InputStreamReader.fill() method. The first call to the stream's read(byte[]) method returns zero.
Oracle Java is the #1 programming language and development platform. It reduces costs, shortens development timeframes, drives innovation, and improves application services.
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.
java -cp test.jar Test sun.net.www.protocol.jar.JarURLConnection$JarURLInputStream@1690726 -54 -2 -70 -66 0 0 0 50 minor 0 major 50 If a println is added, System.out.println(is.read(header)); instead of.