Jackson and JDK 1.5 compatibility problem

370 views
Skip to first unread message

Nikolaj Falstie-Jensen

unread,
Nov 27, 2013, 9:20:12 AM11/27/13
to jacks...@googlegroups.com
Hi everybody,

Thanks for the good work :)

I have started using jackson on an Android project that should support Android version 2.2+.

Unfortunately, I have bumped into a problem; It seems that jackson is depending on a java version 1.6 or higher. Somewhere in the code (CharsToNameCanonicalizer), the method java.util.Arrays.copyOf(...) is used. This method was introduced in version 1.6.

I can see in the wiki (http://wiki.fasterxml.com/JacksonFAQ#Platform) that it is the intention that jackson should work for 1.5.

Is the wiki out of date or should it be considered an error that Arrays.copyOf(...) is used?

Kind regards,
Nikolaj

Tatu Saloranta

unread,
Nov 27, 2013, 2:13:12 PM11/27/13
to jacks...@googlegroups.com
Actually it is documentation that is out of date: Jackson JDK baseline was upgraded to JDK 1.6, as per discussions on dev list, for Jackson 2.2.

It is probably possible to locally modify 2.2 sources to avoid dependency.
But the official distribution will use 1.6 as the baseline, until we decide to bump version up in future -- although there are no plans yet to move to 1.7 at this point.

-+ Tatu +-



--
You received this message because you are subscribed to the Google Groups "jackson-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email to jackson-dev...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.

Nikolaj Falstie-Jensen

unread,
Nov 28, 2013, 3:36:23 AM11/28/13
to jacks...@googlegroups.com
Thank you for the clarification :)
Reply all
Reply to author
Forward
0 new messages