BUG: Lucene.Net (core): Stack trace information unreadable with optimizations on, causing the Lucene.Net.Tests.Index.TestIndexWriterExceptions.TestExceptionsDuringCommit() test to fail. Added the DebuggableAttribute to turn optimizations off.
Project: http://git-wip-us.apache.org/repos/asf/lucenenet/repo Commit: http://git-wip-us.apache.org/repos/asf/lucenenet/commit/ca9772f3 Tree: http://git-wip-us.apache.org/repos/asf/lucenenet/tree/ca9772f3 Diff: http://git-wip-us.apache.org/repos/asf/lucenenet/diff/ca9772f3 Branch: refs/heads/api-work Commit: ca9772f302e16bdcedba878f46ee39b66863a057 Parents: 1058b53 Author: Shad Storhaug <[email protected]> Authored: Mon Apr 10 00:16:05 2017 +0700 Committer: Shad Storhaug <[email protected]> Committed: Mon Apr 10 00:16:05 2017 +0700 ---------------------------------------------------------------------- src/Lucene.Net/Properties/AssemblyInfo.cs | 6 ++++++ 1 file changed, 6 insertions(+) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/lucenenet/blob/ca9772f3/src/Lucene.Net/Properties/AssemblyInfo.cs ---------------------------------------------------------------------- diff --git a/src/Lucene.Net/Properties/AssemblyInfo.cs b/src/Lucene.Net/Properties/AssemblyInfo.cs index 3df7438..b558f6a 100644 --- a/src/Lucene.Net/Properties/AssemblyInfo.cs +++ b/src/Lucene.Net/Properties/AssemblyInfo.cs @@ -16,6 +16,7 @@ */ using System; +using System.Diagnostics; using System.Reflection; using System.Runtime.CompilerServices; @@ -35,6 +36,11 @@ using System.Runtime.CompilerServices; [assembly: AssemblyCulture("")] [assembly: CLSCompliant(true)] +// LUCENENET NOTE: This attribute is required to disable optimizations so the +// Lucene.Net.Tests.Index.TestIndexWriterExceptions.TestExceptionsDuringCommit() test +// can read the stack trace information, otherwise the test fails. +[assembly: Debuggable(DebuggableAttribute.DebuggingModes.Default | DebuggableAttribute.DebuggingModes.DisableOptimizations)] + // for testing //[assembly: InternalsVisibleTo("Lucene.Net.Test, PublicKey=002400000480000094000000060200000024000052534131000400000100010075a07ce602f88e" + // "f263c7db8cb342c58ebd49ecdcc210fac874260b0213fb929ac3dcaf4f5b39744b800f99073eca" +
