river-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From peter_firmst...@apache.org
Subject svn commit: r885620 - /incubator/river/jtsk/trunk/qa/src/com/sun/jini/test/spec/security/security/VerifyObjectTrustTest.java
Date Mon, 30 Nov 2009 23:35:59 GMT
Author: peter_firmstone
Date: Mon Nov 30 23:35:59 2009
New Revision: 885620

URL: http://svn.apache.org/viewvc?rev=885620&view=rev
Log:
QA build has a minimum requirement of JDK1.6, although the current River release supports
Java 1.4, this commit reverts back to java 1.4 language feaures, methods changed to avoid
depreciated method .toURL();

Modified:
    incubator/river/jtsk/trunk/qa/src/com/sun/jini/test/spec/security/security/VerifyObjectTrustTest.java

Modified: incubator/river/jtsk/trunk/qa/src/com/sun/jini/test/spec/security/security/VerifyObjectTrustTest.java
URL: http://svn.apache.org/viewvc/incubator/river/jtsk/trunk/qa/src/com/sun/jini/test/spec/security/security/VerifyObjectTrustTest.java?rev=885620&r1=885619&r2=885620&view=diff
==============================================================================
--- incubator/river/jtsk/trunk/qa/src/com/sun/jini/test/spec/security/security/VerifyObjectTrustTest.java
(original)
+++ incubator/river/jtsk/trunk/qa/src/com/sun/jini/test/spec/security/security/VerifyObjectTrustTest.java
Mon Nov 30 23:35:59 2009
@@ -210,7 +210,6 @@
      * This method performs all actions mentioned in class description.
      *
      */
-    @SuppressWarnings("deprecation")
     public void run() throws Exception {
         File jarFile = null;
         Object testObj = new TestObject();
@@ -250,7 +249,7 @@
             if (useNullLoader[i]) {
                 testCl = null;
             } else {
-                testCl = new FakeClassLoader(jarFile.toURL());
+                testCl = new FakeClassLoader(jarFile.toURI().toURL());
             }
 
             try {
@@ -279,10 +278,10 @@
                 if (useNullLoader[i]) {
                     testCl = null;
                 } else {
-                    testCl = new FakeClassLoader(jarFile.toURL());
+                    testCl = new FakeClassLoader(jarFile.toURI().toURL());
                 }
                 Thread.currentThread().setContextClassLoader(
-                        new FakeClassLoader(jarFile.toURL()));
+                        new FakeClassLoader(jarFile.toURI().toURL()));
 
                 try {
                     callVerifyObjectTrust(testObj, testCl, testCtx);



Mime
View raw message