java.interop icon indicating copy to clipboard operation
java.interop copied to clipboard

Reject multidimensional arrays in marshaled members

Open radekdoulik opened this issue 7 years ago • 2 comments
trafficstars

Based on https://github.com/xamarin/java.interop/pull/351/files#r208002273, we should reject marshaled members with multidimensional C# arrays.

jnimarshalmethod-gen looks like a good place to do it.

radekdoulik avatar Aug 07 '18 13:08 radekdoulik

It doesn't need to just be [Export] members, it needs to be all members for which we generate marshal members.

Granted, it shouldn't be possible for e.g. a virtual method override to contain multidimensional C# arrays, but if they did...we should error.

jonpryor avatar Aug 07 '18 17:08 jonpryor

That's right, I have updated the title and description. I think I will check it when traversing the API before generating the marshal methods.

radekdoulik avatar Aug 07 '18 17:08 radekdoulik