[Mono-bugs] [Bug 480729] New: Cecil incorrectly emits assembly level attributes

bugzilla_noreply at novell.com bugzilla_noreply at novell.com
Sat Feb 28 06:01:27 EST 2009


           Summary: Cecil incorrectly emits assembly level attributes
    Classification: Mono
           Product: Mono: Class Libraries
           Version: unspecified
          Platform: Other
        OS/Version: Other
            Status: NEW
          Severity: Major
          Priority: P5 - None
         Component: Cecil
        AssignedTo: jbevain at novell.com
        ReportedBy: msafar at novell.com
         QAContact: mono-bugs at lists.ximian.com
          Found By: ---

Assembly level attributes like

[assembly: SecurityPermission (SecurityAction.RequestMinimum, Execution=true)]
[assembly: SecurityPermission (SecurityAction.RequestOptional,
[assembly: SecurityPermission (SecurityAction.RequestRefuse,

are not correctly emitted. When inspecting output assembly monodis/ildasm don't
show them and they indeed does not work. But when inspecting the output
assembly I can see the XML blob is there, probably just some link is missing.

When debugging Cecil I found that MetadataToken for these attributes is always
0. Could this be the problem?

Relevant code is

DeclSecurityRow dsRow = m_rowWriter.CreateDeclSecurityRow (
    secDecls.Container.MetadataToken,   <------ 0 for assembly attributes
    m_mdWriter.AddBlob (secDec.Resolved ?
        m_mod.GetAsByteArray (secDec) : secDec.Blob));

Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug.

More information about the mono-bugs mailing list