Commit af05e0a
committed
fix
Java's `init` methods are bridged as is and made swift compatible
via the backticks.
At runtime though, this is forgotten and the java methods are looked up
_with_ the backticks.
This approach of fixing adds a `@JavaMethod("init")` annotation, which fixes
the issue.
(Though I'm not sure if this shouldn't be fixed in the generated macro code.
Open for suggestions!)init naming mismatch1 parent 0685f55 commit af05e0a
File tree
2 files changed
+37
-0
lines changed- Sources/SwiftJavaToolLib
- Tests/SwiftJavaToolLibTests/WrapJavaTests
2 files changed
+37
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
697 | 697 | | |
698 | 698 | | |
699 | 699 | | |
| 700 | + | |
| 701 | + | |
| 702 | + | |
| 703 | + | |
| 704 | + | |
700 | 705 | | |
701 | 706 | | |
702 | 707 | | |
| |||
Lines changed: 32 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
88 | 88 | | |
89 | 89 | | |
90 | 90 | | |
| 91 | + | |
| 92 | + | |
| 93 | + | |
| 94 | + | |
| 95 | + | |
| 96 | + | |
| 97 | + | |
| 98 | + | |
| 99 | + | |
| 100 | + | |
| 101 | + | |
| 102 | + | |
| 103 | + | |
| 104 | + | |
| 105 | + | |
| 106 | + | |
| 107 | + | |
| 108 | + | |
| 109 | + | |
| 110 | + | |
| 111 | + | |
| 112 | + | |
| 113 | + | |
| 114 | + | |
| 115 | + | |
| 116 | + | |
| 117 | + | |
| 118 | + | |
| 119 | + | |
| 120 | + | |
| 121 | + | |
| 122 | + | |
91 | 123 | | |
0 commit comments