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

Akira Ajisaka commented on HDFS-11233:
--------------------------------------

Thanks [~linyiqun] for the comment and the patch.
branch-2 are using Jackson 1 and 2 at the same time, so I thought probably 
branch-2 is using the deprecated APIs of Jackson 2. Therefore I asked you to 
provide a patch. However, branch-2 is actually using Jackson 1 APIs and is not 
using deprecated APIs of Jackson 2. I don't want to upgrade from Jackson1 to 
Jackson2 in this jira, so I'd like to close this issue. Thanks a lot!

> Fix javac warnings related to the deprecated APIs after upgrading Jackson
> -------------------------------------------------------------------------
>
>                 Key: HDFS-11233
>                 URL: https://issues.apache.org/jira/browse/HDFS-11233
>             Project: Hadoop HDFS
>          Issue Type: Improvement
>    Affects Versions: 3.0.0-alpha2
>            Reporter: Yiqun Lin
>            Assignee: Yiqun Lin
>             Fix For: 3.0.0-alpha2
>
>         Attachments: HDFS-11233-branch-2.001.patch, HDFS-11233.001.patch
>
>
> After HADOOP-12705, the Jackson version upgraded from 2.2.3 to 2.7.8. This 
> lead many APIs which we are used in hadoop being deprecated. Since 2.5, these 
> two APIs are deprecated: {{ObjectReader#readerFor(Class<?> 
> type)}},{{ObjectWriter#writerWithType(JavaType 
> rootType)}}(http://fasterxml.github.io/jackson-databind/javadoc/2.6/com/fasterxml/jackson/databind/ObjectMapper.html).
> According to the doc of ObjectMapper, we can use 
> {{ObjectReader#readerFor(Class<?> type)}} and 
> {{ObjectWriter#writerFor(JavaType)}} instead.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to