public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
* [rpms/google-gson] epel10: disabled warnings as errors. Note, the warnings are legitimate
@ 2026-08-17 12:39 Jiri
  0 siblings, 0 replies; only message in thread
From: Jiri @ 2026-08-17 12:39 UTC (permalink / raw)
  To: git-commits

            A new commit has been pushed.

            Repo   : rpms/google-gson
            Branch : epel10
            Commit : fb118fc5a4ee9a4b50e9136c2f69a11238a6c5df
            Author : Jiri <jvanek@redhat.com>
            Date   : 2024-02-29T18:34:57+01:00
            Stats  : +8/-2 in 1 file(s)
            URL    : https://src.fedoraproject.org/rpms/google-gson/c/fb118fc5a4ee9a4b50e9136c2f69a11238a6c5df?branch=epel10

            Log:
            disabled warnings as errors. Note, the warnings are legitimate

[WARNING] /builddir/build/BUILD/gson-gson-parent-2.10.1/gson/src/main/java/com/google/gson/stream/JsonReader.java:[1611,21] implicit cast from int to char in compound assignment is possibly lossy
[WARNING] /builddir/build/BUILD/gson-gson-parent-2.10.1/gson/src/main/java/com/google/gson/stream/JsonReader.java:[1613,21] implicit cast from int to char in compound assignment is possibly lossy
[WARNING] /builddir/build/BUILD/gson-gson-parent-2.10.1/gson/src/main/java/com/google/gson/stream/JsonReader.java:[1615,21] implicit cast from int to char in compound assignment is possibly lossy
[WARNING] /builddir/build/BUILD/gson-gson-parent-2.10.1/gson/src/main/java/com/google/gson/internal/$Gson$Types.java:[485,24] non-transient instance field of a serializable class declared with a non-serializable type
[WARNING] /builddir/build/BUILD/gson-gson-parent-2.10.1/gson/src/main/java/com/google/gson/internal/$Gson$Types.java:[486,24] non-transient instance field of a serializable class declared with a non-serializable type
[WARNING] /builddir/build/BUILD/gson-gson-parent-2.10.1/gson/src/main/java/com/google/gson/internal/$Gson$Types.java:[487,26] non-transient instance field of a serializable class declared with an array having a non-serializable base component type java.lang.reflect.Type
[WARNING] /builddir/build/BUILD/gson-gson-parent-2.10.1/gson/src/main/java/com/google/gson/internal/$Gson$Types.java:[554,24] non-transient instance field of a serializable class declared with a non-serializable type
[WARNING] /builddir/build/BUILD/gson-gson-parent-2.10.1/gson/src/main/java/com/google/gson/internal/$Gson$Types.java:[588,24] non-transient instance field of a serializable class declared with a non-serializable type
[WARNING] /builddir/build/BUILD/gson-gson-parent-2.10.1/gson/src/main/java/com/google/gson/internal/$Gson$Types.java:[589,24] non-transient instance field of a serializable class declared with a non-serializable type

---
diff --git a/google-gson.spec b/google-gson.spec
index a944545..d603a2c 100644
--- a/google-gson.spec
+++ b/google-gson.spec
@@ -72,8 +72,11 @@ rm extras/src/test/java/com/google/gson/typeadapters/PostConstructAdapterFactory
 %pom_disable_module proto
 
 for x in `find | grep pom.xml` ; do
-  if cat $x | grep -e "<maven.compiler.release>7" ; then
-    sed "s;<maven.compiler.release>.*;<maven.compiler.release>8</maven.compiler.release>;g" -i $x;
+  if cat $x | grep -e "<maven.compiler.release>.*7" ; then
+    sed "s;<maven.compiler.release>.*7.*;<maven.compiler.release>8</maven.compiler.release>;g" -i $x;
+  fi
+  if cat $x | grep -e "<failOnWarning>.*true" ; then
+    sed "s;<failOnWarning>.*true.*;<failOnWarning>false</failOnWarning>;g" -i $x;z
   fi
 done
 
@@ -95,6 +98,9 @@ done
 * Tue Feb 27 2024 Jiri Vanek <jvanek@redhat.com> - 2.10.1-5
 - Rebuilt for java-21-openjdk as system jdk
 - bumped compiler release to 8
+- disabled warnings as errors. Note, the warnings are legitimate:
+-- implicit cast from int to char in compound assignment is possibly lossy
+-- on-transient instance field of a serializable class declared with a non-serializable type
 
 * Wed Jan 24 2024 Fedora Release Engineering <releng@fedoraproject.org> - 2.10.1-4
 - Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild

^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2026-08-17 12:39 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-08-17 12:39 [rpms/google-gson] epel10: disabled warnings as errors. Note, the warnings are legitimate Jiri

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox