changeset 16522 | d643e3ee819c |
parent 16151 | 97c1e756ae1e |
child 19087 | 47d02733b128 |
16346:5e8c55025644 | 16522:d643e3ee819c |
---|---|
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; |