[
https://issues.apache.org/jira/browse/SOLR-398?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12554581
]
Yonik Seeley commented on SOLR-398:
-----------------------------------
{quote}This will break back-compatibility, right?{quote}
Unfortunately, yes. That's why I only changed methods that accepted a Field,
but couldn't change return types because of potential code like: Field f =
ft.createField()
{quote}Better to deprecate and add a new method?{quote}
Probably, if creation of fields might be done in custom request handlers.
> Widen return type of FiledType.createField to Fieldable in order to maximize
> flexibility
> ----------------------------------------------------------------------------------------
>
> Key: SOLR-398
> URL: https://issues.apache.org/jira/browse/SOLR-398
> Project: Solr
> Issue Type: Improvement
> Components: update
> Affects Versions: 1.2, 1.3
> Reporter: Espen Amble Kolstad
> Priority: Minor
> Attachments: 1.2-FieldType.patch, trunk-FieldType.patch
>
>
> FieldType.createField currently returns Field.
> In order to maximize flexibility for developers to extend Solr, it should
> return Fieldable.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.