Compiler Error J0078

Class 'identifier' doesn’t have a method that matches 'identifier'

The compiler identified a call to a known overloaded method within another class, but was unable to detect a matching method with the correct number of arguments. Ensure that the overloaded method call has the correct number and type of arguments and compile again.

The following example illustrates this error:

public class Simple {
   
   public void method1() {
      // do something meaningful
   }

   public void method1(int arg1) {
      // do something meaningful
   }
}

class Simple2 {
   
   public void method1() {
   
      Simple s = new Simple();
      s.method1(1, 2, 3); // error: too many arguments
   }
}