--- old/src/share/classes/java/util/logging/StreamHandler.java 2013-12-02 08:52:43.263815081 +0100 +++ new/src/share/classes/java/util/logging/StreamHandler.java 2013-12-02 08:52:43.128817546 +0100 @@ -99,11 +99,21 @@ } } + // Package private support for security checking. When isSealed + // returns true, we access check updates to the class. + // Initially the value is false, but we set to true at end of + // each constructor... + private final boolean sealed; + + @Override + boolean isSealed() { + return sealed; + } + /** * Create a StreamHandler, with no current output stream. */ public StreamHandler() { - sealed = false; configure(); sealed = true; } @@ -116,7 +126,6 @@ * @param formatter Formatter to be used to format output */ public StreamHandler(OutputStream out, Formatter formatter) { - sealed = false; configure(); setFormatter(formatter); setOutputStream(out);