File icedtea-optional.patch of Package java-1_7_0-openjdk

--- icedtea-2.6.28/Makefile.am	2021-11-08 02:21:30.657788711 +0100
+++ icedtea-2.6.28/Makefile.am	2025-09-03 09:29:50.560477781 +0200
@@ -444,6 +444,7 @@
 	patches/boot/ecj-trywithresources.patch \
 	patches/boot/ecj-autoboxing.patch \
 	patches/boot/xsltproc.patch \
+	patches/boot/ecj-optional.patch \
 	patches/boot/ecj-odd.patch
 
 if !DISABLE_BOOTSTRAP_TOOLS
--- icedtea-2.6.28/patches/boot/ecj-diamond.patch	2021-11-08 02:21:31.108788129 +0100
+++ icedtea-2.6.28/patches/boot/ecj-diamond.patch	2025-09-03 09:27:24.465494959 +0200
@@ -11322,15 +11322,6 @@
      }
  
      /**
-@@ -193,7 +193,7 @@
-         if (!isPresent())
-             return empty();
-         else {
--            return Optional.ofNullable(mapper.apply(value));
-+            return Optional.<U>ofNullable(mapper.apply(value));
-         }
-     }
- 
 diff -Nru openjdk-boot.orig/jdk/src/share/classes/sun/security/util/SignatureFileVerifier.java openjdk-boot/jdk/src/share/classes/sun/security/util/SignatureFileVerifier.java
 --- openjdk-boot.orig/jdk/src/share/classes/sun/security/util/SignatureFileVerifier.java	2021-07-28 00:49:02.000000000 +0100
 +++ openjdk-boot/jdk/src/share/classes/sun/security/util/SignatureFileVerifier.java	2021-07-30 01:58:07.093047817 +0100
--- icedtea-2.6.28/patches/boot/ecj-optional.patch	1970-01-01 01:00:00.000000000 +0100
+++ icedtea-2.6.28/patches/boot/ecj-optional.patch	2025-09-03 09:27:15.102370748 +0200
@@ -0,0 +1,11 @@
+--- openjdk-boot/jdk/src/share/classes/sun/security/util/Optional.java	2021-07-28 00:49:02.000000000 +0100
++++ openjdk-boot/jdk/src/share/classes/sun/security/util/Optional.java	2021-07-30 01:58:07.092047815 +0100
+@@ -193,7 +193,7 @@
+         if (!isPresent())
+             return empty();
+         else {
+-            return Optional.ofNullable(mapper.apply(value));
++            return Optional.<U>ofNullable(mapper.apply(value));
+         }
+     }
+ 
openSUSE Build Service is sponsored by