[Mono-bugs] [Bug 75792][Maj] New - interface cctor when accessing a field

bugzilla-daemon at bugzilla.ximian.com bugzilla-daemon at bugzilla.ximian.com
Fri Aug 12 05:32:44 EDT 2005


Mono doesn't run the interface's cctor when accessing a field
In-Reply-To: <bug-75792 at chernobyl.ximian.com>
X-Bugzilla-Product: Mono: Runtime
X-Bugzilla-Component: JIT
X-Bugzilla-Status: NEW
X-Bugzilla-Priority: Major
X-Bugzilla-Severity: 
X-Bugzilla-Target-Milestone: ---

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 tjacyno at hotmail.com.

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

--- shadow/75792	2005-08-12 05:32:44.000000000 -0400
+++ shadow/75792.tmp.4852	2005-08-12 05:32:44.000000000 -0400
@@ -0,0 +1,52 @@
+Bug#: 75792
+Product: Mono: Runtime
+Version: 1.1
+OS: SUSE 9.2
+OS Details: 
+Status: NEW   
+Resolution: 
+Severity: 
+Priority: Major
+Component: JIT
+AssignedTo: mono-bugs at ximian.com                            
+ReportedBy: tjacyno at hotmail.com               
+QAContact: mono-bugs at ximian.com
+TargetMilestone: ---
+URL: 
+Cc: 
+Summary: interface cctor when accessing a field
+Mono doesn't run the interface's cctor when accessing a field
+
+Description of Problem:
+
+Mono doesn't run the interface's cctor when accessing a field. The
+Microsoft .NET framework does.
+
+This bug was originally filed with IKVM (http://www.ikvm.net):
+http://sourceforge.net/tracker/index.php?func=detail&aid=1255860&group_id=69637&atid=525264.
+
+Steps to reproduce the problem:
+1. Create the three Java class files mentioned in the IKVM bug report
+(Test.java TestConstClass.java TestConstInterface.java).
+2. Compile the classes using a Java compiler.
+3. Generate a .NET application using IKVM: mono ikvmc.exe Test.class
+TestConstClass.class TestConstInterface.class
+4. Run the application: mono Test.exe
+
+Actual Results:
+
+test1 class
+test2 class
+test1 interface
+null
+
+Expected Results:
+
+test1 class
+test2 class
+test1 interface
+test2 interface
+
+How often does this happen? 
+
+Always.


More information about the mono-bugs mailing list