http://bugzilla.novell.com/show_bug.cgi?id=571683
http://bugzilla.novell.com/show_bug.cgi?id=571683#c0 Summary: Runtime compile: location warning flagged as error, and assembly not loaded when lacking 'new' for variable override Classification: Mono Product: Mono: Compilers Version: 2.4.x Platform: All OS/Version: All Status: NEW Severity: Normal Priority: P5 - None Component: C# AssignedTo: [email protected] ReportedBy: [email protected] QAContact: [email protected] Found By: --- Blocker: --- Created an attachment (id=337216) --> (http://bugzilla.novell.com/attachment.cgi?id=337216) Test case, with build script (sh/bash). User-Agent: Mozilla/5.0 (X11; U; Linux i686 (x86_64); en-US; rv:1.9.1.3) Gecko/20090824 Firefox/3.5.3 Bug Details: The defect in Mono is this: - When a run-time compile is attempted for a source that the lacks the 'new' keyword on a variable overriding one in the base class, a CS0108 warning is raised (correctly, and as it should be). - The compiler generates a supplementary CompilerError object to indicate the location of the base class variable, but: + this supplemental object needs IsWarning set true, but it's false. + the compile results CompilerResults.CompiledAssembly is null. These symptoms are not true with the Microsoft 3.5 compiler, and I believe they were not present in the 1.2.5.1 version of Mono, either. NOTE: I realize that the code example issues warning CS0618, which states: 'System.CodeDom.Compiler.CodeDomProvider.CreateCompiler()' is obsolete[...] but a 3rd party DLL which I use utilizes this method, and as long as the framework method it available, it must work properly. Reproducible: Always Steps to Reproduce: 1. Unpack attached ZIP 2. run "test.sh" script. Actual Results: 1. Supplemental (location of base class) CompilerError has IsWarning false. 2. CompilerResults.CompiledAssembly is null Expected Results: 1. Supplemental (location of base class) CompilerError should have IsWarning true. 2. CompilerResults.CompiledAssembly should be the assembly (which exists on the disk). -- Configure bugmail: http://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. _______________________________________________ mono-bugs maillist - [email protected] http://lists.ximian.com/mailman/listinfo/mono-bugs
