449543: Compile errors in JavaASTFlattener

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

Change-Id: I8fac67085d12bc35026e2cbcabb15d36c3e7f122
Signed-off-by: Lorenzo Bettini <lorenzo.bettini@gmail.com>