Java “NoSuchMethodError”

后端 未结 7 537
天涯浪人
天涯浪人 2020-12-20 11:02

I\'m getting:

NoSuchMethodError: com.foo.SomeService.doSmth()Z

Am I understanding correctly that this \'Z\' means that return

相关标签:
7条回答
  • 2020-12-20 11:50

    Looks like method exists in classpath during compilation, but not during running of your application.

    I don't think return type is a problem. If it was, it wouldn't compile. Compiler throws error when method call is ambiguous, and it is when two methods differ only by return type.

    0 讨论(0)
提交回复
热议问题