Skip to content
This repository was archived by the owner on Apr 25, 2024. It is now read-only.
This repository was archived by the owner on Apr 25, 2024. It is now read-only.

:constructor-args with primitive values #57

@roti

Description

@roti

I tried to use :constructor-args with a View class that has a constructor with two arguments, the second beeing a primitive int.

[:my-view {:constructor-args [256]}
results in following error
java.lang.NoSuchMethodException: <init> [class android.content.Context, class java.lang.Long]

[:my-view {:constructor-args [(int 256)]}
results in following error
java.lang.NoSuchMethodException: <init> [class android.content.Context, class java.lang.Integer]

I believe the only way to support this case, is to add some kind of special syntax or metadata to :constructor-args.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions