1
0

34 Commits

Author SHA256 Message Date
5d67926a45 Accepting request 1328945 from Java:Factory
January 2026 CPU

OBS-URL: https://build.opensuse.org/request/show/1328945
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/java-17-openjdk?expand=0&rev=45
2026-01-26 10:02:09 +00:00
4f632fd3e4 OBS-URL: https://build.opensuse.org/package/show/Java:Factory/java-17-openjdk?expand=0&rev=174 2026-01-23 18:40:40 +00:00
97a88ba40c OBS-URL: https://build.opensuse.org/package/show/Java:Factory/java-17-openjdk?expand=0&rev=173 2026-01-21 10:55:43 +00:00
73bfc68958 OBS-URL: https://build.opensuse.org/package/show/Java:Factory/java-17-openjdk?expand=0&rev=172 2026-01-14 18:33:14 +00:00
ba3e7fecfb OBS-URL: https://build.opensuse.org/package/show/Java:Factory/java-17-openjdk?expand=0&rev=171 2026-01-14 15:16:23 +00:00
eff4aeccba Accepting request 1313048 from Java:Factory
October 2025 CPU

OBS-URL: https://build.opensuse.org/request/show/1313048
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/java-17-openjdk?expand=0&rev=44
2025-10-23 14:37:09 +00:00
d61538b48a OBS-URL: https://build.opensuse.org/package/show/Java:Factory/java-17-openjdk?expand=0&rev=169 2025-10-22 11:55:18 +00:00
24953f4aa8 OBS-URL: https://build.opensuse.org/package/show/Java:Factory/java-17-openjdk?expand=0&rev=168 2025-10-22 07:51:04 +00:00
73ff9a2bb6 Accepting request 1307557 from Java:Factory
Use gcc_version to decide about compiler

OBS-URL: https://build.opensuse.org/request/show/1307557
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/java-17-openjdk?expand=0&rev=43
2025-09-29 14:32:26 +00:00
d91beabc8f OBS-URL: https://build.opensuse.org/package/show/Java:Factory/java-17-openjdk?expand=0&rev=166 2025-09-28 11:01:17 +00:00
f875ab1623 OBS-URL: https://build.opensuse.org/package/show/Java:Factory/java-17-openjdk?expand=0&rev=165 2025-09-24 12:05:54 +00:00
fec314b972 OBS-URL: https://build.opensuse.org/package/show/Java:Factory/java-17-openjdk?expand=0&rev=164 2025-09-24 12:00:59 +00:00
070102b2b4 OBS-URL: https://build.opensuse.org/package/show/Java:Factory/java-17-openjdk?expand=0&rev=163 2025-09-24 11:49:27 +00:00
8cfe8dbf8a Accepting request 1301357 from Java:Factory
fix build with new glibc

