agrosner
03/08/2018, 2:00 AMdumptruckman
03/08/2018, 2:01 AMagrosner
03/08/2018, 2:01 AMdumptruckman
03/08/2018, 2:01 AMagrosner
03/08/2018, 2:01 AMagrosner
03/08/2018, 2:01 AMchristopher
03/08/2018, 2:02 AMdumptruckman
03/08/2018, 2:03 AMIn my opinion it’s not about whether you can enforce a visibility rule 100% from a technical standpoint but about what the enforcement gives you and the users of your API. In the case of package private, the enforcement is too weak to prevent your users from breaking it (even without reflection) but it’s good enough to prevent the members from popping up in the completion list. Especially, when I’m the one consuming my own API (within the same module), I would be very glad to be able to hide the implementation details from the completion list while still being able to organize my code properly within the package.
agrosner
03/08/2018, 2:04 AMdumptruckman
03/08/2018, 2:04 AMdumptruckman
03/08/2018, 2:05 AMbtilbrook-nextfaze
03/08/2018, 2:06 AMchristopher
03/08/2018, 2:06 AMdumptruckman
03/08/2018, 2:07 AMdumptruckman
03/08/2018, 2:07 AMchristopher
03/08/2018, 2:07 AMdumptruckman
03/08/2018, 2:07 AMdumptruckman
03/08/2018, 2:08 AMchristopher
03/08/2018, 2:09 AMbtilbrook-nextfaze
03/08/2018, 2:10 AMdumptruckman
03/08/2018, 2:11 AMbtilbrook-nextfaze
03/08/2018, 2:12 AMbtilbrook-nextfaze
03/08/2018, 2:13 AMinternal
detail helped. Maybe try converting your tests to Kotlin.dumptruckman
03/08/2018, 2:13 AMclass InternalTest {
companion object {
@JvmStatic internal fun test() { }
}
}
dumptruckman
03/08/2018, 2:14 AMInternalTest.test$production_sources_for_module_tiny_compiler();
in my java test classdumptruckman
03/08/2018, 2:14 AMUsage of Kotlin internal declaration from different module
btilbrook-nextfaze
03/08/2018, 2:15 AMdumptruckman
03/08/2018, 2:17 AMbtilbrook-nextfaze
03/08/2018, 2:18 AMbtilbrook-nextfaze
03/08/2018, 2:19 AM