File tree Expand file tree Collapse file tree 3 files changed +4
-3
lines changed
JavaSwiftKitDemo/src/main/java Expand file tree Collapse file tree 3 files changed +4
-3
lines changed Original file line number Diff line number Diff line change 1313//===----------------------------------------------------------------------===//
1414
1515package com .example .swift ;
16+
1617import com .example .swift .HelloSwift ;
1718
1819public class HelloSubclass extends HelloSwift {
Original file line number Diff line number Diff line change 1313//===----------------------------------------------------------------------===//
1414
1515package com .example .swift ;
16+
1617import com .example .swift .HelloSubclass ;
1718
1819public class HelloSwift {
Original file line number Diff line number Diff line change @@ -200,14 +200,13 @@ public static void globalCallJavaCallback(Runnable callMe) {
200200 var mh$ = globalCallJavaCallback .HANDLE ;
201201
202202 try {
203+ // signature of 'void run()'
203204 FunctionDescriptor callMe_run_desc = FunctionDescriptor .ofVoid (
204- // replicate signature of run()
205205 );
206206 MethodHandle callMe_run_handle = MethodHandles .lookup ()
207207 .findVirtual (Runnable .class ,
208208 "run" ,
209- callMe_run_desc .toMethodType ()
210- );
209+ callMe_run_desc .toMethodType ());
211210 callMe_run_handle = callMe_run_handle .bindTo (callMe ); // set the first parameter to the Runnable as the "this" of the callback pretty much
212211
213212 try (Arena arena = Arena .ofConfined ()) {
You can’t perform that action at this time.
0 commit comments