[Mono-bugs] [Bug 548129] SIGSEGV in make_array_type

bugzilla_noreply at novell.com bugzilla_noreply at novell.com
Wed Oct 21 08:39:25 EDT 2009


http://bugzilla.novell.com/show_bug.cgi?id=548129

User msafar at novell.com added comment
http://bugzilla.novell.com/show_bug.cgi?id=548129#c2


Marek Safar <msafar at novell.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEEDINFO                    |NEW
      Info Provider|msafar at novell.com           |




--- Comment #2 from Marek Safar <msafar at novell.com>  2009-10-21 06:39:24 MDT ---
// Compile & Run

using System;
using System.Reflection;

    class DynamicType : Type
    {
        public override Assembly Assembly {
            get { return UnderlyingSystemType.Assembly; }
        }

        public override string AssemblyQualifiedName {
            get { throw new NotImplementedException (); }
        }

        public override Type BaseType {
            get { return null; }
        }

        public override string FullName {
            get { return UnderlyingSystemType.FullName; }
        }

        public override Guid GUID {
            get { throw new NotImplementedException (); }
        }

        protected override TypeAttributes GetAttributeFlagsImpl ()
        {
            return UnderlyingSystemType.Attributes;
        }

        protected override ConstructorInfo GetConstructorImpl (BindingFlags
bindingAttr, Binder binder, CallingConventions callConvention, Type[] types,
ParameterModifier[] modifiers)
        {
            throw new NotImplementedException ();
        }

        public override ConstructorInfo[] GetConstructors (BindingFlags
bindingAttr)
        {
            throw new NotImplementedException ();
        }

        public override Type GetElementType ()
        {
            throw new NotImplementedException ();
        }

        public override EventInfo GetEvent (string name, BindingFlags
bindingAttr)
        {
            throw new NotImplementedException ();
        }

        public override EventInfo[] GetEvents (BindingFlags bindingAttr)
        {
            throw new NotImplementedException ();
        }

        public override FieldInfo GetField (string name, BindingFlags
bindingAttr)
        {
            throw new NotImplementedException ();
        }

        public override FieldInfo[] GetFields (BindingFlags bindingAttr)
        {
            throw new NotImplementedException ();
        }

        public override Type GetInterface (string name, bool ignoreCase)
        {
            throw new NotImplementedException ();
        }

        public override Type[] GetInterfaces ()
        {
            return Type.EmptyTypes;
        }

        public override MemberInfo[] GetMembers (BindingFlags bindingAttr)
        {
            throw new NotImplementedException ();
        }

        protected override MethodInfo GetMethodImpl (string name, BindingFlags
bindingAttr, Binder binder, CallingConventions callConvention, Type[] types,
ParameterModifier[] modifiers)
        {
            throw new NotImplementedException ();
        }

        public override MethodInfo[] GetMethods (BindingFlags bindingAttr)
        {
            throw new NotImplementedException ();
        }

        public override Type GetNestedType (string name, BindingFlags
bindingAttr)
        {
            throw new NotImplementedException ();
        }

        public override Type[] GetNestedTypes (BindingFlags bindingAttr)
        {
            throw new NotImplementedException ();
        }

        public override PropertyInfo[] GetProperties (BindingFlags bindingAttr)
        {
            throw new NotImplementedException ();
        }

        protected override PropertyInfo GetPropertyImpl (string name,
BindingFlags bindingAttr, Binder binder, Type returnType, Type[] types,
ParameterModifier[] modifiers)
        {
            throw new NotImplementedException ();
        }

        protected override bool HasElementTypeImpl ()
        {
            throw new NotImplementedException ();
        }

        public override object InvokeMember (string name, BindingFlags
invokeAttr, Binder binder, object target, object[] args, ParameterModifier[]
modifiers, System.Globalization.CultureInfo culture, string[] namedParameters)
        {
            throw new NotImplementedException ();
        }

        protected override bool IsArrayImpl ()
        {
            return false;
        }

        protected override bool IsByRefImpl ()
        {
            return false;
        }

        protected override bool IsCOMObjectImpl ()
        {
            return false;
        }

        protected override bool IsPointerImpl ()
        {
            return false;
        }

        protected override bool IsPrimitiveImpl ()
        {
            return false;
        }

        public override Module Module {
            get { return UnderlyingSystemType.Module; }
        }

        public override string Namespace {
            get { throw new NotImplementedException (); }
        }

        public override Type UnderlyingSystemType {
            get { return typeof (object); }
        }

        public override object[] GetCustomAttributes (Type attributeType, bool
inherit)
        {
            return new object [0];
        }

        public override object[] GetCustomAttributes (bool inherit)
        {
            return new object [0];
        }

        public override bool IsDefined (Type attributeType, bool inherit)
        {
            throw new NotImplementedException ();
        }

        public override string Name {
            get { return UnderlyingSystemType.Name; }
        }

        public override string ToString ()
        {
            return UnderlyingSystemType.ToString ();
        }

        public override RuntimeTypeHandle TypeHandle {
            get { return UnderlyingSystemType.TypeHandle; }
        }
    }


class C
{
    public static void Main ()
    {
        var t = new DynamicType().MakeArrayType ();

        Console.WriteLine (t);
    }
}

-- 
Configure bugmail: http://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