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