6. The method of claim 5 wherein the first language is the Java programming language.
5. A method in a computer system for marshaling of a parameter for inter-language invocation of functions between a first language and a second language, the parameter to be marshaled having a first type in the first language and a second type in the second language, the method comprising: when a computer program implemented in the first language invokes a function implemented in the second language, determining that a parameter being passed to the function requires custom marshaling; creating for the invoked function an in stub that invokes custom marshaling code for converting the passed parameter of the first type to a parameter of the second type and an out stub that invokes custom marshaling code for converting a returned parameter of the second type to a parameter of the first type; executing the in stub, thereby converting the passed parameter of the first type to a parameter of the second type; invoking the function implemented in the second language and passing the parameter converted to the second type; and after invocation of the function, executing the out stub, thereby converting the parameter of the second type to a parameter of the first type.