[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Pnet-developers] [bugs #10202] Calling GetTypeCode on enums causes stac
From: |
Marcus Urban |
Subject: |
[Pnet-developers] [bugs #10202] Calling GetTypeCode on enums causes stack overflow |
User-agent: |
Mozilla/5.0 (compatible; Konqueror/3.3; Linux 2.4.21-144-athlon; X11; i686; en_US) (KHTML, like Gecko) |
This mail is an automated notification from the bugs tracker
of the project: DotGNU Portable.NET.
/**************************************************************************/
[bugs #10202] Latest Modifications:
Changes by:
Marcus Urban <address@hidden>
'Date:
Sun 08/29/2004 at 11:03 (GMT)
------------------ Additional Follow-up Comments ----------------------------
Oops. It should print Int32. I edited the test case after I ran it but before I
attached it.
/**************************************************************************/
[bugs #10202] Full Item Snapshot:
URL: <http://savannah.gnu.org/bugs/?func=detailitem&item_id=10202>
Project: DotGNU Portable.NET
Submitted by: Marcus Urban
On: Sun 08/29/2004 at 04:18
Category: None
Severity: 5 - Average
Item Group: None
Resolution: None
Privacy: Public
Assigned to: None
Status: Open
Summary: Calling GetTypeCode on enums causes stack overflow
Original Submission: With the declaration
enum Fruit { Apple, Orange };
calling Type.GetTypeCode(typeof(Fruit)) should return "Byte", but under Pnet,
the result is a stack overflow.
Uncaught exception: System.StackOverflowException: The requested operation
caused a stack overflow
at System.Reflection.ClrType.IsSubclassOf(Type)
at System.Type.get_IsEnum() in ./System/Type.cs:232
at System.Type.GetTypeCode(Type) in ./System/Type.cs:1085
at System.Type.GetTypeCode(Type) in ./System/Type.cs:1087
at System.Type.GetTypeCode(Type) in ./System/Type.cs:1087
at System.Type.GetTypeCode(Type) in ./System/Type.cs:1087
at System.Type.GetTypeCode(Type) in ./System/Type.cs:1087
at System.Type.GetTypeCode(Type) in ./System/Type.cs:1087
at System.Type.GetTypeCode(Type) in ./System/Type.cs:1087
at System.Type.GetTypeCode(Type) in ./System/Type.cs:1087
at System.Type.GetTypeCode(Type) in ./System/Type.cs:1087
at System.Type.GetTypeCode(Type) in ./System/Type.cs:1087
at System.Type.GetTypeCode(Type) in ./System/Type.cs:1087
at System.Type.GetTypeCode(Type) in ./System/Type.cs:1087
at System.Type.GetTypeCode(Type) in ./System/Type.cs:1087
at System.Type.GetTypeCode(Type) in ./System/Type.cs:1087
at System.Type.GetTypeCode(Type) in ./System/Type.cs:1087
at System.Type.GetTypeCode(Type) in ./System/Type.cs:1087
at System.Type.GetTypeCode(Type) in ./System/Type.cs:1087
at System.Type.GetTypeCode(Type) in ./System/Type.cs:1087
at System.Type.GetTypeCode(Type) in ./System/Type.cs:1087
at System.Type.GetTypeCode(Type) in ./System/Type.cs:1087
at System.Type.GetTypeCode(Type) in ./System/Type.cs:1087
at System.Type.GetTypeCode(Type) in ./System/Type.cs:1087
at System.Type.GetTypeCode(Type) in ./System/Type.cs:1087
at System.Type.GetTypeCode(Type) in ./System/Type.cs:1087
at System.Type.GetTypeCode(Type) in ./System/Type.cs:1087
at System.Type.GetTypeCode(Type) in ./System/Type.cs:1087
at System.Type.GetTypeCode(Type) in ./System/Type.cs:1087
at System.Type.GetTypeCode(Type) in ./System/Type.cs:1087
at System.Type.GetTypeCode(Type) in ./System/Type.cs:1087
at System.Type.GetTypeCode(Type) in ./System/Type.cs:1087
at System.Type.GetTypeCode(Type) in ./System/Type.cs:1087
at System.Type.GetTypeCode(Type) in ./System/Type.cs:1087
at System.Type.GetTypeCode(Type) in ./System/Type.cs:1087
at System.Type.GetTypeCode(Type) in ./System/Type.cs:1087
at System.Type.GetTypeCode(Type) in ./System/Type.cs:1087
at System.Type.GetTypeCode(Type) in ./System/Type.cs:1087
at System.Type.GetTypeCode(Type) in ./System/Type.cs:1087
at System.Type.GetTypeCode(Type) in ./System/Type.cs:1087
at System.Type.GetTypeCode(Type) in ./System/Type.cs:1087
at System.Type.GetTypeCode(Type) in ./System/Type.cs:1087
at System.Type.GetTypeCode(Type) in ./System/Type.cs:1087
at System.Type.GetTypeCode(Type) in ./System/Type.cs:1087
at System.Type.GetTypeCode(Type) in ./System/Type.cs:1087
at System.Type.GetTypeCode(Type) in ./System/Type.cs:1087
at System.Type.GetTypeCode(Type) in ./System/Type.cs:1087
at System.Type.GetTypeCode(Type) in ./System/Type.cs:1087
at System.Type.GetTypeCode(Type) in ./System/Type.cs:1087
at System.Type.GetTypeCode(Type) in ./System/Type.cs:1087
at System.Type.GetTypeCode(Type) in ./System/Type.cs:1087
at System.Type.GetTypeCode(Type) in ./System/Type.cs:1087
at System.Type.GetTypeCode(Type) in ./System/Type.cs:1087
at System.Type.GetTypeCode(Type) in ./System/Type.cs:1087
at System.Type.GetTypeCode(Type) in ./System/Type.cs:1087
at System.Type.GetTypeCode(Type) in ./System/Type.cs:1087
at System.Type.GetTypeCode(Type) in ./System/Type.cs:1087
at System.Type.GetTypeCode(Type) in ./System/Type.cs:1087
at System.Type.GetTypeCode(Type) in ./System/Type.cs:1087
at System.Type.GetTypeCode(Type) in ./System/Type.cs:1087
at System.Type.GetTypeCode(Type) in ./System/Type.cs:1087
at System.Type.GetTypeCode(Type) in ./System/Type.cs:1087
at System.Type.GetTypeCode(Type) in ./System/Type.cs:1087
at System.Type.GetTypeCode(Type) in ./System/Type.cs:1087
at System.Type.GetTypeCode(Type) in ./System/Type.cs:1087
at System.Type.GetTypeCode(Type) in ./System/Type.cs:1087
at System.Type.GetTypeCode(Type) in ./System/Type.cs:1087
at System.Type.GetTypeCode(Type) in ./System/Type.cs:1087
at System.Type.GetTypeCode(Type) in ./System/Type.cs:1087
at System.Type.GetTypeCode(Type) in ./System/Type.cs:1087
at System.Type.GetTypeCode(Type) in ./System/Type.cs:1087
at System.Type.GetTypeCode(Type) in ./System/Type.cs:1087
at System.Type.GetTypeCode(Type) in ./System/Type.cs:1087
at System.Type.GetTypeCode(Type) in ./System/Type.cs:1087
at System.Type.GetTypeCode(Type) in ./System/Type.cs:1087
at System.Type.GetTypeCode(Type) in ./System/Type.cs:1087
at System.Type.GetTypeCode(Type) in ./System/Type.cs:1087
at System.Type.GetTypeCode(Type) in ./System/Type.cs:1087
at System.Type.GetTypeCode(Type) in ./System/Type.cs:1087
at System.Type.GetTypeCode(Type) in ./System/Type.cs:1087
at System.Type.GetTypeCode(Type) in ./System/Type.cs:1087
at System.Type.GetTypeCode(Type) in ./System/Type.cs:1087
at System.Type.GetTypeCode(Type) in ./System/Type.cs:1087
at System.Type.GetTypeCode(Type) in ./System/Type.cs:1087
at System.Type.GetTypeCode(Type) in ./System/Type.cs:1087
at System.Type.GetTypeCode(Type) in ./System/Type.cs:1087
at System.Type.GetTypeCode(Type) in ./System/Type.cs:1087
at System.Type.GetTypeCode(Type) in ./System/Type.cs:1087
at System.Type.GetTypeCode(Type) in ./System/Type.cs:1087
at System.Type.GetTypeCode(Type) in ./System/Type.cs:1087
at System.Type.GetTypeCode(Type) in ./System/Type.cs:1087
at System.Type.GetTypeCode(Type) in ./System/Type.cs:1087
at System.Type.GetTypeCode(Type) in ./System/Type.cs:1087
at System.Type.GetTypeCode(Type) in ./System/Type.cs:1087
at System.Type.GetTypeCode(Type) in ./System/Type.cs:1087
at System.Type.GetTypeCode(Type) in ./System/Type.cs:1087
at System.Type.GetTypeCode(Type) in ./System/Type.cs:1087
at System.Type.GetTypeCode(Type) in ./System/Type.cs:1087
at System.Type.GetTypeCode(Type) in ./System/Type.cs:1087
at System.Type.GetTypeCode(Type) in ./System/Type.cs:1087
at System.Type.GetTypeCode(Type) in ./System/Type.cs:1087
at System.Type.GetTypeCode(Type) in ./System/Type.cs:1087
at System.Type.GetTypeCode(Type) in ./System/Type.cs:1087
at System.Type.GetTypeCode(Type) in ./System/Type.cs:1087
at System.Type.GetTypeCode(Type) in ./System/Type.cs:1087
at System.Type.GetTypeCode(Type) in ./System/Type.cs:1087
at System.Type.GetTypeCode(Type) in ./System/Type.cs:1087
at System.Type.GetTypeCode(Type) in ./System/Type.cs:1087
at System.Type.GetTypeCode(Type) in ./System/Type.cs:1087
at System.Type.GetTypeCode(Type) in ./System/Type.cs:1087
at System.Type.GetTypeCode(Type) in ./System/Type.cs:1087
at System.Type.GetTypeCode(Type) in ./System/Type.cs:1087
at System.Type.GetTypeCode(Type) in ./System/Type.cs:1087
at System.Type.GetTypeCode(Type) in ./System/Type.cs:1087
at System.Type.GetTypeCode(Type) in ./System/Type.cs:1087
at System.Type.GetTypeCode(Type) in ./System/Type.cs:1087
at System.Type.GetTypeCode(Type) in ./System/Type.cs:1087
at System.Type.GetTypeCode(Type) in ./System/Type.cs:1087
at System.Type.GetTypeCode(Type) in ./System/Type.cs:1087
at System.Type.GetTypeCode(Type) in ./System/Type.cs:1087
at System.Type.GetTypeCode(Type) in ./System/Type.cs:1087
at System.Type.GetTypeCode(Type) in ./System/Type.cs:1087
at System.Type.GetTypeCode(Type) in ./System/Type.cs:1087
at System.Type.GetTypeCode(Type) in ./System/Type.cs:1087
at System.Type.GetTypeCode(Type) in ./System/Type.cs:1087
at System.Type.GetTypeCode(Type) in ./System/Type.cs:1087
at System.Type.GetTypeCode(Type) in ./System/Type.cs:1087
at System.Type.GetTypeCode(Type) in ./System/Type.cs:1087
at System.Type.GetTypeCode(Type) in ./System/Type.cs:1087
at System.Type.GetTypeCode(Type) in ./System/Type.cs:1087
at System.Type.GetTypeCode(Type) in ./System/Type.cs:1087
at System.Type.GetTypeCode(Type) in ./System/Type.cs:1087
at System.Type.GetTypeCode(Type) in ./System/Type.cs:1087
at System.Type.GetTypeCode(Type) in ./System/Type.cs:1087
at System.Type.GetTypeCode(Type) in ./System/Type.cs:1087
at System.Type.GetTypeCode(Type) in ./System/Type.cs:1087
at System.Type.GetTypeCode(Type) in ./System/Type.cs:1087
at System.Type.GetTypeCode(Type) in ./System/Type.cs:1087
at System.Type.GetTypeCode(Type) in ./System/Type.cs:1087
at System.Type.GetTypeCode(Type) in ./System/Type.cs:1087
at System.Type.GetTypeCode(Type) in ./System/Type.cs:1087
at System.Type.GetTypeCode(Type) in ./System/Type.cs:1087
at System.Type.GetTypeCode(Type) in ./System/Type.cs:1087
at System.Type.GetTypeCode(Type) in ./System/Type.cs:1087
at System.Type.GetTypeCode(Type) in ./System/Type.cs:1087
at System.Type.GetTypeCode(Type) in ./System/Type.cs:1087
at System.Type.GetTypeCode(Type) in ./System/Type.cs:1087
at System.Type.GetTypeCode(Type) in ./System/Type.cs:1087
at System.Type.GetTypeCode(Type) in ./System/Type.cs:1087
at System.Type.GetTypeCode(Type) in ./System/Type.cs:1087
at System.Type.GetTypeCode(Type) in ./System/Type.cs:1087
at System.Type.GetTypeCode(Type) in ./System/Type.cs:1087
at System.Type.GetTypeCode(Type) in ./System/Type.cs:1087
at System.Type.GetTypeCode(Type) in ./System/Type.cs:1087
at System.Type.GetTypeCode(Type) in ./System/Type.cs:1087
at System.Type.GetTypeCode(Type) in ./System/Type.cs:1087
at System.Type.GetTypeCode(Type) in ./System/Type.cs:1087
at System.Type.GetTypeCode(Type) in ./System/Type.cs:1087
at System.Type.GetTypeCode(Type) in ./System/Type.cs:1087
at System.Type.GetTypeCode(Type) in ./System/Type.cs:1087
at System.Type.GetTypeCode(Type) in ./System/Type.cs:1087
at System.Type.GetTypeCode(Type) in ./System/Type.cs:1087
at System.Type.GetTypeCode(Type) in ./System/Type.cs:1087
at System.Type.GetTypeCode(Type) in ./System/Type.cs:1087
at System.Type.GetTypeCode(Type) in ./System/Type.cs:1087
at System.Type.GetTypeCode(Type) in ./System/Type.cs:1087
at System.Type.GetTypeCode(Type) in ./System/Type.cs:1087
at System.Type.GetTypeCode(Type) in ./System/Type.cs:1087
at System.Type.GetTypeCode(Type) in ./System/Type.cs:1087
at System.Type.GetTypeCode(Type) in ./System/Type.cs:1087
at System.Type.GetTypeCode(Type) in ./System/Type.cs:1087
at System.Type.GetTypeCode(Type) in ./System/Type.cs:1087
at System.Type.GetTypeCode(Type) in ./System/Type.cs:1087
at System.Type.GetTypeCode(Type) in ./System/Type.cs:1087
at System.Type.GetTypeCode(Type) in ./System/Type.cs:1087
at System.Type.GetTypeCode(Type) in ./System/Type.cs:1087
at System.Type.GetTypeCode(Type) in ./System/Type.cs:1087
at System.Type.GetTypeCode(Type) in ./System/Type.cs:1087
at System.Type.GetTypeCode(Type) in ./System/Type.cs:1087
at System.Type.GetTypeCode(Type) in ./System/Type.cs:1087
at System.Type.GetTypeCode(Type) in ./System/Type.cs:1087
at System.Type.GetTypeCode(Type) in ./System/Type.cs:1087
at System.Type.GetTypeCode(Type) in ./System/Type.cs:1087
at System.Type.GetTypeCode(Type) in ./System/Type.cs:1087
at System.Type.GetTypeCode(Type) in ./System/Type.cs:1087
at System.Type.GetTypeCode(Type) in ./System/Type.cs:1087
at System.Type.GetTypeCode(Type) in ./System/Type.cs:1087
at System.Type.GetTypeCode(Type) in ./System/Type.cs:1087
at System.Type.GetTypeCode(Type) in ./System/Type.cs:1087
at System.Type.GetTypeCode(Type) in ./System/Type.cs:1087
at System.Type.GetTypeCode(Type) in ./System/Type.cs:1087
at System.Type.GetTypeCode(Type) in ./System/Type.cs:1087
at System.Type.GetTypeCode(Type) in ./System/Type.cs:1087
at System.Type.GetTypeCode(Type) in ./System/Type.cs:1087
at System.Type.GetTypeCode(Type) in ./System/Type.cs:1087
at System.Type.GetTypeCode(Type) in ./System/Type.cs:1087
at System.Type.GetTypeCode(Type) in ./System/Type.cs:1087
at System.Type.GetTypeCode(Type) in ./System/Type.cs:1087
at System.Type.GetTypeCode(Type) in ./System/Type.cs:1087
at System.Type.GetTypeCode(Type) in ./System/Type.cs:1087
at System.Type.GetTypeCode(Type) in ./System/Type.cs:1087
at System.Type.GetTypeCode(Type) in ./System/Type.cs:1087
at System.Type.GetTypeCode(Type) in ./System/Type.cs:1087
at System.Type.GetTypeCode(Type) in ./System/Type.cs:1087
at System.Type.GetTypeCode(Type) in ./System/Type.cs:1087
at System.Type.GetTypeCode(Type) in ./System/Type.cs:1087
at System.Type.GetTypeCode(Type) in ./System/Type.cs:1087
at System.Type.GetTypeCode(Type) in ./System/Type.cs:1087
at System.Type.GetTypeCode(Type) in ./System/Type.cs:1087
at System.Type.GetTypeCode(Type) in ./System/Type.cs:1087
at System.Type.GetTypeCode(Type) in ./System/Type.cs:1087
at System.Type.GetTypeCode(Type) in ./System/Type.cs:1087
at System.Type.GetTypeCode(Type) in ./System/Type.cs:1087
at System.Type.GetTypeCode(Type) in ./System/Type.cs:1087
at System.Type.GetTypeCode(Type) in ./System/Type.cs:1087
at System.Type.GetTypeCode(Type) in ./System/Type.cs:1087
at System.Type.GetTypeCode(Type) in ./System/Type.cs:1087
at System.Type.GetTypeCode(Type) in ./System/Type.cs:1087
at System.Type.GetTypeCode(Type) in ./System/Type.cs:1087
at System.Type.GetTypeCode(Type) in ./System/Type.cs:1087
at System.Type.GetTypeCode(Type) in ./System/Type.cs:1087
at System.Type.GetTypeCode(Type) in ./System/Type.cs:1087
at System.Type.GetTypeCode(Type) in ./System/Type.cs:1087
at System.Type.GetTypeCode(Type) in ./System/Type.cs:1087
at System.Type.GetTypeCode(Type) in ./System/Type.cs:1087
at System.Type.GetTypeCode(Type) in ./System/Type.cs:1087
at System.Type.GetTypeCode(Type) in ./System/Type.cs:1087
at System.Type.GetTypeCode(Type) in ./System/Type.cs:1087
at System.Type.GetTypeCode(Type) in ./System/Type.cs:1087
at System.Type.GetTypeCode(Type) in ./System/Type.cs:1087
at System.Type.GetTypeCode(Type) in ./System/Type.cs:1087
at System.Type.GetTypeCode(Type) in ./System/Type.cs:1087
at System.Type.GetTypeCode(Type) in ./System/Type.cs:1087
at System.Type.GetTypeCode(Type) in ./System/Type.cs:1087
at System.Type.GetTypeCode(Type) in ./System/Type.cs:1087
at System.Type.GetTypeCode(Type) in ./System/Type.cs:1087
at System.Type.GetTypeCode(Type) in ./System/Type.cs:1087
at System.Type.GetTypeCode(Type) in ./System/Type.cs:1087
at System.Type.GetTypeCode(Type) in ./System/Type.cs:1087
at System.Type.GetTypeCode(Type) in ./System/Type.cs:1087
at System.Type.GetTypeCode(Type) in ./System/Type.cs:1087
at System.Type.GetTypeCode(Type) in ./System/Type.cs:1087
at System.Type.GetTypeCode(Type) in ./System/Type.cs:1087
at System.Type.GetTypeCode(Type) in ./System/Type.cs:1087
at System.Type.GetTypeCode(Type) in ./System/Type.cs:1087
at System.Type.GetTypeCode(Type) in ./System/Type.cs:1087
at System.Type.GetTypeCode(Type) in ./System/Type.cs:1087
at System.Type.GetTypeCode(Type) in ./System/Type.cs:1087
at System.Type.GetTypeCode(Type) in ./System/Type.cs:1087
at System.Type.GetTypeCode(Type) in ./System/Type.cs:1087
at System.Type.GetTypeCode(Type) in ./System/Type.cs:1087
at System.Type.GetTypeCode(Type) in ./System/Type.cs:1087
at System.Type.GetTypeCode(Type) in ./System/Type.cs:1087
at System.Type.GetTypeCode(Type) in ./System/Type.cs:1087
at System.Type.GetTypeCode(Type) in ./System/Type.cs:1087
at System.Type.GetTypeCode(Type) in ./System/Type.cs:1087
Follow-up Comments
------------------
-------------------------------------------------------
Date: Sun 08/29/2004 at 11:03 By: Marcus Urban <mathpup>
Oops. It should print Int32. I edited the test case after I ran it but before I
attached it.
-------------------------------------------------------
Date: Sun 08/29/2004 at 09:23 By: 0 <None>
The test case provided should not return TypeCode.Byte but rather
TypeCode.Int32.
(according to MS .NET)
File Attachments
-------------------
-------------------------------------------------------
Date: Sun 08/29/2004 at 04:18 Name: gettypecode.cs Size: 165B By: mathpup
Test case
http://savannah.gnu.org/bugs/download.php?item_id=10202&item_file_id=1622
For detailed info, follow this link:
<http://savannah.gnu.org/bugs/?func=detailitem&item_id=10202>
_______________________________________________
Message sent via/by Savannah
http://savannah.gnu.org/