Gus
08/18/2020, 11:51 AMexplicitApi()
(strict mode). I've fixed all the issues reported (e.g., adding public
where necessary). gradle build
works perfectly, and all the tests pass. However, I have a bunch of internal
classes/properties/functions that I'm using in the tests, and IntelliJ reports them as an error and suggests to make them public, which I don't want. Again, I can run the tests just fine. This is a bug in IntelliJ, isn't it?Gus
08/18/2020, 12:29 PMinternal
classes/objects/etc, even though the test cases have the exact same package as the unit under test.
It seems like IntelliJ is expecting internal
declarations to be used in the same source set (main
in this case).Alexey Belkov [JB]
08/18/2020, 2:25 PMGus
08/18/2020, 3:00 PMexplicitApi
doesn't change a thing.
For example, here's the change I've made to my library: https://github.com/relaycorp/relaynet-jvm/pull/81/files -- I don't get this issue before those changes, but I get it when I change the Kotlin versionAlexey Belkov [JB]
08/18/2020, 3:14 PMGus
08/18/2020, 3:33 PMIntelliJ IDEA 2020.2.1 Preview (Community Edition)
Build #IC-202.6948.5, built on August 11, 2020
Runtime version: 11.0.8+10-b944.31 amd64
VM: OpenJDK 64-Bit Server VM by JetBrains s.r.o.
Linux 5.3.0-29-generic
GC: ParNew, ConcurrentMarkSweep
Memory: 11933M
Cores: 8
Non-Bundled Plugins: org.jetbrains.kotlin, io.ktor.intellij.plugin, <http://com.jetbrains.edu|com.jetbrains.edu>
Current Desktop: KDE
Gus
08/18/2020, 4:19 PMinternal
classes/properties/etc.
I've already used the Invalidate cache / restart
operation but the issue persists.Gus
08/18/2020, 4:20 PMGus
08/18/2020, 4:40 PMAlexey Belkov [JB]
08/21/2020, 1:57 PMGus
08/21/2020, 3:24 PM.idea
fixes it. Thanks for looking into this Alexey!