[Mono-bugs] GetCustomAttributes(bool) infinite loop

Tum tum@veridicus.com
Thu, 29 Aug 2002 08:54:15 +1200


Hi everyone,

There seems to be a bug where MemberInfo.GetCustomAttributes(true) goes
into an infinite loop.

Here's the code.


using System;

class TestMono
{
      public int x = 100;

	public static void Main()
	{
		Type type = typeof(TestMono);

		type.GetCustomAttributes(true);
	}
}

When run with mono or mint, the program will never stop.  If you call
GetCustomAttributes with the inherit parameter set to false it works
fine.

Can anyone else reproduce this?  I'm running on a fresh cygwin build.


Cheers,

^Tum