[Mono-bugs] [Bug 665193] New: CheckParametersNullityInVisibleMethodsTest fails when using 'is' operator
bugzilla_noreply at novell.com
bugzilla_noreply at novell.com
Tue Jan 18 11:55:43 EST 2011
https://bugzilla.novell.com/show_bug.cgi?id=665193
https://bugzilla.novell.com/show_bug.cgi?id=665193#c0
Summary: CheckParametersNullityInVisibleMethodsTest fails when
using 'is' operator
Classification: Mono
Product: Mono: Tools
Version: 2.10.x
Platform: 64bit
OS/Version: Windows 7
Status: NEW
Severity: Normal
Priority: P5 - None
Component: Gendarme
AssignedTo: mono-bugs at lists.ximian.com
ReportedBy: ethan_j_brown at hotmail.com
QAContact: mono-bugs at lists.ximian.com
Found By: ---
Blocker: ---
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 6.1; en-US)
AppleWebKit/534.16 (KHTML, like Gecko) Chrome/10.0.634.0 Safari/534.16
The 'is' operator only succeeds when the expression is non-null
http://msdn.microsoft.com/en-us/library/scekt9xw.aspx
It would appear Gendarme does not take this into consideration.
See test case here:
https://github.com/Iristyle/mono-tools/commit/5afbd0a3ef746ff6fdb3db4e1be53995c1734be4
Reproducible: Always
Steps to Reproduce:
1.Run the included Test
2.
3.
Actual Results:
Generates a failure
Expected Results:
Should succeed as the parameter is checked before being used
--
Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug.
You are the assignee for the bug.
More information about the mono-bugs
mailing list