mono.git
20 years ago2004-03-30 Martin Baulig <martin@ximian.com>
Martin Baulig [Tue, 30 Mar 2004 23:33:52 +0000 (23:33 -0000)]
2004-03-30  Martin Baulig  <martin@ximian.com>

* generic.cs (TypeParameter.DefineType): Return a boolean and use
the new API to actually define the constructor constraint.

* typemanager.cs
(TypeManager.new_constraint_attr_type): New static field.
(TypeManager.InitCoreTypes): Initialize it.

svn path=/trunk/mcs/; revision=24812

20 years agoMake this private.
Martin Baulig [Tue, 30 Mar 2004 23:31:56 +0000 (23:31 -0000)]
Make this private.

svn path=/trunk/mcs/; revision=24811

20 years ago2004-03-30 Martin Baulig <martin@ximian.com>
Martin Baulig [Tue, 30 Mar 2004 23:31:42 +0000 (23:31 -0000)]
2004-03-30  Martin Baulig  <martin@ximian.com>

* reflection.h (MonoReflectionGenericParam): Use MonoBoolean for
`has_ctor_constraint' and `initialized'.

svn path=/trunk/mono/; revision=24810

20 years ago2004-03-30 Martin Baulig <martin@ximian.com>
Martin Baulig [Tue, 30 Mar 2004 22:42:27 +0000 (22:42 -0000)]
2004-03-30  Martin Baulig  <martin@ximian.com>

* MonoGenericInst.cs
(MonoGenericParam): Added `bool has_ctor_constraint' field.
(MonoGenericParam.SetConstraints): Added `bool
has_ctor_constraint' argument.

svn path=/trunk/mcs/; revision=24808

20 years ago2004-03-30 Martin Baulig <martin@ximian.com>
Martin Baulig [Tue, 30 Mar 2004 22:41:18 +0000 (22:41 -0000)]
2004-03-30  Martin Baulig  <martin@ximian.com>

* TypeBuilder.cs (TypeBuilder.SetGenericParameterConstraints):
Added `bool has_ctor_constraint' argument.

* MethodBuilder.cs (MethodBuilder.SetGenericParameterConstraints):
Added `bool has_ctor_constraint' argument.

svn path=/trunk/mcs/; revision=24807

20 years ago2004-03-30 Martin Baulig <martin@ximian.com>
Martin Baulig [Tue, 30 Mar 2004 22:40:14 +0000 (22:40 -0000)]
2004-03-30  Martin Baulig  <martin@ximian.com>

* reflection.c (encode_new_constraint): New static function to add
the constructor constraint attribute to a type parameter.
(encode_constraints): Call encode_new_constraint() if necessary.

