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

Support for Android API 8 #131

Closed
vovkab opened this issue Feb 11, 2014 · 2 comments
Closed

Support for Android API 8 #131

vovkab opened this issue Feb 11, 2014 · 2 comments

Comments

@vovkab
Copy link

vovkab commented Feb 11, 2014

Hi

I'm having an issues with latest jackson. It crashes on android api8 because it doesn't have Arrays.copyOf().

The easiest fix would be just to replace all calls to Arrays.copyOf() with System.arraycopy()

Gradle config:
compile 'com.fasterxml.jackson.core:jackson-core:2.3.0'
compile 'com.fasterxml.jackson.core:jackson-databind:2.3.0'
compile 'com.fasterxml.jackson.core:jackson-annotations:2.3.0'

Crash:
java.lang.NoSuchMethodError: java.util.Arrays.copyOf
at com.fasterxml.jackson.core.sym.CharsToNameCanonicalizer.copyArrays(CharsToNameCanonicalizer.java:579)
at com.fasterxml.jackson.core.sym.CharsToNameCanonicalizer.findSymbol(CharsToNameCanonicalizer.java:494)
at com.fasterxml.jackson.core.json.ReaderBasedJsonParser.parseName(ReaderBasedJsonParser.java:1210)
at com.fasterxml.jackson.core.json.ReaderBasedJsonParser.nextToken(ReaderBasedJsonParser.java:612)
at com.fasterxml.jackson.databind.deser.BeanDeserializer.deserialize(BeanDeserializer.java:118)
at com.fasterxml.jackson.databind.ObjectMapper.readMapAndClose(ObjectMapper.java:2986)
at com.fasterxml.jackson.databind.ObjectMapper.readValue(ObjectMapper.java:2091)

Thanks!

@cowtowncoder
Copy link
Member

Version 2.3.2 will add a temporary backport of functionality, so that will work on old(er) Android versions.

Not that support will be dropped from 2.4, as per discussions on dev mailing list. But for 2.3.x we can go back, just to give developers bit more time & known working version (so that patch releases can be made for 2.3.x for critical issues).

@cowtowncoder
Copy link
Member

Issue relevant here is #126 so closing this one.

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