https://gcc.gnu.org/bugzilla/show_bug.cgi?id=62292
--- Comment #2 from Richard Biener <rguenth at gcc dot gnu.org> --- No difference in the code for geterrorname.jar or natgeterrorname.cc so this must be a libjava miscompile. Trying to spot the error in the patch instead.