[
https://issues.apache.org/jira/browse/AVRO-1126?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13787606#comment-13787606
]
Nick Williams commented on AVRO-1126:
-------------------------------------
{quote}Upgrading to 2.x from 1.x is a different issue. I fail to see how
upgrading to 2.2 is urgent at all. What new features do you propose that Avro
needs to use internally? If Avro no longer exposes Jackson in its API, it is a
purely internal matter to Avro and does not affect users who might want to use
Jackson 2.x themselves, since Jackson 1.x and 2.x live in non-conflicting
namespaces both in maven and java package names.{quote}
The point isn't what new features Avro can use directly. It's what new features
Avro can use transiently. For example, Jackson 2.2 supports the new Date & Time
API introduced in Java 8 (java.time.*). If an end user hands of some object to
Avro that contains a {{java.time.Instant}} and Avro is using Jackson 1.9,
Jackson won't know what to do with it. If, however, Avro is using Jackson 2.2,
Jackson _will_ know what to do with it.
Jackson is always adding new data types that it natively supports, but they are
not being added to the 1.9 branch. They are being added to 2.x. If Avro wants
to support these new types as well, it must start using Jackson 2.2.
> Upgrade to Jackson 2+
> ---------------------
>
> Key: AVRO-1126
> URL: https://issues.apache.org/jira/browse/AVRO-1126
> Project: Avro
> Issue Type: Task
> Components: java
> Reporter: James Tyrrell
> Priority: Critical
> Fix For: 1.8.0
>
>
> Quite annoyingly with Jackson 2+ the base package name has changed from
> org.codehaus.jackson to com.fasterxml.jackson so in addition to changing the
> dependencies from:
> {code:xml}
> <dependency>
> <groupId>org.codehaus.jackson</groupId>
> <artifactId>jackson-core-asl</artifactId>
> <version>${jackson.version}</version>
> </dependency>
> <dependency>
> <groupId>org.codehaus.jackson</groupId>
> <artifactId>jackson-mapper-asl</artifactId>
> <version>${jackson.version}</version>
> </dependency>
> {code}
> to:
> {code:xml}
> <dependency>
> <groupId>com.fasterxml.jackson.core</groupId>
> <artifactId>jackson-core</artifactId>
> <version>${jackson.version}</version>
> </dependency>
> <dependency>
> <groupId>com.fasterxml.jackson.core</groupId>
> <artifactId>jackson-databind</artifactId>
> <version>${jackson.version}</version>
> </dependency>
> {code}
> the base package in the code needs to be updated. More info can be found
> [here|http://wiki.fasterxml.com/JacksonUpgradeFrom19To20], I am happy to do
> the work just let me know what is preferable i.e. should I just attach a
> patch to this issue?
--
This message was sent by Atlassian JIRA
(v6.1#6144)