Context.getDataSource(String) gives wrong DataSource instance
-------------------------------------------------------------
Key: SOLR-729
URL: https://issues.apache.org/jira/browse/SOLR-729
Project: Solr
Issue Type: Bug
Components: contrib - DataImportHandler
Affects Versions: 1.3
Reporter: Shalin Shekhar Mangar
Priority: Minor
Fix For: 1.4
The default implementation of Context -- ContextImpl#getDataSource(String)
method does not use the String argument and returns the current entity's data
source. The javadoc for this method in Context is also inconsistent.
{code}
/**
* Gets a new DataSource instance with a name.
*
* @param name Name of the dataSource as defined in the dataSource tag
* @return a new DataSource instance as configured for the named entity
* @see org.apache.solr.handler.dataimport.DataSource
*/
public abstract DataSource getDataSource(String name);
{code}
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.