-
Notifications
You must be signed in to change notification settings - Fork 17
Open
Labels
featureNew featureNew feature
Description
When Jitex intercepts a method, we don't add any exception handling. Therefore, if the method throws an exception, the Interceptor will be interrupted without a return or calling ReleaseTask.
Eg.:
public int IsEven(int number) {
//Jitex interceptor implementation...
if (context.ProceedCall) {
if (number == 0)
throw new InvalidOperationException();
result = number % 0 == 1;
}
callManager.ReleaseTask();
}Should be:
public int IsEven(int number) {
//Jitex interceptor implementation...
if (context.ProceedCall) {
try {
if (number == 0)
throw new InvalidOperationException();
result = number % 0 == 1;
} catch (Exception ex) {
context.SetException(ex);
}
}
if (context.Exception != null)
throw context.Exception;
callManager.ReleaseTask();
}Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
featureNew featureNew feature