This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public static void main(String[] args) { | |
Process process = new Process(); | |
process.nativeLongOperation(new CallbackImpl()); | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package demopkg; | |
public class Process { | |
native void nativeLongOperation(ICallback callback); | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package demopkg; | |
public interface ICallback { | |
void onPercent(int percent); | |
void onPercentEx(ComplexStruct cs); | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package demopkg; | |
public class ComplexStruct { | |
int fieldI; | |
byte[] arr; | |
String str; | |
ComplexStruct prior; | |
} |
NewerOlder