[Mono-bugs] [Bug 689476] New: SuppressMessage from parent methods does not properly apply to anonymous delegates within their scope
bugzilla_noreply at novell.com
bugzilla_noreply at novell.com
Sun Apr 24 01:32:28 EDT 2011
https://bugzilla.novell.com/show_bug.cgi?id=689476
https://bugzilla.novell.com/show_bug.cgi?id=689476#c0
Summary: SuppressMessage from parent methods does not properly
apply to anonymous delegates within their scope
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
I simulated this in the manner it manifested in my code (within unit tests). I
was able to readily recreate the issue within the PreferTryParseTest.cs code,
but I'm fairly certain the same issue will pop up regardless of the rule -- I
just wasn't sure based on how my test would fit into a more generic scenario.
Essentially, at least the CSC compiler generates another method for the
anonymous delegate (marked with [CompilerGenerated], and the SuppressMessage
metadata does not carry over to this method.
This test case illustrates the issue:
https://github.com/Iristyle/mono-tools/commit/c14917caeb574e16fd3c5940fda481c1a706dd8f
Reproducible: Always
Steps to Reproduce:
1. Run the test
2.
3.
Actual Results:
Failure
Expected Results:
DoesNotApply based on adding the method to the ignore list
--
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