Re: Interop for primitive types

2013-04-19 Thread Softaddicts
I agree with you that matching exactly the java method signatures would be less confusing. I was advocating this to be as transparent as possible with interop. I was in minority :) Reviewing what I said, case 1b is a bit more complex, the compiler cannot decide between the two methods case (byte

Re: Interop for primitive types

2013-04-19 Thread Alice
The problem is that the current behavior is not consistent with what you describe. Sometimes it fails, but sometimes it works when it should fail. And there's no documentation or guidelines about the current behavior at all, so it's all very confusing. My opinion is that interop is essentially ug

Re: Interop for primitive types

2013-04-18 Thread Softaddicts
1) Your signature has to match your java method, (Foo/bar (byte 1)) will work. 2) There's been a long thread about this. People wanted ints and longs to have a similar behavior and match whatever signature is available when doing interop. When passing (Long. 1), interop tries t