I found recent interest in Kotlin as a language, because the platform we develop for is Java 6 based and hence lacks any syntactic sugar the recent years brought to Java.
只有一件事使得在开发中使用Kotlin而不是Java是不可能的,那就是我们开发的平台在内部使用了一些反射,并且要求成员是公开的.否则它不会起作用的.
So, the bytecode generated from the Kotlin file in fact produces public getters and setters, the fields themselves yet remain private.
Is there a way to overcome this, so I get real public fields?
我知道设计失败需要公共领域,但系统对我们来说是一个黑匣子,我们无法改变这样的事实.