# This patch file was generated by NetBeans IDE # Following Index: paths are relative to: /home/matthias/src/core-main # This patch can be applied using context Tools: Patch action on respective folder. # It uses platform neutral UTF-8 encoding and \n newlines. # Above lines and this line are ignored by the patching process. Index: db.dataview/src/org/netbeans/modules/db/dataview/table/celleditor/BlobFieldTableCellEditor.java --- db.dataview/src/org/netbeans/modules/db/dataview/table/celleditor/BlobFieldTableCellEditor.java Base (BASE) +++ db.dataview/src/org/netbeans/modules/db/dataview/table/celleditor/BlobFieldTableCellEditor.java Locally Modified (Based On LOCAL) @@ -214,7 +214,9 @@ } /** - * @return true if transfer is complete and not iterrupted + * Note: The streams will be closed after this method was invoked + * + * @return true if transfer is complete and not interrupted */ private boolean doTransfer(InputStream is, OutputStream os, Integer size, String title) throws IOException { MonitorableStreamTransfer ft = new MonitorableStreamTransfer(is, os, size); @@ -225,6 +227,8 @@ } else { t = ft.run(null); } + is.close(); + os.close(); \ No newline at end of file if (t != null && t instanceof RuntimeException) { throw (RuntimeException) t; } else if (t != null && t instanceof IOException) { Index: db.dataview/src/org/netbeans/modules/db/dataview/table/celleditor/ClobFieldTableCellEditor.java --- db.dataview/src/org/netbeans/modules/db/dataview/table/celleditor/ClobFieldTableCellEditor.java Base (BASE) +++ db.dataview/src/org/netbeans/modules/db/dataview/table/celleditor/ClobFieldTableCellEditor.java Locally Modified (Based On LOCAL) @@ -260,7 +260,9 @@ } /** - * @return true if transfer is complete and not iterrupted + * Note: The character streams will be closed after this method was invoked + * + * @return true if transfer is complete and not interrupted */ private boolean doTransfer(Reader in, Writer out, Integer size, String title, boolean sizeEstimated) throws IOException { // Only pass size if it is _not_ estimated @@ -272,6 +274,8 @@ } else { t = ft.run(null); } + in.close(); + out.close(); if (t != null && t instanceof RuntimeException) { throw (RuntimeException) t; } else if (t != null && t instanceof IOException) {