Change ambiguous warning 826 to errors when generated java code will be ...

...invalid.