JDK-4030374 - Java Issue Tracker
Feb 5, 1997 ... ... Java allows subclass methods to be run from the superclass constructor. // ... In the code for the Inner constructor, you use an accessor method ...
Feb 5, 1997 ... ... Java allows subclass methods to be run from the superclass constructor. // ... In the code for the Inner constructor, you use an accessor method ...
This Principal-Set is a __synchronized__ javax.security.auth.Subject.SecureSet. The add-method aquires the internal mutex of this synchronized Set and call the add-method on the underlying SecureSet.
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.
For example, running com/sun/jdi/RedefineClearBreakpoint.sh with hs-rt product bits: 19 seconds.I would suspect a method-handles initalization issue - perhaps combined with compact string changes. Where does one find shtest.java?
That way the benefits of using such methods would be encouraged. Maybe have the static factory methods grouped after the constructors in the javadoc. In one instance this would be beneficial since some constructors will be private and thus uninstantiable by normal conventions.