133:5759f600fcf7 | 136:c54e218333be |
---|---|
28 * @security | 28 * @security |
29 * @run | 29 * @run |
30 */ | 30 */ |
31 | 31 |
32 function check(e) { | 32 function check(e) { |
33 if (e instanceof java.lang.SecurityException) { | 33 if (! (e instanceof java.lang.SecurityException)) { |
34 print(e); | |
35 } else { | |
36 fail("expected SecurityException, got " + e); | 34 fail("expected SecurityException, got " + e); |
37 } | 35 } |
38 } | 36 } |
39 | 37 |
40 var cl = java.lang.Class.class; | 38 var cl = java.lang.Class.class; |