[ 
https://issues.apache.org/jira/browse/LUCENENET-280?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Nicholas Paldino updated LUCENENET-280:
---------------------------------------

    Attachment: TestQueryParser.TestProtectedCtors.patch

This changes the logic in the test to properly check when a ConstructorInfo 
cannot be found.  It checks for null from the call to GetConstructor instead of 
catching an exception.

> TestProtectedCtors test on TestQueryParser fails.
> -------------------------------------------------
>
>                 Key: LUCENENET-280
>                 URL: https://issues.apache.org/jira/browse/LUCENENET-280
>             Project: Lucene.Net
>          Issue Type: Bug
>            Reporter: Nicholas Paldino
>            Priority: Minor
>         Attachments: TestQueryParser.TestProtectedCtors.patch
>
>
> The TestProtectedCtors test fails because it assumes if a ConstructorInfo is 
> searched for using reflection and one does not exist, that an exception will 
> be thrown.
> The behavior in .NET, however, is that null will be returned from the call to 
> GetConstructor on the Type instance.
> Patch to follow.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.

Reply via email to