| |
@@ -0,0 +1,39 @@
|
| |
+ diff --git a/gettext-runtime/configure.ac b/gettext-runtime/configure.ac
|
| |
+ index 2b946c9f7..4416f074b 100644
|
| |
+ --- a/gettext-runtime/configure.ac
|
| |
+ +++ b/gettext-runtime/configure.ac
|
| |
+ @@ -34,7 +34,7 @@ AC_PROG_INSTALL
|
| |
+
|
| |
+ gt_JAVA_CHOICE
|
| |
+
|
| |
+ -gt_JAVACOMP([1.5], [1.6])
|
| |
+ +gt_JAVACOMP([1.8], [1.8])
|
| |
+ AC_CHECK_PROG([JAR], [jar], [jar])
|
| |
+ if test -n "$HAVE_JAVACOMP" && test -n "$JAR" && test "$JAVA_CHOICE" != no; then
|
| |
+ BUILDJAVA=yes
|
| |
+ diff --git a/gettext-tools/configure.ac b/gettext-tools/configure.ac
|
| |
+ index 65476ab85..71dadeef4 100644
|
| |
+ --- a/gettext-tools/configure.ac
|
| |
+ +++ b/gettext-tools/configure.ac
|
| |
+ @@ -35,7 +35,7 @@ AC_PROG_INSTALL
|
| |
+ gt_JAVA_CHOICE
|
| |
+
|
| |
+ gt_JAVAEXEC
|
| |
+ -gt_JAVACOMP([1.5])
|
| |
+ +gt_JAVACOMP([1.8])
|
| |
+ AC_CHECK_PROG([JAR], [jar], [jar])
|
| |
+ if test -n "$HAVE_JAVACOMP" && test -n "$JAR" && test "$JAVA_CHOICE" != no; then
|
| |
+ BUILDJAVA=yes
|
| |
+ diff --git a/gettext-tools/src/write-java.c b/gettext-tools/src/write-java.c
|
| |
+ index 970aae6f0..0b0a3274f 100644
|
| |
+ --- a/gettext-tools/src/write-java.c
|
| |
+ +++ b/gettext-tools/src/write-java.c
|
| |
+ @@ -1209,7 +1209,7 @@ msgdomain_write_java (message_list_ty *mlp, const char *canon_encoding,
|
| |
+ Java compilers create the class files in the source file's directory -
|
| |
+ which is in a temporary directory in our case. */
|
| |
+ java_sources[0] = java_file_name;
|
| |
+ - if (compile_java_class (java_sources, 1, NULL, 0, "1.5", "1.6", directory,
|
| |
+ + if (compile_java_class (java_sources, 1, NULL, 0, "1.8", "1.8", directory,
|
| |
+ true, false, true, verbose > 0))
|
| |
+ {
|
| |
+ if (!verbose)
|
| |
This raises the
--source
and--target
values passed to javac to 1.8, which is the minimum JDK supported by Fedora, thereby fixing https://bugzilla.redhat.com/show_bug.cgi?id=2062407.