* reflection.h
(MonoReflectionGenericParam): Added `guint32 has_ctor_constraint'.

* row-indexes.h: Added CUSTOM_ATTR_GENERICPAR.

svn path=/trunk/mono/; revision=24806

20 years agoThis whole class is #if NET_1_2.
Martin Baulig [Tue, 30 Mar 2004 20:09:08 +0000 (20:09 -0000)]
This whole class is #if NET_1_2.

svn path=/trunk/mcs/; revision=24802

20 years agoAdded System.Runtime.CompilerServices/NewConstraintAttribute.cs
Martin Baulig [Tue, 30 Mar 2004 20:03:17 +0000 (20:03 -0000)]
Added System.Runtime.CompilerServices/NewConstraintAttribute.cs

svn path=/trunk/mcs/; revision=24801

20 years ago2004-03-30 Martin Baulig <martin@ximian.com>
Martin Baulig [Tue, 30 Mar 2004 20:03:00 +0000 (20:03 -0000)]
2004-03-30  Martin Baulig  <martin@ximian.com>

* NewConstraintAttribute.cs: New file.

svn path=/trunk/mcs/; revision=24800

20 years agoMore tests ...
Martin Baulig [Tue, 30 Mar 2004 19:42:57 +0000 (19:42 -0000)]
More tests ...

svn path=/trunk/mcs/; revision=24799

20 years ago2004-03-30 Martin Baulig <martin@ximian.com>
Martin Baulig [Tue, 30 Mar 2004 19:42:16 +0000 (19:42 -0000)]
2004-03-30  Martin Baulig  <martin@ximian.com>

* generic.cs (Constraints): Completed error checking, use correct
error numbers.

svn path=/trunk/mcs/; revision=24798

20 years ago* RegexBugs.cs: Added test for bug #52890.
Lluis Sanchez [Tue, 30 Mar 2004 18:57:14 +0000 (18:57 -0000)]
* RegexBugs.cs: Added test for bug #52890.

svn path=/trunk/mcs/; revision=24797

20 years ago * collections.cs: In the indexer, return an empty group if the requested
Lluis Sanchez [Tue, 30 Mar 2004 18:54:53 +0000 (18:54 -0000)]
* collections.cs: In the indexer, return an empty group if the requested
group is not found.
* match.cs: Added default constructor for Group.

svn path=/trunk/mcs/; revision=24796

20 years ago2004-03-30 Zoltan Varga <vargaz@freemail.hu>
Zoltan Varga [Tue, 30 Mar 2004 17:19:19 +0000 (17:19 -0000)]
2004-03-30  Zoltan Varga  <vargaz@freemail.hu>

* mini-sparc.c: Update status.

* mini-sparc.c tramp-sparc.c: Save lmf in trampolines.

* exceptions-sparc.c: Fix return value in filters.

svn path=/trunk/mono/; revision=24795

20 years ago2004-03-30 Zoltan Varga <vargaz@freemail.hu>
Zoltan Varga [Tue, 30 Mar 2004 17:12:51 +0000 (17:12 -0000)]
2004-03-30  Zoltan Varga  <vargaz@freemail.hu>

* inssel-sparc.brg: Fix register allocation in some rules.

svn path=/trunk/mono/; revision=24794

20 years agoAdd options
Miguel de Icaza [Tue, 30 Mar 2004 17:05:01 +0000 (17:05 -0000)]
Add options

svn path=/trunk/mcs/; revision=24793

20 years ago2004-03-30 Miguel de Icaza <miguel@ximian.com>
Miguel de Icaza [Tue, 30 Mar 2004 16:58:56 +0000 (16:58 -0000)]
2004-03-30  Miguel de Icaza  <miguel@ximian.com>

* cs-parser.jay: Add a rule to catch wrong event syntax instead of
throwing a parser error.

svn path=/trunk/mcs/; revision=24792

20 years agoAdd
Miguel de Icaza [Tue, 30 Mar 2004 16:57:46 +0000 (16:57 -0000)]
Add

svn path=/trunk/mcs/; revision=24791

20 years ago * Xml.cs: In LoadXpathDoc(), don't use MapPathSecure with documentSource,
Lluis Sanchez [Tue, 30 Mar 2004 16:41:31 +0000 (16:41 -0000)]
* Xml.cs: In LoadXpathDoc(), don't use MapPathSecure with documentSource,
  since it is already a physical path. Fixes bug #55334.

svn path=/trunk/mcs/; revision=24790

20 years ago2004-03-30 Sebastien Pouliot <sebastien@ximian.com>
Sebastien Pouliot [Tue, 30 Mar 2004 16:02:23 +0000 (16:02 -0000)]
2004-03-30  Sebastien Pouliot  <sebastien@ximian.com>

* StrongNameManager.cs: New. Added a check for "*" (any) assembly
when the spcific assembly isn't found for skipping.

svn path=/trunk/mcs/; revision=24789

20 years ago2004-03-30 Miguel de Icaza <miguel@ximian.com>
Miguel de Icaza [Tue, 30 Mar 2004 16:00:32 +0000 (16:00 -0000)]
2004-03-30  Miguel de Icaza  <miguel@ximian.com>

* ecore.cs (PropertyExpr.GetAccessor): Apply patch from Patrik Reali
which removes the hardcoded get_/set_ prefixes for properties, as
IL allows for the properties to be named something else.

Bug #56013

svn path=/trunk/mcs/; revision=24788

20 years ago * CaseInsensitiveHashCodeProvider.cs: Added support for CultureInfo.
Lluis Sanchez [Tue, 30 Mar 2004 15:29:11 +0000 (15:29 -0000)]
* CaseInsensitiveHashCodeProvider.cs: Added support for CultureInfo.
  Implemented property DefaultInvariant.

svn path=/trunk/mcs/; revision=24787

20 years ago * DataTools.cs: in FillDataSet(string,SelectCommand), use the connection
Lluis Sanchez [Tue, 30 Mar 2004 15:04:33 +0000 (15:04 -0000)]
* DataTools.cs: in FillDataSet(string,SelectCommand), use the connection
got from the configuration file to create the data adapter. Patch by
Matthijs ter Woord.

svn path=/trunk/mcs/; revision=24786

20 years agoAdd new test
Miguel de Icaza [Tue, 30 Mar 2004 14:39:55 +0000 (14:39 -0000)]
Add new test

svn path=/trunk/mcs/; revision=24785

20 years ago2004-03-30 Miguel de Icaza <miguel@ximian.com>
Miguel de Icaza [Tue, 30 Mar 2004 14:38:36 +0000 (14:38 -0000)]
2004-03-30  Miguel de Icaza  <miguel@ximian.com>

* expression.cs: Do not override operand before we know if it is
non-null.  Fix 56207

svn path=/trunk/mcs/; revision=24784

20 years ago * DataColumn.cs: In Expression setter, set the expression member even if
Lluis Sanchez [Tue, 30 Mar 2004 14:35:28 +0000 (14:35 -0000)]
* DataColumn.cs: In Expression setter, set the expression member even if
  it is an empty string.
* DataSet.cs: Support serialization of byte[] columns.
* XmlDataLoader.cs: Support deserialization  of Guid columns.
  Set MappingType.Attribute to columns infered from attributes.

svn path=/trunk/mcs/; revision=24783

20 years ago2004-03-30 Sebastien Pouliot <sebastien@ximian.com>
Sebastien Pouliot [Tue, 30 Mar 2004 13:06:10 +0000 (13:06 -0000)]
2004-03-30  Sebastien Pouliot  <sebastien@ximian.com>

* Reference.cs: Changed code to use CryptoConfig to create transforms.
This is "the" way to do it (e.g. to allow new transforms to be added)
but cause problems when using VS.NET for debugging. Old code is still
present, but commented, for that cause.

svn path=/trunk/mcs/; revision=24782

20 years ago2004-03-30 Gonzalo Paniagua Javier <gonzalo@ximian.com>
Gonzalo Paniagua Javier [Tue, 30 Mar 2004 12:26:18 +0000 (12:26 -0000)]
2004-03-30  Gonzalo Paniagua Javier <gonzalo@ximian.com>

* FAMWatcher.cs: support monitoring subdirectories. FAM doesn't do that,
so we have to register the existing directories and add the new ones
that might be created.

* SearchPattern.cs: provide the pattern when it's wrong.

svn path=/trunk/mcs/; revision=24781

20 years ago * SerializationCodeGenerator.cs, XmlReflectionImporter.cs,
Lluis Sanchez [Tue, 30 Mar 2004 11:14:36 +0000 (11:14 -0000)]
* SerializationCodeGenerator.cs, XmlReflectionImporter.cs,
  XmlSerializationReader.cs, XmlSerializationReaderInterpreter.cs:
  Support deserialization of members of type XmlDocument. This fixes #56169.

svn path=/trunk/mcs/; revision=24780

20 years agouse gdi+ functions to get image details
Jordi Mas i Hernandez [Tue, 30 Mar 2004 10:43:01 +0000 (10:43 -0000)]
use gdi+ functions to get image details

svn path=/trunk/mcs/; revision=24778

20 years ago * synchronized.cs: Monitor.Exit does not throw an exception anymore if the
Lluis Sanchez [Tue, 30 Mar 2004 09:43:59 +0000 (09:43 -0000)]
* synchronized.cs: Monitor.Exit does not throw an exception anymore if the
lock is not owned by the current thread (see bug #56157). Modified test that
checked this.

svn path=/trunk/mono/; revision=24777

20 years ago2004-03-30 Gonzalo Paniagua Javier <gonzalo@ximian.com>
Gonzalo Paniagua Javier [Tue, 30 Mar 2004 09:42:11 +0000 (09:42 -0000)]
2004-03-30  Gonzalo Paniagua Javier <gonzalo@ximian.com>

* WebConfigurationSettings.cs: use FileSystemWatcher and really reload
configuration when the file is created or modified.

svn path=/trunk/mcs/; revision=24776

20 years agoAdded new test
Miguel de Icaza [Tue, 30 Mar 2004 04:59:20 +0000 (04:59 -0000)]
Added new test

svn path=/trunk/mcs/; revision=24773

20 years ago2004-03-29 Ben Maurer <bmaurer@users.sourceforge.net>
Ben Maurer [Tue, 30 Mar 2004 03:31:02 +0000 (03:31 -0000)]
2004-03-29 Ben Maurer  <bmaurer@users.sourceforge.net>

* typemanager.cs: support for pinned variables.

svn path=/trunk/mcs/; revision=24771

20 years ago2004-03-29 Ben Maurer <bmaurer@users.sourceforge.net>
Ben Maurer [Tue, 30 Mar 2004 03:29:36 +0000 (03:29 -0000)]
2004-03-29 Ben Maurer  <bmaurer@users.sourceforge.net>

* LocalBuilder.cs: pinned support.

svn path=/trunk/mcs/; revision=24770

20 years ago2004-03-29 Ben Maurer <bmaurer@users.sourceforge.net>
Ben Maurer [Tue, 30 Mar 2004 03:26:16 +0000 (03:26 -0000)]
2004-03-29 Ben Maurer  <bmaurer@users.sourceforge.net>

* reflection.c, icall.c: add support for pinning variables.

svn path=/trunk/mono/; revision=24769

20 years ago2004-03-29 Ben Maurer <bmaurer@users.sourceforge.net>
Miguel de Icaza [Tue, 30 Mar 2004 03:14:52 +0000 (03:14 -0000)]
2004-03-29 Ben Maurer  <bmaurer@users.sourceforge.net>

* decl.cs, typemanager.cs: Avoid using an arraylist
as a buffer if there is only one result set.

svn path=/trunk/mcs/; revision=24768

20 years agoupdate
Miguel de Icaza [Tue, 30 Mar 2004 03:14:43 +0000 (03:14 -0000)]
update

svn path=/trunk/mcs/; revision=24767

20 years agomove along now
Ben Maurer [Tue, 30 Mar 2004 03:13:43 +0000 (03:13 -0000)]
move along now

svn path=/trunk/mcs/; revision=24766

20 years ago2004-03-29 Ben Maurer <bmaurer@users.sourceforge.net>
Ben Maurer [Tue, 30 Mar 2004 03:01:54 +0000 (03:01 -0000)]
2004-03-29 Ben Maurer  <bmaurer@users.sourceforge.net>

* cs0176.cs: make this test better.

svn path=/trunk/mcs/; revision=24765

20 years ago2004-03-29 Ben Maurer <bmaurer@users.sourceforge.net>
Ben Maurer [Tue, 30 Mar 2004 02:55:35 +0000 (02:55 -0000)]
2004-03-29 Ben Maurer  <bmaurer@users.sourceforge.net>

* decl.cs, typemanager.cs: Avoid using an arraylist
as a buffer if there is only one result set.

svn path=/trunk/mcs/; revision=24764

20 years agoget the right #
Ben Maurer [Tue, 30 Mar 2004 02:52:04 +0000 (02:52 -0000)]
get the right #

svn path=/trunk/mcs/; revision=24763

20 years ago2004-03-29 Ben Maurer <bmaurer@users.sourceforge.net>
Ben Maurer [Tue, 30 Mar 2004 02:49:32 +0000 (02:49 -0000)]
2004-03-29 Ben Maurer  <bmaurer@users.sourceforge.net>

* expression.cs: Make sure you cant call a static method
with an instance expression, bug #52587.

svn path=/trunk/mcs/; revision=24762

20 years ago2004-03-29 Miguel de Icaza <miguel@ximian.com>
Miguel de Icaza [Tue, 30 Mar 2004 02:38:39 +0000 (02:38 -0000)]
2004-03-29  Miguel de Icaza  <miguel@ximian.com>

* cs-tokenizer.cs: Do not require whitespace when a ( or " will do
in preprocessor directives.

svn path=/trunk/mcs/; revision=24759

20 years agoImprove test
Miguel de Icaza [Tue, 30 Mar 2004 02:36:57 +0000 (02:36 -0000)]
Improve test

svn path=/trunk/mcs/; revision=24758

20 years ago2004-03-29 Miguel de Icaza <miguel@ximian.com>
Miguel de Icaza [Tue, 30 Mar 2004 02:19:09 +0000 (02:19 -0000)]
2004-03-29  Miguel de Icaza  <miguel@ximian.com>

* location.cs (LookupFile): Allow for the empty path.

svn path=/trunk/mcs/; revision=24757

20 years ago2004-03-29 Miguel de Icaza <miguel@ximian.com>
Miguel de Icaza [Tue, 30 Mar 2004 01:58:53 +0000 (01:58 -0000)]
2004-03-29  Miguel de Icaza  <miguel@ximian.com>

* attribute.cs (DefinePInvokeMethod): Fix 56148;  I would like a
better approach for some of that patch, but its failing with the
CharSet enumeration.  For now try/catch will do.

svn path=/trunk/mcs/; revision=24756

20 years ago2004-03-29 Bernie Solomon <bernard@ugsolutions.com>
Bernie Solomon [Tue, 30 Mar 2004 01:44:17 +0000 (01:44 -0000)]
2004-03-29  Bernie Solomon  <bernard@ugsolutions.com>

* hppa/hppa-codegen.h:
fix displacements in FP instrs

svn path=/trunk/mono/; revision=24755

20 years agoAdded some comments.
Martin Baulig [Tue, 30 Mar 2004 01:37:38 +0000 (01:37 -0000)]
Added some comments.

svn path=/trunk/mcs/; revision=24754

20 years ago2004-03-29 Bernie Solomon <bernard@ugsolutions.com>
Bernie Solomon [Tue, 30 Mar 2004 01:25:08 +0000 (01:25 -0000)]
2004-03-29  Bernie Solomon  <bernard@ugsolutions.com>

* marshal.c (mono_marshal_get_managed_wrapper):
init bool local with zero rather than null.

svn path=/trunk/mono/; revision=24753

20 years ago2004-03-29 Bernie Solomon <bernard@ugsolutions.com>
Bernie Solomon [Tue, 30 Mar 2004 01:20:01 +0000 (01:20 -0000)]
2004-03-29  Bernie Solomon  <bernard@ugsolutions.com>

* interp.c interp.h: remove child from MonoInvocation
as it isn't used.

svn path=/trunk/mono/; revision=24752

20 years ago2004-03-29 Bernie Solomon <bernard@ugsolutions.com>
Bernie Solomon [Tue, 30 Mar 2004 01:18:11 +0000 (01:18 -0000)]
2004-03-29  Bernie Solomon  <bernard@ugsolutions.com>

* amd64/tramp.c:
* arm/tramp.c:
* hppa/tramp.c:
* ppc/tramp.c:
* s390/tramp.c:
* sparc/tramp.c:
* x86/tramp.c:
remove child from MonoInvocation as it isn't used.

svn path=/trunk/mono/; revision=24751

20 years agoUse -unsafe instead of --unsafe in error messages
Miguel de Icaza [Tue, 30 Mar 2004 01:02:29 +0000 (01:02 -0000)]
Use -unsafe instead of --unsafe in error messages

svn path=/trunk/mcs/; revision=24746

20 years agoUpdated
Lluis Sanchez [Tue, 30 Mar 2004 01:00:14 +0000 (01:00 -0000)]
Updated

svn path=/trunk/mono/; revision=24745

20 years ago2004-03-29 Martin Baulig <martin@ximian.com>
Martin Baulig [Tue, 30 Mar 2004 00:56:19 +0000 (00:56 -0000)]
2004-03-29  Martin Baulig  <martin@ximian.com>

* delegate.cs (Delegate.VerifyMethod): Infer type arguments.

* expression.cs (Invocation.InferTypeArguments): Added overloaded
public version which takes a `ParameterData pd' instead of an
`ArrayList args'.

svn path=/trunk/mcs/; revision=24744

20 years agoNew test.
Martin Baulig [Tue, 30 Mar 2004 00:54:29 +0000 (00:54 -0000)]
New test.

svn path=/trunk/mcs/; revision=24743

20 years ago2004-03-29 Martin Baulig <martin@ximian.com>
Martin Baulig [Tue, 30 Mar 2004 00:38:48 +0000 (00:38 -0000)]
2004-03-29  Martin Baulig  <martin@ximian.com>

* typemanager.cs (TypeManager.IsGenericMethod): Take a MethodBase,
not a MethodInfo.

svn path=/trunk/mcs/; revision=24742

20 years agoUse Mono_IsInflatedMethod.
Martin Baulig [Tue, 30 Mar 2004 00:30:09 +0000 (00:30 -0000)]
Use Mono_IsInflatedMethod.

svn path=/trunk/mcs/; revision=24741

20 years ago2004-03-29 Martin Baulig <martin@ximian.com>
Martin Baulig [Tue, 30 Mar 2004 00:27:57 +0000 (00:27 -0000)]
2004-03-29  Martin Baulig  <martin@ximian.com>

* MethodBase.cs (MethodBase.Mono_IsInflatedMethod): New public
virtual property.
(MethodBase.HasGenericParameters): Use the "official" behavior
here, ie. return false if we're not a generic method.

svn path=/trunk/mcs/; revision=24740

20 years ago2004-03-29 Martin Baulig <martin@ximian.com>
Martin Baulig [Tue, 30 Mar 2004 00:25:53 +0000 (00:25 -0000)]
2004-03-29  Martin Baulig  <martin@ximian.com>

* icall.c (ves_icall_MonoMethod_get_HasGenericParameters): Show
the "official" behavior here.
(ves_icall_MonoMethod_get_Mono_IsInflatedMethod): New interncall.

svn path=/trunk/mono/; revision=24739

20 years agoReflect latest API changes.
Martin Baulig [Tue, 30 Mar 2004 00:13:34 +0000 (00:13 -0000)]
Reflect latest API changes.

svn path=/trunk/mcs/; revision=24738

20 years ago2004-03-29 Martin Baulig <martin@ximian.com>
Martin Baulig [Tue, 30 Mar 2004 00:13:12 +0000 (00:13 -0000)]
2004-03-29  Martin Baulig  <martin@ximian.com>

* icall.c: Reflect latest API changes.

svn path=/trunk/mono/; revision=24737

20 years ago2004-03-29 Martin Baulig <martin@ximian.com>
Martin Baulig [Tue, 30 Mar 2004 00:12:32 +0000 (00:12 -0000)]
2004-03-29  Martin Baulig  <martin@ximian.com>

* MethodBase.cs: Moved the generics stuff here, made it virtual
where neccessary and use the correct API.

svn path=/trunk/mcs/; revision=24736

20 years ago2004-03-29 Martin Baulig <martin@ximian.com>
Martin Baulig [Mon, 29 Mar 2004 22:35:09 +0000 (22:35 -0000)]
2004-03-29  Martin Baulig  <martin@ximian.com>

* expression.cs (Argument.ResolveMethodGroup): If we're a
ConstructedType, call GetMemberAccess() on it.

svn path=/trunk/mcs/; revision=24735

20 years ago2004-03-29 Miguel de Icaza <miguel@ximian.com>
Miguel de Icaza [Mon, 29 Mar 2004 22:07:24 +0000 (22:07 -0000)]
2004-03-29  Miguel de Icaza  <miguel@ximian.com>

* Console.cs: If we fail to open stdin/stdout/stderr, create
readers with a NullStream.  This can happen if our caller does not
setup stdin/stoud/stderr file handles.  #56158 exposed this, but
it will happen elsewhere.

svn path=/trunk/mcs/; revision=24734

20 years agoNew test.
Martin Baulig [Mon, 29 Mar 2004 22:01:54 +0000 (22:01 -0000)]
New test.

svn path=/trunk/mcs/; revision=24733

20 years agoThe base type of a generic parameter is always TypeManager.object_type.
Martin Baulig [Mon, 29 Mar 2004 22:00:23 +0000 (22:00 -0000)]
The base type of a generic parameter is always TypeManager.object_type.

svn path=/trunk/mcs/; revision=24732

20 years ago2004-03-29 Martin Baulig <martin@ximian.com>
Martin Baulig [Mon, 29 Mar 2004 21:59:13 +0000 (21:59 -0000)]
2004-03-29  Martin Baulig  <martin@ximian.com>

* loader.c (mono_get_method_from_token): Also call
mono_metadata_load_generic_params () for abstract and interface
methods; replace the type arguments in the method signature with
the ones which are loaded from the metadata.

svn path=/trunk/mono/; revision=24731

20 years ago2004-03-29 Miguel de Icaza <miguel@ximian.com>
Miguel de Icaza [Mon, 29 Mar 2004 21:41:46 +0000 (21:41 -0000)]
2004-03-29  Miguel de Icaza  <miguel@ximian.com>

* typemanager.cs: Do not crash if a struct does not have fields.
Fixes 56150.

svn path=/trunk/mcs/; revision=24730

20 years agoAdd new test
Miguel de Icaza [Mon, 29 Mar 2004 21:40:49 +0000 (21:40 -0000)]
Add new test

svn path=/trunk/mcs/; revision=24729

20 years ago2004-03-29 Martin Baulig <martin@ximian.com>
Martin Baulig [Mon, 29 Mar 2004 21:15:59 +0000 (21:15 -0000)]
2004-03-29  Martin Baulig  <martin@ximian.com>

* class.cs (MethodBase.CheckGenericOverride): New abstract method.
(MethodCore.CheckGenericOverride): When overriding a generic
method, check whether the constraints match.

* support.cs (GenericConstraints): New public interface.
(ParameterData.GenericConstraints): New public method.

* parameter.cs (Parameter.Resolve): Check whether we're a generic
method parameter and compute our constraints if appropriate.
(Parameter.GenericConstraints): New public property.

* generic.cs (Constraints): Implement GenericConstraints.

svn path=/trunk/mcs/; revision=24728

20 years agoWe may get called to create the parent of a dynamic generic instance; in this
Martin Baulig [Mon, 29 Mar 2004 20:49:30 +0000 (20:49 -0000)]
We may get called to create the parent of a dynamic generic instance; in this
case, we're dynamic as well.

svn path=/trunk/mono/; revision=24727

20 years ago2004-03-29 Martin Baulig <martin@ximian.com>
Martin Baulig [Mon, 29 Mar 2004 18:23:28 +0000 (18:23 -0000)]
2004-03-29  Martin Baulig  <martin@ximian.com>

* decl.cs (MemberCache.FindMemberToOverride): Use
`paramTypes [j].Equals (cmpAttrs [j])' instead of `=='.

