Skip to content

(Byte) Array Support ? #1

@montehansen

Description

@montehansen

Experiencing a failure when converting from a string value to a byte array. Not sure if I am doing something wrong, or if perhaps the intent is to register an extension for this use case (perhaps for an encoding selection?). Or perhaps there is no array support? Here's the implementation:

// Where type is a byte[], and value is a string
Object converted = TypeConverter.convert( type, value );

// Thrown
IllegalArgumentException: Could not find type conversion for type "class [B" (value = "1111111")

Nice library BTW. I have been building libraries for eons and for whatever reason, this one always ends up being a something that I shim up "for now". Thanks!

Monte

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions