Return-Path: Delivered-To: apmail-db-derby-dev-archive@www.apache.org Received: (qmail 72035 invoked from network); 1 Feb 2010 15:12:13 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 1 Feb 2010 15:12:13 -0000 Received: (qmail 57044 invoked by uid 500); 1 Feb 2010 15:12:13 -0000 Delivered-To: apmail-db-derby-dev-archive@db.apache.org Received: (qmail 57021 invoked by uid 500); 1 Feb 2010 15:12:13 -0000 Mailing-List: contact derby-dev-help@db.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: Delivered-To: mailing list derby-dev@db.apache.org Received: (qmail 57013 invoked by uid 99); 1 Feb 2010 15:12:13 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 01 Feb 2010 15:12:13 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=10.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.140] (HELO brutus.apache.org) (140.211.11.140) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 01 Feb 2010 15:12:12 +0000 Received: from brutus.apache.org (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id 1C97529A0012 for ; Mon, 1 Feb 2010 07:11:51 -0800 (PST) Message-ID: <1509565062.7661265037111115.JavaMail.jira@brutus.apache.org> Date: Mon, 1 Feb 2010 15:11:51 +0000 (UTC) From: "Dag H. Wanvik (JIRA)" To: derby-dev@db.apache.org Subject: [jira] Commented: (DERBY-4531) Client setCharacterStream closes its Reader argument stream in finalizer In-Reply-To: <740877137.7641265036871145.JavaMail.jira@brutus.apache.org> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/DERBY-4531?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12828129#action_12828129 ] Dag H. Wanvik commented on DERBY-4531: -------------------------------------- The client driver does not similarly close an InputStream given as as argument to setBinaryStream. > Client setCharacterStream closes its Reader argument stream in finalizer > ------------------------------------------------------------------------ > > Key: DERBY-4531 > URL: https://issues.apache.org/jira/browse/DERBY-4531 > Project: Derby > Issue Type: Bug > Components: Network Client > Reporter: Dag H. Wanvik > Priority: Minor > > The javadoc for PreparedStatement.setCharacterStream does not specify that the stream passed in will be closed, only that it will be read to the number of chaaracters required or to EOF, whatever happens first. > For the embedded driver, the stream is not closed after execution; the client driver, however, will close the stream when the internal stream object EncodedInputStream is garbage collected, which can happen any time after the statement has been executed. > I am not sure this a bug vs. the JDBC specification, but it would be nice to harmonize client and embedded behavior on this. -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.