JDK-4030374 - Java Issue Tracker
Feb 5, 1997 ... In the code for the Inner constructor, you use an accessor method to ... Middle(Outer) // constructor for Outer.Middle 0 aload_0 1 dup 2 ...
Feb 5, 1997 ... In the code for the Inner constructor, you use an accessor method to ... Middle(Outer) // constructor for Outer.Middle 0 aload_0 1 dup 2 ...
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.
DiningPhilosophers.java.The number of Philosophers who share the two chopsticks is given. as a command-line argument. The program reads the String in, converts it. to an integer value, and then uses that value to determine the number of.
If the String passed to the BigInteger(String, int) constructor begins with "-- " (two minus signs), or "-0-" then a BigInteger object is created even though such a String is badly formatted. Since BigDecimal(String) depends on the above BigInteger constructor, BigDecimal also has...
This problem only occurs if a String constructor has been passed a StringBuffer object as a parameter (which causes the StringBuffer's "shared" flag to be set to true) *AND* the StringBuffer's length is later set to zero. The coding error is in the "StringBuffer.setLength()" method.