Transpiled version (5468L) is out of date.
1 | svoid test_callForbiddenMethodByReflection() {
|
2 | var img = newImage(1, 1); |
3 | print(className(img)); |
4 | O g = call(img, "getGraphics"); |
5 | assertNotNull(g); |
6 | print(className(g)); |
7 | java.lang.Module module1 = g.getClass().getModule(); |
8 | java.lang.Module module2 = mc().getModule(); |
9 | print(+module1); |
10 | print(+module2); |
11 | S packageName = g.getClass().getPackageName(); |
12 | print(+packageName); |
13 | bool isExported = module1.isExported(packageName, module2); |
14 | print(+isExported); |
15 | call(g, "fillRect", 0, 0, 1, 1); |
16 | } |
download show line numbers debug dex old transpilations
Travelled to 4 computer(s): bhatertpkbcr, ekrmjmnbrukm, mowyntqkapby, mqqgnosmbjvj
No comments. add comment
| Snippet ID: | #1034183 |
| Snippet name: | test_callForbiddenMethodByReflection |
| Eternal ID of this version: | #1034183/5 |
| Text MD5: | e86b9f7af6ef3039c4f3e61155403b1e |
| Author: | stefan |
| Category: | javax |
| Type: | JavaX fragment (include) |
| Public (visible to everyone): | Yes |
| Archived (hidden from active list): | No |
| Created/modified: | 2022-03-05 13:19:51 |
| Source code size: | 524 bytes / 16 lines |
| Pitched / IR pitched: | No / No |
| Views / Downloads: | 363 / 518 |
| Version history: | 4 change(s) |
| Referenced in: | [show references] |