svn path=/trunk/mcs/; revision=24726

20 years ago * CSharpCodeGenerator.cs: In GetTypeOutput, never escape runtime type names.
Lluis Sanchez [Mon, 29 Mar 2004 17:59:33 +0000 (17:59 -0000)]
* CSharpCodeGenerator.cs: In GetTypeOutput, never escape runtime type names.
Created a new method GetSafeTypeName to support this.

svn path=/trunk/mcs/; revision=24725

20 years ago2004-03-29 Martin Baulig <martin@ximian.com>
Martin Baulig [Mon, 29 Mar 2004 17:59:21 +0000 (17:59 -0000)]
2004-03-29  Martin Baulig  <martin@ximian.com>

* generic.cs (GenericMethod.Define): Resolve our type parameters.

svn path=/trunk/mcs/; revision=24724

20 years ago* Executor.cs: Implemented.
Lluis Sanchez [Mon, 29 Mar 2004 17:56:19 +0000 (17:56 -0000)]
* Executor.cs: Implemented.

svn path=/trunk/mcs/; revision=24723

20 years agoDamn, no debugging code here.
Martin Baulig [Mon, 29 Mar 2004 17:47:34 +0000 (17:47 -0000)]
Damn, no debugging code here.

svn path=/trunk/mcs/; revision=24722

