mysql-connector-java/mysql-connector-java-noSunAppletSecurity.patch
Igor Foox 1678fab4ee auto-import mysql-connector-java-3.1.12-1jpp_5fc on branch devel from
mysql-connector-java-3.1.12-1jpp_5fc.src.rpm
2006-09-08 21:26:15 +00:00

32 lines
1.1 KiB
Diff

--- src/testsuite/regression/AppletRegressionTest.java.orig 2006-05-31 11:43:13.000000000 -0400
+++ src/testsuite/regression/AppletRegressionTest.java 2006-05-31 11:44:23.000000000 -0400
@@ -26,7 +26,7 @@
import java.util.Properties;
-import sun.applet.AppletSecurity;
+//import sun.applet.AppletSecurity;
import testsuite.BaseTestCase;
/**
@@ -66,9 +66,9 @@
* @throws Exception
* if the test fails
*/
- public void testAppletSecurityManager() throws Exception {
+ public void testSecurityManagerManager() throws Exception {
if ("true".equalsIgnoreCase(System.getProperty(TOGGLE_RUN_PROPERTY))) {
- System.setSecurityManager(new CustomAppletSecurity());
+ System.setSecurityManager(new CustomSecurityManager());
getConnectionWithProps(new Properties());
}
@@ -78,7 +78,7 @@
* We need to customize the security manager a 'bit', so that JUnit still
* works (and we can connect to various databases).
*/
- class CustomAppletSecurity extends AppletSecurity {
+ class CustomSecurityManager extends SecurityManager {
/*
* (non-Javadoc)
*