Transpiled version (2064L) is out of date.
1 | static Field makeAccessible(Field f) { |
2 | try { |
3 | f.setAccessible(true); |
4 | } catch e { |
5 | // Note: The error reporting only works with Java VM option --illegal-access=deny |
6 | ifndef LeanMode |
7 | vmBus_send makeAccessible_error(e, f); |
8 | endifndef |
9 | } |
10 | ret f; |
11 | } |
12 | |
13 | static Method makeAccessible(Method m) { |
14 | try { |
15 | m.setAccessible(true); |
16 | } catch e { |
17 | ifndef LeanMode |
18 | vmBus_send makeAccessible_error(e, m); |
19 | endifndef |
20 | } |
21 | ret m; |
22 | } |
23 | |
24 | static Constructor makeAccessible(Constructor c) { |
25 | try { |
26 | c.setAccessible(true); |
27 | } catch e { |
28 | ifndef LeanMode |
29 | vmBus_send makeAccessible_error(e, c); |
30 | endifndef |
31 | } |
32 | ret c; |
33 | } |
download show line numbers debug dex old transpilations
Travelled to 8 computer(s): bhatertpkbcr, cfunsshuasjs, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tvejysmllsmz, vouqrxazstgt, xrpafgyirdlv
No comments. add comment
Snippet ID: | #1022256 |
Snippet name: | makeAccessible - turn Field or Method accessible |
Eternal ID of this version: | #1022256/8 |
Text MD5: | e22d7d521afb3aa6064f4cdccee39793 |
Author: | stefan |
Category: | javax |
Type: | JavaX fragment (include) |
Public (visible to everyone): | Yes |
Archived (hidden from active list): | No |
Created/modified: | 2020-05-27 15:01:55 |
Source code size: | 673 bytes / 33 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 470 / 605 |
Version history: | 7 change(s) |
Referenced in: | [show references] |