SI-5165 separate compilation test Java annotations bug

Progressed at the genesis of GenASM, dc6a49337f.

Review by @gkossakowski