Abstract classes annotation processing

Aleksey Shipilev aleksey.shipilev at oracle.com
Mon Jul 8 11:17:23 PDT 2013


Hi Julien,

On 07/08/2013 09:47 PM, Julien Nicoulaud wrote:
> It seems JMH's annotation processor does not look into super classes for
> annotations. It would be great to support that, as it would allow to have
> "pseudo-parameterized" tests, for example something like this:
> https://gist.github.com/nicoulaj/5950889

Hm, the premise was to allow this behavior (I even remember building the
integration tests for cases like these). I had drafted the quick
integration tests for your issue, and it is a bug. Let me see if it is
easily fixable.

> Or may be there is another way to run the same benchmark code against
> multiple implementations ?

Nope, your "parametrization" approach is OK. We also use switches in
@Setup to get the overloaded implementations.

-Aleksey.



More information about the jmh-dev mailing list