[
https://issues.apache.org/jira/browse/LUCENE-4106?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13288463#comment-13288463
]
Uwe Schindler commented on LUCENE-4106:
---------------------------------------
@selckin: I agree, we could move the Exception to the FC interface as public
one.
The code you are using is very expert, the Exception was only used as a Hack to
break ther iteration when populating the FieldCache, but it might be good to
make it public.
If you really want to catch it with current code, catch RuntimeEx.
> StopFillCacheException is defined twice and the one is actually thrown is
> private and not catchable
> ---------------------------------------------------------------------------------------------------
>
> Key: LUCENE-4106
> URL: https://issues.apache.org/jira/browse/LUCENE-4106
> Project: Lucene - Java
> Issue Type: Bug
> Reporter: selckin
> Assignee: Uwe Schindler
> Attachments: LUCENE-4106.patch
>
>
> {code}
> lucene/core/src/java/org/apache/lucene/search/FieldCacheImpl.java
> 145: static final class StopFillCacheException extends RuntimeException {
> 383: } catch (StopFillCacheException stop) {
> 456: } catch (StopFillCacheException stop) {
> 560: } catch (StopFillCacheException stop) {
> 710: } catch (StopFillCacheException stop) {
> 798: } catch (StopFillCacheException stop) {
> 887: } catch (StopFillCacheException stop) {
> lucene/core/src/java/org/apache/lucene/search/FieldCache.java
> 57: public static final class StopFillCacheException extends
> RuntimeException {
> 216: throw new FieldCacheImpl.StopFillCacheException();
> 232: throw new FieldCacheImpl.StopFillCacheException();
> 248: throw new FieldCacheImpl.StopFillCacheException();
> 264: throw new FieldCacheImpl.StopFillCacheException();
> {code}
--
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
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]