Args passed to OnEntry method on OnMethodBoundaryAspect is null

daniel.romero's Avatar

daniel.romero

24 Aug, 2017 01:18 PM

The MethodExecutionArgs passed to a OnMethodBoundaryAspect is null when the aspect is SemanticallyAdvisedMethodKinds.Default and is applied after an aspect which is SemanticallyAdvisedMethodKinds.None.

This might be tied to "15283 OnMethodBoundary using arguments produces incorrect IL when applied on a non-async Task returning method." which was fixed in 5.0.30, as it only seems to happen when the method is returning a task. But in that constellation it still fails with 5.0.31.

Attach you find a small project which reproduces the bug.

Kind regards
Daniel

  1. Support Staff 1 Posted by PostSharp Techn... on 24 Aug, 2017 07:26 PM

    PostSharp Technologies's Avatar

    Hello,

    thanks a lot for reporting the issue, we will be working on a fix.

    (#15371)

    Best regards,
    Daniel

  2. Support Staff 2 Posted by PostSharp Techn... on 05 Sep, 2017 02:55 PM

    PostSharp Technologies's Avatar

    Hello,

    We're closing the ticket for now as the bug has been internally filed as issue #15371. We will contact you as soon as the bug fix has been released.

    For more details on our support policies and prioritization of bug fixes, please visit https://www.postsharp.net/support/policies

    PostSharp Team

  3. PostSharp Technologies closed this discussion on 05 Sep, 2017 02:55 PM.

  4. PostSharp Technologies re-opened this discussion on 18 Sep, 2017 12:12 PM

  5. Support Staff 3 Posted by PostSharp Techn... on 18 Sep, 2017 12:12 PM

    PostSharp Technologies's Avatar

    Hello,

    the bug #15371 has been fixed in the current release of PostSharp 5.0.33.
    Should you need further help with this issue, don't hesitate to re-open this discussion.

    Best regards,
    -tony

  6. PostSharp Technologies closed this discussion on 18 Sep, 2017 12:12 PM.

Comments are currently closed for this discussion. You can start a new one.

Keyboard shortcuts

Generic

? Show this help
ESC Blurs the current field

Comment Form

r Focus the comment reply box
^ + ↩ Submit the comment

You can use Command ⌘ instead of Control ^ on Mac