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

Uwe Schindler commented on LUCENE-5853:
---------------------------------------

This is by design. We don't want RAMUsageEstimator to throw any Exceptions. It 
should just fall back to default behaviour on *any* error caused by reflection.

> RamUsageEstimator has too general exception handlers
> ----------------------------------------------------
>
>                 Key: LUCENE-5853
>                 URL: https://issues.apache.org/jira/browse/LUCENE-5853
>             Project: Lucene - Core
>          Issue Type: Bug
>          Components: core/other
>            Reporter: Henrique Carvalho Silva
>            Priority: Minor
>         Attachments: LUCENE-5853.patch
>
>
> core util RamUsageEstimator has several handlers in which "Exception" was 
> caught and ignored. Such a general handler not only includes 
> reflection-related exceptions such as ClassNotFoundException, 
> NoSuchFieldException and NoSuchMethodException (which are OK to be ignored) 
> but also harmful exceptions (that should at least be logged), such as 
> NullPointerException, UnsupportedOperationException, SecurityException, etc.



--
This message was sent by Atlassian JIRA
(v6.2#6252)

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to