Uploaded image for project: 'Hadoop HDFS'
  1. Hadoop HDFS
  2. HDFS-11233

Fix javac warnings related to the deprecated APIs after upgrading Jackson

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Minor
    • Resolution: Fixed
    • 3.0.0-alpha2
    • 3.0.0-alpha2
    • None
    • None
    • Reviewed

    Description

      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.

      Attachments

        1. HDFS-11233.001.patch
          14 kB
          Yiqun Lin
        2. HDFS-11233-branch-2.001.patch
          12 kB
          Yiqun Lin

        Issue Links

          Activity

            People

              linyiqun Yiqun Lin
              linyiqun Yiqun Lin
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: