From 2f4757bcb84f3f9c3923dbe34ce907f03104108d Mon Sep 17 00:00:00 2001 From: Dietmar Maurer Date: Mon, 20 Aug 2001 14:20:16 +0000 Subject: [PATCH] fixes to make it compile again svn path=/trunk/mcs/; revision=512 --- mcs/class/corlib/System.Diagnostics/common.src | 2 -- mcs/class/corlib/System/Attribute.cs | 3 +++ mcs/class/corlib/System/ChangeLog | 6 ++++++ mcs/class/corlib/System/mono.src | 1 - 4 files changed, 9 insertions(+), 3 deletions(-) diff --git a/mcs/class/corlib/System.Diagnostics/common.src b/mcs/class/corlib/System.Diagnostics/common.src index f79470e1c23..9696b3d0830 100644 --- a/mcs/class/corlib/System.Diagnostics/common.src +++ b/mcs/class/corlib/System.Diagnostics/common.src @@ -2,5 +2,3 @@ BooleanSwitch.cs Switch.cs TraceLevel.cs TraceSwitch.cs -DebuggableAttribute.cs -ConditionalAttribute.cs diff --git a/mcs/class/corlib/System/Attribute.cs b/mcs/class/corlib/System/Attribute.cs index bf7c75ee529..9db339aa399 100644 --- a/mcs/class/corlib/System/Attribute.cs +++ b/mcs/class/corlib/System/Attribute.cs @@ -60,10 +60,13 @@ namespace System { { // attributeType must be derived from type System.Attribute Type t = typeof(System.Attribute); + + /* fixme: thgi does not work for target monolib2 if (!attributeType.IsSubclassOf(t)) { throw new ArgumentException("Parameter is not a type derived from System.Attribute", "attributeType"); } + */ } public static Attribute GetCustomAttribute(System.Reflection.ParameterInfo element, Type attributeType){ diff --git a/mcs/class/corlib/System/ChangeLog b/mcs/class/corlib/System/ChangeLog index 1f637c3f52b..5af59efc01d 100644 --- a/mcs/class/corlib/System/ChangeLog +++ b/mcs/class/corlib/System/ChangeLog @@ -1,3 +1,9 @@ +2001-08-20 Dietmar Maurer + + * Attribute.cs: uncomment some code to make it compile again + + * mono.src: removed duplicated Attribute.cs + 2001-08-16 Nick Drochak * Attribute.cs: implemented all methods except GetHashCode() diff --git a/mcs/class/corlib/System/mono.src b/mcs/class/corlib/System/mono.src index 5265a2c2054..3af1fbc116e 100644 --- a/mcs/class/corlib/System/mono.src +++ b/mcs/class/corlib/System/mono.src @@ -1,4 +1,3 @@ -Attribute.cs DateTime.cs Delegate.cs Enum.cs -- 2.25.1