Can't get constructor of java defined class in reflect api #18694
Labels
area:metaprogramming:reflection
Issues related to the quotes reflection API
itype:bug
itype:question
Compiler version
3.3.0
Description
I'm trying to extend a java class using reflect api.
To create a symbol for a class I need parent, either TypeTree or Term. TypeTree is not working here, so I'am trying to get a constructor and apply nulls as arguments
Minimized code
When I'm trying to use
tpe.typeSymbol.primaryConstructor
compiler crushes with this:So instead of trying to use primary constructor, I am trying to use another public one and I got this one.
After it I am trying to pass there a () as argument and it gives me another error:
The text was updated successfully, but these errors were encountered: