SI-5165 separate compilation test Java annotations bug

Progressed at the genesis of GenASM, dc6a49337f.
Merge pull request #3548 from retronym/ticket/5165

SI-5165 separate compilation test Java annotations bug