haveLocalConstructor |= javaClass == ctor.getDeclaringClass();
}
void install(final RubyModule proxy) {
if (haveLocalConstructor) {
DynamicMethod method = new ConstructorInvoker(proxy, constructors);
proxy.addMethod(name, method);
} else {
// if there's no constructor, we must prevent construction
proxy.addMethod(name, new org.jruby.internal.runtime.methods.JavaMethod(proxy, PUBLIC) {
@Override