-
Notifications
You must be signed in to change notification settings - Fork 468
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
proxying generic interface with inaccessible type parameters throws TypeLoadException #34
Comments
Hi, sorry for getting back to you so late. I think it would be worthwhile to give a better message here. Especially that, as you noted, it is currently quite confusing. |
No worries about the delay. I can start working on a fix. Is there a timeline? I'm not going on vacation like last time... |
timeline? for a release? It's quite fluid :) It's probably better to get a fix sooner rather than later, but the way it's been going we're going to do a release either if there is a major bug fixed (like with v3.2.2) or when we accumulate several smaller fixes (like with v3.2.1 |
Okay, thanks. Based on my interpretation of your comments on the urgency of getting this in, I will make this issue my next Open Source work item, but will not allow it to endanger the on time delivery of my grandmother's Christmas present. ;-) |
That sounds reasonable. BTW, in the long run, the best solution would be to finish the work on generic proxies I spiked in v4 branch (https://github.com/castleproject/Core/tree/4.0-unstable) which would end up, generating Anyway, Merry Christmas |
Is it yet known when this will be released? |
Consider this test:
It results in the following error:
A novice user (or indeed someone indirectly using DynamicProxy, for example, via an isolation framework such as FakeItEasy or Moq), may be confused by this error message.
DynamicProxy goes to good lengths to intercept attempts to proxy what I'll call top-level types that aren't accessible (for example, if we were proxying
InternalInterface
directly, rather than anIList
of them). Is there any interest in expanding the "bad request" detection to include inaccessible type parameters?If so, I'd be happy to spend some time on it.
The text was updated successfully, but these errors were encountered: