public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
From: Mikolaj Izdebski <mizdebsk@redhat.com>
To: git-commits@fedoraproject.org
Subject: [rpms/flexmark-java] epel10: Fix incompatibility with OpenJDK 21
Date: Fri, 17 Jul 2026 19:15:48 GMT	[thread overview]
Message-ID: <178431574808.1.5491648213631597902.rpms-flexmark-java-861547cfc931@fedoraproject.org> (raw)

            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

                 reply	other threads:[~2026-07-17 19:15 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=178431574808.1.5491648213631597902.rpms-flexmark-java-861547cfc931@fedoraproject.org \
    --to=mizdebsk@redhat.com \
    --cc=git-commits@fedoraproject.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox