| jeffhao | 5d1ac92 | 2011-09-29 17:41:15 -0700 | [diff] [blame^] | 1 | // Copyright 2007 The Android Open Source Project |
| 2 | |||||
| 3 | import java.security.AccessController; | ||||
| 4 | |||||
| 5 | /** | ||||
| 6 | * Test java.security.AccessController. | ||||
| 7 | */ | ||||
| 8 | public class Main { | ||||
| 9 | public static void main(String[] args) { | ||||
| 10 | Privvy priv = new Privvy(38); | ||||
| 11 | Integer result = AccessController.doPrivileged(priv); | ||||
| 12 | System.out.println("AccessControllerTest: got " + result); | ||||
| 13 | } | ||||
| 14 | } | ||||