Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Document example for @wrapper & multiple-method interface #561

Closed
rahulmutt opened this issue Nov 17, 2017 · 3 comments · Fixed by #938
Closed

Document example for @wrapper & multiple-method interface #561

rahulmutt opened this issue Nov 17, 2017 · 3 comments · Fixed by #938

Comments

@rahulmutt
Copy link
Member

No description provided.

@jneira
Copy link
Collaborator

jneira commented Oct 24, 2018

Recovering a @rahulmutt gitter message the example could be similar to

  • generic
foreign import java unsafe "@wrapper method1,method2" :: ([signature-of-method-one])
                                                      -> ([signature-of-method-two]) -> [jwt]
  • for
 public interface SomeInterface {
       String method1(int i);
       double method2(int i, int j);
}
  • it would be
foreign import java unsafe "@wrapper method1,method2" :: (Int -> SomeInterface JString)
                                                      -> (Int -> Int -> SomeInterface JDouble) 
                                                      -> SomeInterface

@rahulmutt
Copy link
Member Author

@jneira Looks good! Interested in submitting a PR?

@jneira
Copy link
Collaborator

jneira commented Oct 25, 2018

# for free to join this conversation on GitHub. Already have an account? # to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants