mirror of
https://github.com/unicode-org/icu.git
synced 2025-04-15 01:42:37 +00:00
ICU-6683 CoverageTest#getTargets to return null under Java security manager instead of the fake target, which triggers a test failure.
X-SVN-Rev: 25271
This commit is contained in:
parent
14101daa30
commit
2550a67693
1 changed files with 7 additions and 2 deletions
|
@ -1,6 +1,6 @@
|
|||
/*
|
||||
*******************************************************************************
|
||||
* Copyright (C) 2005-2008, International Business Machines Corporation and *
|
||||
* Copyright (C) 2005-2009, International Business Machines Corporation and *
|
||||
* others. All Rights Reserved. *
|
||||
*******************************************************************************
|
||||
*
|
||||
|
@ -183,7 +183,12 @@ public class CoverageTest extends CompatibilityTest implements URLHandler.URLVis
|
|||
|
||||
if (System.getSecurityManager() != null) {
|
||||
// This test won't run under a security manager
|
||||
return new CoverageTarget("Skipped Due To Security Manager", Modifier.ABSTRACT, null);
|
||||
|
||||
// TODO: Is the above statement really true?
|
||||
// We probably need to set up the security policy properly
|
||||
// for writing/reading serialized data.
|
||||
|
||||
return null;
|
||||
}
|
||||
|
||||
if(serializable==null){
|
||||
|
|
Loading…
Add table
Reference in a new issue