fixed problems in Java signature generation