correcty find Java usages of static methods generated for companion object members annotated as jvmStatic

#KT-8902 Fixed
This commit is contained in:
Dmitry Jemerov
2015-08-21 19:06:16 +02:00
parent 24f45a382e
commit 704e72eee1
8 changed files with 77 additions and 0 deletions
@@ -0,0 +1,7 @@
package testing.rename
public open class C {
companion object {
jvmStatic fun second() {}
}
}
@@ -0,0 +1,9 @@
package testing;
import testing.rename.C;
class JavaClient {
public void foo() {
C.second();
}
}
@@ -0,0 +1,7 @@
package testing.rename
public open class C {
companion object {
jvmStatic fun first() {}
}
}
@@ -0,0 +1,9 @@
package testing;
import testing.rename.C;
class JavaClient {
public void foo() {
C.first();
}
}
@@ -0,0 +1,7 @@
{
"type": "KOTLIN_FUNCTION",
"classId": "testing/rename/C.Companion",
"oldName": "first",
"newName": "second",
"withRuntime": "true"
}