public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
* [rpms/flexmark-java] epel10: Fix incompatibility with OpenJDK 21
@ 2026-07-17 19:15 Mikolaj Izdebski
  0 siblings, 0 replies; only message in thread
From: Mikolaj Izdebski @ 2026-07-17 19:15 UTC (permalink / raw)
  To: git-commits

            A new commit has been pushed.

            Repo   : rpms/flexmark-java
            Branch : epel10
            Commit : 861547cfc9318c66b2935524dfd4796d3f9ce782
            Author : Mikolaj Izdebski <mizdebsk@redhat.com>
            Date   : 2024-09-25T10:19:43+02:00
            Stats  : +35/-3 in 2 file(s)
            URL    : https://src.fedoraproject.org/rpms/flexmark-java/c/861547cfc9318c66b2935524dfd4796d3f9ce782?branch=epel10

            Log:
            Fix incompatibility with OpenJDK 21

- Resolves: rhbz#2310596

---
diff --git a/0001-Fix-abbreviations-matching-with-Java-19.patch b/0001-Fix-abbreviations-matching-with-Java-19.patch
new file mode 100644
index 0000000..7f74107
--- /dev/null
+++ b/0001-Fix-abbreviations-matching-with-Java-19.patch
@@ -0,0 +1,31 @@
+From 3edf8f2b27bfc94342d4a2408d6c9dfa6f8e1cd6 Mon Sep 17 00:00:00 2001
+From: Mikolaj Izdebski <mizdebsk@redhat.com>
+Date: Wed, 25 Sep 2024 10:06:03 +0200
+Subject: [PATCH] Fix abbreviations matching with Java 19+
+
+In order for regex \b character class to match non-ASCII characters
+the UNICODE_CHARACTER_CLASS flag must be passed to regex compiler.
+
+See https://bugs.openjdk.org/browse/JDK-8291577
+
+Fixes #632
+---
+ .../abbreviation/internal/AbbreviationNodePostProcessor.java    | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+diff --git a/flexmark-ext-abbreviation/src/main/java/com/vladsch/flexmark/ext/abbreviation/internal/AbbreviationNodePostProcessor.java b/flexmark-ext-abbreviation/src/main/java/com/vladsch/flexmark/ext/abbreviation/internal/AbbreviationNodePostProcessor.java
+index f99a40c42..852ce6ede 100644
+--- a/flexmark-ext-abbreviation/src/main/java/com/vladsch/flexmark/ext/abbreviation/internal/AbbreviationNodePostProcessor.java
++++ b/flexmark-ext-abbreviation/src/main/java/com/vladsch/flexmark/ext/abbreviation/internal/AbbreviationNodePostProcessor.java
+@@ -57,7 +57,7 @@ public class AbbreviationNodePostProcessor extends NodePostProcessor {
+                 }
+             }
+ 
+-            if (sb.length() > 0) this.abbreviations = Pattern.compile(sb.toString());
++            if (sb.length() > 0) this.abbreviations = Pattern.compile(sb.toString(), Pattern.UNICODE_CHARACTER_CLASS);
+         }
+     }
+ 
+-- 
+2.46.1
+

diff --git a/flexmark-java.spec b/flexmark-java.spec
index eca0acb..9ae92cd 100644
--- a/flexmark-java.spec
+++ b/flexmark-java.spec
@@ -13,12 +13,13 @@ License:        BSD-2-Clause
 URL:            https://github.com/vsch/flexmark-java
 VCS:            git:%{url}.git
 Source:         %{url}/archive/%{version}/%{name}-%{version}.tar.gz
+# https://github.com/vsch/flexmark-java/pull/635
+Patch:          0001-Fix-abbreviations-matching-with-Java-19.patch
 
 BuildArch:      noarch
 ExclusiveArch:  noarch %{java_arches}
 
-# FIXME: this package is broken with OpenJDK 21
-BuildRequires:  maven-local-openjdk17
+BuildRequires:  maven-local
 BuildRequires:  mvn(junit:junit)
 BuildRequires:  mvn(org.apache.logging.log4j:log4j-1.2-api)
 BuildRequires:  mvn(org.apache.logging.log4j:log4j-api)
@@ -720,7 +721,7 @@ This package contains an extension that renders flexmark AST as YouTrack
 formatted text (before YouTrack implemented Markdown comment option).
 
 %prep
-%autosetup
+%autosetup -p1
 
 # Remove prebuilt jars
 rm lib/*.jar

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

only message in thread, other threads:[~2026-07-17 19:15 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-07-17 19:15 [rpms/flexmark-java] epel10: Fix incompatibility with OpenJDK 21 Mikolaj Izdebski

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