how to calculate the count parameter to call an interface method in java? -


I am using javassist and I generate interfaces and other stuff on load time / runtime.

The method of an interface to call (with the Bitcox ExploreEnterface) is to provide several parameters: indexBT1, indexbite2, counting, and 0 (to).

Already an abstract method (whistle meth) that I want to call, How do I count my count? For example, they say that " invokinterface records a record of the number of logic values ​​operating in the calculation of instruction, where a debate takes the number of long type or type double value Contains two units for value and one unit contributes to any other type of argument, this information can also be obtained from a descriptor of the selected method. "

But also Te that " Ginr operand is an unsigned byte which should not be zero. "

If the abstract method I want to call parameters, the Y 0 will count! But counting can not be 0. Methodist's Statement () V.

Any suggestions?

I do not know the details of the javascript, but I'm assuming that to call the counting method The size of the required stack space. If this is the case, then you have to specify the location for the 'this' variable, which is pushed to the pile before any parameter (because you are doing an invokefinder). If this is the case then one method would be the calculation 1 for the w / o parameter.

Comments