Skip to content

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

Open
@jonpryor

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    Area: BindingsIssues in Java Library Binding projects.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions