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/trunk@1170996 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
9704960e42
commit
be2b0921fa
@ -35,6 +35,9 @@ Trunk (unreleased changes)
|
|||||||
|
|
||||||
HDFS-2314. MRV1 test compilation broken after HDFS-2197 (todd)
|
HDFS-2314. MRV1 test compilation broken after HDFS-2197 (todd)
|
||||||
|
|
||||||
|
HDFS-2331. Fix WebHdfsFileSystem compilation problems for a bug in JDK
|
||||||
|
version < 1.6.0_26. (Abhijit Suresh Shingate via szetszwo)
|
||||||
|
|
||||||
Release 0.23.0 - Unreleased
|
Release 0.23.0 - Unreleased
|
||||||
|
|
||||||
INCOMPATIBLE CHANGES
|
INCOMPATIBLE CHANGES
|
||||||
|
@ -206,7 +206,7 @@ private <T> T run(final HttpOpParam.Op op, final Path fspath,
|
|||||||
final HttpURLConnection conn = httpConnect(op, fspath, parameters);
|
final HttpURLConnection conn = httpConnect(op, fspath, parameters);
|
||||||
validateResponse(op, conn);
|
validateResponse(op, conn);
|
||||||
try {
|
try {
|
||||||
return jsonParse(conn.getInputStream());
|
return WebHdfsFileSystem.<T>jsonParse(conn.getInputStream());
|
||||||
} finally {
|
} finally {
|
||||||
conn.disconnect();
|
conn.disconnect();
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user