lucenenet
lucenenet copied to clipboard
Leave debugStream as null on construction of parser token managers
- [x] You've read the Contributor Guide and Code of Conduct.
- [x] You've included unit or integration tests for your change, where applicable.
- [x] You've included inline docs for your change, where applicable.
- [x] There's an open issue for the PR that you are making. If you'd like to propose a change, please open an issue to discuss the change or find an existing issue.
Summary of the changes (Less than 80 chars) Leave debugStream as null on construction of parser token managers.
Fixes #{bug number} (in this specific format) Fixes #936
Description
{Detail}
- When
debugStreamis set toConsole.Outby default,StandardSyntaxParserTokenManagerthrows an exception when constructing aStandardQueryParseron OSes that do not support System.Console, such as iOS and Android. -
debugStreamcan be set later using the setter, if needed. - The above is the same for
QueryParserTokenManagerwhen constructing aQueryParser. - See issue https://github.com/apache/lucenenet/issues/936 for details.