Skip to content

Bugfix for https://jira.springsource.org/browse/SPR-9445 #85

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 1 commit into from
Closed

Conversation

obecker
Copy link
Contributor

@obecker obecker commented May 26, 2012

These are the proposed changes to fix the bug SPR-9445

I have signed and agree to the terms of the SpringSource Individual Contributor License Agreement.

Regards,
Oliver

@cbeams
Copy link
Contributor

cbeams commented May 26, 2012

Hi Oliver, thanks for the submission! I'll take a look at this -- in the meantime, please carefully read the contributor guidelines and make the necessary updates.

@ghost ghost assigned cbeams May 26, 2012
return ExpressionUtils.convert(state.getEvaluationContext(), result, desiredReturnType);
}
return (T) result;
return ExpressionUtils.convertTypedValue(state.getEvaluationContext(), getValueInternal(state), desiredReturnType);
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

all of the removed code will be executed in ExpressionUtils.convertTypedValue(), so there's no need to do it separately here

@obecker
Copy link
Contributor Author

obecker commented May 26, 2012

I have added the note on the Individual Contributor License Agreement, however I'm not sure if I should (or if I even can) change the commit message as required be the guidelines.

@obecker
Copy link
Contributor Author

obecker commented May 26, 2012

The appropriate commit message should probably read as follows:

Pass null values through the converter before checking for null in boolean operators OpOr, OpAnd, OperatorNot

Since null values might be converted into something meaningful in
GenericConversionService.convertNullSource(), the boolean operator
implementations OpOr, OpAnd, and OperatorNot must check the
value(s) for null after type conversion, not before.
Moreover, ExpressionUtils.convertTypedValue() must not prevent
null values from being passed to the converter.
A use case would be the treatment of null as false, like in Groovy for example.

Issue: SPR-9445

@cbeams
Copy link
Contributor

cbeams commented May 26, 2012

Thanks, Oliver.

philwebb added a commit that referenced this pull request Nov 22, 2012
* pull85:
  Call ConversionService for null SpEL values
  Polish whitespace
@philwebb
Copy link
Member

Hi Oliver,

I have merged the pull request with some minor tweaks (see commit 759c9b3).

Thanks for the contribution!

@philwebb philwebb closed this Nov 22, 2012
rwinch pushed a commit to rwinch/spring-framework that referenced this pull request Jun 20, 2016
This commit makes messageEncoders a required argument for building a
client request - those are needed to actually encode the body object as
a reactive stream to be written to the HTTP request body.

Removed raw types usage in DefaultHttpRequestBuilder.

DefaultHttpRequestBuilder now uses a UriTemplateHandler to expand URI
templates + variables into a concrete URI.

Fixes spring-projects#80, fixes spring-projects#85, fixes spring-projects#86
rwinch pushed a commit to rwinch/spring-framework that referenced this pull request Jul 13, 2016
This commit makes messageEncoders a required argument for building a
client request - those are needed to actually encode the body object as
a reactive stream to be written to the HTTP request body.

Removed raw types usage in DefaultHttpRequestBuilder.

DefaultHttpRequestBuilder now uses a UriTemplateHandler to expand URI
templates + variables into a concrete URI.

Fixes spring-projects#80, fixes spring-projects#85, fixes spring-projects#86
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants