db-derby-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From d..@apache.org
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 GMT
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);



Mime
View raw message