Jason Gerlowski created SOLR-17329:
--------------------------------------
Summary: JacksonParsingResponse should accept a narrower
type-parameter
Key: SOLR-17329
URL: https://issues.apache.org/jira/browse/SOLR-17329
Project: Solr
Issue Type: Bug
Security Level: Public (Default Security Level. Issues are Public)
Components: SolrJ, v2 API
Affects Versions: 9.6.1
Reporter: Jason Gerlowski
SOLR-17326, filed recently by [~malliaridis], points out and fixes a
type-matching problem that crops up when using some of the v2
SolrRequest/Response implementations generated from Solr's OpenAPI spec.
This bug was only possible because JacksonParsingResponse (which is used to
deserialize v2 responses into strongly typed objects) is overly lax in the type
parameter 'T' that it accepts. Had 'T' been a bit more specific (e.g. 'T
extends SolrJerseyResponse'), this issue would've been caught as a compilation
error instead of sneaking by into a release.
This ticket aims to shore up this underlying cause so that future type issues
cannot occur here.
--
This message was sent by Atlassian Jira
(v8.20.10#820010)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]