lucenenet-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From nightowl...@apache.org
Subject [11/39] lucenenet git commit: Fixed issue with PatternParser not compiling on .NET Core because of a missing overload on StreamReader
Date Sat, 04 Feb 2017 20:32:30 GMT
Fixed issue with PatternParser not compiling on .NET Core because of a missing overload on
StreamReader


Project: http://git-wip-us.apache.org/repos/asf/lucenenet/repo
Commit: http://git-wip-us.apache.org/repos/asf/lucenenet/commit/dc21329c
Tree: http://git-wip-us.apache.org/repos/asf/lucenenet/tree/dc21329c
Diff: http://git-wip-us.apache.org/repos/asf/lucenenet/diff/dc21329c

Branch: refs/heads/api-work
Commit: dc21329cd56791eaf38b06c52e4153498df91361
Parents: 7cf215b
Author: Shad Storhaug <shad@shadstorhaug.com>
Authored: Sat Feb 4 16:13:06 2017 +0700
Committer: Shad Storhaug <shad@shadstorhaug.com>
Committed: Sat Feb 4 23:08:16 2017 +0700

----------------------------------------------------------------------
 .../Analysis/Compound/Hyphenation/PatternParser.cs                 | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/lucenenet/blob/dc21329c/src/Lucene.Net.Analysis.Common/Analysis/Compound/Hyphenation/PatternParser.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.Analysis.Common/Analysis/Compound/Hyphenation/PatternParser.cs
b/src/Lucene.Net.Analysis.Common/Analysis/Compound/Hyphenation/PatternParser.cs
index 9b9f226..9bbe391 100644
--- a/src/Lucene.Net.Analysis.Common/Analysis/Compound/Hyphenation/PatternParser.cs
+++ b/src/Lucene.Net.Analysis.Common/Analysis/Compound/Hyphenation/PatternParser.cs
@@ -99,7 +99,7 @@ namespace Lucene.Net.Analysis.Compound.Hyphenation
             var xmlReaderSettings = GetXmlReaderSettings();
 
             // LUCENENET TODO: Create overloads that allow XmlReaderSettings to be passed
in.
-            using (var src = XmlReader.Create(new StreamReader(path, encoding), xmlReaderSettings))
+            using (var src = XmlReader.Create(new StreamReader(new FileStream(path, FileMode.Open),
encoding), xmlReaderSettings))
             {
                 Parse(src);
             }


Mime
View raw message