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

Uwe Schindler commented on LUCENE-1687:
---------------------------------------

Removing ExtendedFieldCache complete would break backwards compatibility, e.g. 
when users implemented an own LongParser and so on. And code referring to 
ExtendedFieldCache.EXT_DEFAULT would also break.

I changed ExtendedFieldCache to only export this really needed and named parts:

{code}
/**
 * This interface is obsolete, use {...@link FieldCache} instead.
 * @deprecated Will be removed in Lucene 3.0
 **/
public interface ExtendedFieldCache extends FieldCache {
  
  /** @deprecated Use {...@link FieldCache#DEFAULT}; this will be removed in 
Lucene 3.0 */
  public static ExtendedFieldCache EXT_DEFAULT = 
(ExtendedFieldCache)FieldCache.DEFAULT;
  
  /** @deprecated Use {...@link FieldCache.LongParser}, this will be removed in 
Lucene 3.0 */
  public interface LongParser extends FieldCache.LongParser {
  }

  /** @deprecated Use {...@link FieldCache.DoubleParser}, will be removed in 
Lucene 3.0 */
  public interface DoubleParser extends FieldCache.DoubleParser {
  }

}
{code}

> Remove ExtendedFieldCache by rolling functionality into FieldCache
> ------------------------------------------------------------------
>
>                 Key: LUCENE-1687
>                 URL: https://issues.apache.org/jira/browse/LUCENE-1687
>             Project: Lucene - Java
>          Issue Type: Improvement
>            Reporter: Grant Ingersoll
>            Assignee: Grant Ingersoll
>            Priority: Minor
>             Fix For: 2.9
>
>
> It is silly that we have ExtendedFieldCache.  It is a workaround to our 
> supposed back compatibility problem.  This patch will merge the 
> ExtendedFieldCache interface into FieldCache, thereby breaking back 
> compatibility, but creating a much simpler API for FieldCache.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


---------------------------------------------------------------------
To unsubscribe, e-mail: java-dev-unsubscr...@lucene.apache.org
For additional commands, e-mail: java-dev-h...@lucene.apache.org

Reply via email to