[xbase][compiler] Fixed broken generated Java code

see https://bugs.eclipse.org/bugs/show_bug.cgi?id=451814

Change-Id: I206a73d28c5575113286b3a5db01b687ba787d43