[Mono-bugs] [Bug 56013][Blo] New - Compiler ignores property accessor names in the metadata

bugzilla-daemon@bugzilla.ximian.com bugzilla-daemon@bugzilla.ximian.com
Wed, 24 Mar 2004 17:38:23 -0500 (EST)

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 reali@acm.org.


--- shadow/56013	2004-03-24 17:38:23.000000000 -0500
+++ shadow/56013.tmp.954	2004-03-24 17:38:23.000000000 -0500
@@ -0,0 +1,33 @@
+Bug#: 56013
+Product: Mono: Compilers
+Version: unspecified
+OS: SuSE 8.1
+OS Details: 
+Status: NEW   
+Priority: Blocker
+Component: C#
+AssignedTo: mono-bugs@ximian.com                            
+ReportedBy: reali@acm.org               
+QAContact: mono-bugs@ximian.com
+TargetMilestone: ---
+Summary: Compiler ignores property accessor names in the metadata
+The mcs compiler has hard-coded property accessors names get_PropertyName 
+and set_PropertyName, even if the metadata contains a different name.
+The appropriate accessor name must be found in the metadata, not 
+constructed. After this modification I'm not sure whether the method 
+GetAccessor (in ecore.cs) is used at all, because the MethodInfo will be 
+null if the accessor is not visible....
+Sadly, I don't know the compiler enough to tell, but please check!
+Anyway, the patch is attached.
+This change is badly needed by project IIOP.NET (http://iiop-
+net.sourceforge.net/), which generates *.dll files from *.idl files and 
+uses an hidden property when mapping the CORBA unions.