Fix Java interface aggregation in modles for JRUBY-6945.