fix naming conflict in java compiler