Patent ID: 6934946

Claim:
In a Java computing environment, a method of invoking a native method written in a native programming language without calling a Java Native Interface (JNI), said method comprising: providing a set of macro instructions which are written in said native programming language with a direct reference to one or more Java parameters stored on a Java execution stack, wherein said one or more Java parameters are associated with said native method; converting, by said set of macro instructions, said one or more Java parameters into at least one native parameter suitable for invocation of said native method, wherein said one or more Java parameters are converted by said converting without calling a Java Native Interface (JNI); placing said at least one native parameter on a native execution stack associated with said native programming language after said converting operates to generate said at least one native parameter by accessing said direct reference; and invoking said native method with said at least one native parameter after said converting of said at least one native parameter and said placing of said at least one native parameter on said execution stack, thereby allowing said native method to be invoked without calling said Java Native Interface (JNI).