enhanced the java_class compiler so it can handle multiple constructors