lucenenet-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From GitBox <...@apache.org>
Subject [GitHub] [lucenenet] NightOwl888 commented on issue #267: Fix asserts that are failing on .NET Standard 2.0
Date Mon, 29 Jun 2020 13:22:48 GMT

NightOwl888 commented on issue #267:
URL: https://github.com/apache/lucenenet/issues/267#issuecomment-651117339


   It turns out this is a design feature of Lucene that is used for testing. The asserts were
failing by design in order to be "caught" in the [BaseTermVectorsFormatTestCase](https://github.com/apache/lucenenet/blob/cffc8ddd668841eaf82cf759f976ba90aa233002/src/Lucene.Net.TestFramework/Index/BaseTermVectorsFormatTestCase.cs#L637-L647).
This becomes an issue on .NET Standard, because it is set up to cause a fatal crash when an
assertion is thrown.
   
   I am still analyzing what the options are, but I suspect that consistently throwing an
`InvalidOperationException` in each of the `DocsAndPostionsEnum` subclasses will likely be
the answer.


----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



Mime
View raw message