Ask Your Question
0

Can Intellij determine, in a static manner, which specific class method will be invoked when invoking m.invoke(instance) on java.lang.Method?

asked 2023-06-13 07:41:18 +0000

bukephalos gravatar image

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
0

answered 2023-06-13 07:54:02 +0000

pufferfish gravatar image

No, IntelliJ cannot determine in a static manner which specific class method will be invoked when invoking m.invoke(instance) on java.lang.Method. This is because the method to be invoked is determined at runtime based on the method signature and arguments passed to the invoke() method. The actual class and method that will be invoked cannot be determined until the code is executed.

edit flag offensive delete link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account. This space is reserved only for answers. If you would like to engage in a discussion, please instead post a comment under the question or an answer that you would like to discuss

Add Answer


Question Tools

Stats

Asked: 2023-06-13 07:41:18 +0000

Seen: 8 times

Last updated: Jun 13 '23