rnett
10/14/2020, 3:41 AMgetAnnotation()
like methods, so that I can do the annotation processing in my runtime library instead of the compiler plugin, but via compiler plugin so that I can use it on multiplatform. I need a way to turn the IrFunction.annotations
list of IrConstructorCalls into an IrExpression of the annotation objects so that I can pass them to my method (all in IR, I don't want the objects at compile time, I want to add them as an argument). The way I'm trying to do this is by just passing a list of the IrFunction.annotations
constructor calls, since they are constructor calls, but this produces runtime java.lang.InstantiationError
for the annotation class from the constructor call. Is there a way to do this?