Missing annotations added on sub-classes, the declaring class is always used
Aleksey Shipilev
aleksey.shipilev at oracle.com
Tue May 27 21:03:48 UTC 2014
On 05/27/2014 11:11 PM, Staffan Friberg wrote:
> The annotation processor is always picking up the class annotations from
> the declaring class instead of sub-classes.
Thanks Staffan, we overlooked that by assuming we only need to walk the
inheritance/enclosures up.
> I wonder if this should rather lookup using the userName as available in
> BenchmarkInfo which would be the name of the class we are actually got
> the method from which might be different than the declaring class.
Even simpler:
http://hg.openjdk.java.net/code-tools/jmh/rev/2439829a7b08
Thanks,
-Aleksey.
More information about the jmh-dev
mailing list