Skip to content

[Export] doesn't support float[] #1259

Description

@jonpryor

From: dotnet/java-interop#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

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Area: BindingsIssues in Java Library Binding projects.possibly-staleIssues that are potentially no longer relevant.

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions