title: Java "NoSuchMethodError"
body: <p>I'm getting: </p>
  
  <pre><code>NoSuchMethodError: com.foo.SomeService.doSmth()Z
  </code></pre>
  
  <p>Am I understanding correctly that this <code>'Z'</code> means that return type of doSmth() method is boolean? If true, then that kind of method really does not exist because this method returns some Collection. But on the other hand if I call this method, I'm not assigning its return value to any variable. I just call this method like this:</p>
  
  <pre><code>service.doSmth();
  </code></pre>
  
  <p>Any ideas why this error occurs? All necessary JAR files exist and all other methods from this class seems to exist. </p>