• Post Reply Bookmark Topic Watch Topic
  • New Topic

method invoke args  RSS feed

 
sam wootton
Ranch Hand
Posts: 105
2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

Thanks for help / advice.

I have a class, with method:



Another class witch subclasses this and has the following method:



But its always trying to invoke it without the arguments, so i get:

java.lang.NoSuchMethodException: onInitialiseView()

Many thanks.

Regards, snapple
 
Rob Spoor
Sheriff
Posts: 21095
85
Chrome Eclipse IDE Java Windows
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Welcome to the Ranch!

sam wootton wrote:

You try to get the onInitialiseView method without any parameters while it has one. Using varargs the following code should work:
 
sam wootton
Ranch Hand
Posts: 105
2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
HI Rob Spoor,

Many thanks for your help... worked perfectly!

Thank you very much indeed.

Regards, snapple
 
Rob Spoor
Sheriff
Posts: 21095
85
Chrome Eclipse IDE Java Windows
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You're welcome.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!