# HG changeset patch # User joehw # Date 1502908119 25200 # Node ID 52634f4b683b2882af8a8bb504a8ef83479c21e2 # Parent 5611d2529b49a8752876e17e6eb936233c39c5bc 8186208: closed/javax/xml/jaxp/transform/cr6657673/CR6657673Test.java: test result: Error. failed to clean up files after test Reviewed-by: dfuchs, lancea diff -r 5611d2529b49 -r 52634f4b683b jaxp/src/java.xml/share/classes/com/sun/org/apache/bcel/internal/classfile/JavaClass.java --- a/jaxp/src/java.xml/share/classes/com/sun/org/apache/bcel/internal/classfile/JavaClass.java Sun Aug 13 21:10:40 2017 -0700 +++ b/jaxp/src/java.xml/share/classes/com/sun/org/apache/bcel/internal/classfile/JavaClass.java Wed Aug 16 11:28:39 2017 -0700 @@ -279,7 +279,7 @@ * @param file Output stream * @throws IOException */ - public void dump(final DataOutputStream file) throws IOException { + private void dump(final DataOutputStream file) throws IOException { file.writeInt(Const.JVM_CLASSFILE_MAGIC); file.writeShort(minor); file.writeShort(major); diff -r 5611d2529b49 -r 52634f4b683b jaxp/src/java.xml/share/classes/com/sun/org/apache/xalan/internal/xsltc/compiler/XSLTC.java --- a/jaxp/src/java.xml/share/classes/com/sun/org/apache/xalan/internal/xsltc/compiler/XSLTC.java Sun Aug 13 21:10:40 2017 -0700 +++ b/jaxp/src/java.xml/share/classes/com/sun/org/apache/xalan/internal/xsltc/compiler/XSLTC.java Wed Aug 16 11:28:39 2017 -0700 @@ -102,7 +102,6 @@ private ArrayList m_characterData; // These define the various methods for outputting the translet - public static final int FILE_OUTPUT = 0; public static final int JAR_OUTPUT = 1; public static final int BYTEARRAY_OUTPUT = 2; public static final int CLASSLOADER_OUTPUT = 3; @@ -116,7 +115,7 @@ private String _className = null; // -o private String _packageName = "die.verwandlung"; // override with -p private File _destDir = null; // -d - private int _outputType = FILE_OUTPUT; // by default + private int _outputType = BYTEARRAY_OUTPUT; // by default private ArrayList _classes; private ArrayList _bcelClasses; @@ -897,8 +896,7 @@ public void dumpClass(JavaClass clazz) { - if (_outputType == FILE_OUTPUT || - _outputType == BYTEARRAY_AND_FILE_OUTPUT) + if (_outputType == BYTEARRAY_AND_FILE_OUTPUT) { File outFile = getOutputFile(clazz.getClassName()); String parentDir = outFile.getParent(); @@ -911,12 +909,6 @@ try { switch (_outputType) { - case FILE_OUTPUT: - clazz.dump( - new BufferedOutputStream( - new FileOutputStream( - getOutputFile(clazz.getClassName())))); - break; case JAR_OUTPUT: _bcelClasses.add(clazz); break; @@ -929,8 +921,7 @@ _classes.add(out); if (_outputType == BYTEARRAY_AND_FILE_OUTPUT) - clazz.dump(new BufferedOutputStream( - new FileOutputStream(getOutputFile(clazz.getClassName())))); + clazz.dump(getOutputFile(clazz.getClassName())); else if (_outputType == BYTEARRAY_AND_JAR_OUTPUT) _bcelClasses.add(clazz);