What does that mean? You can't annotate an instanc...
# announcements
k
What does that mean? You can't annotate an instance.
g
Can’t you? I’m actually not an expert there, that’s why I’m asking
nope, my bad, it was quite a stupid question
a
Doesn't he mean that he wants the annotations on the
Class.Companion
instead of on the
Class
? I'm not sure if that's not already the case now though
Oh nvm
g
actually, I just realised that in Java you can annotate a field. And what I want to do is actually that, annotate the field
Companion.$$Instance
generated by the companion object
I thought that
@field:Annotation
would do the trick but it doesn’t seem to work
k
I don't think that's possible, you may have to create an issue for that.
Out of interest, what's your use case?
g
vertx-codegen
is not able to avoid it when doing service proxy generation, at least for now. But, for the Vert.x case, having a companion object should be avoided, imo.