Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Reviewed and Redesigned Exception Handling (closes #446) #476

Merged
merged 121 commits into from
Apr 26, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
121 commits
Select commit Hold shift + click to select a range
26a4778
Lucene.Net.TestFramework: Added Assert.Pass() method overloads
NightOwl888 Apr 4, 2021
e99c682
Lucene.Net.TestFramework, Lucene.Net.Support: Added [DebuggerStepThro…
NightOwl888 Apr 4, 2021
13f479b
BREAKING: Marked public exception constructors that were meant only f…
NightOwl888 Apr 4, 2021
782feda
Added ExceptionExtensions class to Support to map catching and throwi…
NightOwl888 Apr 5, 2021
6ae5978
Fixed test failures due to exception types and aliases being subsumed…
NightOwl888 Apr 5, 2021
9506912
Added Lucene.Net.Tests.AllProjects project so we can put the assembly…
NightOwl888 Apr 5, 2021
32c70fa
publish-tests-results-for-test-projects: Added Lucene.Net.Tests.AllPr…
NightOwl888 Apr 5, 2021
4b31566
Lucene.Net.Store.AlreadyClosedException: For parity with Lucene, resu…
NightOwl888 Apr 6, 2021
2ff73b2
SWEEP: Reviewed all catch blocks where Lucene uses Throwable and conv…
NightOwl888 Apr 6, 2021
b5764a8
SWEEP: Reviewed all catch blocks where Lucene uses Error and converte…
NightOwl888 Apr 6, 2021
ec47a2f
SWEEP: Reviewed all catch blocks where Lucene uses Exception and conv…
NightOwl888 Apr 6, 2021
09e5e82
SWEEP: Reviewed all catch blocks where Lucene uses IOException and co…
NightOwl888 Apr 7, 2021
71608d5
BUG: Lucene.Net.Analysis.Common: Fixed jflex-generated tokenizers to …
NightOwl888 Apr 8, 2021
d2d2576
Lucene.Net.Tests.Analysis.Common/Analysis/Miscellaneous/PatternAnalyz…
NightOwl888 Apr 8, 2021
71f8f99
Lucene.Net.Codecs.Memory.DirectPostingsFormat.LowFreqDocsEnumNoTF::Ne…
NightOwl888 Apr 8, 2021
fee4b05
BREAKING: Lucene.Net.Facet.Taxonomy.Directory.DirectoryTaxonomyWriter…
NightOwl888 Apr 8, 2021
199d848
Lucene.Net.Store.ByteBufferIndexInput: Fixed some issues with our imp…
NightOwl888 Apr 8, 2021
3b120b7
Lucene.Net.Analysis.Common.Analysis.Util.CharacterUtils: Corrected do…
NightOwl888 Apr 9, 2021
14dafea
Lucene.Net.Benchmark.ByTask.Feeds.SpatialDocMaker: Corrected comments…
NightOwl888 Apr 9, 2021
000965e
Lucene.Net.Analysis.Common.Analysis.Util.BufferedCharFilter: Changed …
NightOwl888 Apr 9, 2021
cf61108
Lucene.Net.QueryParser.Classic.QueryParserBase::Escape(): Added guard…
NightOwl888 Apr 9, 2021
b6c0327
Lucene.Net.Search.ConstantScoreQuery: Changed guard clauses to throw …
NightOwl888 Apr 9, 2021
5e0b9f8
Lucene.Net.Search.Similarities.DFRSimilarity: Changed guard clauses t…
NightOwl888 Apr 9, 2021
03af975
BREAKING: Lucene.Net.Search.Weight.DefaultBulkScorer: Changed guard c…
NightOwl888 Apr 9, 2021
7dc57c8
BREAKING: Lucene.Net.Suggest.Jaspell.JaspellTernarySearchTrie.GetOrCr…
NightOwl888 Apr 9, 2021
4d451cb
BREAKING: Lucene.Net.QueryParser.Flexible.Standard.Parser.EscapeQuery…
NightOwl888 Apr 9, 2021
4ae0efe
Lucene.Net.Codecs.BlockTerms.VariableGapTermsIndexReader: Changed exc…
NightOwl888 Apr 9, 2021
e4ccb13
Lucene.Net.QueryParser.Flexible.Core.Processors.QueryNodeProcessor: T…
NightOwl888 Apr 9, 2021
339fb7e
Lucene.Net.Highlighter.PostingsHighlight.PostingsHighlighter: Throw I…
NightOwl888 Apr 9, 2021
d508007
Lucene.Net.Index.ConcurrentMergeScheduler::SetThreadPriority(): Comme…
NightOwl888 Apr 9, 2021
34fffa3
BREAKING: Lucene.Net.Util.ArrayUtil: Factored out ToInt32Array() meth…
NightOwl888 Apr 9, 2021
34901e6
SWEEP: Reviewed all catch blocks where Lucene uses IllegalArgumentExc…
NightOwl888 Apr 9, 2021
4097c52
SWEEP: Fixed failing tests due to more strict checking on ArgumentExc…
NightOwl888 Apr 9, 2021
5380f36
SWEEP: Reviewed all catch blocks where Lucene uses UnsupportedEncodin…
NightOwl888 Apr 9, 2021
118b568
SWEEP: Lucene.Net.Analysis.Common: Changed all guard clauses to use A…
NightOwl888 Apr 10, 2021
9a7835b
SWEEP: Changed all guard clauses to use ArgumentOutOfRangeException a…
NightOwl888 Apr 10, 2021
86c07b7
SWEEP: Fixed failing tests due to more strict checking on ArgumentNul…
NightOwl888 Apr 10, 2021
3589cac
SWEEP: Reviewed all catch blocks where Lucene uses IllegalStateExcept…
NightOwl888 Apr 11, 2021
e5a42e3
SWEEP: Reviewed all catch blocks where Lucene uses ParseException and…
NightOwl888 Apr 11, 2021
0b0463a
SWEEP: Reviewed all catch blocks where Lucene uses NumberFormatExcept…
NightOwl888 Apr 11, 2021
a81a392
SWEEP: Reviewed all catch blocks where Lucene uses NoSuchFileExceptio…
NightOwl888 Apr 11, 2021
564ea31
SWEEP: Reviewed all catch blocks where Lucene uses UnsupportedOperati…
NightOwl888 Apr 11, 2021
cc48e7c
SWEEP: Reviewed all catch blocks where Lucene uses EOFException and c…
NightOwl888 Apr 11, 2021
420581a
SWEEP: Reviewed all catch blocks where Lucene uses MissingResourceExc…
NightOwl888 Apr 11, 2021
1c66c9b
SWEEP: Reviewed all catch blocks where Lucene uses NoClassDefFoundErr…
NightOwl888 Apr 11, 2021
b1f4620
SWEEP: Reviewed all catch blocks where Lucene uses ArithmeticExceptio…
NightOwl888 Apr 11, 2021
41eee48
SWEEP: Reviewed all new instances of AssertionError in Lucene and rep…
NightOwl888 Apr 11, 2021
db45f57
SWEEP: Reviewed all catch blocks where Lucene uses AssertionError and…
NightOwl888 Apr 11, 2021
84ce402
SWEEP: Reviewed all catch blocks where Lucene uses IndexOutOfBoundExc…
NightOwl888 Apr 11, 2021
352d783
SWEEP: Reviewed all catch blocks where Lucene uses ArrayIndexOutOfBou…
NightOwl888 Apr 11, 2021
a44e410
SWEEP: Reviewed all catch blocks where Lucene uses AlreadyClosedExcep…
NightOwl888 Apr 12, 2021
31cc612
SWEEP: Reviewed all catch blocks where Lucene uses OutOfMemoryError a…
NightOwl888 Apr 13, 2021
1ee96d2
SWEEP: Reviewed all catch blocks where Lucene uses NoSuchDirectoryExc…
NightOwl888 Apr 13, 2021
96ba6ea
SWEEP: Reviewed all catch blocks where Lucene uses NoSuchMethodExcept…
NightOwl888 Apr 13, 2021
29a3537
SWEEP: Reviewed all catch blocks where Lucene uses IllegalAccessExcep…
NightOwl888 Apr 13, 2021
9520d9e
Lucene.Net.Util.SPIClassIterator: Removed dead commented code
NightOwl888 Apr 13, 2021
58331e2
SWEEP: Reviewed all catch blocks where Lucene uses ClassCastException…
NightOwl888 Apr 13, 2021
f85b871
Lucene.Net.Util.IOUtils: Removed dead commented code
NightOwl888 Apr 13, 2021
a2337b8
SWEEP: Reviewed all catch blocks where Lucene uses InterruptedExcepti…
NightOwl888 Apr 13, 2021
7594d5e
Lucene.Net.Index.IndexWriterConfig: Removed try/catch for InvalidCast…
NightOwl888 Apr 13, 2021
56adb4a
SWEEP: Reviewed all catch blocks where Lucene uses StackOverflowError…
NightOwl888 Apr 13, 2021
c9d1df4
SWEEP: Reviewed all catch blocks where Lucene uses AccessDeniedExcept…
NightOwl888 Apr 13, 2021
845a2a6
SWEEP: Reviewed all catch blocks where Lucene uses RuntimeException a…
NightOwl888 Apr 13, 2021
4a7a387
SWEEP: Updated all AssertionError and AssertionException creation ref…
NightOwl888 Apr 22, 2021
649c66a
BUG: Lucene.Net.Codecs.Lucene41.Lucene41PostingsWriter: Throw Corrupt…
NightOwl888 Apr 22, 2021
3003b9d
BUG: Lucene.Net.Codecs.Lucene45.Lucene45DocValuesProducer: Throw Corr…
NightOwl888 Apr 22, 2021
20f2643
BUG: Lucene.Net.Codecs.Lucene45.Lucene45DocValuesProducer: Throw Corr…
NightOwl888 Apr 22, 2021
83964a0
BUG: Lucene.Net.Index.IndexReader + Lucene.Net.IndexReaderContext: Th…
NightOwl888 Apr 22, 2021
bc9e9a9
Lucene.Net.Search.BooleanClause: Changed exception to ArgumentOutOfRa…
NightOwl888 Apr 22, 2021
6ba4469
BUG: Lucene.Net.Store.Directory.SlicedIndexInput::ReadInternal(): Thr…
NightOwl888 Apr 22, 2021
f6c6e1b
BUG: Lucene.Net.Store.NIOFSDirectory.NIOFSIndexInput::ReadInternal():…
NightOwl888 Apr 22, 2021
c506610
BUG: Lucene.Net.Util.Packed.AbstractAppendingInt64Buffer: Throw Inval…
NightOwl888 Apr 22, 2021
1f8b411
Lucene.Net.Util.Packed.BlockPackedReader::ctor(): Throw IOExeption ra…
NightOwl888 Apr 22, 2021
33c87a8
BUG: Lucene.Net.Util.Packed.MonotonicBlockPackedReader::ctor(): Throw…
NightOwl888 Apr 22, 2021
5233925
Lucene.Net.Util.IOUtils: Reverted ReThrow() and ReThrowUnchecked() to…
NightOwl888 Apr 22, 2021
8e3418d
BUG: Lucene.Net.Codecs.Compressing.CompressingStoredFieldsReader.Data…
NightOwl888 Apr 22, 2021
425366b
Lucene.Net.Tests.Suggest.Analyzing.AnalyzingInfixSuggesterTest: Rever…
NightOwl888 Apr 22, 2021
7be314c
BUG: Lucene.Net.TestFramework.Analysis.ValidatingTokenFilter: Throw I…
NightOwl888 Apr 22, 2021
79f2fb5
SWEEP: Changed all applicable Exception creation statements to Runtim…
NightOwl888 Apr 22, 2021
b02e3ba
SWEEP: Changed all applicable ParseException creation statements to P…
NightOwl888 Apr 22, 2021
a6827fd
SWEEP: Changed all applicable Error creation statements to Error.Crea…
NightOwl888 Apr 22, 2021
ffb3c0f
SWEEP: Changed all applicable EndOfStream creation statements to EOFE…
NightOwl888 Apr 22, 2021
2e6cacd
SWEEP: Changed all applicable InvalidOperationException creation stat…
NightOwl888 Apr 22, 2021
6f49a45
BUG: Lucene.Net.Analysis.Common.Util.CharArraySet: Throw NotSupported…
NightOwl888 Apr 22, 2021
6582c48
BUG: Lucene.Net.Codecs.Bloom.BloomFilteringPostingsFormat::FieldsCons…
NightOwl888 Apr 22, 2021
c7e3816
BUG: Lucene.Net.Codecs.Lucene42.Lucene42DocValuesProducer::LoadNumeri…
NightOwl888 Apr 22, 2021
2cb966a
BUG: Lucene.Net.Store.CompoundFileDirectory::ReadEntries(): throw Ass…
NightOwl888 Apr 22, 2021
353a04a
BUG: Lucene.Net.Util.Packed.DirectPackedReader::Get(): Throw Assertio…
NightOwl888 Apr 22, 2021
0963cdf
SWEEP: Changed all applicable InvalidOperationException creation stat…
NightOwl888 Apr 23, 2021
6f30888
BUG: Lucene.Net.Facet: Throw InvalidOperationException rather than Th…
NightOwl888 Apr 23, 2021
c6414b5
SWEEP: Changed all applicable NotSupportedException creation statemen…
NightOwl888 Apr 23, 2021
825923b
BUG: Lucene.Net.Grouping.BlockGroupingCollector: Throw NotSupportedEx…
NightOwl888 Apr 23, 2021
dc31b1f
BUG: Lucene.Net.Tests.Index.TestUniqueTermCount: Throw NotSupportedEx…
NightOwl888 Apr 23, 2021
317643a
SWEEP: Changed all applicable TypeLoadException creation statements i…
NightOwl888 Apr 23, 2021
f28408e
Updated NoSuchMethodException with static factory methods and marked …
NightOwl888 Apr 23, 2021
a904463
Updated NullPointerException with static factory methods and added do…
NightOwl888 Apr 23, 2021
ec00e89
Updated IllegalArgumentException with static factory methods and adde…
NightOwl888 Apr 23, 2021
2e94703
Updated IndexOutOfBoundsException, ArrayIndexOutOfBoundsException, an…
NightOwl888 Apr 23, 2021
9e58450
SWEEP: Changed all applicable ObjectDisposedException creation statem…
NightOwl888 Apr 23, 2021
360db00
SWEEP: Changed all applicable FormatException creation statements int…
NightOwl888 Apr 23, 2021
3687304
SWEEP: Changed all applicable OutOfMemoryException creation statement…
NightOwl888 Apr 23, 2021
bf436d7
Updated NoClassDefFoundError with static factory methods and obsolete…
NightOwl888 Apr 23, 2021
57a9a79
Updated StackOverflowError with static factory methods and obsolete c…
NightOwl888 Apr 23, 2021
90a3a16
SWEEP: Use ExeptionDispatchInfo to preserve stack trace details when …
NightOwl888 Apr 24, 2021
60a6b8b
Lucene.Net.Util: Added LuceneSystemException to use as a general exce…
NightOwl888 Apr 24, 2021
b827c16
RuntimeException.Create(): Changed to return LuceneSystemException in…
NightOwl888 Apr 25, 2021
bff1847
build/Dependencies.props: Upgraded J2N to 2.0.0-beta-0015
NightOwl888 Apr 25, 2021
19b8bd3
Fixed build warnings about ThreadJob.IsDebug being obsolete
NightOwl888 Apr 25, 2021
0f6d197
Lucene.Net.Tests.Analysis.Common: Added missing System.Text.Encoding.…
NightOwl888 Apr 25, 2021
27f37bf
SWEEP: Changed all but the spatial module to throw J2N.Text.ParseExce…
NightOwl888 Apr 25, 2021
c760b9b
ExceptionExtensions: Added support and tests for filtering types that…
NightOwl888 Apr 25, 2021
57e3df8
Lucene.Net.Tests.Index.TestIndexWriterExceptions: Changed IndexerThre…
NightOwl888 Apr 25, 2021
7247036
ExceptionExtensions: Reviewed and removed some TODOs.
NightOwl888 Apr 25, 2021
9788fcb
TestExceptionExtentensions: Fixed issues with different target framwo…
NightOwl888 Apr 25, 2021
ef6bd8f
.github/workflows: Geneated the file to run the tests in Lucene.Net.T…
NightOwl888 Apr 25, 2021
68c9da1
Lucene.Net.Analysis.Common.Analysis.Synonym.WordNetSynonymParser: Fix…
NightOwl888 Apr 25, 2021
dd59b3f
Lucene.Net.QueryParser.Flexible.Standard.Processors: Changed numeric …
NightOwl888 Apr 26, 2021
76099e9
Lucene.Net.Spatial.Query.SpatialArgs: Fixed null guard clauses to thr…
NightOwl888 Apr 26, 2021
351ec4a
Lucene.Net.Search.TimeLimitingCollector: Removed invalid comment
NightOwl888 Apr 26, 2021
054a1d0
Lucene.Net.Store.AlreadyClosedException: Restored header comment expl…
NightOwl888 Apr 26, 2021
1e6b83e
Lucene.Net.Util.LuceneSystemException: Use Message rather than ToStri…
NightOwl888 Apr 26, 2021
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
121 changes: 121 additions & 0 deletions .github/workflows/Lucene-Net-Tests-AllProjects.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,121 @@
####################################################################################
# DO NOT EDIT: This file was automatically generated by Generate-TestWorkflows.ps1
####################################################################################
# Licensed to the Apache Software Foundation (ASF) under one
# or more contributor license agreements. See the NOTICE file
# distributed with this work for additional information
# regarding copyright ownership. The ASF licenses this file
# to you under the Apache License, Version 2.0 (the
# "License"); you may not use this file except in compliance
# with the License. You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing,
# software distributed under the License is distributed on an
# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
# KIND, either express or implied. See the License for the
# specific language governing permissions and limitations
# under the License.

name: 'Lucene.Net.Tests.AllProjects'

on:
workflow_dispatch:
pull_request:
paths:
- 'src/Lucene.Net.Tests.AllProjects/**/*'
- 'build/Dependencies.props'
- 'build/TestReferences.Common.*'
- 'TestTargetFrameworks.*'
- '*.sln'
- 'src/Lucene.Net.Tests.AllProjects/Directory.Build.*'
- 'src/Directory.Build.*'
- 'Directory.Build.*'

# Dependencies
- 'src/Lucene.Net/**/*'
- 'src/Lucene.Net.Analysis.Common/**/*'
- 'src/Lucene.Net.Memory/**/*'
- 'src/Lucene.Net.Queries/**/*'
- 'src/Lucene.Net.Highlighter/**/*'
- 'src/dotnet/Lucene.Net.ICU/**/*'
- 'src/Lucene.Net.Grouping/**/*'
- 'src/Lucene.Net.Join/**/*'
- 'src/Lucene.Net.Facet/**/*'
- 'src/Lucene.Net.Sandbox/**/*'
- 'src/Lucene.Net.QueryParser/**/*'
- 'src/Lucene.Net.Spatial/**/*'
- 'src/Lucene.Net.Benchmark/**/*'
- 'src/Lucene.Net.Classification/**/*'
- 'src/Lucene.Net.Codecs/**/*'
- 'src/Lucene.Net.Expressions/**/*'
- 'src/Lucene.Net.Misc/**/*'
- 'src/Lucene.Net.Replicator/**/*'
- 'src/Lucene.Net.Suggest/**/*'
- 'src/Lucene.Net.TestFramework/**/*'
- 'src/Lucene.Net.Analysis.OpenNLP/**/*'

- '!**/*.md'

jobs:

Test:
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
os: [windows-latest, ubuntu-latest]
framework: [net5.0, netcoreapp2.1, net48]
platform: [x64]
configuration: [Release]
exclude:
- os: ubuntu-latest
framework: net48
- os: macos-latest
framework: net48
env:
project_path: './src/Lucene.Net.Tests.AllProjects/Lucene.Net.Tests.AllProjects.csproj'
trx_file_name: 'TestResults.trx'
md_file_name: 'TestResults.md' # Report file name for LiquidTestReports.Markdown

steps:
- uses: actions/checkout@v2

- name: Setup .NET 3.1 SDK
uses: actions/setup-dotnet@v1
with:
dotnet-version: '3.1.404'
if: ${{ startswith(matrix.framework, 'netcoreapp3.') }}

- name: Setup .NET 2.1 SDK
uses: actions/setup-dotnet@v1
with:
dotnet-version: '2.1.811'
if: ${{ startswith(matrix.framework, 'netcoreapp2.') }}

- name: Setup .NET 5 SDK
uses: actions/setup-dotnet@v1
with:
dotnet-version: '5.0.100'

- run: |
$project_name = [System.IO.Path]::GetFileNameWithoutExtension($env:project_path)
$test_results_artifact_name = "testresults_${{matrix.os}}_${{matrix.framework}}_${{matrix.platform}}_${{matrix.configuration}}"
Write-Host "Project Name: $project_name"
Write-Host "Results Artifact Name: $test_results_artifact_name"
echo "project_name=$project_name" | Out-File -FilePath $env:GITHUB_ENV -Encoding utf8 -Append
echo "test_results_artifact_name=$test_results_artifact_name" | Out-File -FilePath $env:GITHUB_ENV -Encoding utf8 -Append
# Title for LiquidTestReports.Markdown
echo "title=Test Run for $project_name - ${{matrix.framework}} - ${{matrix.platform}} - ${{matrix.os}}" | Out-File -FilePath $env:GITHUB_ENV -Encoding utf8 -Append
shell: pwsh
- run: dotnet build ${{env.project_path}} --configuration ${{matrix.configuration}} --framework ${{matrix.framework}} /p:TestFrameworks=true
- run: dotnet test ${{env.project_path}} --configuration ${{matrix.configuration}} --framework ${{matrix.framework}} --no-build --no-restore --blame-hang --blame-hang-dump-type mini --blame-hang-timeout 20minutes --logger:"console;verbosity=normal" --logger:"trx;LogFileName=${{env.trx_file_name}}" --logger:"liquid.md;LogFileName=${{env.md_file_name}};Title=${{env.title}};" --results-directory:"${{github.workspace}}/${{env.test_results_artifact_name}}/${{env.project_name}}" -- RunConfiguration.TargetPlatform=${{matrix.platform}}
# upload reports as build artifacts
- name: Upload a Build Artifact
uses: actions/upload-artifact@v2
if: ${{always()}}
with:
name: '${{env.test_results_artifact_name}}'
path: '${{github.workspace}}/${{env.test_results_artifact_name}}'

1 change: 1 addition & 0 deletions Directory.Build.targets
Original file line number Diff line number Diff line change
Expand Up @@ -106,6 +106,7 @@
<DefineConstants>$(DefineConstants);NETFRAMEWORK</DefineConstants>
<DefineConstants>$(DefineConstants);FEATURE_ARGITERATOR</DefineConstants>
<DefineConstants>$(DefineConstants);FEATURE_MEMORYMAPPEDFILESECURITY</DefineConstants>
<DefineConstants>$(DefineConstants);FEATURE_OPENNLP</DefineConstants>
<DefineConstants>$(DefineConstants);FEATURE_SERIALIZABLE_EXCEPTIONS</DefineConstants>
<!-- Although HostProtectionAttribute is available in .NET Standard 2.0+ via platform extensions, we are excluding
it due to the fact it is not a primary feature of Lucene.NET -->
Expand Down
6 changes: 6 additions & 0 deletions Lucene.Net.sln
Original file line number Diff line number Diff line change
Expand Up @@ -215,6 +215,8 @@ Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "tools", "tools", "{4D0ED7D9
src\dotnet\Lucene.Net.CodeAnalysis\tools\uninstall.ps1 = src\dotnet\Lucene.Net.CodeAnalysis\tools\uninstall.ps1
EndProjectSection
EndProject
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Lucene.Net.Tests.AllProjects", "src\Lucene.Net.Tests.AllProjects\Lucene.Net.Tests.AllProjects.csproj", "{9880B87D-8D14-476B-B093-9C3AA0DA8B24}"
EndProject
Global
GlobalSection(SolutionConfigurationPlatforms) = preSolution
Debug|Any CPU = Debug|Any CPU
Expand Down Expand Up @@ -481,6 +483,10 @@ Global
{5CD4D4E8-6132-4384-98FC-6AB1C97E0B80}.Debug|Any CPU.Build.0 = Debug|Any CPU
{5CD4D4E8-6132-4384-98FC-6AB1C97E0B80}.Release|Any CPU.ActiveCfg = Release|Any CPU
{5CD4D4E8-6132-4384-98FC-6AB1C97E0B80}.Release|Any CPU.Build.0 = Release|Any CPU
{9880B87D-8D14-476B-B093-9C3AA0DA8B24}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{9880B87D-8D14-476B-B093-9C3AA0DA8B24}.Debug|Any CPU.Build.0 = Debug|Any CPU
{9880B87D-8D14-476B-B093-9C3AA0DA8B24}.Release|Any CPU.ActiveCfg = Release|Any CPU
{9880B87D-8D14-476B-B093-9C3AA0DA8B24}.Release|Any CPU.Build.0 = Release|Any CPU
EndGlobalSection
GlobalSection(SolutionProperties) = preSolution
HideSolutionNode = FALSE
Expand Down
2 changes: 1 addition & 1 deletion build/Dependencies.props
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@
<ICU4NLanguageDataPackageVersion>$(ICU4NPackageVersion)</ICU4NLanguageDataPackageVersion>
<ICU4NRegionDataPackageVersion>$(ICU4NPackageVersion)</ICU4NRegionDataPackageVersion>
<ICU4NTransliteratorPackageVersion>$(ICU4NPackageVersion)</ICU4NTransliteratorPackageVersion>
<J2NPackageVersion>2.0.0-beta-0013</J2NPackageVersion>
<J2NPackageVersion>2.0.0-beta-0015</J2NPackageVersion>
<LiquidTestReportsMarkdownPackageVersion>1.0.9</LiquidTestReportsMarkdownPackageVersion>
<MicrosoftAspNetCoreHttpAbstractionsPackageVersion>2.0.0</MicrosoftAspNetCoreHttpAbstractionsPackageVersion>
<MicrosoftAspNetCoreTestHostPackageVersion>2.0.0</MicrosoftAspNetCoreTestHostPackageVersion>
Expand Down
12 changes: 11 additions & 1 deletion build/azure-templates/publish-test-results-for-test-projects.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Licensed to the Apache Software Foundation (ASF) under one
# Licensed to the Apache Software Foundation (ASF) under one
# or more contributor license agreements. See the NOTICE file
# distributed with this work for additional information
# regarding copyright ownership. The ASF licenses this file
Expand Down Expand Up @@ -164,6 +164,16 @@ steps:
testResultsArtifactName: '${{ parameters.testResultsArtifactName }}'
testResultsFileName: '${{ parameters.testResultsFileName }}'

- template: publish-test-results.yml
parameters:
testProjectName: 'Lucene.Net.Tests.AllProjects'
osName: '${{ parameters.osName }}'
framework: '${{ parameters.framework }}'
vsTestPlatform: '${{ parameters.vsTestPlatform }}'
testResultsFormat: '${{ parameters.testResultsFormat }}'
testResultsArtifactName: '${{ parameters.testResultsArtifactName }}'
testResultsFileName: '${{ parameters.testResultsFileName }}'

- template: publish-test-results.yml
parameters:
testProjectName: 'Lucene.Net.Tests.Analysis.Common'
Expand Down
6 changes: 3 additions & 3 deletions src/Lucene.Net.Analysis.Common/Analysis/Ar/ArabicAnalyzer.cs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Lucene version compatibility level 4.8.1
// Lucene version compatibility level 4.8.1
using Lucene.Net.Analysis.Core;
using Lucene.Net.Analysis.Miscellaneous;
using Lucene.Net.Analysis.Standard;
Expand Down Expand Up @@ -72,11 +72,11 @@ private static CharArraySet LoadDefaultStopSet() // LUCENENET: Avoid static cons
{
return LoadStopwordSet(false, typeof(ArabicAnalyzer), DEFAULT_STOPWORD_FILE, "#");
}
catch (IOException ex)
catch (Exception ex) when (ex.IsIOException())
{
// default set should always be present as it is part of the
// distribution (JAR)
throw new Exception("Unable to load default stopword set", ex);
throw RuntimeException.Create("Unable to load default stopword set", ex);
}
}
}
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Lucene version compatibility level 4.8.1
// Lucene version compatibility level 4.8.1
using Lucene.Net.Analysis.Core;
using Lucene.Net.Analysis.Miscellaneous;
using Lucene.Net.Analysis.Standard;
Expand Down Expand Up @@ -65,11 +65,11 @@ private static CharArraySet LoadDefaultStopSet() // LUCENENET: Avoid static cons
{
return LoadStopwordSet(false, typeof(BulgarianAnalyzer), DEFAULT_STOPWORD_FILE, "#");
}
catch (IOException ex)
catch (Exception ex) when (ex.IsIOException())
{
// default set should always be present as it is part of the
// distribution (JAR)
throw new Exception("Unable to load default stopword set", ex);
throw RuntimeException.Create("Unable to load default stopword set", ex);
}
}
}
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Lucene version compatibility level 4.8.1
// Lucene version compatibility level 4.8.1
using Lucene.Net.Analysis.Core;
using Lucene.Net.Analysis.Miscellaneous;
using Lucene.Net.Analysis.Standard;
Expand Down Expand Up @@ -64,11 +64,11 @@ private static CharArraySet LoadDefaultStopSet() // LUCENENET: Avoid static cons
LuceneVersion.LUCENE_CURRENT);
#pragma warning restore 612, 618
}
catch (IOException ex)
catch (Exception ex) when (ex.IsIOException())
{
// default set should always be present as it is part of the
// distribution (JAR)
throw new Exception("Unable to load default stopword set", ex);
throw RuntimeException.Create("Unable to load default stopword set", ex);
}
}
}
Expand Down
6 changes: 3 additions & 3 deletions src/Lucene.Net.Analysis.Common/Analysis/Ca/CatalanAnalyzer.cs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Lucene version compatibility level 4.8.1
// Lucene version compatibility level 4.8.1
using Lucene.Net.Analysis.Core;
using Lucene.Net.Analysis.Miscellaneous;
using Lucene.Net.Analysis.Snowball;
Expand Down Expand Up @@ -70,11 +70,11 @@ private static CharArraySet LoadDefaultStopSet() // LUCENENET: Avoid static cons
{
return LoadStopwordSet(false, typeof(CatalanAnalyzer), DEFAULT_STOPWORD_FILE, "#");
}
catch (IOException ex)
catch (Exception ex) when (ex.IsIOException())
{
// default set should always be present as it is part of the
// distribution (JAR)
throw new Exception("Unable to load default stopword set", ex);
throw RuntimeException.Create("Unable to load default stopword set", ex);
}
}
}
Expand Down
Loading