I see, it's that kind of generic glue code. An alternative is to look at the Java module which solves the same (or at least a very similar) problem.
In the Java module, Java classes are represented as Pike objects (with an overloaded `() for instance creation), so there are no constant functions (needed).
Ok. Still, I'm under the impression that the Java glue generates machine code function stubs since JNI didn't consider the possibility that every called function doesn't have a unique entry point. I thought the same solution could be applied to Bills problem, although in a slightly different context.
pike-devel@lists.lysator.liu.se