https://kotlinlang.org logo
#reflect
Title
# reflect
n

Nikky

02/27/2019, 12:19 PM
seems like whenever i want to pass a DataFrame to something using reflection, this happens:
Copy code
Exception in thread "main" java.lang.IllegalArgumentException: object is not an instance of declaring class
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
u

udalov

03/01/2019, 8:58 PM
It's hard to say whether this is a problem in your code or a bug in the
callBy
implementation. Could you maybe extract a small sample that reproduces this issue?
n

Nikky

03/01/2019, 9:01 PM
it turned out this was because of the way i compiled it using kotlin-scripting it errors like that when i add the dependencies to both script evaluations, but it works when i add the dependency to a fat jar and evaluate the scripts with that it seems like hte jvm considers classes different then, but this is a scripting problem rather than reflection
2 Views