Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

(Byte) Array Support ? #1

Open
montehansen opened this issue Nov 22, 2017 · 1 comment
Open

(Byte) Array Support ? #1

montehansen opened this issue Nov 22, 2017 · 1 comment

Comments

@montehansen
Copy link

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

@montehansen
Copy link
Author

So, the answer appears to be that there is no built in support for arrays and we must implement it. I will try to submit a pull request for one implementation.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant