Browse Source

HDFS-2331. Fix WebHdfsFileSystem compilation problems for a bug in JDK version < 1.6.0_26. Contributed by Abhijit Suresh Shingate

git-svn-id: https://svn.apache.org/repos/asf/hadoop/common/branches/branch-0.20-security@1170997 13f79535-47bb-0310-9956-ffa450edef68
Tsz-wo Sze 13 năm trước cách đây
mục cha
commit
84fac66f75
2 tập tin đã thay đổi với 4 bổ sung1 xóa
  1. 3 0
      CHANGES.txt
  2. 1 1
      src/hdfs/org/apache/hadoop/hdfs/web/WebHdfsFileSystem.java

+ 3 - 0
CHANGES.txt

@@ -154,6 +154,9 @@ Release 0.20.205.0 - unreleased
     HDFS-2328. HFTP throws NPE if security is enabled locally, but not 
     remotely. (omalley)
 
+    HDFS-2331. Fix WebHdfsFileSystem compilation problems for a bug in JDK
+    version < 1.6.0_26.  (Abhijit Suresh Shingate via szetszwo)
+
   IMPROVEMENTS
 
     MAPREDUCE-2187. Reporter sends progress during sort/merge. (Anupam Seth via

+ 1 - 1
src/hdfs/org/apache/hadoop/hdfs/web/WebHdfsFileSystem.java

@@ -201,7 +201,7 @@ public class WebHdfsFileSystem extends HftpFileSystem {
     final HttpURLConnection conn = httpConnect(op, fspath, parameters);
     validateResponse(op, conn);
     try {
-      return jsonParse(conn.getInputStream());
+      return WebHdfsFileSystem.<T>jsonParse(conn.getInputStream());
     } finally {
       conn.disconnect();
     }