Re: [ceylon-users] Pass Integer to Java functions

29 views
Skip to first unread message
Message has been deleted

Stephane Epardaud

unread,
May 6, 2017, 8:59:17 AM5/6/17
to ceylon...@googlegroups.com
This should work, what's the Java signature of the function you want to call?

On 6 May 2017 at 12:45, paper1111 <hilary...@gmail.com> wrote:
I was passing a few numbers to a function in Java, and I got this error: 

Illegal argument types in invocation of overloaded method or class: there must be exactly one overloaded declaration of xxx which accepts the given argument types Integer, Integer

and I am calling it as

xxx(11, 12);

There should be some sort of "toll free bridging" like between Objective C and Swift. Btw I like this language, nice null handling (like Swift, I like Swift) so it is very comfortable for me (no NullPointerExceptions all the time).

Could somebody tell me how to pass the numbers correctly?

--
You received this message because you are subscribed to the Google Groups "ceylon-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to ceylon-users+unsubscribe@googlegroups.com.
To post to this group, send email to ceylon...@googlegroups.com.
Visit this group at https://groups.google.com/group/ceylon-users.
To view this discussion on the web visit https://groups.google.com/d/msgid/ceylon-users/de2f2828-bb58-4dbe-a151-33c1d129e9cd%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.



--
Stéphane Épardaud
Reply all
Reply to author
Forward
0 new messages