fixed testcase

This commit is contained in:
wenshao
2013-05-27 18:14:42 +08:00
parent 2b667024ab
commit 8af9c6f976
7 changed files with 43 additions and 12 deletions
@@ -585,11 +585,12 @@ public abstract class WallProvider {
}
public static <T> T doPrivileged(PrivilegedAction<T> action) {
final Boolean original = privileged.get();
privileged.set(Boolean.TRUE);
try {
return action.run();
} finally {
privileged.set(null);
privileged.set(original);
}
}