I receive errors when compiling error: can not find symbol method setBatchPath (String)

0

Errors are seen in these files

Accounts.java 2 errors

error: method does not override or implement a method from a supertype
@Override public Builder setBatchPath(String batchPath) { return (Builder) 
super.setBatchPath(batchPath); }
error: cannot find symbol method setBatchPath(String)
@Override public Builder setBatchPath(String batchPath) { return (Builder) 
super.setBatchPath(batchPath); }

Categories.java 2 errors

error: method does not override or implement a method from a supertype
@Override public Builder setBatchPath(String batchPath) { return (Builder) 
super.setBatchPath(batchPath); }
error: cannot find symbol method setBatchPath(String)
@Override public Builder setBatchPath(String batchPath) { return (Builder) 
super.setBatchPath(batchPath); }

Currencies.java 1 error

error: cannot find symbol method setBatchPath(String)
@Override public Builder setBatchPath(String batchPath) { return (Builder) 
super.setBatchPath(batchPath); }
Tags.java 1 error
error: cannot find symbol method setBatchPath(String)
@Override public Builder setBatchPath(String batchPath) { return (Builder) 
super.setBatchPath(batchPath); }

Transactions.java 1 error

error: cannot find symbol method setBatchPath(String)
@Override public Builder setBatchPath(String batchPath) { return (Builder) 
super.setBatchPath(batchPath); }

Users.java 1 error

error: cannot find symbol method setBatchPath(String)
@Override public Builder setBatchPath(String batchPath) { return (Builder) 
 super.setBatchPath(batchPath); } 

    
asked by user3802101 28.04.2018 в 17:14
source

1 answer

1

Errors occur because:

  

error: method does not override or implement a method from a supertype

1 - You are trying to overwrite one or more methods that do not exist in the parent class of your class. To correct it, make sure you correctly define the class from which you inherit yours or the interfaces that you implement. Here you can find an explanation about the use of @Override so you understand why the compiler throws those errors at you.

  

error: can not find symbol method setBatchPath (String)

2 - You are trying to access a method of the parent class ( super.setBatchPath(String) ) that apparently does not exist. Again, to correct it, make sure you correctly define the class from which you inherit yours.

    
answered by 28.04.2018 в 20:43