You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@lucene.apache.org by "Jason Gerlowski (JIRA)" <ji...@apache.org> on 2016/09/20 13:11:21 UTC

[jira] [Comment Edited] (SOLR-9535) SolrClients should have protected constructors

    [ https://issues.apache.org/jira/browse/SOLR-9535?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15506469#comment-15506469 ] 

Jason Gerlowski edited comment on SOLR-9535 at 9/20/16 1:10 PM:
----------------------------------------------------------------

Attaching a patch making this change in CloudSolrClient.

After some poking around, HttpSolrClient, LBHttpSolrClient, and ConcurrentUpdateSolrClient all had a "catch-all" ctor marked as {{protected}} so this really turned into a single-line change.

Tests all pass locally.


was (Author: gerlowskija):
Attaching a patch making this change in CloudSolrClient.

After some poking around, HttpSolrClient, LBHttpSolrClient, and ConcurrentUpdateSolrClient all had a "catch-all" ctor marked as {{protected}} so this really turned into a single-line change.

> SolrClients should have protected constructors
> ----------------------------------------------
>
>                 Key: SOLR-9535
>                 URL: https://issues.apache.org/jira/browse/SOLR-9535
>             Project: Solr
>          Issue Type: Bug
>      Security Level: Public(Default Security Level. Issues are Public) 
>          Components: SolrJ
>    Affects Versions: 6.x
>            Reporter: Jason Gerlowski
>            Priority: Minor
>             Fix For: 6.x
>
>         Attachments: SOLR-9535.patch
>
>
> Recent SolrJ changes (SOLR-8097) resulted in {{SolrClient}} ending up with {{protected}} ctors.  This achieved the purpose at the time, and steered consumers towards using the *Builder types.  However the change was overly restrictive, as this visibility prevents consumers from extending {{SolrClient}} in any meaningful way.
> This issue involves changing the visibility of the SolrClient "kitchen sink" ctors to better support extension.
> (See recent discussion on SOLR-8097 for more discussion on this topic.)



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

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