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: Gopal.V
Subject: [Pnet-developers] [bugs #10202] Calling GetTypeCode on enums causes stack overflow
User-agent: Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.6) Gecko/20040206 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: 
                Gopal.V <address@hidden>
'Date: 
                Tue 08/31/2004 at 06:41 (Asia/Calcutta)

            What     | Removed                   | Added
---------------------------------------------------------------------------
          Resolution | None                      | Fixed
              Status | Open                      | Closed


------------------ Additional Follow-up Comments ----------------------------
Patch #3323 committed to CVS on 31st Aug 2004






/**************************************************************************/
[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:  Fixed
Privacy:  Public
Assigned to:  None
Status:  Closed


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: Tue 08/31/2004 at 06:41       By: Gopal.V <t3rmin4t0r>
Patch #3323 committed to CVS on 31st Aug 2004

-------------------------------------------------------
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&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]