[Mono-bugs] [Bug 690660] New: Enhancement: Allow the PreserveAttribute to handle class hierarchies

bugzilla_noreply at novell.com bugzilla_noreply at novell.com
Thu Apr 28 15:06:28 EDT 2011


https://bugzilla.novell.com/show_bug.cgi?id=690660

https://bugzilla.novell.com/show_bug.cgi?id=690660#c0


           Summary: Enhancement: Allow the PreserveAttribute to handle
                    class hierarchies
    Classification: Mono
           Product: MonoTouch
           Version: unspecified
          Platform: iPhone
        OS/Version: Apple iOS 4.3
            Status: NEW
          Severity: Minor
          Priority: P5 - None
         Component: Tools
        AssignedTo: mono-bugs at lists.ximian.com
        ReportedBy: rkozak at gmail.com
         QAContact: mono-bugs at lists.ximian.com
          Found By: Customer
           Blocker: ---


Description of Problem:

The linker in MonoTouch is very aggressive and since it only uses Static
Analysis to determine what to keep it causes problems with more dynamic
frameworks such as an IoC.

Currently it only supports a boolean AllMembers param.

Please support a param Scope as an enum 

public enum PreserveScope
{
  Class,
  Descendents,
  FullHierarchy
}

The three cases are:

1. Preserve just this class (same as [Preserve] does today)
2. Preserve this class and all its descendents.
3. Preserve this class and all its ancestors and descendents

So in the case I have a abstract class I can mark it with
[Preserve(Scope=PreserveScope.Descendents)] and not have to add a [Preserve] to
all descendents as I do today.

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


More information about the mono-bugs mailing list