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

Incorrect method signature throw cryptic InvalidProgramException. #1

Open
chillitom opened this issue May 27, 2010 · 2 comments
Open

Comments

@chillitom
Copy link

At present if you try to subscribe to a MessageChannel with the incorrect method signature you'll receive an InvalidProgramException: JIT Compiler encountered an internal limitation.

The MessageChannel could check when an event/method is registered that the method matches the form required. e.g. void EventHandler(object sender, EventArgs args).

A further extension to this would be to record the first method/event signature registered for a channel and to check all subsequent registrations match the first and throw a descriptive ActivationException if not.

N.B when compiled with NO_LCG the reflection based transport will throw a more informative exception about the method signatures having different numbers of parameters.

@idavis
Copy link
Member

idavis commented May 27, 2010

What does "N.B " mean?

@chillitom
Copy link
Author

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

No branches or pull requests

2 participants