mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
[driver] add note about necessary of adding @JvmStatic to the kotlin companion object methods
GitOrigin-RevId: 67e9a7e429c897b5fff91d57dc5a8fd3dd658bd9
This commit is contained in:
committed by
intellij-monorepo-bot
parent
6e74762529
commit
b199e0d6e6
@@ -333,10 +333,13 @@ public class Invoker implements InvokerMBean {
|
||||
|
||||
if (targetMethods.isEmpty()) {
|
||||
throw new IllegalStateException(
|
||||
String.format("No method '%s' with parameter count %s in class %s. Available methods: %n%s",
|
||||
call.getMethodName(), argCount, call.getClassName(),
|
||||
availableMethods.stream().map(it -> it.toString())
|
||||
.collect(Collectors.joining(" - " + System.lineSeparator()))
|
||||
String.format(
|
||||
"No method '%s' with parameter count %s in class %s. If your method is companion method in Kotlin, don't forget to add @JvmStatic." +
|
||||
// https://youtrack.jetbrains.com/issue/AT-1744/Driver-make-it-not-neccessary-to-add-JvmStatic-to-kotlin-companion-methods
|
||||
"\nAvailable methods: %n%s",
|
||||
call.getMethodName(), argCount, call.getClassName(),
|
||||
availableMethods.stream().map(it -> it.toString())
|
||||
.collect(Collectors.joining(" - " + System.lineSeparator()))
|
||||
));
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user