Repository navigation
Commit 2c28a44
JNI: closures taking optional strings and numbers wrap them as Java optionals
A closure taking `String?` converts the argument with `toJavaOptional()`,
which makes a `JavaOptional<JavaString>`, but the closure's `@JavaInterface`
declared the parameter as `String?`, so the generated Swift didn't compile.
Optional `String`, `Double`, `Int32` and `Int64` parameters now use the types
`toJavaOptional()` returns.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>1 parent f6497b0 commit 2c28a44
2 files changed
Lines changed: 22 additions & 0 deletions
File tree
- Sources/JExtractSwiftLib/JNI
- Tests/JExtractSwiftTests/JNI
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
93 | 93 | | |
94 | 94 | | |
95 | 95 | | |
| 96 | + | |
| 97 | + | |
| 98 | + | |
| 99 | + | |
| 100 | + | |
| 101 | + | |
| 102 | + | |
| 103 | + | |
| 104 | + | |
| 105 | + | |
96 | 106 | | |
97 | 107 | | |
98 | 108 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
228 | 228 | | |
229 | 229 | | |
230 | 230 | | |
| 231 | + | |
| 232 | + | |
| 233 | + | |
| 234 | + | |
| 235 | + | |
| 236 | + | |
| 237 | + | |
| 238 | + | |
| 239 | + | |
| 240 | + | |
| 241 | + | |
| 242 | + | |
231 | 243 | | |
0 commit comments