Return-Path: Delivered-To: apmail-db-derby-dev-archive@www.apache.org Received: (qmail 42381 invoked from network); 27 Aug 2008 20:26:06 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 27 Aug 2008 20:26:06 -0000 Received: (qmail 93018 invoked by uid 500); 27 Aug 2008 20:26:03 -0000 Delivered-To: apmail-db-derby-dev-archive@db.apache.org Received: (qmail 92975 invoked by uid 500); 27 Aug 2008 20:26:03 -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 92914 invoked by uid 99); 27 Aug 2008 20:26:03 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 27 Aug 2008 13:26:03 -0700 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; Wed, 27 Aug 2008 20:25:14 +0000 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id 5AB68234C1BA for ; Wed, 27 Aug 2008 13:25:44 -0700 (PDT) Message-ID: <756121312.1219868744370.JavaMail.jira@brutus> Date: Wed, 27 Aug 2008 13:25:44 -0700 (PDT) From: "Kim Haase (JIRA)" To: derby-dev@db.apache.org Subject: [jira] Commented: (DERBY-503) Documentation should recommend using .newInstance() to instantiate JDBC driver In-Reply-To: <1318471638.1123837374218.JavaMail.jira@ajax.apache.org> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org [ https://issues.apache.org/jira/browse/DERBY-503?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12626309#action_12626309 ] Kim Haase commented on DERBY-503: --------------------------------- Thanks again for the quick and helpful review, Knut Anders. > Documentation should recommend using .newInstance() to instantiate JDBC driver > ------------------------------------------------------------------------------ > > Key: DERBY-503 > URL: https://issues.apache.org/jira/browse/DERBY-503 > Project: Derby > Issue Type: Improvement > Components: Documentation > Affects Versions: 10.1.1.0 > Reporter: Oyvind Bakksjo > Assignee: Kim Haase > Priority: Minor > Fix For: 10.5.0.0 > > Attachments: DERBY-503-2.diff, DERBY-503-2.zip, DERBY-503.diff, DERBY-503.stat, DERBY-503.zip > > > Using Class.forName("").newInstance() is the recommended way to load and instantiate the JDBC driver, but the documentation does not contain the .newInstance() part. > Pointers: > http://db.apache.org/derby/docs/10.1/devguide/cdevdvlp40653.html > http://db.apache.org/derby/docs/10.1/ref/rrefjdbc32052.html > The EmbeddedDriver javadoc mentions it: > "The JDBC specification recommends the Class.ForName method without the .newInstance() method call, but adding the newInstance() guarantees that Derby will be booted on any Java Virtual Machine." -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.