hbase-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Andrew Purtell (JIRA)" <j...@apache.org>
Subject [jira] [Updated] (HBASE-6639) Class.newInstance() can throw any checked exceptions and must be encapsulated with catching Exception
Date Tue, 21 Apr 2015 00:40:00 GMT

     [ https://issues.apache.org/jira/browse/HBASE-6639?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Andrew Purtell updated HBASE-6639:
----------------------------------
    Resolution: Incomplete
      Assignee:     (was: Hiroshi Ikeda)
        Status: Resolved  (was: Patch Available)

> 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-V2.patch, HBASE-6639-V3.patch, 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 was sent by Atlassian JIRA
(v6.3.4#6332)

Mime
View raw message