Return-Path: Delivered-To: apmail-db-derby-dev-archive@www.apache.org Received: (qmail 52205 invoked from network); 19 Aug 2010 22:17:38 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 19 Aug 2010 22:17:38 -0000 Received: (qmail 5669 invoked by uid 500); 19 Aug 2010 22:17:38 -0000 Delivered-To: apmail-db-derby-dev-archive@db.apache.org Received: (qmail 5638 invoked by uid 500); 19 Aug 2010 22:17:37 -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 5631 invoked by uid 99); 19 Aug 2010 22:17:37 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 19 Aug 2010 22:17:37 +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.22] (HELO thor.apache.org) (140.211.11.22) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 19 Aug 2010 22:17:37 +0000 Received: from thor (localhost [127.0.0.1]) by thor.apache.org (8.13.8+Sun/8.13.8) with ESMTP id o7JMHHBW009009 for ; Thu, 19 Aug 2010 22:17:17 GMT Message-ID: <27517461.456651282256237145.JavaMail.jira@thor> Date: Thu, 19 Aug 2010 18:17:17 -0400 (EDT) From: "Dag H. Wanvik (JIRA)" To: derby-dev@db.apache.org Subject: [jira] Updated: (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:all-tabpanel ] Dag H. Wanvik updated DERBY-4531: --------------------------------- Issue & fix info: [Release Note Needed, Repro attached] (was: [Patch Available, Release Note Needed, Repro attached]) > 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 > Affects Versions: 10.2.1.6, 10.2.2.0, 10.3.1.4, 10.3.2.1, 10.3.3.0, 10.4.1.3, 10.4.2.0, 10.5.1.1, 10.5.2.0, 10.5.3.0 > Reporter: Dag H. Wanvik > Assignee: Dag H. Wanvik > Priority: Minor > Attachments: derby-4531-1a-test_workaround.diff, derby-4531.diff, derby-4531b.diff, derby-4531b.stat, Repro.java > > > The javadoc for PreparedStatement.setCharacterStream does not specify that the stream passed in will be closed, only that it will read to the number of characters specified. > 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.