You are viewing a plain text version of this content. The canonical link for it is here.
Posted to common-issues@hadoop.apache.org by "Haohui Mai (JIRA)" <ji...@apache.org> on 2015/11/23 01:37:11 UTC

[jira] [Commented] (HADOOP-12309) [Refactor] Use java.lang.Throwable.addSuppressed(Throwable) instead of class org.apache.hadoop.io.MultipleIOException

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

Haohui Mai commented on HADOOP-12309:
-------------------------------------

Hi [~ajithshetty], can you please rebase your patch? Thanks.

> [Refactor] Use java.lang.Throwable.addSuppressed(Throwable) instead of class org.apache.hadoop.io.MultipleIOException
> ---------------------------------------------------------------------------------------------------------------------
>
>                 Key: HADOOP-12309
>                 URL: https://issues.apache.org/jira/browse/HADOOP-12309
>             Project: Hadoop Common
>          Issue Type: Improvement
>            Reporter: Ajith S
>            Assignee: Ajith S
>            Priority: Minor
>         Attachments: HADOOP-12309.2.patch, HADOOP-12309.patch
>
>
> Can use java.lang.Throwable.addSuppressed(Throwable) instead of org.apache.hadoop.io.MultipleIOException as 1.7+ java provides support for this. org.apache.hadoop.io.MultipleIOException can be deprecated as for now
> {code}
> ............
> catch (IOException e) {
>           if(generalException == null)
>           {
>             generalException = new IOException("General exception");
>           }
>           generalException.addSuppressed(e);
>         }
> {code}



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