Skip to content
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

Fixed null MethodInfo in Interceptors #1938

Merged
merged 1 commit into from
Jul 14, 2016
Merged

Fixed null MethodInfo in Interceptors #1938

merged 1 commit into from
Jul 14, 2016

Conversation

Allon-Guralnek
Copy link

@Allon-Guralnek Allon-Guralnek commented Jul 13, 2016

When intercepting a grain method that's not defined directly on the grain interface, but rather on an interface that the grain interface "inherits" from (e.g. interface IMyGrain : IOtherInterface, IGrainWithIntegerKey { }), the MethodInfo that is supplied to the intercepting method is null.

This pull request changes the way methods are discovered via reflection to include all interfaces that are "inherited" (for lack of a better word) by the grain interface.

It also adds this test case to prevent regression.

…hen method is not declared directly on the grain interface.

Commit by Allon Guralnek <allon.gu@gigya-inc.com>
On branch: refs/heads/Interceptors_FixNullMethodInfo
@dnfclas
Copy link

dnfclas commented Jul 13, 2016

Hi @Allon-Guralnek, I'm your friendly neighborhood .NET Foundation Pull Request Bot (You can call me DNFBOT). Thanks for your contribution!

In order for us to evaluate and accept your PR, we ask that you sign a contribution license agreement. It's all electronic and will take just minutes. I promise there's no faxing. https://cla2.dotnetfoundation.org.

TTYL, DNFBOT;

@dnfclas
Copy link

dnfclas commented Jul 13, 2016

@Allon-Guralnek, Thanks for signing the contribution license agreement so quickly! Actual humans will now validate the agreement and then evaluate the PR.

Thanks, DNFBOT;

@ReubenBond
Copy link
Member

Thanks for the PR! Looks good to me, I'm glad to see that this feature is getting used already. I'll leave this open for a while longer so others can take a look.

@ReubenBond ReubenBond added the bug label Jul 13, 2016
@ReubenBond ReubenBond self-assigned this Jul 13, 2016
@shayhatsor
Copy link
Member

LGTM

@ReubenBond ReubenBond merged commit c39a172 into dotnet:master Jul 14, 2016
@ReubenBond ReubenBond mentioned this pull request Jul 26, 2016
2 tasks
ticup added a commit to ticup/orleans that referenced this pull request Aug 12, 2016
@github-actions github-actions bot locked and limited conversation to collaborators Dec 12, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants