[ 
https://issues.apache.org/jira/browse/AVRO-1126?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15194391#comment-15194391
 ] 

Tatu Saloranta commented on AVRO-1126:
--------------------------------------

Probably not high priority in any way, but minor suggestions:

1. For non-API-bound types, `Map<String,Object>` makes sense: jsr-353 has a 
slew of issues and may be problematic for Android as well (due to whitelisting 
issues wrt not-included jdk types), plus does not offer much additional value
2. Instead of full Jackson databind, could perhaps consider jackson-jr 
(https://github.com/FasterXML/jackson-jr) which uses `jackson-core` (streaming) 
but only adds about 80kB on top of that (and could be shaded if that makes 
sense)
3. For simplest usage, reading/content to/from Maps/Lists etc, could even just 
use `jackson-core` directly, avoid databinding/mapper. That sheds 80% of 
Jackson's code, reduces potential version conflicts, but still has benefits of 
a mature efficient library

If anyone is interested in some of above perhaps I could help as well.


> 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.9.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.3.4#6332)

Reply via email to