test/script/sandbox/reflection.js

changeset 136
c54e218333be
parent 7
5a1b0714df0e
child 458
4b06441b7624
equal deleted inserted replaced
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;

mercurial