[ 
https://issues.apache.org/jira/browse/HIVE-25692?focusedWorklogId=680753&page=com.atlassian.jira.plugin.system.issuetabpanels:worklog-tabpanel#worklog-680753
 ]

ASF GitHub Bot logged work on HIVE-25692:
-----------------------------------------

                Author: ASF GitHub Bot
            Created on: 12/Nov/21 10:32
            Start Date: 12/Nov/21 10:32
    Worklog Time Spent: 10m 
      Work Description: kgyrtkirk commented on pull request #2782:
URL: https://github.com/apache/hive/pull/2782#issuecomment-966994384


   current version also contains HIVE-25634


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: gitbox-unsubscr...@hive.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


Issue Time Tracking
-------------------

    Worklog Id:     (was: 680753)
    Time Spent: 20m  (was: 10m)

> ExceptionHandler may mask checked exceptions
> --------------------------------------------
>
>                 Key: HIVE-25692
>                 URL: https://issues.apache.org/jira/browse/HIVE-25692
>             Project: Hive
>          Issue Type: Bug
>            Reporter: Zoltan Haindrich
>            Assignee: Zoltan Haindrich
>            Priority: Major
>              Labels: pull-request-available
>          Time Spent: 20m
>  Remaining Estimate: 0h
>
> HIVE-25055 have changed the way exceptions as rethrowed - but one of the 
> methods may let checked exception out without them being declared on the 
> method (and avoid the compile time error for it)
> testcase for:
> org.apache.hadoop.hive.metastore.TestExceptionHandler
> {code}
>   @Test
>   public void testInvalid() throws MetaException {
>     try {
>       throw new IOException("IOException test");
>     } catch (Exception e) {
>       throw handleException(e).throwIfInstance(AccessControlException.class, 
> IOException.class).defaultMetaException();
>     }
>   }
> {code}
> this testcase should not compile - as it may throw IOException or 
> AccessControlException as well



--
This message was sent by Atlassian Jira
(v8.20.1#820001)

Reply via email to