hbase-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Zhihong Ted Yu (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (HBASE-6639) Class.newInstance() can throw any checked exceptions and must be encapsulated with catching Exception
Date Thu, 23 Aug 2012 03:27:42 GMT

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

Zhihong Ted Yu commented on HBASE-6639:
---------------------------------------

@Hiroshi:
Can you clarify your observation ?
See http://docs.oracle.com/javase/6/docs/api/java/lang/reflect/Constructor.html#newInstance%28java.lang.Object...%29
                
> 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
>
> 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: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

Mime
View raw message