Return-Path: Delivered-To: apmail-db-derby-commits-archive@www.apache.org Received: (qmail 86769 invoked from network); 19 Oct 2005 22:29:26 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 19 Oct 2005 22:29:26 -0000 Received: (qmail 94400 invoked by uid 500); 19 Oct 2005 22:29:25 -0000 Delivered-To: apmail-db-derby-commits-archive@db.apache.org Received: (qmail 94376 invoked by uid 500); 19 Oct 2005 22:29:25 -0000 Mailing-List: contact derby-commits-help@db.apache.org; run by ezmlm Precedence: bulk list-help: list-unsubscribe: List-Post: Reply-To: "Derby Development" List-Id: Delivered-To: mailing list derby-commits@db.apache.org Received: (qmail 94365 invoked by uid 99); 19 Oct 2005 22:29:25 -0000 X-ASF-Spam-Status: No, hits=-9.4 required=10.0 tests=ALL_TRUSTED,NO_REAL_NAME X-Spam-Check-By: apache.org Received: from [209.237.227.194] (HELO minotaur.apache.org) (209.237.227.194) by apache.org (qpsmtpd/0.29) with SMTP; Wed, 19 Oct 2005 15:29:25 -0700 Received: (qmail 86515 invoked by uid 65534); 19 Oct 2005 22:29:05 -0000 Message-ID: <20051019222905.86505.qmail@minotaur.apache.org> Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: svn commit: r326733 - /db/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/harness/NetServer.java Date: Wed, 19 Oct 2005 22:29:04 -0000 To: derby-commits@db.apache.org From: djd@apache.org X-Mailer: svnmailer-1.0.5 X-Virus-Checked: Checked by ClamAV on apache.org X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N Author: djd Date: Wed Oct 19 15:28:59 2005 New Revision: 326733 URL: http://svn.apache.org/viewcvs?rev=326733&view=rev Log: DERBY-615 Use getConstructor for getting a public constructor in the test harness rather than getDeclaredConstructor which can throw security exceptions. Modified: db/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/harness/NetServer.java Modified: db/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/harness/NetServer.java URL: http://svn.apache.org/viewcvs/db/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/harness/NetServer.java?rev=326733&r1=326732&r2=326733&view=diff ============================================================================== --- db/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/harness/NetServer.java (original) +++ db/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/harness/NetServer.java Wed Oct 19 15:28:59 2005 @@ -258,7 +258,7 @@ { Constructor serverConstructor; Class serverClass = Class.forName(NETWORK_SERVER_CLASS_NAME); - serverConstructor = serverClass.getDeclaredConstructor(null); + serverConstructor = serverClass.getConstructor(null); networkServer = serverConstructor.newInstance(null); pingMethod = networkServer.getClass().getMethod("ping", null);