[Mono-bugs] [Bug 61561][Nor] Changed - MCS fails with unhandled exception (not a syntax error) while compiling my program
bugzilla-daemon@bugzilla.ximian.com
bugzilla-daemon@bugzilla.ximian.com
Mon, 19 Jul 2004 13:06:51 -0400 (EDT)
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 msolnit@istante.com.
http://bugzilla.ximian.com/show_bug.cgi?id=61561
--- shadow/61561 2004-07-19 13:06:04.000000000 -0400
+++ shadow/61561.tmp.30945 2004-07-19 13:06:51.000000000 -0400
@@ -1,12 +1,12 @@
Bug#: 61561
Product: Mono: Compilers
Version: unspecified
OS: unknown
OS Details: Windows XP SP1, .NET 1.1, Mono 1.0
-Status: NEEDINFO
+Status: REOPENED
Resolution:
Severity: Unknown
Priority: Normal
Component: C#
AssignedTo: mono-bugs@ximian.com
ReportedBy: msolnit@istante.com
@@ -130,6 +130,40 @@
------- Additional Comments From msolnit@istante.com 2004-07-19 13:06 -------
Created an attachment (id=8632)
ZIP file containing two DLL's needed to reference for this test example
+
+------- Additional Comments From msolnit@istante.com 2004-07-19 13:06 -------
+New code sample:
+
+using System;
+using System.Collections;
+
+namespace Foo
+{
+ public sealed class NetToJavaFactory
+ {
+ public static java.util.Hashtable CopyHashtable(Hashtable
+oPropertiesFramework)
+ {
+ Hashtable oLocalProperties = new Hashtable();
+ java.util.Hashtable oRemoteHashTable = new java.util.Hashtable
+();
+ foreach (DictionaryEntry oEntry in oPropertiesFramework)
+ {
+ oLocalProperties.Add(oEntry.Key, oEntry.Value);
+ }
+ oRemoteHashTable.NativeImpl = oLocalProperties;
+ return oRemoteHashTable;
+ }
+ }
+}
+
+
+Command line:
+mcs -reference:Hastable.dll NetToJavaFactory.cs
+
+
+You need the files Hashtable.dll (attached) and JNBShare.dll
+(attached)