bugDotGNU Portable.NET - Bugs: bug #2556, Constants to ObjectRefs for...

 
 

You are not allowed to post comments on this tracker with your current authentication level.

bug #2556: Constants to ObjectRefs for Attribute Arguments

Submitted by:  Gopal.V <t3rmin4t0r>
Submitted on:  Fri 14 Feb 2003 07:05:08 PM UTC  
 
Category: NoneSeverity: 3 - Normal
Item Group: NoneStatus: Fixed
Privacy: PublicAssigned to: None
Open/Closed: Closed

Fri 02 May 2003 04:58:05 PM UTC, comment #1:

I think I fixed this today ... but not 100% sure if this the best way to do this . Also enum serialization is suspect (where do I find documentation of this ?)

Gopal.V <t3rmin4t0r>
Project Administrator
Fri 14 Feb 2003 07:05:08 PM UTC, original submission:

What it seems to do is convert the enum into a
type-0x55 serialization value (IL_META_SERIALTYPE_ENUM), which we don't
currently handle properly.

If I'm understanding it correctly, type-0x55 represents an enum constant that
is converted into a boxed object at runtime, rather than a simple integer
enum value.

There are two things to be fixed: (a) recognise that it is OK to coerce a
constant to a reference type (ILTypeIsReference) in an attribute argument, as
long as regular type coercion says its OK; (b) fix the serialization code (in
multiple places) to handle reference types appropriately.

Gopal.V <t3rmin4t0r>
Project Administrator

 

Attached Files
file #298:  attr-enum.cs added by t3rmin4t0r (219B - application/octet-stream - test case)

 

Depends on the following items: None found

Items that depend on this one: None found

 

CC list is empty

 

Do you think this task is very important?
If so, you can click here to add your encouragement to it.
This task has 0 encouragements so far.

Only logged-in users can vote.

 

Please enter the title of George Orwell's famous dystopian book (it's a date):

 

 

Follow 2 latest changes.

Date Changed By Updated Field Previous Value => Replaced By
Fri 02 May 2003 04:58:05 PM UTCt3rmin4t0rStatusNone=>(Error - Not Found)
  Open/ClosedOpen=>(Error - Not Found)

Back to the top


Powered by Savane 3.1-cleanup1