https://bugzilla.redhat.com/show_bug.cgi?id=2062407
--- Comment #2 from Mamoru TASAKA mtasaka@fedoraproject.org --- Created attachment 1866963 --> https://bugzilla.redhat.com/attachment.cgi?id=1866963&action=edit temtative patch to support jdk17
So this is actually msgfmt calls javac with "-source 1.5 -target 1.6" explicitly:
see gettext-tools/src/write-java.c "compile_java_class" call in "msgdomain_write_java" and related functions in gettext-tools/gnulib-lib/javacomp.c .
The attached patch is a draft for fixing this issue. Note that get_goodcode_snippet() and get_failcode_snippet() may need more adjustment: I guess get_goodcode_snippet() needs the code which compiles with JDK17 but fails with JDK11, however I don't know such code in detail.