You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@lucene.apache.org by "Henrique Carvalho Silva (JIRA)" <ji...@apache.org> on 2014/07/29 01:17:40 UTC
[jira] [Updated] (LUCENE-5853) RamUsageEstimator has too general
exception handlers
[ https://issues.apache.org/jira/browse/LUCENE-5853?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Henrique Carvalho Silva updated LUCENE-5853:
--------------------------------------------
Attachment: LUCENE-5853.patch
Suggested patch.
> 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: dev-unsubscribe@lucene.apache.org
For additional commands, e-mail: dev-help@lucene.apache.org