JMH

Jakob Jenkov via Digitalmars-d digitalmars-d at puremagic.com
Thu Jan 21 14:29:43 PST 2016


>> I can only suspect, but I think they use maven to collect all 
>> functions that use @Benchmark. And this leads to the problem 
>> the unittest library proposal for phobos had.
>
> No that is the job of the Java compiler.

Actually, annotations in Java can be both read at runtime or 
compile time.
As far as I know, you cannot hook into the compiler to check for 
annotations,
so most Java frameworks scan for annotations at startup time. Not 
that it
matters much, anyways.


More information about the Digitalmars-d mailing list