You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@lucenenet.apache.org by ni...@apache.org on 2024/10/13 03:53:26 UTC

(lucenenet) branch master updated: Pin ubuntu build to 22.04 due to .NET 5 issue (#971)

This is an automated email from the ASF dual-hosted git repository.

nightowl888 pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/lucenenet.git


The following commit(s) were added to refs/heads/master by this push:
     new 24bb0ca7e Pin ubuntu build to 22.04 due to .NET 5 issue (#971)
24bb0ca7e is described below

commit 24bb0ca7e8f2a4bf12208f345c4d86de290543e6
Author: Paul Irwin <pa...@gmail.com>
AuthorDate: Sat Oct 12 21:53:21 2024 -0600

    Pin ubuntu build to 22.04 due to .NET 5 issue (#971)
    
    * Pin ubuntu build to 22.04 due to .NET 5 issue
    
    * Use ubuntu-22.04 for Azure DevOps .NET 5 build agent
    
    * Lucene.Net.Analysis.TokenAttributes.ICharTermAttribute: Minor documentation reformat (to force a build)
    
    ---------
    
    Co-authored-by: Shad Storhaug <sh...@shadstorhaug.com>
---
 .github/workflows/Generate-TestWorkflows.ps1                   | 10 +++++-----
 .github/workflows/Lucene-Net-Tests-AllProjects.yml             |  8 ++++----
 .github/workflows/Lucene-Net-Tests-Analysis-Common.yml         |  8 ++++----
 .github/workflows/Lucene-Net-Tests-Analysis-Kuromoji.yml       |  8 ++++----
 .github/workflows/Lucene-Net-Tests-Analysis-Morfologik.yml     |  8 ++++----
 .github/workflows/Lucene-Net-Tests-Analysis-OpenNLP.yml        |  8 ++++----
 .github/workflows/Lucene-Net-Tests-Analysis-Phonetic.yml       |  8 ++++----
 .github/workflows/Lucene-Net-Tests-Analysis-SmartCn.yml        |  8 ++++----
 .github/workflows/Lucene-Net-Tests-Analysis-Stempel.yml        |  8 ++++----
 .github/workflows/Lucene-Net-Tests-Benchmark.yml               |  8 ++++----
 .github/workflows/Lucene-Net-Tests-Classification.yml          |  8 ++++----
 .github/workflows/Lucene-Net-Tests-Cli.yml                     |  8 ++++----
 .github/workflows/Lucene-Net-Tests-Codecs.yml                  |  8 ++++----
 .github/workflows/Lucene-Net-Tests-Demo.yml                    |  8 ++++----
 .github/workflows/Lucene-Net-Tests-Expressions.yml             |  8 ++++----
 .github/workflows/Lucene-Net-Tests-Facet.yml                   |  8 ++++----
 .github/workflows/Lucene-Net-Tests-Grouping.yml                |  8 ++++----
 .github/workflows/Lucene-Net-Tests-Highlighter.yml             |  8 ++++----
 .github/workflows/Lucene-Net-Tests-ICU.yml                     |  8 ++++----
 .github/workflows/Lucene-Net-Tests-Join.yml                    |  8 ++++----
 .github/workflows/Lucene-Net-Tests-Memory.yml                  |  8 ++++----
 .github/workflows/Lucene-Net-Tests-Misc.yml                    |  8 ++++----
 .github/workflows/Lucene-Net-Tests-Queries.yml                 |  8 ++++----
 .github/workflows/Lucene-Net-Tests-QueryParser.yml             |  8 ++++----
 .github/workflows/Lucene-Net-Tests-Replicator.yml              |  8 ++++----
 .github/workflows/Lucene-Net-Tests-Sandbox.yml                 |  8 ++++----
 .github/workflows/Lucene-Net-Tests-Spatial.yml                 |  8 ++++----
 .github/workflows/Lucene-Net-Tests-Suggest.yml                 |  8 ++++----
 .../Lucene-Net-Tests-TestFramework-DependencyInjection.yml     |  8 ++++----
 .github/workflows/Lucene-Net-Tests-TestFramework.yml           |  8 ++++----
 .github/workflows/Lucene-Net-Tests-_A-D.yml                    |  8 ++++----
 .github/workflows/Lucene-Net-Tests-_E-I.yml                    |  8 ++++----
 .github/workflows/Lucene-Net-Tests-_I-J.yml                    |  8 ++++----
 .github/workflows/Lucene-Net-Tests-_J-S.yml                    |  8 ++++----
 .github/workflows/Lucene-Net-Tests-_T-Z.yml                    |  8 ++++----
 azure-pipelines.yml                                            |  2 +-
 src/Lucene.Net/Analysis/TokenAttributes/CharTermAttribute.cs   |  7 ++++---
 37 files changed, 146 insertions(+), 145 deletions(-)

diff --git a/.github/workflows/Generate-TestWorkflows.ps1 b/.github/workflows/Generate-TestWorkflows.ps1
index 3b97afa0e..406a77532 100644
--- a/.github/workflows/Generate-TestWorkflows.ps1
+++ b/.github/workflows/Generate-TestWorkflows.ps1
@@ -42,7 +42,7 @@
 
  .PARAMETER OperatingSystems
     A string array of Github Actions operating system monikers to run the tests on.
-    The default is @('windows-latest', 'ubuntu-latest').
+    The default is @('windows-latest', 'ubuntu-22.04').
 
  .PARAMETER TestPlatforms
     A string array of platforms to run the tests on. Valid values are x64 and x86.
@@ -70,7 +70,7 @@ param(
 
     [string[]]$TestFrameworks = @('net8.0', 'net5.0','net472','net48'), # targets under test: net6.0, netstandard2.1, netstanard2.0, net462
 
-    [string[]]$OperatingSystems = @('windows-latest', 'ubuntu-latest'),
+    [string[]]$OperatingSystems = @('windows-latest', 'ubuntu-22.04'), # NOTE: ubuntu-24.04 breaks the .NET 5 build currently
 
     [string[]]$TestPlatforms = @('x64'),
 
@@ -159,7 +159,7 @@ function Write-TestWorkflow(
     [string[]]$Configurations = @('Release'),
     [string[]]$TestFrameworks = @('net5.0', 'net48'),
     [string[]]$TestPlatforms = @('x64'),
-    [string[]]$OperatingSystems = @('windows-latest', 'ubuntu-latest', 'macos-latest'),
+    [string[]]$OperatingSystems = @('windows-latest', 'ubuntu-22.04', 'macos-latest'),
     [string]$DotNet8SDKVersion = $DotNet8SDKVersion,
     [string]$DotNet6SDKVersion = $DotNet6SDKVersion,
     [string]$DotNet5SDKVersion = $DotNet5SDKVersion) {
@@ -248,9 +248,9 @@ jobs:
         platform: $platforms
         configuration: $configurations
         exclude:
-          - os: ubuntu-latest
+          - os: ubuntu-22.04
             framework: net48
-          - os: ubuntu-latest
+          - os: ubuntu-22.04
             framework: net472
           - os: macos-latest
             framework: net48
diff --git a/.github/workflows/Lucene-Net-Tests-AllProjects.yml b/.github/workflows/Lucene-Net-Tests-AllProjects.yml
index 63c678086..e089003ff 100644
--- a/.github/workflows/Lucene-Net-Tests-AllProjects.yml
+++ b/.github/workflows/Lucene-Net-Tests-AllProjects.yml
@@ -1,4 +1,4 @@
-####################################################################################
+####################################################################################
 # DO NOT EDIT: This file was automatically generated by Generate-TestWorkflows.ps1
 ####################################################################################
 # Licensed to the Apache Software Foundation (ASF) under one
@@ -71,14 +71,14 @@ jobs:
     strategy:
       fail-fast: false
       matrix:
-        os: [windows-latest, ubuntu-latest]
+        os: [windows-latest, ubuntu-22.04]
         framework: [net8.0, net5.0, net48, net472]
         platform: [x64]
         configuration: [Release]
         exclude:
-          - os: ubuntu-latest
+          - os: ubuntu-22.04
             framework: net48
-          - os: ubuntu-latest
+          - os: ubuntu-22.04
             framework: net472
           - os: macos-latest
             framework: net48
diff --git a/.github/workflows/Lucene-Net-Tests-Analysis-Common.yml b/.github/workflows/Lucene-Net-Tests-Analysis-Common.yml
index 696e3e3fe..8d93d129d 100644
--- a/.github/workflows/Lucene-Net-Tests-Analysis-Common.yml
+++ b/.github/workflows/Lucene-Net-Tests-Analysis-Common.yml
@@ -1,4 +1,4 @@
-####################################################################################
+####################################################################################
 # DO NOT EDIT: This file was automatically generated by Generate-TestWorkflows.ps1
 ####################################################################################
 # Licensed to the Apache Software Foundation (ASF) under one
@@ -55,14 +55,14 @@ jobs:
     strategy:
       fail-fast: false
       matrix:
-        os: [windows-latest, ubuntu-latest]
+        os: [windows-latest, ubuntu-22.04]
         framework: [net8.0, net5.0, net48, net472]
         platform: [x64]
         configuration: [Release]
         exclude:
-          - os: ubuntu-latest
+          - os: ubuntu-22.04
             framework: net48
-          - os: ubuntu-latest
+          - os: ubuntu-22.04
             framework: net472
           - os: macos-latest
             framework: net48
diff --git a/.github/workflows/Lucene-Net-Tests-Analysis-Kuromoji.yml b/.github/workflows/Lucene-Net-Tests-Analysis-Kuromoji.yml
index f49646359..ab1e45290 100644
--- a/.github/workflows/Lucene-Net-Tests-Analysis-Kuromoji.yml
+++ b/.github/workflows/Lucene-Net-Tests-Analysis-Kuromoji.yml
@@ -1,4 +1,4 @@
-####################################################################################
+####################################################################################
 # DO NOT EDIT: This file was automatically generated by Generate-TestWorkflows.ps1
 ####################################################################################
 # Licensed to the Apache Software Foundation (ASF) under one
@@ -52,14 +52,14 @@ jobs:
     strategy:
       fail-fast: false
       matrix:
-        os: [windows-latest, ubuntu-latest]
+        os: [windows-latest, ubuntu-22.04]
         framework: [net8.0, net5.0, net48, net472]
         platform: [x64]
         configuration: [Release]
         exclude:
-          - os: ubuntu-latest
+          - os: ubuntu-22.04
             framework: net48
-          - os: ubuntu-latest
+          - os: ubuntu-22.04
             framework: net472
           - os: macos-latest
             framework: net48
diff --git a/.github/workflows/Lucene-Net-Tests-Analysis-Morfologik.yml b/.github/workflows/Lucene-Net-Tests-Analysis-Morfologik.yml
index 9d15552a4..efac305bd 100644
--- a/.github/workflows/Lucene-Net-Tests-Analysis-Morfologik.yml
+++ b/.github/workflows/Lucene-Net-Tests-Analysis-Morfologik.yml
@@ -1,4 +1,4 @@
-####################################################################################
+####################################################################################
 # DO NOT EDIT: This file was automatically generated by Generate-TestWorkflows.ps1
 ####################################################################################
 # Licensed to the Apache Software Foundation (ASF) under one
@@ -52,14 +52,14 @@ jobs:
     strategy:
       fail-fast: false
       matrix:
-        os: [windows-latest, ubuntu-latest]
+        os: [windows-latest, ubuntu-22.04]
         framework: [net8.0, net5.0, net48, net472]
         platform: [x64]
         configuration: [Release]
         exclude:
-          - os: ubuntu-latest
+          - os: ubuntu-22.04
             framework: net48
-          - os: ubuntu-latest
+          - os: ubuntu-22.04
             framework: net472
           - os: macos-latest
             framework: net48
diff --git a/.github/workflows/Lucene-Net-Tests-Analysis-OpenNLP.yml b/.github/workflows/Lucene-Net-Tests-Analysis-OpenNLP.yml
index e05c68650..8adc21939 100644
--- a/.github/workflows/Lucene-Net-Tests-Analysis-OpenNLP.yml
+++ b/.github/workflows/Lucene-Net-Tests-Analysis-OpenNLP.yml
@@ -1,4 +1,4 @@
-####################################################################################
+####################################################################################
 # DO NOT EDIT: This file was automatically generated by Generate-TestWorkflows.ps1
 ####################################################################################
 # Licensed to the Apache Software Foundation (ASF) under one
@@ -55,14 +55,14 @@ jobs:
     strategy:
       fail-fast: false
       matrix:
-        os: [windows-latest, ubuntu-latest]
+        os: [windows-latest, ubuntu-22.04]
         framework: [net8.0, net48]
         platform: [x64]
         configuration: [Release]
         exclude:
-          - os: ubuntu-latest
+          - os: ubuntu-22.04
             framework: net48
-          - os: ubuntu-latest
+          - os: ubuntu-22.04
             framework: net472
           - os: macos-latest
             framework: net48
diff --git a/.github/workflows/Lucene-Net-Tests-Analysis-Phonetic.yml b/.github/workflows/Lucene-Net-Tests-Analysis-Phonetic.yml
index b4d206efb..f99059a50 100644
--- a/.github/workflows/Lucene-Net-Tests-Analysis-Phonetic.yml
+++ b/.github/workflows/Lucene-Net-Tests-Analysis-Phonetic.yml
@@ -1,4 +1,4 @@
-####################################################################################
+####################################################################################
 # DO NOT EDIT: This file was automatically generated by Generate-TestWorkflows.ps1
 ####################################################################################
 # Licensed to the Apache Software Foundation (ASF) under one
@@ -49,14 +49,14 @@ jobs:
     strategy:
       fail-fast: false
       matrix:
-        os: [windows-latest, ubuntu-latest]
+        os: [windows-latest, ubuntu-22.04]
         framework: [net8.0, net5.0, net48, net472]
         platform: [x64]
         configuration: [Release]
         exclude:
-          - os: ubuntu-latest
+          - os: ubuntu-22.04
             framework: net48
-          - os: ubuntu-latest
+          - os: ubuntu-22.04
             framework: net472
           - os: macos-latest
             framework: net48
diff --git a/.github/workflows/Lucene-Net-Tests-Analysis-SmartCn.yml b/.github/workflows/Lucene-Net-Tests-Analysis-SmartCn.yml
index 91f289e03..d3b6726fd 100644
--- a/.github/workflows/Lucene-Net-Tests-Analysis-SmartCn.yml
+++ b/.github/workflows/Lucene-Net-Tests-Analysis-SmartCn.yml
@@ -1,4 +1,4 @@
-####################################################################################
+####################################################################################
 # DO NOT EDIT: This file was automatically generated by Generate-TestWorkflows.ps1
 ####################################################################################
 # Licensed to the Apache Software Foundation (ASF) under one
@@ -53,14 +53,14 @@ jobs:
     strategy:
       fail-fast: false
       matrix:
-        os: [windows-latest, ubuntu-latest]
+        os: [windows-latest, ubuntu-22.04]
         framework: [net8.0, net5.0, net48, net472]
         platform: [x64]
         configuration: [Release]
         exclude:
-          - os: ubuntu-latest
+          - os: ubuntu-22.04
             framework: net48
-          - os: ubuntu-latest
+          - os: ubuntu-22.04
             framework: net472
           - os: macos-latest
             framework: net48
diff --git a/.github/workflows/Lucene-Net-Tests-Analysis-Stempel.yml b/.github/workflows/Lucene-Net-Tests-Analysis-Stempel.yml
index 30830529b..410af6a97 100644
--- a/.github/workflows/Lucene-Net-Tests-Analysis-Stempel.yml
+++ b/.github/workflows/Lucene-Net-Tests-Analysis-Stempel.yml
@@ -1,4 +1,4 @@
-####################################################################################
+####################################################################################
 # DO NOT EDIT: This file was automatically generated by Generate-TestWorkflows.ps1
 ####################################################################################
 # Licensed to the Apache Software Foundation (ASF) under one
@@ -50,14 +50,14 @@ jobs:
     strategy:
       fail-fast: false
       matrix:
-        os: [windows-latest, ubuntu-latest]
+        os: [windows-latest, ubuntu-22.04]
         framework: [net8.0, net5.0, net48, net472]
         platform: [x64]
         configuration: [Release]
         exclude:
-          - os: ubuntu-latest
+          - os: ubuntu-22.04
             framework: net48
-          - os: ubuntu-latest
+          - os: ubuntu-22.04
             framework: net472
           - os: macos-latest
             framework: net48
diff --git a/.github/workflows/Lucene-Net-Tests-Benchmark.yml b/.github/workflows/Lucene-Net-Tests-Benchmark.yml
index 196e9dde7..c47e22448 100644
--- a/.github/workflows/Lucene-Net-Tests-Benchmark.yml
+++ b/.github/workflows/Lucene-Net-Tests-Benchmark.yml
@@ -1,4 +1,4 @@
-####################################################################################
+####################################################################################
 # DO NOT EDIT: This file was automatically generated by Generate-TestWorkflows.ps1
 ####################################################################################
 # Licensed to the Apache Software Foundation (ASF) under one
@@ -62,14 +62,14 @@ jobs:
     strategy:
       fail-fast: false
       matrix:
-        os: [windows-latest, ubuntu-latest]
+        os: [windows-latest, ubuntu-22.04]
         framework: [net8.0, net5.0, net48, net472]
         platform: [x64]
         configuration: [Release]
         exclude:
-          - os: ubuntu-latest
+          - os: ubuntu-22.04
             framework: net48
-          - os: ubuntu-latest
+          - os: ubuntu-22.04
             framework: net472
           - os: macos-latest
             framework: net48
diff --git a/.github/workflows/Lucene-Net-Tests-Classification.yml b/.github/workflows/Lucene-Net-Tests-Classification.yml
index babf81d9f..6e924fcea 100644
--- a/.github/workflows/Lucene-Net-Tests-Classification.yml
+++ b/.github/workflows/Lucene-Net-Tests-Classification.yml
@@ -1,4 +1,4 @@
-####################################################################################
+####################################################################################
 # DO NOT EDIT: This file was automatically generated by Generate-TestWorkflows.ps1
 ####################################################################################
 # Licensed to the Apache Software Foundation (ASF) under one
@@ -50,14 +50,14 @@ jobs:
     strategy:
       fail-fast: false
       matrix:
-        os: [windows-latest, ubuntu-latest]
+        os: [windows-latest, ubuntu-22.04]
         framework: [net8.0, net5.0, net48, net472]
         platform: [x64]
         configuration: [Release]
         exclude:
-          - os: ubuntu-latest
+          - os: ubuntu-22.04
             framework: net48
-          - os: ubuntu-latest
+          - os: ubuntu-22.04
             framework: net472
           - os: macos-latest
             framework: net48
diff --git a/.github/workflows/Lucene-Net-Tests-Cli.yml b/.github/workflows/Lucene-Net-Tests-Cli.yml
index 3bb4dd59b..7967470c6 100644
--- a/.github/workflows/Lucene-Net-Tests-Cli.yml
+++ b/.github/workflows/Lucene-Net-Tests-Cli.yml
@@ -1,4 +1,4 @@
-####################################################################################
+####################################################################################
 # DO NOT EDIT: This file was automatically generated by Generate-TestWorkflows.ps1
 ####################################################################################
 # Licensed to the Apache Software Foundation (ASF) under one
@@ -69,14 +69,14 @@ jobs:
     strategy:
       fail-fast: false
       matrix:
-        os: [windows-latest, ubuntu-latest]
+        os: [windows-latest, ubuntu-22.04]
         framework: [net8.0]
         platform: [x64]
         configuration: [Release]
         exclude:
-          - os: ubuntu-latest
+          - os: ubuntu-22.04
             framework: net48
-          - os: ubuntu-latest
+          - os: ubuntu-22.04
             framework: net472
           - os: macos-latest
             framework: net48
diff --git a/.github/workflows/Lucene-Net-Tests-Codecs.yml b/.github/workflows/Lucene-Net-Tests-Codecs.yml
index 1d00f94f1..e17c598e4 100644
--- a/.github/workflows/Lucene-Net-Tests-Codecs.yml
+++ b/.github/workflows/Lucene-Net-Tests-Codecs.yml
@@ -1,4 +1,4 @@
-####################################################################################
+####################################################################################
 # DO NOT EDIT: This file was automatically generated by Generate-TestWorkflows.ps1
 ####################################################################################
 # Licensed to the Apache Software Foundation (ASF) under one
@@ -48,14 +48,14 @@ jobs:
     strategy:
       fail-fast: false
       matrix:
-        os: [windows-latest, ubuntu-latest]
+        os: [windows-latest, ubuntu-22.04]
         framework: [net8.0, net5.0, net48, net472]
         platform: [x64]
         configuration: [Release]
         exclude:
-          - os: ubuntu-latest
+          - os: ubuntu-22.04
             framework: net48
-          - os: ubuntu-latest
+          - os: ubuntu-22.04
             framework: net472
           - os: macos-latest
             framework: net48
diff --git a/.github/workflows/Lucene-Net-Tests-Demo.yml b/.github/workflows/Lucene-Net-Tests-Demo.yml
index 7cf76b9eb..b245c7287 100644
--- a/.github/workflows/Lucene-Net-Tests-Demo.yml
+++ b/.github/workflows/Lucene-Net-Tests-Demo.yml
@@ -1,4 +1,4 @@
-####################################################################################
+####################################################################################
 # DO NOT EDIT: This file was automatically generated by Generate-TestWorkflows.ps1
 ####################################################################################
 # Licensed to the Apache Software Foundation (ASF) under one
@@ -57,14 +57,14 @@ jobs:
     strategy:
       fail-fast: false
       matrix:
-        os: [windows-latest, ubuntu-latest]
+        os: [windows-latest, ubuntu-22.04]
         framework: [net8.0, net5.0, net48, net472]
         platform: [x64]
         configuration: [Release]
         exclude:
-          - os: ubuntu-latest
+          - os: ubuntu-22.04
             framework: net48
-          - os: ubuntu-latest
+          - os: ubuntu-22.04
             framework: net472
           - os: macos-latest
             framework: net48
diff --git a/.github/workflows/Lucene-Net-Tests-Expressions.yml b/.github/workflows/Lucene-Net-Tests-Expressions.yml
index b35efd4cc..e4c78be5d 100644
--- a/.github/workflows/Lucene-Net-Tests-Expressions.yml
+++ b/.github/workflows/Lucene-Net-Tests-Expressions.yml
@@ -1,4 +1,4 @@
-####################################################################################
+####################################################################################
 # DO NOT EDIT: This file was automatically generated by Generate-TestWorkflows.ps1
 ####################################################################################
 # Licensed to the Apache Software Foundation (ASF) under one
@@ -50,14 +50,14 @@ jobs:
     strategy:
       fail-fast: false
       matrix:
-        os: [windows-latest, ubuntu-latest]
+        os: [windows-latest, ubuntu-22.04]
         framework: [net8.0, net5.0, net48, net472]
         platform: [x64]
         configuration: [Release]
         exclude:
-          - os: ubuntu-latest
+          - os: ubuntu-22.04
             framework: net48
-          - os: ubuntu-latest
+          - os: ubuntu-22.04
             framework: net472
           - os: macos-latest
             framework: net48
diff --git a/.github/workflows/Lucene-Net-Tests-Facet.yml b/.github/workflows/Lucene-Net-Tests-Facet.yml
index 3fdb6b2be..7d28a735c 100644
--- a/.github/workflows/Lucene-Net-Tests-Facet.yml
+++ b/.github/workflows/Lucene-Net-Tests-Facet.yml
@@ -1,4 +1,4 @@
-####################################################################################
+####################################################################################
 # DO NOT EDIT: This file was automatically generated by Generate-TestWorkflows.ps1
 ####################################################################################
 # Licensed to the Apache Software Foundation (ASF) under one
@@ -52,14 +52,14 @@ jobs:
     strategy:
       fail-fast: false
       matrix:
-        os: [windows-latest, ubuntu-latest]
+        os: [windows-latest, ubuntu-22.04]
         framework: [net8.0, net5.0, net48, net472]
         platform: [x64]
         configuration: [Release]
         exclude:
-          - os: ubuntu-latest
+          - os: ubuntu-22.04
             framework: net48
-          - os: ubuntu-latest
+          - os: ubuntu-22.04
             framework: net472
           - os: macos-latest
             framework: net48
diff --git a/.github/workflows/Lucene-Net-Tests-Grouping.yml b/.github/workflows/Lucene-Net-Tests-Grouping.yml
index 02d5bfed6..2fc280dcd 100644
--- a/.github/workflows/Lucene-Net-Tests-Grouping.yml
+++ b/.github/workflows/Lucene-Net-Tests-Grouping.yml
@@ -1,4 +1,4 @@
-####################################################################################
+####################################################################################
 # DO NOT EDIT: This file was automatically generated by Generate-TestWorkflows.ps1
 ####################################################################################
 # Licensed to the Apache Software Foundation (ASF) under one
@@ -50,14 +50,14 @@ jobs:
     strategy:
       fail-fast: false
       matrix:
-        os: [windows-latest, ubuntu-latest]
+        os: [windows-latest, ubuntu-22.04]
         framework: [net8.0, net5.0, net48, net472]
         platform: [x64]
         configuration: [Release]
         exclude:
-          - os: ubuntu-latest
+          - os: ubuntu-22.04
             framework: net48
-          - os: ubuntu-latest
+          - os: ubuntu-22.04
             framework: net472
           - os: macos-latest
             framework: net48
diff --git a/.github/workflows/Lucene-Net-Tests-Highlighter.yml b/.github/workflows/Lucene-Net-Tests-Highlighter.yml
index b28f01fee..aec85bd0e 100644
--- a/.github/workflows/Lucene-Net-Tests-Highlighter.yml
+++ b/.github/workflows/Lucene-Net-Tests-Highlighter.yml
@@ -1,4 +1,4 @@
-####################################################################################
+####################################################################################
 # DO NOT EDIT: This file was automatically generated by Generate-TestWorkflows.ps1
 ####################################################################################
 # Licensed to the Apache Software Foundation (ASF) under one
@@ -52,14 +52,14 @@ jobs:
     strategy:
       fail-fast: false
       matrix:
-        os: [windows-latest, ubuntu-latest]
+        os: [windows-latest, ubuntu-22.04]
         framework: [net8.0, net5.0, net48, net472]
         platform: [x64]
         configuration: [Release]
         exclude:
-          - os: ubuntu-latest
+          - os: ubuntu-22.04
             framework: net48
-          - os: ubuntu-latest
+          - os: ubuntu-22.04
             framework: net472
           - os: macos-latest
             framework: net48
diff --git a/.github/workflows/Lucene-Net-Tests-ICU.yml b/.github/workflows/Lucene-Net-Tests-ICU.yml
index 81d1bffff..3c89fe5ae 100644
--- a/.github/workflows/Lucene-Net-Tests-ICU.yml
+++ b/.github/workflows/Lucene-Net-Tests-ICU.yml
@@ -1,4 +1,4 @@
-####################################################################################
+####################################################################################
 # DO NOT EDIT: This file was automatically generated by Generate-TestWorkflows.ps1
 ####################################################################################
 # Licensed to the Apache Software Foundation (ASF) under one
@@ -65,14 +65,14 @@ jobs:
     strategy:
       fail-fast: false
       matrix:
-        os: [windows-latest, ubuntu-latest]
+        os: [windows-latest, ubuntu-22.04]
         framework: [net8.0, net5.0, net48, net472]
         platform: [x64]
         configuration: [Release]
         exclude:
-          - os: ubuntu-latest
+          - os: ubuntu-22.04
             framework: net48
-          - os: ubuntu-latest
+          - os: ubuntu-22.04
             framework: net472
           - os: macos-latest
             framework: net48
diff --git a/.github/workflows/Lucene-Net-Tests-Join.yml b/.github/workflows/Lucene-Net-Tests-Join.yml
index 494294b13..e8c9ef556 100644
--- a/.github/workflows/Lucene-Net-Tests-Join.yml
+++ b/.github/workflows/Lucene-Net-Tests-Join.yml
@@ -1,4 +1,4 @@
-####################################################################################
+####################################################################################
 # DO NOT EDIT: This file was automatically generated by Generate-TestWorkflows.ps1
 ####################################################################################
 # Licensed to the Apache Software Foundation (ASF) under one
@@ -51,14 +51,14 @@ jobs:
     strategy:
       fail-fast: false
       matrix:
-        os: [windows-latest, ubuntu-latest]
+        os: [windows-latest, ubuntu-22.04]
         framework: [net8.0, net5.0, net48, net472]
         platform: [x64]
         configuration: [Release]
         exclude:
-          - os: ubuntu-latest
+          - os: ubuntu-22.04
             framework: net48
-          - os: ubuntu-latest
+          - os: ubuntu-22.04
             framework: net472
           - os: macos-latest
             framework: net48
diff --git a/.github/workflows/Lucene-Net-Tests-Memory.yml b/.github/workflows/Lucene-Net-Tests-Memory.yml
index 6f8bf21de..d0e0bd1df 100644
--- a/.github/workflows/Lucene-Net-Tests-Memory.yml
+++ b/.github/workflows/Lucene-Net-Tests-Memory.yml
@@ -1,4 +1,4 @@
-####################################################################################
+####################################################################################
 # DO NOT EDIT: This file was automatically generated by Generate-TestWorkflows.ps1
 ####################################################################################
 # Licensed to the Apache Software Foundation (ASF) under one
@@ -53,14 +53,14 @@ jobs:
     strategy:
       fail-fast: false
       matrix:
-        os: [windows-latest, ubuntu-latest]
+        os: [windows-latest, ubuntu-22.04]
         framework: [net8.0, net5.0, net48, net472]
         platform: [x64]
         configuration: [Release]
         exclude:
-          - os: ubuntu-latest
+          - os: ubuntu-22.04
             framework: net48
-          - os: ubuntu-latest
+          - os: ubuntu-22.04
             framework: net472
           - os: macos-latest
             framework: net48
diff --git a/.github/workflows/Lucene-Net-Tests-Misc.yml b/.github/workflows/Lucene-Net-Tests-Misc.yml
index ba0ac9796..f2c66c139 100644
--- a/.github/workflows/Lucene-Net-Tests-Misc.yml
+++ b/.github/workflows/Lucene-Net-Tests-Misc.yml
@@ -1,4 +1,4 @@
-####################################################################################
+####################################################################################
 # DO NOT EDIT: This file was automatically generated by Generate-TestWorkflows.ps1
 ####################################################################################
 # Licensed to the Apache Software Foundation (ASF) under one
@@ -49,14 +49,14 @@ jobs:
     strategy:
       fail-fast: false
       matrix:
-        os: [windows-latest, ubuntu-latest]
+        os: [windows-latest, ubuntu-22.04]
         framework: [net8.0, net5.0, net48, net472]
         platform: [x64]
         configuration: [Release]
         exclude:
-          - os: ubuntu-latest
+          - os: ubuntu-22.04
             framework: net48
-          - os: ubuntu-latest
+          - os: ubuntu-22.04
             framework: net472
           - os: macos-latest
             framework: net48
diff --git a/.github/workflows/Lucene-Net-Tests-Queries.yml b/.github/workflows/Lucene-Net-Tests-Queries.yml
index e0e98a11c..9cf0a4e26 100644
--- a/.github/workflows/Lucene-Net-Tests-Queries.yml
+++ b/.github/workflows/Lucene-Net-Tests-Queries.yml
@@ -1,4 +1,4 @@
-####################################################################################
+####################################################################################
 # DO NOT EDIT: This file was automatically generated by Generate-TestWorkflows.ps1
 ####################################################################################
 # Licensed to the Apache Software Foundation (ASF) under one
@@ -49,14 +49,14 @@ jobs:
     strategy:
       fail-fast: false
       matrix:
-        os: [windows-latest, ubuntu-latest]
+        os: [windows-latest, ubuntu-22.04]
         framework: [net8.0, net5.0, net48, net472]
         platform: [x64]
         configuration: [Release]
         exclude:
-          - os: ubuntu-latest
+          - os: ubuntu-22.04
             framework: net48
-          - os: ubuntu-latest
+          - os: ubuntu-22.04
             framework: net472
           - os: macos-latest
             framework: net48
diff --git a/.github/workflows/Lucene-Net-Tests-QueryParser.yml b/.github/workflows/Lucene-Net-Tests-QueryParser.yml
index 7e63026fb..2c55e1e4e 100644
--- a/.github/workflows/Lucene-Net-Tests-QueryParser.yml
+++ b/.github/workflows/Lucene-Net-Tests-QueryParser.yml
@@ -1,4 +1,4 @@
-####################################################################################
+####################################################################################
 # DO NOT EDIT: This file was automatically generated by Generate-TestWorkflows.ps1
 ####################################################################################
 # Licensed to the Apache Software Foundation (ASF) under one
@@ -55,14 +55,14 @@ jobs:
     strategy:
       fail-fast: false
       matrix:
-        os: [windows-latest, ubuntu-latest]
+        os: [windows-latest, ubuntu-22.04]
         framework: [net8.0, net5.0, net48, net472]
         platform: [x64]
         configuration: [Release]
         exclude:
-          - os: ubuntu-latest
+          - os: ubuntu-22.04
             framework: net48
-          - os: ubuntu-latest
+          - os: ubuntu-22.04
             framework: net472
           - os: macos-latest
             framework: net48
diff --git a/.github/workflows/Lucene-Net-Tests-Replicator.yml b/.github/workflows/Lucene-Net-Tests-Replicator.yml
index 849a20bfd..c8e5f555e 100644
--- a/.github/workflows/Lucene-Net-Tests-Replicator.yml
+++ b/.github/workflows/Lucene-Net-Tests-Replicator.yml
@@ -1,4 +1,4 @@
-####################################################################################
+####################################################################################
 # DO NOT EDIT: This file was automatically generated by Generate-TestWorkflows.ps1
 ####################################################################################
 # Licensed to the Apache Software Foundation (ASF) under one
@@ -54,14 +54,14 @@ jobs:
     strategy:
       fail-fast: false
       matrix:
-        os: [windows-latest, ubuntu-latest]
+        os: [windows-latest, ubuntu-22.04]
         framework: [net8.0, net5.0, net48, net472]
         platform: [x64]
         configuration: [Release]
         exclude:
-          - os: ubuntu-latest
+          - os: ubuntu-22.04
             framework: net48
-          - os: ubuntu-latest
+          - os: ubuntu-22.04
             framework: net472
           - os: macos-latest
             framework: net48
diff --git a/.github/workflows/Lucene-Net-Tests-Sandbox.yml b/.github/workflows/Lucene-Net-Tests-Sandbox.yml
index 434fd5c3e..978c964bd 100644
--- a/.github/workflows/Lucene-Net-Tests-Sandbox.yml
+++ b/.github/workflows/Lucene-Net-Tests-Sandbox.yml
@@ -1,4 +1,4 @@
-####################################################################################
+####################################################################################
 # DO NOT EDIT: This file was automatically generated by Generate-TestWorkflows.ps1
 ####################################################################################
 # Licensed to the Apache Software Foundation (ASF) under one
@@ -50,14 +50,14 @@ jobs:
     strategy:
       fail-fast: false
       matrix:
-        os: [windows-latest, ubuntu-latest]
+        os: [windows-latest, ubuntu-22.04]
         framework: [net8.0, net5.0, net48, net472]
         platform: [x64]
         configuration: [Release]
         exclude:
-          - os: ubuntu-latest
+          - os: ubuntu-22.04
             framework: net48
-          - os: ubuntu-latest
+          - os: ubuntu-22.04
             framework: net472
           - os: macos-latest
             framework: net48
diff --git a/.github/workflows/Lucene-Net-Tests-Spatial.yml b/.github/workflows/Lucene-Net-Tests-Spatial.yml
index be51aac26..2183d3643 100644
--- a/.github/workflows/Lucene-Net-Tests-Spatial.yml
+++ b/.github/workflows/Lucene-Net-Tests-Spatial.yml
@@ -1,4 +1,4 @@
-####################################################################################
+####################################################################################
 # DO NOT EDIT: This file was automatically generated by Generate-TestWorkflows.ps1
 ####################################################################################
 # Licensed to the Apache Software Foundation (ASF) under one
@@ -51,14 +51,14 @@ jobs:
     strategy:
       fail-fast: false
       matrix:
-        os: [windows-latest, ubuntu-latest]
+        os: [windows-latest, ubuntu-22.04]
         framework: [net8.0, net5.0, net48, net472]
         platform: [x64]
         configuration: [Release]
         exclude:
-          - os: ubuntu-latest
+          - os: ubuntu-22.04
             framework: net48
-          - os: ubuntu-latest
+          - os: ubuntu-22.04
             framework: net472
           - os: macos-latest
             framework: net48
diff --git a/.github/workflows/Lucene-Net-Tests-Suggest.yml b/.github/workflows/Lucene-Net-Tests-Suggest.yml
index 248330151..46d9ea555 100644
--- a/.github/workflows/Lucene-Net-Tests-Suggest.yml
+++ b/.github/workflows/Lucene-Net-Tests-Suggest.yml
@@ -1,4 +1,4 @@
-####################################################################################
+####################################################################################
 # DO NOT EDIT: This file was automatically generated by Generate-TestWorkflows.ps1
 ####################################################################################
 # Licensed to the Apache Software Foundation (ASF) under one
@@ -52,14 +52,14 @@ jobs:
     strategy:
       fail-fast: false
       matrix:
-        os: [windows-latest, ubuntu-latest]
+        os: [windows-latest, ubuntu-22.04]
         framework: [net8.0, net5.0, net48, net472]
         platform: [x64]
         configuration: [Release]
         exclude:
-          - os: ubuntu-latest
+          - os: ubuntu-22.04
             framework: net48
-          - os: ubuntu-latest
+          - os: ubuntu-22.04
             framework: net472
           - os: macos-latest
             framework: net48
diff --git a/.github/workflows/Lucene-Net-Tests-TestFramework-DependencyInjection.yml b/.github/workflows/Lucene-Net-Tests-TestFramework-DependencyInjection.yml
index eeda1abd1..ba6eb31c9 100644
--- a/.github/workflows/Lucene-Net-Tests-TestFramework-DependencyInjection.yml
+++ b/.github/workflows/Lucene-Net-Tests-TestFramework-DependencyInjection.yml
@@ -1,4 +1,4 @@
-####################################################################################
+####################################################################################
 # DO NOT EDIT: This file was automatically generated by Generate-TestWorkflows.ps1
 ####################################################################################
 # Licensed to the Apache Software Foundation (ASF) under one
@@ -48,14 +48,14 @@ jobs:
     strategy:
       fail-fast: false
       matrix:
-        os: [windows-latest, ubuntu-latest]
+        os: [windows-latest, ubuntu-22.04]
         framework: [net8.0, net5.0, net48, net472]
         platform: [x64]
         configuration: [Release]
         exclude:
-          - os: ubuntu-latest
+          - os: ubuntu-22.04
             framework: net48
-          - os: ubuntu-latest
+          - os: ubuntu-22.04
             framework: net472
           - os: macos-latest
             framework: net48
diff --git a/.github/workflows/Lucene-Net-Tests-TestFramework.yml b/.github/workflows/Lucene-Net-Tests-TestFramework.yml
index b9be141b8..51e209760 100644
--- a/.github/workflows/Lucene-Net-Tests-TestFramework.yml
+++ b/.github/workflows/Lucene-Net-Tests-TestFramework.yml
@@ -1,4 +1,4 @@
-####################################################################################
+####################################################################################
 # DO NOT EDIT: This file was automatically generated by Generate-TestWorkflows.ps1
 ####################################################################################
 # Licensed to the Apache Software Foundation (ASF) under one
@@ -50,14 +50,14 @@ jobs:
     strategy:
       fail-fast: false
       matrix:
-        os: [windows-latest, ubuntu-latest]
+        os: [windows-latest, ubuntu-22.04]
         framework: [net8.0, net5.0, net48, net472]
         platform: [x64]
         configuration: [Release]
         exclude:
-          - os: ubuntu-latest
+          - os: ubuntu-22.04
             framework: net48
-          - os: ubuntu-latest
+          - os: ubuntu-22.04
             framework: net472
           - os: macos-latest
             framework: net48
diff --git a/.github/workflows/Lucene-Net-Tests-_A-D.yml b/.github/workflows/Lucene-Net-Tests-_A-D.yml
index f647a0337..ef0efec71 100644
--- a/.github/workflows/Lucene-Net-Tests-_A-D.yml
+++ b/.github/workflows/Lucene-Net-Tests-_A-D.yml
@@ -1,4 +1,4 @@
-####################################################################################
+####################################################################################
 # DO NOT EDIT: This file was automatically generated by Generate-TestWorkflows.ps1
 ####################################################################################
 # Licensed to the Apache Software Foundation (ASF) under one
@@ -59,14 +59,14 @@ jobs:
     strategy:
       fail-fast: false
       matrix:
-        os: [windows-latest, ubuntu-latest]
+        os: [windows-latest, ubuntu-22.04]
         framework: [net8.0, net5.0, net48, net472]
         platform: [x64]
         configuration: [Release]
         exclude:
-          - os: ubuntu-latest
+          - os: ubuntu-22.04
             framework: net48
-          - os: ubuntu-latest
+          - os: ubuntu-22.04
             framework: net472
           - os: macos-latest
             framework: net48
diff --git a/.github/workflows/Lucene-Net-Tests-_E-I.yml b/.github/workflows/Lucene-Net-Tests-_E-I.yml
index 7ee39f46e..97584ea02 100644
--- a/.github/workflows/Lucene-Net-Tests-_E-I.yml
+++ b/.github/workflows/Lucene-Net-Tests-_E-I.yml
@@ -1,4 +1,4 @@
-####################################################################################
+####################################################################################
 # DO NOT EDIT: This file was automatically generated by Generate-TestWorkflows.ps1
 ####################################################################################
 # Licensed to the Apache Software Foundation (ASF) under one
@@ -69,14 +69,14 @@ jobs:
     strategy:
       fail-fast: false
       matrix:
-        os: [windows-latest, ubuntu-latest]
+        os: [windows-latest, ubuntu-22.04]
         framework: [net8.0, net5.0, net48, net472]
         platform: [x64]
         configuration: [Release]
         exclude:
-          - os: ubuntu-latest
+          - os: ubuntu-22.04
             framework: net48
-          - os: ubuntu-latest
+          - os: ubuntu-22.04
             framework: net472
           - os: macos-latest
             framework: net48
diff --git a/.github/workflows/Lucene-Net-Tests-_I-J.yml b/.github/workflows/Lucene-Net-Tests-_I-J.yml
index 0e92f32d0..a456bce1a 100644
--- a/.github/workflows/Lucene-Net-Tests-_I-J.yml
+++ b/.github/workflows/Lucene-Net-Tests-_I-J.yml
@@ -1,4 +1,4 @@
-####################################################################################
+####################################################################################
 # DO NOT EDIT: This file was automatically generated by Generate-TestWorkflows.ps1
 ####################################################################################
 # Licensed to the Apache Software Foundation (ASF) under one
@@ -74,14 +74,14 @@ jobs:
     strategy:
       fail-fast: false
       matrix:
-        os: [windows-latest, ubuntu-latest]
+        os: [windows-latest, ubuntu-22.04]
         framework: [net8.0, net5.0, net48, net472]
         platform: [x64]
         configuration: [Release]
         exclude:
-          - os: ubuntu-latest
+          - os: ubuntu-22.04
             framework: net48
-          - os: ubuntu-latest
+          - os: ubuntu-22.04
             framework: net472
           - os: macos-latest
             framework: net48
diff --git a/.github/workflows/Lucene-Net-Tests-_J-S.yml b/.github/workflows/Lucene-Net-Tests-_J-S.yml
index d2684149b..732f365bd 100644
--- a/.github/workflows/Lucene-Net-Tests-_J-S.yml
+++ b/.github/workflows/Lucene-Net-Tests-_J-S.yml
@@ -1,4 +1,4 @@
-####################################################################################
+####################################################################################
 # DO NOT EDIT: This file was automatically generated by Generate-TestWorkflows.ps1
 ####################################################################################
 # Licensed to the Apache Software Foundation (ASF) under one
@@ -61,14 +61,14 @@ jobs:
     strategy:
       fail-fast: false
       matrix:
-        os: [windows-latest, ubuntu-latest]
+        os: [windows-latest, ubuntu-22.04]
         framework: [net8.0, net5.0, net48, net472]
         platform: [x64]
         configuration: [Release]
         exclude:
-          - os: ubuntu-latest
+          - os: ubuntu-22.04
             framework: net48
-          - os: ubuntu-latest
+          - os: ubuntu-22.04
             framework: net472
           - os: macos-latest
             framework: net48
diff --git a/.github/workflows/Lucene-Net-Tests-_T-Z.yml b/.github/workflows/Lucene-Net-Tests-_T-Z.yml
index e3229466d..396a6da90 100644
--- a/.github/workflows/Lucene-Net-Tests-_T-Z.yml
+++ b/.github/workflows/Lucene-Net-Tests-_T-Z.yml
@@ -1,4 +1,4 @@
-####################################################################################
+####################################################################################
 # DO NOT EDIT: This file was automatically generated by Generate-TestWorkflows.ps1
 ####################################################################################
 # Licensed to the Apache Software Foundation (ASF) under one
@@ -56,14 +56,14 @@ jobs:
     strategy:
       fail-fast: false
       matrix:
-        os: [windows-latest, ubuntu-latest]
+        os: [windows-latest, ubuntu-22.04]
         framework: [net8.0, net5.0, net48, net472]
         platform: [x64]
         configuration: [Release]
         exclude:
-          - os: ubuntu-latest
+          - os: ubuntu-22.04
             framework: net48
-          - os: ubuntu-latest
+          - os: ubuntu-22.04
             framework: net472
           - os: macos-latest
             framework: net48
diff --git a/azure-pipelines.yml b/azure-pipelines.yml
index 28ad38afa..2bd5a7267 100644
--- a/azure-pipelines.yml
+++ b/azure-pipelines.yml
@@ -456,7 +456,7 @@ stages:
           maximumAllowedFailures: 0 # Maximum allowed failures for a successful build
         Linux:
           osName: 'Linux'
-          imageName: 'ubuntu-latest'
+          imageName: 'ubuntu-22.04' # NOTE: ubuntu-24.04 currently breaks the .NET 5 build
           maximumParallelJobs: 7
           maximumAllowedFailures: 0 # Maximum allowed failures for a successful build
         macOS:
diff --git a/src/Lucene.Net/Analysis/TokenAttributes/CharTermAttribute.cs b/src/Lucene.Net/Analysis/TokenAttributes/CharTermAttribute.cs
index 05f449c0a..e15b1517d 100644
--- a/src/Lucene.Net/Analysis/TokenAttributes/CharTermAttribute.cs
+++ b/src/Lucene.Net/Analysis/TokenAttributes/CharTermAttribute.cs
@@ -1,4 +1,4 @@
-using J2N.Text;
+using J2N.Text;
 using Lucene.Net.Util;
 using System;
 using System.Diagnostics.CodeAnalysis;
@@ -30,7 +30,8 @@ namespace Lucene.Net.Analysis.TokenAttributes
     {
         /// <summary>
         /// Copies the contents of buffer, starting at offset for
-        /// length characters, into the termBuffer array. </summary>
+        /// length characters, into the termBuffer array.
+        /// </summary>
         /// <param name="buffer"> the buffer to copy </param>
         /// <param name="offset"> the index in the buffer of the first character to copy </param>
         /// <param name="length"> the number of characters to copy </param>
@@ -285,4 +286,4 @@ namespace Lucene.Net.Analysis.TokenAttributes
         /// <param name="value">The sequence of characters to append.</param>
         ICharTermAttribute Append(ICharTermAttribute value);
     }
-}
\ No newline at end of file
+}