OBS-URL: https://build.opensuse.org/request/show/1301357
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/java-17-openjdk?expand=0&rev=42
2025-08-26 12:57:00 +00:00
456a0df371 Build with new glibc
OBS-URL: https://build.opensuse.org/package/show/Java:Factory/java-17-openjdk?expand=0&rev=161
2025-08-22 07:28:29 +00:00
48233f8236 Accepting request 1294994 from Java:Factory
Do not embed rebuild counter (bsc#1246806)

OBS-URL: https://build.opensuse.org/request/show/1294994
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/java-17-openjdk?expand=0&rev=41
2025-07-23 14:33:11 +00:00
448e8c019b OBS-URL: https://build.opensuse.org/package/show/Java:Factory/java-17-openjdk?expand=0&rev=159 2025-07-22 06:19:05 +00:00
bb2c605614 OBS-URL: https://build.opensuse.org/package/show/Java:Factory/java-17-openjdk?expand=0&rev=158 2025-07-21 16:44:27 +00:00
5820e3db43 OBS-URL: https://build.opensuse.org/package/show/Java:Factory/java-17-openjdk?expand=0&rev=157 2025-07-21 10:58:26 +00:00
fe8156ac2e Accepting request 1294289 from Java:Factory
July 2025 CPU

OBS-URL: https://build.opensuse.org/request/show/1294289
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/java-17-openjdk?expand=0&rev=40
2025-07-18 13:59:27 +00:00
de87400856 OBS-URL: https://build.opensuse.org/package/show/Java:Factory/java-17-openjdk?expand=0&rev=155 2025-07-18 05:25:30 +00:00
68d90420d2 OBS-URL: https://build.opensuse.org/package/show/Java:Factory/java-17-openjdk?expand=0&rev=154 2025-07-16 11:50:13 +00:00
a2db975696 Accepting request 1272283 from Java:Factory
April 2025 CPU

OBS-URL: https://build.opensuse.org/request/show/1272283
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/java-17-openjdk?expand=0&rev=39
2025-04-24 15:25:52 +00:00
20cdd09204 OBS-URL: https://build.opensuse.org/package/show/Java:Factory/java-17-openjdk?expand=0&rev=152 2025-04-24 03:44:23 +00:00
8df50f6d49 OBS-URL: https://build.opensuse.org/package/show/Java:Factory/java-17-openjdk?expand=0&rev=151 2025-04-16 10:52:16 +00:00
fe6de3df70 Accepting request 1239552 from Java:Factory
January 2025 CPU

OBS-URL: https://build.opensuse.org/request/show/1239552
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/java-17-openjdk?expand=0&rev=38
2025-01-22 16:31:49 +00:00
aa3c445511 - Added patch
* reproducible-directory-mtime.patch
    + reproducible modification times for directory creation

OBS-URL: https://build.opensuse.org/package/show/Java:Factory/java-17-openjdk?expand=0&rev=149
2025-01-22 14:19:56 +00:00
ba015e5335 OBS-URL: https://build.opensuse.org/package/show/Java:Factory/java-17-openjdk?expand=0&rev=148 2025-01-22 14:13:48 +00:00
b5d99a5e0f OBS-URL: https://build.opensuse.org/package/show/Java:Factory/java-17-openjdk?expand=0&rev=147 2025-01-22 12:08:58 +00:00
3a4b9756dc OBS-URL: https://build.opensuse.org/package/show/Java:Factory/java-17-openjdk?expand=0&rev=146 2025-01-22 10:44:44 +00:00
64b709ec43 Accepting request 1220046 from Java:Factory
October 2024 CPU

OBS-URL: https://build.opensuse.org/request/show/1220046
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/java-17-openjdk?expand=0&rev=37
2024-11-01 20:07:31 +00:00
0d528ffb1b OBS-URL: https://build.opensuse.org/package/show/Java:Factory/java-17-openjdk?expand=0&rev=144 2024-11-01 11:15:20 +00:00
a70093217e OBS-URL: https://build.opensuse.org/package/show/Java:Factory/java-17-openjdk?expand=0&rev=143 2024-10-16 09:12:29 +00:00
eff8c96f15 OBS-URL: https://build.opensuse.org/package/show/Java:Factory/java-17-openjdk?expand=0&rev=142 2024-10-16 08:54:13 +00:00
9 changed files with 3224 additions and 163 deletions

View File

@@ -1,78 +0,0 @@
--- a/src/jdk.javadoc/share/classes/jdk/javadoc/internal/doclets/formats/html/HtmlDocletWriter.java
+++ b/src/jdk.javadoc/share/classes/jdk/javadoc/internal/doclets/formats/html/HtmlDocletWriter.java
@@ -1015,6 +1015,9 @@ public class HtmlDocletWriter {
// @see reference label...
label = ref.subList(1, ref.size());
}
+ case ERRONEOUS -> {
+ return HtmlTree.SPAN(Text.of(resources.getText("doclet.tag.invalid_input", seeText)));
+ }
default ->
throw new IllegalStateException(ref.get(0).getKind().toString());
}
--- a/test/langtools/jdk/javadoc/doclet/testSeeTag/TestSeeTag.java
+++ b/test/langtools/jdk/javadoc/doclet/testSeeTag/TestSeeTag.java
@@ -23,15 +23,19 @@
/*
* @test
- * @bug 8017191 8182765 8200432 8239804 8250766 8262992
+ * @bug 8017191 8182765 8200432 8239804 8250766 8262992 8281944
* @summary Javadoc is confused by at-link to imported classes outside of the set of generated packages
- * @library ../../lib
+ * @library /tools/lib ../../lib
* @modules jdk.javadoc/jdk.javadoc.internal.tool
- * @build javadoc.tester.*
+ * @build toolbox.ToolBox javadoc.tester.*
* @run main TestSeeTag
*/
import javadoc.tester.JavadocTester;
+import toolbox.ToolBox;
+
+import java.io.IOException;
+import java.nio.file.Path;
public class TestSeeTag extends JavadocTester {
@@ -105,4 +109,40 @@ public class TestSeeTag extends JavadocTester {
</dd>
</dl>""");
}
+
+ ToolBox tb = new ToolBox();
+
+ @Test
+ public void testErroneous() throws IOException {
+ Path src = Path.of("erroneous", "src");
+ tb.writeJavaFiles(src, """
+ package erroneous;
+ /**
+ * Comment.
+ * @see <a href="
+ */
+ public class C {
+ private C() { }
+ }
+ """);
+
+ javadoc("-d", Path.of("erroneous", "api").toString(),
+ "-sourcepath", src.toString(),
+ "--no-platform-links",
+ "erroneous");
+ checkExit(Exit.ERROR);
+
+ checkOutput("erroneous/C.html", true,
+ """
+ <dl class="notes">
+ <dt>See Also:</dt>
+ <dd>
+ <ul class="see-list">
+ <li><span>invalid input: '&lt;a href="'</span></li>
+ </ul>
+ </dd>
+ </dl>
+ """);
+
+ }
}

32
bsc_1255446.patch Normal file
View File

@@ -0,0 +1,32 @@
--- a/src/java.desktop/unix/classes/sun/awt/X11/XWindow.java
+++ b/src/java.desktop/unix/classes/sun/awt/X11/XWindow.java
@@ -53,6 +53,7 @@ import java.lang.ref.WeakReference;
import sun.awt.AWTAccessor;
import sun.awt.AWTAccessor.ComponentAccessor;
+import sun.awt.image.PixelConverter;
import sun.awt.PaintEventDispatcher;
import sun.awt.PeerEvent;
import sun.awt.SunToolkit;
@@ -465,7 +466,20 @@ class XWindow extends XBaseWindow implements X11ComponentPeer {
if (!doEraseBackground()) {
return;
}
- int pixel = surfaceData.pixelFor(c.getRGB());
+ int pixel = 0;
+ boolean isOglEnabled = Boolean.getBoolean("sun.java2d.opengl");
+ if (isOglEnabled) {
+ // 6304250: XAWT: Items in choice show a blue border on OpenGL + Solaris10 when background color is set
+ // Note: When OGL is enabled, surfaceData.pixelFor() will not
+ // return a pixel value appropriate for passing to
+ // XSetWindowBackground(). Therefore, we will use the ColorModel
+ // for this component in order to calculate a pixel value from
+ // the given RGB value.
+ ColorModel cm = getColorModel();
+ pixel = PixelConverter.instance.rgbToPixel(c.getRGB(), cm);
+ } else {
+ pixel = surfaceData.pixelFor(c.getRGB());
+ }
XlibWrapper.XSetWindowBackground(XToolkit.getDisplay(), getContentWindow(), pixel);
XlibWrapper.XClearWindow(XToolkit.getDisplay(), getContentWindow());
}

View File

@@ -1417,7 +1417,7 @@
+} +}
--- a/src/java.base/share/conf/security/java.security --- a/src/java.base/share/conf/security/java.security
+++ b/src/java.base/share/conf/security/java.security +++ b/src/java.base/share/conf/security/java.security
@@ -82,6 +82,17 @@ security.provider.tbd=Apple @@ -83,6 +83,17 @@
#endif #endif
security.provider.tbd=SunPKCS11 security.provider.tbd=SunPKCS11
@@ -1435,7 +1435,7 @@
# #
# A list of preferred providers for specific algorithms. These providers will # A list of preferred providers for specific algorithms. These providers will
# be searched for matching algorithms before the list of registered providers. # be searched for matching algorithms before the list of registered providers.
@@ -292,6 +303,47 @@ policy.ignoreIdentityScope=false @@ -293,6 +304,47 @@ policy.ignoreIdentityScope=false
# #
keystore.type=pkcs12 keystore.type=pkcs12
@@ -1483,7 +1483,7 @@
# #
# Controls compatibility mode for JKS and PKCS12 keystore types. # Controls compatibility mode for JKS and PKCS12 keystore types.
# #
@@ -329,6 +381,13 @@ package.definition=sun.misc.,\ @@ -330,6 +382,13 @@ package.definition=sun.misc.,\
# #
security.overridePropertiesFile=true security.overridePropertiesFile=true
@@ -2408,7 +2408,7 @@
private static final long serialVersionUID = -2575874101938349339L; private static final long serialVersionUID = -2575874101938349339L;
private static final String PUBLIC = "public"; private static final String PUBLIC = "public";
@@ -393,9 +398,10 @@ abstract class P11Key implements Key, Length { @@ -406,9 +411,10 @@ abstract class P11Key implements Key, Length {
new CK_ATTRIBUTE(CKA_EXTRACTABLE), new CK_ATTRIBUTE(CKA_EXTRACTABLE),
}); });
@@ -2417,12 +2417,12 @@
- attrs[1].getBoolean() || !attrs[2].getBoolean(); - attrs[1].getBoolean() || !attrs[2].getBoolean();
+ boolean exportable = plainKeySupportEnabled && !algorithm.equals("DH"); + boolean exportable = plainKeySupportEnabled && !algorithm.equals("DH");
+ boolean keySensitive = (!exportable && + boolean keySensitive = (!exportable &&
+ ((attrs[0].getBoolean() && P11Util.isNSS(session.token)) || + (attrs[0].getBoolean() && P11Util.isNSS(session.token)) ||
+ attrs[1].getBoolean() || !attrs[2].getBoolean())); + attrs[1].getBoolean() || !attrs[2].getBoolean());
switch (algorithm) { switch (algorithm) {
case "RSA": case "RSA":
@@ -450,7 +456,8 @@ abstract class P11Key implements Key, Length { @@ -463,7 +469,8 @@ abstract class P11Key implements Key, Length {
public String getFormat() { public String getFormat() {
token.ensureValid(); token.ensureValid();
@@ -3285,29 +3285,7 @@
d(SIG, "RawDSA", P11Signature, d(SIG, "RawDSA", P11Signature,
List.of("NONEwithDSA"), List.of("NONEwithDSA"),
m(CKM_DSA)); m(CKM_DSA));
@@ -1144,9 +1356,21 @@ public final class SunPKCS11 extends AuthProvider { @@ -1211,11 +1423,52 @@ public final class SunPKCS11 extends AuthProvider {
if (ds == null) {
continue;
}
+ descLoop:
for (Descriptor d : ds) {
Integer oldMech = supportedAlgs.get(d);
if (oldMech == null) {
+ if (d.requiredMechs != null) {
+ // Check that other mechanisms required for the
+ // service are supported before listing it as
+ // available for the first time.
+ for (int requiredMech : d.requiredMechs) {
+ if (token.getMechanismInfo(
+ requiredMech & 0xFFFFFFFFL) == null) {
+ continue descLoop;
+ }
+ }
+ }
supportedAlgs.put(d, integerMech);
continue;
}
@@ -1220,11 +1444,52 @@ public final class SunPKCS11 extends AuthProvider {
} }
@Override @Override
@@ -3360,7 +3338,7 @@
try { try {
return newInstance0(param); return newInstance0(param);
} catch (PKCS11Exception e) { } catch (PKCS11Exception e) {
@@ -1244,6 +1509,8 @@ public final class SunPKCS11 extends AuthProvider { @@ -1235,6 +1488,8 @@ public final class SunPKCS11 extends AuthProvider {
} else if (algorithm.endsWith("GCM/NoPadding") || } else if (algorithm.endsWith("GCM/NoPadding") ||
algorithm.startsWith("ChaCha20-Poly1305")) { algorithm.startsWith("ChaCha20-Poly1305")) {
return new P11AEADCipher(token, algorithm, mechanism); return new P11AEADCipher(token, algorithm, mechanism);
@@ -3369,7 +3347,7 @@
} else { } else {
return new P11Cipher(token, algorithm, mechanism); return new P11Cipher(token, algorithm, mechanism);
} }
@@ -1579,6 +1846,9 @@ public final class SunPKCS11 extends AuthProvider { @@ -1570,6 +1825,9 @@ public final class SunPKCS11 extends AuthProvider {
try { try {
session = token.getOpSession(); session = token.getOpSession();
p11.C_Logout(session.id()); p11.C_Logout(session.id());
@@ -3855,7 +3833,7 @@
/** /**
* Connects this object to the specified PKCS#11 library. This method is for * Connects this object to the specified PKCS#11 library. This method is for
* internal use only. * internal use only.
@@ -1625,7 +1677,7 @@ public class PKCS11 { @@ -1661,7 +1713,7 @@ public class PKCS11 {
static class SynchronizedPKCS11 extends PKCS11 { static class SynchronizedPKCS11 extends PKCS11 {
SynchronizedPKCS11(String pkcs11ModulePath, String functionListName) SynchronizedPKCS11(String pkcs11ModulePath, String functionListName)
@@ -3864,7 +3842,7 @@
super(pkcs11ModulePath, functionListName); super(pkcs11ModulePath, functionListName);
} }
@@ -1911,4 +1963,194 @@ static class SynchronizedPKCS11 extends PKCS11 { @@ -1947,4 +1999,194 @@ static class SynchronizedPKCS11 extends PKCS11 {
super.C_GenerateRandom(hSession, randomData); super.C_GenerateRandom(hSession, randomData);
} }
} }
@@ -4121,7 +4099,7 @@
} }
--- a/src/jdk.crypto.cryptoki/share/native/libj2pkcs11/p11_convert.c --- a/src/jdk.crypto.cryptoki/share/native/libj2pkcs11/p11_convert.c
+++ b/src/jdk.crypto.cryptoki/share/native/libj2pkcs11/p11_convert.c +++ b/src/jdk.crypto.cryptoki/share/native/libj2pkcs11/p11_convert.c
@@ -1515,6 +1515,10 @@ CK_VOID_PTR jMechParamToCKMechParamPtrSlow(JNIEnv *env, jobject jParam, @@ -1518,6 +1518,10 @@ CK_VOID_PTR jMechParamToCKMechParamPtrSlow(JNIEnv *env, jobject jParam,
case CKM_PBE_SHA1_DES3_EDE_CBC: case CKM_PBE_SHA1_DES3_EDE_CBC:
case CKM_PBE_SHA1_DES2_EDE_CBC: case CKM_PBE_SHA1_DES2_EDE_CBC:
case CKM_PBA_SHA1_WITH_SHA1_HMAC: case CKM_PBA_SHA1_WITH_SHA1_HMAC:
@@ -4132,7 +4110,7 @@
ckpParamPtr = jPbeParamToCKPbeParamPtr(env, jParam, ckpLength); ckpParamPtr = jPbeParamToCKPbeParamPtr(env, jParam, ckpLength);
break; break;
case CKM_PKCS5_PBKD2: case CKM_PKCS5_PBKD2:
@@ -1658,13 +1662,13 @@ jPbeParamToCKPbeParamPtr(JNIEnv *env, jobject jParam, CK_ULONG *pLength) @@ -1661,13 +1665,13 @@ jPbeParamToCKPbeParamPtr(JNIEnv *env, jobject jParam, CK_ULONG *pLength)
// retrieve java values // retrieve java values
jPbeParamsClass = (*env)->FindClass(env, CLASS_PBE_PARAMS); jPbeParamsClass = (*env)->FindClass(env, CLASS_PBE_PARAMS);
if (jPbeParamsClass == NULL) { return NULL; } if (jPbeParamsClass == NULL) { return NULL; }
@@ -4148,7 +4126,7 @@
if (fieldID == NULL) { return NULL; } if (fieldID == NULL) { return NULL; }
jSalt = (*env)->GetObjectField(env, jParam, fieldID); jSalt = (*env)->GetObjectField(env, jParam, fieldID);
fieldID = (*env)->GetFieldID(env, jPbeParamsClass, "ulIteration", "J"); fieldID = (*env)->GetFieldID(env, jPbeParamsClass, "ulIteration", "J");
@@ -1680,15 +1684,15 @@ jPbeParamToCKPbeParamPtr(JNIEnv *env, jobject jParam, CK_ULONG *pLength) @@ -1683,15 +1687,15 @@ jPbeParamToCKPbeParamPtr(JNIEnv *env, jobject jParam, CK_ULONG *pLength)
// populate using java values // populate using java values
ckParamPtr->ulIteration = jLongToCKULong(jIteration); ckParamPtr->ulIteration = jLongToCKULong(jIteration);
@@ -4167,7 +4145,7 @@
if ((*env)->ExceptionCheck(env)) { if ((*env)->ExceptionCheck(env)) {
goto cleanup; goto cleanup;
} }
@@ -1767,31 +1771,59 @@ void copyBackPBEInitializationVector(JNIEnv *env, CK_MECHANISM *ckMechanism, job @@ -1770,31 +1774,59 @@ void copyBackPBEInitializationVector(JNIEnv *env, CK_MECHANISM *ckMechanism, job
} }
} }
@@ -4236,7 +4214,7 @@
fieldID = (*env)->GetFieldID(env, jPkcs5Pbkd2ParamsClass, "saltSource", "J"); fieldID = (*env)->GetFieldID(env, jPkcs5Pbkd2ParamsClass, "saltSource", "J");
if (fieldID == NULL) { return NULL; } if (fieldID == NULL) { return NULL; }
jSaltSource = (*env)->GetLongField(env, jParam, fieldID); jSaltSource = (*env)->GetLongField(env, jParam, fieldID);
@@ -1807,36 +1839,60 @@ jPkcs5Pbkd2ParamToCKPkcs5Pbkd2ParamPtr(JNIEnv *env, jobject jParam, CK_ULONG *pL @@ -1810,36 +1842,60 @@ jPkcs5Pbkd2ParamToCKPkcs5Pbkd2ParamPtr(JNIEnv *env, jobject jParam, CK_ULONG *pL
fieldID = (*env)->GetFieldID(env, jPkcs5Pbkd2ParamsClass, "pPrfData", "[B"); fieldID = (*env)->GetFieldID(env, jPkcs5Pbkd2ParamsClass, "pPrfData", "[B");
if (fieldID == NULL) { return NULL; } if (fieldID == NULL) { return NULL; }
jPrfData = (*env)->GetObjectField(env, jParam, fieldID); jPrfData = (*env)->GetObjectField(env, jParam, fieldID);
@@ -4340,7 +4318,7 @@
// PBE mechs, WTLS mechs, CMS mechs, // PBE mechs, WTLS mechs, CMS mechs,
// CKM_EXTRACT_KEY_FROM_KEY, CKM_OTP, CKM_KIP, // CKM_EXTRACT_KEY_FROM_KEY, CKM_OTP, CKM_KIP,
// CKM_DSA_PARAMETER_GEN?, CKM_GOSTR3410_* // CKM_DSA_PARAMETER_GEN?, CKM_GOSTR3410_*
@@ -517,12 +533,11 @@ void jBooleanArrayToCKBBoolArray(JNIEnv *env, const jbooleanArray jArray, CK_BBO @@ -528,12 +544,11 @@ void jBooleanArrayToCKBBoolArray(JNIEnv *env, const jbooleanArray jArray, CK_BBO
jboolean* jpTemp; jboolean* jpTemp;
CK_ULONG i; CK_ULONG i;
@@ -4355,7 +4333,7 @@
jpTemp = (jboolean*) calloc(*ckpLength, sizeof(jboolean)); jpTemp = (jboolean*) calloc(*ckpLength, sizeof(jboolean));
if (jpTemp == NULL) { if (jpTemp == NULL) {
throwOutOfMemoryError(env, 0); throwOutOfMemoryError(env, 0);
@@ -559,12 +574,11 @@ void jByteArrayToCKByteArray(JNIEnv *env, const jbyteArray jArray, CK_BYTE_PTR * @@ -570,12 +585,11 @@ void jByteArrayToCKByteArray(JNIEnv *env, const jbyteArray jArray, CK_BYTE_PTR *
jbyte* jpTemp; jbyte* jpTemp;
CK_ULONG i; CK_ULONG i;
@@ -4370,7 +4348,7 @@
jpTemp = (jbyte*) calloc(*ckpLength, sizeof(jbyte)); jpTemp = (jbyte*) calloc(*ckpLength, sizeof(jbyte));
if (jpTemp == NULL) { if (jpTemp == NULL) {
throwOutOfMemoryError(env, 0); throwOutOfMemoryError(env, 0);
@@ -606,12 +620,11 @@ void jLongArrayToCKULongArray(JNIEnv *env, const jlongArray jArray, CK_ULONG_PTR @@ -617,12 +631,11 @@ void jLongArrayToCKULongArray(JNIEnv *env, const jlongArray jArray, CK_ULONG_PTR
jlong* jTemp; jlong* jTemp;
CK_ULONG i; CK_ULONG i;
@@ -4385,7 +4363,7 @@
jTemp = (jlong*) calloc(*ckpLength, sizeof(jlong)); jTemp = (jlong*) calloc(*ckpLength, sizeof(jlong));
if (jTemp == NULL) { if (jTemp == NULL) {
throwOutOfMemoryError(env, 0); throwOutOfMemoryError(env, 0);
@@ -648,12 +661,11 @@ void jCharArrayToCKCharArray(JNIEnv *env, const jcharArray jArray, CK_CHAR_PTR * @@ -659,12 +672,11 @@ void jCharArrayToCKCharArray(JNIEnv *env, const jcharArray jArray, CK_CHAR_PTR *
jchar* jpTemp; jchar* jpTemp;
CK_ULONG i; CK_ULONG i;
@@ -4400,7 +4378,7 @@
jpTemp = (jchar*) calloc(*ckpLength, sizeof(jchar)); jpTemp = (jchar*) calloc(*ckpLength, sizeof(jchar));
if (jpTemp == NULL) { if (jpTemp == NULL) {
throwOutOfMemoryError(env, 0); throwOutOfMemoryError(env, 0);
@@ -690,12 +702,11 @@ void jCharArrayToCKUTF8CharArray(JNIEnv *env, const jcharArray jArray, CK_UTF8CH @@ -701,12 +713,11 @@ void jCharArrayToCKUTF8CharArray(JNIEnv *env, const jcharArray jArray, CK_UTF8CH
jchar* jTemp; jchar* jTemp;
CK_ULONG i; CK_ULONG i;
@@ -5854,6 +5832,3 @@
+ } + }
+ } + }
+} +}
--
2.45.2

File diff suppressed because it is too large Load Diff

View File

@@ -1,7 +1,7 @@
# #
# spec file for package java-17-openjdk # spec file for package java-17-openjdk
# #
# Copyright (c) 2024 SUSE LLC # Copyright (c) 2026 SUSE LLC and contributors
# #
# All modifications and additions to the file contributed by third parties # All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed # remain the property of their copyright owners, unless otherwise agreed
@@ -33,8 +33,8 @@
# Standard JPackage naming and versioning defines. # Standard JPackage naming and versioning defines.
%global featurever 17 %global featurever 17
%global interimver 0 %global interimver 0
%global updatever 12 %global updatever 18
%global buildver 7 %global buildver 8
%global openjdk_repo jdk17u %global openjdk_repo jdk17u
%global openjdk_tag jdk-%{featurever}.%{interimver}.%{updatever}%{?patchver:.%{patchver}}+%{buildver} %global openjdk_tag jdk-%{featurever}.%{interimver}.%{updatever}%{?patchver:.%{patchver}}+%{buildver}
%global openjdk_dir %{openjdk_repo}-jdk-%{featurever}.%{interimver}.%{updatever}%{?patchver:.%{patchver}}-%{buildver} %global openjdk_dir %{openjdk_repo}-jdk-%{featurever}.%{interimver}.%{updatever}%{?patchver:.%{patchver}}-%{buildver}
@@ -125,6 +125,9 @@
%global tapsetroot %{_datadir}/systemtap %global tapsetroot %{_datadir}/systemtap
%global tapsetdir %{tapsetroot}/tapset/%{_build_cpu} %global tapsetdir %{tapsetroot}/tapset/%{_build_cpu}
%endif %endif
%if 0%{?gcc_version} < 7 || 0%{?suse_version} < 1500
%define with_gcc 7
%endif
Name: java-%{featurever}-openjdk Name: java-%{featurever}-openjdk
Version: %{package_version} Version: %{package_version}
Release: 0 Release: 0
@@ -170,15 +173,16 @@ Patch17: reproducible-jlink.patch
Patch20: loadAssistiveTechnologies.patch Patch20: loadAssistiveTechnologies.patch
# #
Patch21: reproducible-javadoc-timestamp.patch Patch21: reproducible-javadoc-timestamp.patch
Patch22: reproducible-directory-mtime.patch
#
Patch31: bsc_1255446.patch
# #
# OpenJDK specific patches # OpenJDK specific patches
# #
Patch200: ppc_stack_overflow_fix.patch Patch200: ppc_stack_overflow_fix.patch
# #
Patch300: JDK-8282944.patch
Patch301: JDK-8303509.patch Patch301: JDK-8303509.patch
Patch302: disable-doclint-by-default.patch Patch302: disable-doclint-by-default.patch
Patch303: unsigned-sni-server-name.patch
# #
BuildRequires: alsa-lib-devel BuildRequires: alsa-lib-devel
BuildRequires: autoconf BuildRequires: autoconf
@@ -190,6 +194,8 @@ BuildRequires: desktop-file-utils
BuildRequires: fdupes BuildRequires: fdupes
BuildRequires: fontconfig-devel BuildRequires: fontconfig-devel
BuildRequires: freetype2-devel BuildRequires: freetype2-devel
BuildRequires: gcc%{?with_gcc}
BuildRequires: gcc%{?with_gcc}-c++
BuildRequires: giflib-devel BuildRequires: giflib-devel
BuildRequires: hicolor-icon-theme BuildRequires: hicolor-icon-theme
BuildRequires: java-ca-certificates BuildRequires: java-ca-certificates
@@ -207,7 +213,6 @@ BuildRequires: libxslt
BuildRequires: mozilla-nss-devel >= 3.53 BuildRequires: mozilla-nss-devel >= 3.53
BuildRequires: pkgconfig BuildRequires: pkgconfig
BuildRequires: unzip BuildRequires: unzip
BuildRequires: update-desktop-files
BuildRequires: xorg-x11-proto-devel BuildRequires: xorg-x11-proto-devel
BuildRequires: xprop BuildRequires: xprop
BuildRequires: zip BuildRequires: zip
@@ -243,13 +248,6 @@ Provides: jre1.7.x
Provides: jre1.8.x Provides: jre1.8.x
Provides: jre1.9.x Provides: jre1.9.x
%endif %endif
%if 0%{?suse_version} < 1500
BuildRequires: gcc7
BuildRequires: gcc7-c++
%else
BuildRequires: gcc >= 7
BuildRequires: gcc-c++ >= 7
%endif
%if %{with_system_lcms} %if %{with_system_lcms}
BuildRequires: liblcms2-devel BuildRequires: liblcms2-devel
%endif %endif
@@ -416,13 +414,14 @@ rm -rvf src/java.desktop/share/native/liblcms/lcms2*
%patch -P 20 -p1 %patch -P 20 -p1
%patch -P 21 -p1 %patch -P 21 -p1
%patch -P 22 -p1
%patch -P 31 -p1
%patch -P 200 -p1 %patch -P 200 -p1
%patch -P 300 -p1
%patch -P 301 -p1 %patch -P 301 -p1
%patch -P 302 -p1 %patch -P 302 -p1
%patch -P 303 -p1
# Extract systemtap tapsets # Extract systemtap tapsets
@@ -470,17 +469,17 @@ mkdir -p %{buildoutputdir}
pushd %{buildoutputdir} pushd %{buildoutputdir}
bash ../configure \ bash ../configure \
%if 0%{?suse_version} < 1500 %if 0%{?with_gcc}
CPP=cpp-7 \ CPP=cpp-%{with_gcc} \
CXX=g++-7 \ CXX=g++-%{with_gcc} \
CC=gcc-7 \ CC=gcc-%{with_gcc} \
NM=gcc-nm-7 \ NM=gcc-nm-%{with_gcc} \
%endif %endif
%if %{is_release} %if %{is_release}
--with-version-pre="" \ --with-version-pre="" \
%endif %endif
--with-version-build="%{buildver}" \ --with-version-build="%{buildver}" \
--with-version-opt="suse-%{release}-%{_arch}" \ --with-version-opt="suse-%{suse_version}-%{_arch}" \
%if %{with zero} %if %{with zero}
--with-jvm-variants=zero \ --with-jvm-variants=zero \
%else %else
@@ -629,7 +628,6 @@ done
install -d -m 0755 %{buildroot}%{_datadir}/{applications,pixmaps} install -d -m 0755 %{buildroot}%{_datadir}/{applications,pixmaps}
install -d -m 0755 %{buildroot}/%{_jvmdir}/%{sdkdir}/lib/desktop/ install -d -m 0755 %{buildroot}/%{_jvmdir}/%{sdkdir}/lib/desktop/
install -m 0644 jconsole.desktop %{buildroot}/%{_jvmdir}/%{sdkdir}/lib/desktop/ install -m 0644 jconsole.desktop %{buildroot}/%{_jvmdir}/%{sdkdir}/lib/desktop/
%suse_update_desktop_file %{buildroot}/%{_jvmdir}/%{sdkdir}/lib/desktop/jconsole.desktop
# Find demo directories. # Find demo directories.
find %{buildroot}%{_jvmdir}/%{sdkdir}/demo \ find %{buildroot}%{_jvmdir}/%{sdkdir}/demo \

Binary file not shown.

3
jdk-17.0.18+8.tar.gz Normal file
View File

@@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:7ebfcc2aafd514c23df3fe5280e1a34630b9b1d429c65a80dd5a4b6e7f177bc3
size 108122935

View File

@@ -0,0 +1,15 @@
--- a/src/java.base/share/classes/java/io/File.java
+++ b/src/java.base/share/classes/java/io/File.java
@@ -1376,7 +1376,11 @@ public class File
if (isInvalid()) {
return false;
}
- return fs.createDirectory(this);
+ boolean result = fs.createDirectory(this);
+ if ( result && System.getenv("SOURCE_DATE_EPOCH") != null ) {
+ fs.setLastModifiedTime(this, 1000 * Long.parseLong(System.getenv("SOURCE_DATE_EPOCH")));
+ }
+ return result;
}
/**

View File

@@ -1,13 +0,0 @@
Index: jdk17u-jdk-17.0.6-10/src/java.base/share/classes/sun/security/ssl/SSLSessionImpl.java
===================================================================
--- jdk17u-jdk-17.0.6-10.orig/src/java.base/share/classes/sun/security/ssl/SSLSessionImpl.java
+++ jdk17u-jdk-17.0.6-10/src/java.base/share/classes/sun/security/ssl/SSLSessionImpl.java
@@ -408,7 +408,7 @@ final class SSLSessionImpl extends Exten
} else {
requestedServerNames = new ArrayList<>();
while (len > 0) {
- int l = buf.get();
+ int l = Byte.toUnsignedInt(buf.get());
b = new byte[l];
buf.get(b, 0, l);
requestedServerNames.add(new SNIHostName(new String(b)));