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

commit c8af45fc3abc969747c03854ea5c971aaa23f4c9
Author: Shad Storhaug <[email protected]>
AuthorDate: Fri Sep 11 11:49:55 2020 +0700

    Directory.Build.targets: Added FEATURE_STACKOVERFLOWEXCEPTION__ISCATCHABLE 
and implemented throughout solution
---
 Directory.Build.targets                                         | 1 +
 src/Lucene.Net.Tests/Util/TestRamUsageEstimatorOnWildAnimals.cs | 2 +-
 2 files changed, 2 insertions(+), 1 deletion(-)

diff --git a/Directory.Build.targets b/Directory.Build.targets
index 9d6d4af..9f0325b 100644
--- a/Directory.Build.targets
+++ b/Directory.Build.targets
@@ -107,6 +107,7 @@
     <!-- 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 -->
     
<DefineConstants>$(DefineConstants);FEATURE_SECURITYPERMISSIONS_HOSTPROTECTION</DefineConstants>
+    
<DefineConstants>$(DefineConstants);FEATURE_STACKOVERFLOWEXCEPTION__ISCATCHABLE</DefineConstants>
     
<DefineConstants>$(DefineConstants);FEATURE_TEXTWRITER_CREATEOBJREF</DefineConstants>
     
     <DebugType>full</DebugType>
diff --git a/src/Lucene.Net.Tests/Util/TestRamUsageEstimatorOnWildAnimals.cs 
b/src/Lucene.Net.Tests/Util/TestRamUsageEstimatorOnWildAnimals.cs
index b5e0bdc..3604cc6 100644
--- a/src/Lucene.Net.Tests/Util/TestRamUsageEstimatorOnWildAnimals.cs
+++ b/src/Lucene.Net.Tests/Util/TestRamUsageEstimatorOnWildAnimals.cs
@@ -27,7 +27,7 @@ namespace Lucene.Net.Util
     [TestFixture]
     public class TestRamUsageEstimatorOnWildAnimals : LuceneTestCase
     {
-#if !NETSTANDARD // StackOverflowException cannot be caught in .NET Core. This 
test does not apply.
+#if FEATURE_STACKOVERFLOWEXCEPTION__ISCATCHABLE // StackOverflowException 
cannot be caught in .NET Core. This test does not apply.
         public class ListElement
         {
             internal ListElement Next;

Reply via email to