android: [Export] doesn't support float[]

From: https://github.com/xamarin/java.interop/issues/264

Steps to Reproduce

  1. Add a class which contains an [Export] method which contains an array parameter.
  2. Call the method in (1) from Java

Expected Behavior

It works!

Actual Behavior

System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation. --->
System.NotSupportedException: Only primitive types and IJavaObject is supported in array type in callback method parameter or return value

What’s funny is that float[] is a “primitive type” for array types.

Related: https://github.com/xamarin/xamarin-android/blob/20123b569151eea9faaa859de902ca9b09a17a5d/src/Mono.Android.Export/CallbackCode.cs#L252

About this issue

  • Original URL
  • State: open
  • Created 9 years ago
  • Reactions: 6
  • Comments: 18 (10 by maintainers)

Commits related to this issue

Most upvoted comments

Is there any updates regrading this issue?