You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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
The text was updated successfully, but these errors were encountered:
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.
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:
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
The text was updated successfully, but these errors were encountered: