Commit 38b3987
committed
Require pre-parsed JNI signatures
JNI signatures are now expected to be pre-parsed into a MethodSignature
or FieldSignature before being used to make method calls or get/set
fields.
In the common case the `jni_sig!()` macro can be used to parse a JNI
signature at compile time and emit the appropriate `*Signature` struct.
In the unlikely case that a signature needs to be parsed at runtime then
`RuntimeMethodSignature/RuntimeFieldSignature::from_str` can be used
and it's then possible to borrow a `MethodSignature` or `FieldSignature`
from these runtime structs.1 parent 33345cd commit 38b3987
File tree
21 files changed
+679
-342
lines changed- jni-macros/src
- src
- descriptors
- objects
- strings
- vm
- tests
- util
21 files changed
+679
-342
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2044 | 2044 | | |
2045 | 2045 | | |
2046 | 2046 | | |
2047 | | - | |
2048 | 2047 | | |
2049 | 2048 | | |
2050 | 2049 | | |
| |||
2053 | 2052 | | |
2054 | 2053 | | |
2055 | 2054 | | |
2056 | | - | |
| 2055 | + | |
2057 | 2056 | | |
2058 | 2057 | | |
2059 | 2058 | | |
| |||
3918 | 3917 | | |
3919 | 3918 | | |
3920 | 3919 | | |
3921 | | - | |
3922 | 3920 | | |
3923 | 3921 | | |
3924 | 3922 | | |
| |||
3928 | 3926 | | |
3929 | 3927 | | |
3930 | 3928 | | |
3931 | | - | |
| 3929 | + | |
3932 | 3930 | | |
3933 | 3931 | | |
3934 | 3932 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3 | 3 | | |
4 | 4 | | |
5 | 5 | | |
| 6 | + | |
6 | 7 | | |
7 | 8 | | |
8 | 9 | | |
| |||
17 | 18 | | |
18 | 19 | | |
19 | 20 | | |
20 | | - | |
21 | | - | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
22 | 31 | | |
23 | 32 | | |
24 | 33 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3 | 3 | | |
4 | 4 | | |
5 | 5 | | |
| 6 | + | |
6 | 7 | | |
7 | 8 | | |
8 | 9 | | |
9 | | - | |
| 10 | + | |
10 | 11 | | |
11 | 12 | | |
12 | 13 | | |
13 | | - | |
| 14 | + | |
14 | 15 | | |
15 | 16 | | |
16 | 17 | | |
| |||
19 | 20 | | |
20 | 21 | | |
21 | 22 | | |
22 | | - | |
| 23 | + | |
23 | 24 | | |
24 | 25 | | |
25 | 26 | | |
26 | | - | |
| 27 | + | |
27 | 28 | | |
28 | 29 | | |
29 | 30 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3 | 3 | | |
4 | 4 | | |
5 | 5 | | |
| 6 | + | |
6 | 7 | | |
7 | 8 | | |
8 | 9 | | |
9 | | - | |
| 10 | + | |
10 | 11 | | |
11 | 12 | | |
12 | 13 | | |
13 | | - | |
| 14 | + | |
14 | 15 | | |
15 | 16 | | |
16 | 17 | | |
| |||
19 | 20 | | |
20 | 21 | | |
21 | 22 | | |
22 | | - | |
| 23 | + | |
| 24 | + | |
23 | 25 | | |
24 | 26 | | |
25 | | - | |
| 27 | + | |
26 | 28 | | |
27 | 29 | | |
28 | 30 | | |
| |||
31 | 33 | | |
32 | 34 | | |
33 | 35 | | |
34 | | - | |
| 36 | + | |
| 37 | + | |
35 | 38 | | |
36 | 39 | | |
37 | 40 | | |
38 | | - | |
| 41 | + | |
39 | 42 | | |
40 | 43 | | |
41 | 44 | | |
| |||
0 commit comments