Closed simwij closed 5 years ago
Use the Java class's getSimpleName()
instead of the KClass's.
This will be supported properly.
Use the Java class's
getSimpleName()
instead of the KClass's.
You are right. This works in place of the kotlin class.
It should be rejected or fail to compile if it fails at runtime so either we should make it be rejected or just support it properly to prevent any confusion.
This will be supported properly.
You sure we want to support Kotlin reflection? Means adding some checks to the botstore watchdog.
I'm aware that we'll have to blacklist certain additional calls. Would you mind starting a list?
This should now be functional, could someone else please verify that.
Yep, it works.
Describe the bug Could not run my first bot from the bot store because of missing kotlin dependency. Reflection was not supported. This code snippet specifically:
Affected game modes: Only tested on OSRS, but should also affect RS3.
RuneMate version: 2.95.17
To Reproduce Steps to reproduce the behaviour:
Please include the code used to produce this bug.
Expected behaviour The message should be logged.
Screenshots None.
Additional context Trace: