You are viewing a plain text version of this content. The canonical link for it is here.
Posted to common-dev@hadoop.apache.org by "Hari Mankude (Created) (JIRA)" <ji...@apache.org> on 2011/11/19 00:06:51 UTC

[jira] [Created] (HADOOP-7840) Cleanup unnecessary exceptions thrown and unnecessary casts

Cleanup unnecessary exceptions thrown and unnecessary casts
-----------------------------------------------------------

                 Key: HADOOP-7840
                 URL: https://issues.apache.org/jira/browse/HADOOP-7840
             Project: Hadoop Common
          Issue Type: Improvement
          Components: fs
    Affects Versions: 0.24.0
            Reporter: Hari Mankude
            Assignee: Hari Mankude
            Priority: Minor
             Fix For: 0.24.0


Cleanup build warnings. It is the file in the hadoop-common subtree for hdfs-2564.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Resolved] (HADOOP-7840) Cleanup unnecessary exceptions thrown and unnecessary casts

Posted by "Harsh J (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/HADOOP-7840?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Harsh J resolved HADOOP-7840.
-----------------------------

    Resolution: Invalid

If we remove those "throws IOException" bits out of the methods you've changed, won't we inadvertently affect DistributedFileSystem that does Override these methods and makes use of the throws specification? We'll be breaking API if am not wrong.

For example, I tried removing "throws IOException" from FileSystem and DistributedFileSystem immediately complained at the overriden method cause it broke compatibility.

I'm closing this as Invalid, at this point, but please reopen if I got something wrong.
                
> Cleanup unnecessary exceptions thrown and unnecessary casts
> -----------------------------------------------------------
>
>                 Key: HADOOP-7840
>                 URL: https://issues.apache.org/jira/browse/HADOOP-7840
>             Project: Hadoop Common
>          Issue Type: Improvement
>          Components: fs
>    Affects Versions: 0.24.0
>            Reporter: Hari Mankude
>            Assignee: Hari Mankude
>            Priority: Minor
>         Attachments: hadoop-7840.trunk.patch
>
>
> Cleanup build warnings. It is the file in the hadoop-common subtree for hdfs-2564.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira