Bug 317740 (MONO74657) - [monodis] Does not show default values for non-literal fields
Summary: [monodis] Does not show default values for non-literal fields
Status: RESOLVED FIXED
Alias: MONO74657
Product: Mono: Tools
Classification: Mono
Component: tools (show other bugs)
Version: unspecified
Hardware: Other Other
: P3 - Medium : Normal
Target Milestone: ---
Assignee: Mono Bugs
QA Contact: Mono Bugs
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-04-19 17:10 UTC by Jain Ankit
Modified: 2007-09-15 21:24 UTC (History)
0 users

See Also:
Found By: ---
Services Priority:
Business Priority:
Blocker: ---
Marketing QA Status: ---
IT Deployment: ---


Attachments
field-defval.patch (548 bytes, patch)
2005-04-19 17:11 UTC, Thomas Wiest
Details | Diff
f.il : testcase (1.06 KB, text/plain)
2005-04-19 17:12 UTC, Thomas Wiest
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Thomas Wiest 2007-09-15 19:13:53 UTC


---- Reported by radical@gmail.com 2005-04-19 10:10:42 MST ----

A field declared as .. 

 .field public int32 i_field = int32(49)

does not have the 'literal' flag set, but has the 'has_default' flag and
has an entry in the constant table. 
monodis checks for literal flag to print the default value.

Attached patch fixes that. 
Also, attached is a test case.



---- Additional Comments From radical@gmail.com 2005-04-19 10:11:43 MST ----

Created an attachment (id=167775)
field-defval.patch




---- Additional Comments From radical@gmail.com 2005-04-19 10:12:26 MST ----

Created an attachment (id=167776)
f.il : testcase




---- Additional Comments From radical@gmail.com 2005-04-20 12:05:38 MST ----

Fixed in SVN.

Imported an attachment (id=167775)
Imported an attachment (id=167776)

Unknown operating system unknown. Setting to default OS "Other".