• Post Reply Bookmark Topic Watch Topic
  • New Topic

Compilation - Error(missing return statement)  RSS feed

 
Venkat Paspula
Greenhorn
Posts: 11
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello All,

I have three java source files Callback.java,Client.java & TestIface.java

Callback.ajava

Client.java

TestIface.java


I am getting the follwing error in TestIface.java

 
Ernest Friedman-Hill
author and iconoclast
Sheriff
Posts: 24217
38
Chrome Eclipse IDE Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You've got

public Void callback(int p) {

"Void", with a capital "V", is a type; you need to return a Void object (of which there are none, actually!) You mean "void", lower-case "v".
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!