[Mono-list] Hashtable problems

Serge serge@wildwestsoftware.com
Tue, 20 Nov 2001 21:23:25 +0200


The actual problem is not with the hashtable code, this is loader error due
to conflicting System.Enum implementation.
To fix this mcs/class/corlib/System/Enum.cs must be excluded from the test
library build.
Add something like <excludes name="System/Enum.cs"/> to targets that compile
corlib_res.dll in .build file in the corlib dir.
This will affect all methods that take enum as parameter.
I don't know whether it's possible to fix this by making enum a valuetype
(currently it's an abstract class), it seems compiler refuses to compile it
as a struct.

Cheers,
Sergey



----- Original Message -----
From: "Nick Drochak" <ndrochak@gol.com>
To: <mono-list@ximian.com>
Sent: Tuesday, November 20, 2001 6:40 PM
Subject: [Mono-list] Hashtable problems


> All,
>
> I'm back on the testing cleanup bandwagon again, this time with
> Hashtable.
>
> I thought I would work my way down the tests that had errors and "just
> go ahead and fix them." Ha. The very first one has stumped me for the
> past week.
>
> Hashtable has an embedded(?) class that provides the enumerator. It is
> simply called "Enumerator."  Well, as you can see for yourself if you
> get the latest from CVS and 'make test' it fails in the constructor for
> Enumerator.  I had to play around a bit to find out that it was actually
> failing because of a "missing field" called xstr.  Of course, there is a
> private field called xstr.  So, I'm not sure what the problem is.
>
> I even took out that field and the one place it was used to see what
> would happen.  When I do that, I get the same kind of error, but now
> it's complaining about the field "mode."
>
> Can anyone please help me?
>
> Thanks,
> Nick D.
>
>
>
> _______________________________________________
> Mono-list maillist  -  Mono-list@ximian.com
> http://lists.ximian.com/mailman/listinfo/mono-list
>