[Mono-bugs] [Bug 689477] New: AvoidUnnecessarySpecializationRule is too aggressive when dealing with generic types and suggesting base interaces
bugzilla_noreply at novell.com
bugzilla_noreply at novell.com
Sun Apr 24 02:00:50 EDT 2011
https://bugzilla.novell.com/show_bug.cgi?id=689477
https://bugzilla.novell.com/show_bug.cgi?id=689477#c0
Summary: AvoidUnnecessarySpecializationRule is too aggressive
when dealing with generic types and suggesting base
interaces
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 NT 6.1; WOW64) AppleWebKit/534.29
(KHTML, like Gecko) Chrome/12.0.733.0 Safari/534.29
See provided test case. Gendarme suggests that a less specialized interface
type be used in a method override, despite the fact a more derived type was
used as a generic parameter type.
See test case for more detail:
https://github.com/Iristyle/mono-tools/commit/a0504cea45190ab0072441dc6fadda3e5ed3a5eb
There's probably a little more code in there than necessary to repro the issue,
but I was trying to get this one before I head to bed ;0
Reproducible: Always
Steps to Reproduce:
1. Run test
2.
3.
Actual Results:
Failure
Expected Results:
Success
--
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