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

Jedis incompatible with Android because it uses getBytes(Charset) #47

Closed
esilverberg opened this issue Nov 18, 2010 · 4 comments
Closed

Comments

@esilverberg
Copy link

Jedis depends on this implementation of getBytes

http://download.oracle.com/javase/6/docs/api/java/lang/String.html#getBytes(java.nio.charset.Charset)

Which is not available on Android. Could it use:
http://developer.android.com/reference/java/lang/String.html#getBytes(java.lang.String)

Unfortunately, that throws an exception, which jedis would now have to catch

@xetorthio
Copy link
Contributor

Yes, I think there will be no problem doing that.

@esilverberg
Copy link
Author

I looked into re-writing the code myself, but found it would take a great deal of time because the available getBytes method throws UnsupportedEncodingException.

@xetorthio
Copy link
Contributor

Just pushed to master a small refactoring for java 1.5 which handle the UnsupportedEncodingException. I think it should be OK now for android. Please let me know so I can close this issue.

@xetorthio
Copy link
Contributor

any news of this? I will close this issue for now and if someone else thinks it is not compatible we'll open a new one.

This issue was closed.
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

2 participants