20 years ago2004-03-29 Martin Baulig <martin@ximian.com>
Martin Baulig [Mon, 29 Mar 2004 17:47:18 +0000 (17:47 -0000)]
2004-03-29  Martin Baulig  <martin@ximian.com>

* cs-parser.jay: Report CS0080 instead of -200 ("Constraints are
not allowed on non-generic declarations").

svn path=/trunk/mcs/; revision=24721

20 years ago2004-03-29 Martin Baulig <martin@ximian.com>
Martin Baulig [Mon, 29 Mar 2004 17:39:29 +0000 (17:39 -0000)]
2004-03-29  Martin Baulig  <martin@ximian.com>

* TypeBuilder.cs (TypeBuilder.ContainsGenericParameters): Implemented.

svn path=/trunk/mcs/; revision=24720

20 years ago2004-03-29 Martin Baulig <martin@ximian.com>
Martin Baulig [Mon, 29 Mar 2004 17:16:47 +0000 (17:16 -0000)]
2004-03-29  Martin Baulig  <martin@ximian.com>

* expression.cs (Invocation.InferTypeArguments): Added overloaded
public version of this method.

* class.cs (MethodCore.IsDuplicateImplementation): Use
Invocation.InferTypeArguments() to check this.

svn path=/trunk/mcs/; revision=24719

20 years agoGenerics ...
Martin Baulig [Mon, 29 Mar 2004 17:12:25 +0000 (17:12 -0000)]
Generics ...

svn path=/trunk/mcs/; revision=24718

20 years agoOooops, forgot to add them.
Martin Baulig [Mon, 29 Mar 2004 17:12:09 +0000 (17:12 -0000)]
Oooops, forgot to add them.

svn path=/trunk/mcs/; revision=24717

20 years agoAdded testcase.
Martin Baulig [Mon, 29 Mar 2004 17:11:51 +0000 (17:11 -0000)]
Added testcase.

svn path=/trunk/mcs/; revision=24716

20 years ago2004-03-29 Marek Safar <marek.safar@seznam.cz>
Marek Safar [Mon, 29 Mar 2004 16:46:08 +0000 (16:46 -0000)]
2004-03-29 Marek Safar <marek.safar@seznam.cz>
* cs0029-3.cs,
          cs0173-2.cs,
          cs0619-{2-26}.cs,
          cs0672.cs: 29 new error tests.

svn path=/trunk/mcs/; revision=24715

20 years ago * GuidTest.cs: Test constructor when the input string is in format "P"
Lluis Sanchez [Mon, 29 Mar 2004 16:07:59 +0000 (16:07 -0000)]
* GuidTest.cs: Test constructor when the input string is in format "P"
  or "N".

svn path=/trunk/mcs/; revision=24714

20 years ago * Convert.cs: In ToSingle(double), removed checks for Single.MaxValue and
Lluis Sanchez [Mon, 29 Mar 2004 16:06:43 +0000 (16:06 -0000)]
* Convert.cs: In ToSingle(double), removed checks for Single.MaxValue and
  Single.MinValue. MS.NET don't do it. This fixes bug #56005.
* Guid.cs: Added support for guid strings in the "N" and "P" formats in
  the constructor. This fixes bug #54019.

svn path=/trunk/mcs/; revision=24713

20 years ago2004-03-29 Martin Baulig <martin@ximian.com>
Martin Baulig [Mon, 29 Mar 2004 15:57:30 +0000 (15:57 -0000)]
2004-03-29  Martin Baulig  <martin@ximian.com>

* convert.cs: Use TypeManager.IsDelegateType() instead of
comparing types correctly.

svn path=/trunk/mcs/; revision=24712

20 years ago2004-03-29 Martin Baulig <martin@ximian.com>
Martin Baulig [Mon, 29 Mar 2004 15:28:00 +0000 (15:28 -0000)]
2004-03-29  Martin Baulig  <martin@ximian.com>

* convert.cs: Use TypeManager.IsSubclassOf() instead of comparing
types directly to make it work for generic instances.

svn path=/trunk/mcs/; revision=24711

20 years ago * main.c: Handle pinvoke info where there is not an impl_map
Jackson Harper [Mon, 29 Mar 2004 15:16:18 +0000 (15:16 -0000)]
    * main.c: Handle pinvoke info where there is not an impl_map
entry.

svn path=/trunk/mono/; revision=24709

20 years agoNew test.
Martin Baulig [Mon, 29 Mar 2004 15:07:20 +0000 (15:07 -0000)]
New test.

svn path=/trunk/mcs/; revision=24708

20 years agoNew tests ...
Martin Baulig [Mon, 29 Mar 2004 15:07:11 +0000 (15:07 -0000)]
New tests ...

svn path=/trunk/mcs/; revision=24707

20 years ago2004-03-29 Martin Baulig <martin@ximian.com>
Martin Baulig [Mon, 29 Mar 2004 15:05:54 +0000 (15:05 -0000)]
2004-03-29  Martin Baulig  <martin@ximian.com>

* typemanager.cs (TypeManager.MayBecomeEqualGenericTypes): Added
support for arrays.

svn path=/trunk/mcs/; revision=24706

20 years ago2004-03-29 Umadevi S (sumadevi@novell.com)
Umadevi S [Mon, 29 Mar 2004 12:46:32 +0000 (12:46 -0000)]
2004-03-29 Umadevi S (sumadevi@novell.com)
- Removed TODO tags from Find methods since .NET also returns null

svn path=/trunk/mcs/; revision=24705

20 years ago * HttpWebRequest.cs: Use a lock block instead of Monitor.Enter/Exit, so
Lluis Sanchez [Mon, 29 Mar 2004 12:17:03 +0000 (12:17 -0000)]
* HttpWebRequest.cs: Use a lock block instead of Monitor.Enter/Exit, so
the lock is released in case of exception (for example, a
ThreadAbortException). This also "fixes" bug #52417.
Beware, this requires a runtime update (due to a bug in Monitor.Exit).
* ServicePoint.cs: Changed method from internal to private, since it is not
called from outside the class.

svn path=/trunk/mcs/; revision=24704

20 years ago * monitor.c: In mono_monitor_exit(), don't throw an exception if the owner
Lluis Sanchez [Mon, 29 Mar 2004 12:03:10 +0000 (12:03 -0000)]
* monitor.c: In mono_monitor_exit(), don't throw an exception if the owner
of the lock is not the current thread. MS.NET don't do it, in spite of
what the documentation says. See bug #56157.

svn path=/trunk/mono/; revision=24703

20 years agoadded missing methods and properties to a few classes and fixes
Jordi Mas i Hernandez [Mon, 29 Mar 2004 11:32:22 +0000 (11:32 -0000)]
added missing methods and properties to a few classes and fixes

svn path=/trunk/mcs/; revision=24702

20 years ago * CollectionBase.cs: Renamed internal arraylist member to match MS.NET
Lluis Sanchez [Mon, 29 Mar 2004 10:16:32 +0000 (10:16 -0000)]
* CollectionBase.cs: Renamed internal arraylist member to match MS.NET
  (to allow serialization interoperability).

svn path=/trunk/mcs/; revision=24701

20 years ago2004-03-29 Juraj Skripsky <juraj@hotfeet.ch>
Juraj Skripsky [Mon, 29 Mar 2004 07:56:47 +0000 (07:56 -0000)]
2004-03-29 Juraj Skripsky <juraj@hotfeet.ch>

* System.Data.dll.sources : added classes in Mono.Data.SqlExpressions
* Makefile : add jay-target for Mono.Data.SqlExpressions/Parser.cs

* ExpressionElements.cs : remove
* DataColumn.cs, DataRelationCollection.cs, DataTable.cs :
Integration of new Mono.Data.SqlExpressions classes used in
DataTable.{Select, Compute}.
Fixes bug #55503 and lots of failures in DataTableTest.cs.

* DataTableTest.cs : add test case for bug #55503,
comment out meaningless test cases.

* Initial implementation of Mono.Data.SqlExpressions.

svn path=/trunk/mcs/; revision=24700

20 years ago * ILParser.jay: Fix typo.
Jackson Harper [Mon, 29 Mar 2004 05:18:33 +0000 (05:18 -0000)]
    * ILParser.jay: Fix typo.

svn path=/trunk/mcs/; revision=24698

20 years agorevert -- breaks build
Ben Maurer [Mon, 29 Mar 2004 05:13:03 +0000 (05:13 -0000)]
revert -- breaks build

svn path=/trunk/mcs/; revision=24696