You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@hbase.apache.org by "Hiroshi Ikeda (JIRA)" <ji...@apache.org> on 2012/11/27 04:31:58 UTC
[jira] [Updated] (HBASE-6639) Class.newInstance() can throw any
checked exceptions and must be encapsulated with catching Exception
[ https://issues.apache.org/jira/browse/HBASE-6639?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Hiroshi Ikeda updated HBASE-6639:
---------------------------------
Attachment: HBASE-6639.patch
Added a patch.
Encapsulated with catching Exception, with fixing/refactoring some code.
> Class.newInstance() can throw any checked exceptions and must be encapsulated with catching Exception
> -----------------------------------------------------------------------------------------------------
>
> Key: HBASE-6639
> URL: https://issues.apache.org/jira/browse/HBASE-6639
> Project: HBase
> Issue Type: Bug
> Affects Versions: 0.94.1
> Reporter: Hiroshi Ikeda
> Priority: Minor
> Attachments: HBASE-6639.patch
>
>
> There are some logics to call Class.newInstance() without catching Exception,
> for example, in the method CoprocessorHost.loadInstance().
> Class.newInstance() is declared to throw InstantiationException and IllegalAccessException but indeed the method can throw any checked exceptions without declaration.
--
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