You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@river.apache.org by pe...@apache.org on 2009/12/01 00:35:59 UTC
svn commit: r885620 -
/incubator/river/jtsk/trunk/qa/src/com/sun/jini/test/spec/security/security/VerifyObjectTrustTest.java
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);