dotgnu-pnet
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Pnet-developers] [bugs #10202] Calling GetTypeCode on enums causes stac


From: anonymous
Subject: [Pnet-developers] [bugs #10202] Calling GetTypeCode on enums causes stack overflow
User-agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.7) Gecko/20040803 Firefox/0.8

This mail is an automated notification from the bugs tracker
 of the project: DotGNU Portable.NET.

/**************************************************************************/
[bugs #10202] Latest Modifications:

Changes by: Anonymous user
Date:  
                Sun 08/29/2004 at 05:23

------------------ Additional Follow-up Comments ----------------------------
The test case provided should not return TypeCode.Byte but rather 
TypeCode.Int32.
(according to MS .NET)






/**************************************************************************/
[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 00: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 05: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 00:18  Name: gettypecode.cs  Size: 165B   By: mathpup
Test case
http://savannah.gnu.org/bugs/download.php?item_id=10202&amp;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/





reply via email to

[Prev in Thread] Current Thread [Next in Thread]