Fix JavaAPIGenerator with multiple inheritence