[Mono-bugs] [Bug 79987][Nor] New - CLS compliance enforcement too picky

bugzilla-daemon at bugzilla.ximian.com bugzilla-daemon at bugzilla.ximian.com
Mon Nov 20 07:19:42 EST 2006


Please do not reply to this email- if you want to comment on the bug, go to the
URL shown below and enter your comments there.

Changed by pawel.sakowski at mindbreeze.com.

http://bugzilla.ximian.com/show_bug.cgi?id=79987

--- shadow/79987	2006-11-20 07:19:42.000000000 -0500
+++ shadow/79987.tmp.5169	2006-11-20 07:19:42.000000000 -0500
@@ -0,0 +1,44 @@
+Bug#: 79987
+Product: Mono: Runtime
+Version: 1.2
+OS: GNU/Linux [Other]
+OS Details: 
+Status: NEW   
+Resolution: 
+Severity: 
+Priority: Normal
+Component: misc
+AssignedTo: mono-bugs at ximian.com                            
+ReportedBy: pawel.sakowski at mindbreeze.com               
+QAContact: mono-bugs at ximian.com
+TargetMilestone: ---
+URL: 
+Cc: 
+Summary: CLS compliance enforcement too picky
+
+Description of Problem:
+The way Mono runtime manages CLSCompliantAttribute makes it impossible to
+use mixed compliant-noncompliant assemblies.
+
+Steps to reproduce the problem:
+1. Invoke "gmcs cls.cs", file content follows:
+
+using System;
+[assembly: CLSCompliant(false)]
+[CLSCompliant(true)]
+public class Foo {
+}
+
+Actual Results:
+cls.cs(4,14): error CS3014: `Foo' cannot be marked as CLS-compliant because
+the assembly is not marked as CLS-compliant
+
+Expected Results:
+success
+
+How often does this happen? 
+100%
+
+Additional Information:
+The only known workaround is to disable CLS checks altogether (/clscheck-).
+csc compiles the same file successfully.


More information about the mono-bugs mailing list