Forums Register Login

method invoke args

+Pie Number of slices to send: Send
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
+Pie Number of slices to send: Send
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:
+Pie Number of slices to send: Send
HI Rob Spoor,

Many thanks for your help... worked perfectly!

Thank you very much indeed.

Regards, snapple
+Pie Number of slices to send: Send
You're welcome.
This guy is skipping without a rope. At least, that's what this tiny ad said:
a bit of art, as a gift, that will fit in a stocking
https://gardener-gift.com


reply
reply
This thread has been viewed 578 times.
Similar Threads
Please help with sorting multiple columns
dynamic method invocation
Using Reflection to call super class method
Proxying Objects Causes OutOfMemoryError
actual class of method
More...

All times above are in ranch (not your local) time.
The current ranch time is
Mar 29, 2024 09:31:03.