I did just recreate this, I suspect one reason is hasn’t shown up before is
because we don’t typically use annotation style aspects in test cases. If your
aspect is annotation style and not code style you will see the aspectOf()
issue. I originally wrote mine as code style (the CTW aspect) -
Let me try to interpret this from what I remember:
> 2018-06-12 10:21:52,079 ERROR [stderr] [ModuleClassLoader@2d758982] debug
> weaving 'org.webapp.sso.keycloak.aspect.ClientErrorExceptionHandler'
> 2018-06-12 10:21:52,093 ERROR [stderr] [ModuleClassLoader@2d758982] info
> processing
I have worked around the issue by adding it to an in the
tag, but I was a bit surprised I had to do that. Reading your explanation
now, makes it a little more clear.
I tend to prefer annotation style aspects, simply because, in general, most
other people who need to maintain the codebase are