Bug 323183 (MONO80494) - [monodis] Primitive types for declarative security attribute's property not supported
Summary: [monodis] Primitive types for declarative security attribute's property not s...
Status: RESOLVED DUPLICATE of bug 324938
Alias: MONO80494
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: 2007-01-10 23:32 UTC by Jain Ankit
Modified: 2007-11-06 13:24 UTC (History)
0 users

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


Attachments
declsec.cs (206 bytes, text/plain)
2007-01-10 23:33 UTC, Thomas Wiest
Details
declsec.exe : compiled with csc 2.0 (3.50 KB, application/octet-stream)
2007-01-10 23:35 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 20:22:42 UTC


---- Reported by jankit@novell.com 2007-01-10 16:32:52 MST ----

Please fill in this template when reporting a bug, unless you know what you
are doing.
Description of Problem:

monodis is not able to handle primitive types for properties in a
declarative security attribute.

Eg. bool property (SkipVerification) in this attribute

[assembly:System.Security.Permissions.SecurityPermissionAttribute
(System.Security.Permissions.SecurityAction.RequestMinimum,
SkipVerification=true)]

monodis emits this warning : 

** (process:6064): WARNING **: TODO type 2 - please fill a bug report on this!

** (process:6064): WARNING **: TODO type 2 - please fill a bug report on this!

monodis shows this for the permission set:

.permissionset reqmin =
{[mscorlib]System.Security.Permissions.SecurityPermissionAttribute =
{property  'SkipVerification' = (true)}}

And ildasm shows:

 .permissionset reqmin = 
{[mscorlib]System.Security.Permissions.SecurityPermissionAttribute =
{property bool 'SkipVerification' = bool(true)}}


Steps to reproduce the problem:
1. Compile attached test case
2. monodis test.exe

Actual Results:

.permissionset reqmin =
{[mscorlib]System.Security.Permissions.SecurityPermissionAttribute =
{property  'SkipVerification' = (true)}}
with warnings

Expected Results:
 .permissionset reqmin = 
{[mscorlib]System.Security.Permissions.SecurityPermissionAttribute =
{property bool 'SkipVerification' = bool(true)}}

Additional Information:

The warning is from mono/dis/declsec.c:declsec_20_write_type .
mcs/ilasm/tests/test-perm_pass-3.il is another test case.



---- Additional Comments From jankit@novell.com 2007-01-10 16:33:37 MST ----

Created an attachment (id=171260)
declsec.cs




---- Additional Comments From jankit@novell.com 2007-01-10 16:35:09 MST ----

Created an attachment (id=171261)
declsec.exe : compiled with csc 2.0


Imported an attachment (id=171260)
Imported an attachment (id=171261)

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

Comment 1 Jean-Baptiste Evain 2007-11-06 13:24:39 UTC

*** This bug has been marked as a duplicate of bug 324938 ***