I have been using Kotlin now for about 2 weeks to build our new DynamoDB Driver and have come up with some notes on using Kotlin with the standard Java Reflections system.
- Class Literal: String.class -> javaClass<String>()
- Class Handle: “abc”.class -> “abc”.javaClass
- Array Expansion to Varargs: constructor.newInstance(args) -> constructor.newInstance(*args)
That is it, java reflections appear to work fine