mono.git
19 years ago**** Merged r36644-r36669 from MCS ****
Martin Baulig [Sat, 4 Dec 2004 23:09:36 +0000 (23:09 -0000)]
**** Merged r36644-r36669 from MCS ****

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

19 years ago**** Merged r36578 from MCS ****
Martin Baulig [Sat, 4 Dec 2004 23:07:58 +0000 (23:07 -0000)]
**** Merged r36578 from MCS ****

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

19 years ago**** Merged r36575, r36576 and r36577 from MCS ****
Martin Baulig [Sat, 4 Dec 2004 23:05:30 +0000 (23:05 -0000)]
**** Merged r36575, r36576 and r36577 from MCS ****

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

19 years ago**** Merged r36573 ****
Martin Baulig [Sat, 4 Dec 2004 23:01:29 +0000 (23:01 -0000)]
**** Merged r36573 ****

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

19 years ago**** Merged r36570 from MCS ****
Martin Baulig [Sat, 4 Dec 2004 22:56:53 +0000 (22:56 -0000)]
**** Merged r36570 from MCS ****

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

19 years ago**** Merged r36526 from MCS ****
Martin Baulig [Sat, 4 Dec 2004 22:53:04 +0000 (22:53 -0000)]
**** Merged r36526 from MCS ****

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

19 years ago**** Merged r36513 from MCS ****
Martin Baulig [Sat, 4 Dec 2004 22:50:59 +0000 (22:50 -0000)]
**** Merged r36513 from MCS ****

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

19 years ago**** Merged r36502 from MCS ****
Martin Baulig [Sat, 4 Dec 2004 22:45:49 +0000 (22:45 -0000)]
**** Merged r36502 from MCS ****

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

19 years ago**** Merged r36440, r36454 and r36471 from MCS ****
Martin Baulig [Sat, 4 Dec 2004 22:39:06 +0000 (22:39 -0000)]
**** Merged r36440, r36454 and r36471 from MCS ****

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

19 years ago**** Merged r36411 from MCS ****
Martin Baulig [Sat, 4 Dec 2004 22:34:16 +0000 (22:34 -0000)]
**** Merged r36411 from MCS ****

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

19 years ago**** Merged r36321, r36326, r36369 and r36373 from MCS ****
Martin Baulig [Sat, 4 Dec 2004 22:26:53 +0000 (22:26 -0000)]
**** Merged r36321, r36326, r36369 and r36373 from MCS ****

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

19 years ago**** Merged r36279 from MCS ****
Martin Baulig [Sat, 4 Dec 2004 22:20:55 +0000 (22:20 -0000)]
**** Merged r36279 from MCS ****

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

19 years agoNew test.
Martin Baulig [Sat, 4 Dec 2004 21:48:47 +0000 (21:48 -0000)]
New test.

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

19 years ago2004-12-04 Martin Baulig <martin@ximian.com>
Martin Baulig [Sat, 4 Dec 2004 21:48:29 +0000 (21:48 -0000)]
2004-12-04  Martin Baulig  <martin@ximian.com>

* gen-116.cs: New test for #69781.

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

19 years ago2004-12-04 Martin Baulig <martin@ximian.com>
Martin Baulig [Sat, 4 Dec 2004 21:48:19 +0000 (21:48 -0000)]
2004-12-04  Martin Baulig  <martin@ximian.com>

* convert.cs (Convert.TypeParameter_to_Null): Use the constraints
to check whether the conversion is ok.

* typemanager.cs (TypeManager.GetTypeArguments): Just return
`Type.EmptyTypes' if we're not a generic TypeContainer.

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

19 years ago2004-12-03 Miguel de Icaza <miguel@ximian.com>
Miguel de Icaza [Sat, 4 Dec 2004 20:35:04 +0000 (20:35 -0000)]
2004-12-03  Miguel de Icaza  <miguel@ximian.com>

* delegate.cs: Only allow this on new versions of the language.

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

19 years ago2004-12-02 Duncan Mak <duncan@ximian.com>
Duncan Mak [Sat, 4 Dec 2004 19:32:53 +0000 (19:32 -0000)]
2004-12-02  Duncan Mak  <duncan@ximian.com>

* cs0122-7.cs:
        * cs0122-8.cs: Added test cases for events, from bug #70129.

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

19 years ago2004-12-02 Duncan Mak <duncan@ximian.com>
Duncan Mak [Sat, 4 Dec 2004 19:31:10 +0000 (19:31 -0000)]
2004-12-02  Duncan Mak  <duncan@ximian.com>

* ecore.cs (PropertyExpr.IsAccessorAccessible): Moved to
Expression class.
(Expression.IsAccessorAccessible): Moved from the PropertyExpr to
here as a static method. Take an additional bool out parameter
`must_do_cs1540_check' for signaling to InstanceResolve.
(PropertyExpr.InstanceResolve): Removed the `must_do_cs1540_check'
member field from PropertyExpr class and made it an argument of
the method instead.
(EventExpr.InstanceResolve): Copied from PropertyExpr, removed the
check for MarshalByRefObject, and report CS0122 instead of CS1540.
(EventExpr.DoResolve): Call IsAccessorAccessible on `add_accessor'
and `remove_accessor' as well as InstanceResolve: report CS0122
where applicable.

Fixes #70129.

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

19 years ago2004-12-04 Atsushi Enomoto <atsushi@ximian.com>
Atsushi Eno [Sat, 4 Dec 2004 19:25:02 +0000 (19:25 -0000)]
2004-12-04  Atsushi Enomoto <atsushi@ximian.com>

* XmlSchemaObject.cs : added Parent.
* XmlSchema.cs,
  XmlSchemaElement.cs,
  XmlSchemaAttribute.cs,
  XmlSchemaAttributeGroup.cs,
  XmlSchemaGroup.cs,
  XmlSchemaComplexType.cs,
  XmlSchemaSequence.cs,
  XmlSchemaChoice.cs,
  XmlSchemaAll.cs,
  XmlSchemaIdentityConstraint.cs,
  XmlSchemaComplexContent.cs,
  XmlSchemaSimpleContent.cs,
  XmlSchemaSimpleContentExtension.cs,
  XmlSchemaSimpleContentRestriction.cs,
  XmlSchemaComplexContentExtension.cs,
  XmlSchemaComplexContentRestriction.cs,
  XmlSchemaSimpleType.cs,
  XmlSchemaSimpleTypeRestriction.cs,
  XmlSchemaSimpleTypeList.cs,
  XmlSchemaSimpleTypeUnion.cs : Fill Parent on Compilation.

* XmlSchemaException.cs,
  XmlSchemaInferenceException.cs,
  XmlSchemaValidationException.cs : added SecurityPermissionAttribute.

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

19 years ago2004-12-04 Zoltan Varga <vargaz@freemail.hu>
Zoltan Varga [Sat, 4 Dec 2004 19:25:01 +0000 (19:25 -0000)]
2004-12-04  Zoltan Varga  <vargaz@freemail.hu>

* delegate.cs: Add test for unboxing and delegates.

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

19 years ago2004-12-04 Zoltan Varga <vargaz@freemail.hu>
Zoltan Varga [Sat, 4 Dec 2004 19:21:03 +0000 (19:21 -0000)]
2004-12-04  Zoltan Varga  <vargaz@freemail.hu>

* image.c: Add unbox_wrapper_cache.

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

19 years ago2004-12-04 Zoltan Varga <vargaz@freemail.hu>
Zoltan Varga [Sat, 4 Dec 2004 19:15:38 +0000 (19:15 -0000)]
2004-12-04  Zoltan Varga  <vargaz@freemail.hu>

* class-internals.h debug-helpers.c: Add MONO_WRAPPER_UNBOX.

* marshal.h marshal.c (mono_marshal_get_unbox_wrapper): New wrapper
function generator.

* object.c (mono_delegate_ctor): Call unbox wrapper if neccesary.
Fixes #70173.

* metadata-internals.h image.c: Add MonoImage->unbox_wrapper_cache.

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

19 years agoFix build, and make the tests have a uniform naming
Miguel de Icaza [Sat, 4 Dec 2004 19:13:15 +0000 (19:13 -0000)]
Fix build, and make the tests have a uniform naming

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

19 years ago2004-12-04 Atsushi Enomoto <atsushi@ximian.com>
Atsushi Eno [Sat, 4 Dec 2004 18:26:07 +0000 (18:26 -0000)]
2004-12-04  Atsushi Enomoto  <atsushi@ximian.com>

* library.make,
  profiles/default.make,
  profiles/basic.make : use PLATFORM_PATH_SEPARATOR.

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

19 years ago2004-12-04 Martin Baulig <martin@ximian.com>
Martin Baulig [Sat, 4 Dec 2004 17:55:24 +0000 (17:55 -0000)]
2004-12-04  Martin Baulig  <martin@ximian.com>

* hashing/HashTableTests.cs: Disabled some tests which make
assumptions about the ordering of elements in the hashtable.  They
also do not work on Windows.
* hashing/HashBagTests.cs: Likewise.
* hashing/HashDictionaryTests.cs: Likewise.

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

19 years ago2004-12-04 Atsushi Enomoto <atsushi@ximian.com>
Atsushi Eno [Sat, 4 Dec 2004 17:23:43 +0000 (17:23 -0000)]
2004-12-04  Atsushi Enomoto  <atsushi@ximian.com>

* XPathDocument.cs : switch to DTMXPathNavigator2 which fully
  eliminated string fields from struct.
  (When we switch from struct to class, revert this change to use
  DTMXPathNavigator, since class-based DTMXPathNavigator2 is rather
  wasting processing speed.)

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

19 years agoRemoved the last FIXME's.
Martin Baulig [Sat, 4 Dec 2004 16:55:25 +0000 (16:55 -0000)]
Removed the last FIXME's.

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

19 years agoNew test.
Martin Baulig [Sat, 4 Dec 2004 16:55:05 +0000 (16:55 -0000)]
New test.

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

19 years ago2004-12-04 Martin Baulig <martin@ximian.com>
Martin Baulig [Sat, 4 Dec 2004 16:53:38 +0000 (16:53 -0000)]
2004-12-04  Martin Baulig  <martin@ximian.com>

* mini.c (mono_method_to_ir): In CEE_CALLVIRT, use the new
mono_method_get_signature_full().

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

19 years ago2004-12-04 Martin Baulig <martin@ximian.com>
Martin Baulig [Sat, 4 Dec 2004 16:52:20 +0000 (16:52 -0000)]
2004-12-04  Martin Baulig  <martin@ximian.com>

* loader.c (mono_method_get_signature_full): New public function;
like mono_method_get_signature(), but with an additional
`MonoGenericContext *' argument.

* class.c (mono_class_inflate_generic_signature): Formerly known
as inflate_generic_signature(); make this public.

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

19 years ago2004-12-04 Atsushi Enomoto <atsushi@ximian.com>
Atsushi Eno [Sat, 4 Dec 2004 14:16:31 +0000 (14:16 -0000)]
2004-12-04  Atsushi Enomoto <atsushi@ximian.com>

* XmlSchemaComplexType.cs : simplify Compile().

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

19 years ago2004-12-04 Atsushi Enomoto <atsushi@ximian.com>
Atsushi Eno [Sat, 4 Dec 2004 14:12:54 +0000 (14:12 -0000)]
2004-12-04  Atsushi Enomoto  <atsushi@ximian.com>

* System.Xml.dll.sources : added DTMXPathDocument2.cs,
  DTMXPathDocumentBuilder2.cs, DTMXPathDocumentWriter2.cs,
  DTMXPathDocumentWriter2.cs and DTMXPathNode2.cs.

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

19 years ago2004-12-04 Atsushi Enomoto <atsushi@ximian.com>
Atsushi Eno [Sat, 4 Dec 2004 14:12:18 +0000 (14:12 -0000)]
2004-12-04  Atsushi Enomoto <atsushi@ximian.com>

* DTMXPathNavigator.cs : added more constant fields to utility class.

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

19 years ago2004-12-04 Atsushi Enomoto <atsushi@ximian.com>
Atsushi Eno [Sat, 4 Dec 2004 14:05:50 +0000 (14:05 -0000)]
2004-12-04  Atsushi Enomoto <atsushi@ximian.com>

* DTMXPathDocument2.cs,
  DTMXPathNavigator2.cs,
  DTMXPathDocumentBuilder2.cs,
  DTMXPathDocumentWriter2.cs,
  DTMXPathNode2.cs : added new implementation that uses string pool
  and eliminates string field inside struct (IF we use struct).

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

19 years ago2004-12-04 Gonzalo Paniagua Javier <gonzalo@ximian.com>
Gonzalo Paniagua Javier [Sat, 4 Dec 2004 11:52:31 +0000 (11:52 -0000)]
2004-12-04 Gonzalo Paniagua Javier <gonzalo@ximian.com>

* WebConnection.cs: handle errors on chunked streams. Fixes bug #66858.
* ChunkStream.cs: added error checking all over.

* HttpWebRequest.cs: throw the exception received in SetResponseError
if we already have a response.
(SetRequestData): Don't nest the exception if it's a WebException.

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

19 years ago2004-12-04 Gonzalo Paniagua Javier <gonzalo@ximian.com>
Gonzalo Paniagua Javier [Sat, 4 Dec 2004 05:55:14 +0000 (05:55 -0000)]
2004-12-04 Gonzalo Paniagua Javier <gonzalo@ximian.com>

* interp.c: fix the build. Dunno if it's correct.

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

19 years ago2004-12-04 Martin Baulig <martin@ximian.com>
Martin Baulig [Sat, 4 Dec 2004 00:04:00 +0000 (00:04 -0000)]
2004-12-04  Martin Baulig  <martin@ximian.com>

* metadata.c
(mono_metadata_parse_type_full): Take a `MonoGenericContext *'
instead of a `MonoGenericContainer *'.
(mono_metadata_parse_array_full): Likewise.
(mono_metadata_parse_signature_full): Likewise.
(mono_metadata_parse_method_signature_full): Likewise.
(mono_metadata_parse_generic_inst): Likewise.
(mono_metadata_parse_generic_param): Likewise.
(mono_metadata_parse_mh_full): Likewise.
(mono_type_create_from_typespec_full): Likewise.

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

19 years agoAdd compiler options
Miguel de Icaza [Fri, 3 Dec 2004 23:47:37 +0000 (23:47 -0000)]
Add compiler options

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

19 years agoAdd covariance tests from Carlos Alberto Cortez
Miguel de Icaza [Fri, 3 Dec 2004 23:46:38 +0000 (23:46 -0000)]
Add covariance tests from Carlos Alberto Cortez

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

19 years ago2004-12-02 Bernie Solomon <bernard@ugsolutions.com>
Bernie Solomon [Fri, 3 Dec 2004 23:34:50 +0000 (23:34 -0000)]
2004-12-02  Bernie Solomon  <bernard@ugsolutions.com>

* mintops.def:
* transform.c:
* interp.c: cope with new thread interruption icall

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

19 years agoUpdated again.
Martin Baulig [Fri, 3 Dec 2004 23:09:03 +0000 (23:09 -0000)]
Updated again.

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

19 years agoUpdated.
Martin Baulig [Fri, 3 Dec 2004 22:22:06 +0000 (22:22 -0000)]
Updated.

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

19 years ago2004-12-03 Martin Baulig <martin@ximian.com>
Martin Baulig [Fri, 3 Dec 2004 22:19:36 +0000 (22:19 -0000)]
2004-12-03  Martin Baulig  <martin@ximian.com>

* class-internals.h (MonoGenericContainer): Replaced the
`MonoGenericContext * pointer with a `MonoGenericContext'
structure and made it the first element.

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

19 years agoUpdated.
Martin Baulig [Fri, 3 Dec 2004 21:23:01 +0000 (21:23 -0000)]
Updated.

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

19 years ago2004-12-03 Martin Baulig <martin@ximian.com>
Martin Baulig [Fri, 3 Dec 2004 21:15:28 +0000 (21:15 -0000)]
2004-12-03  Martin Baulig  <martin@ximian.com>

* class.c
(inflate_generic_type): Set the `context->container' when creating
a new MonoGenericContext.
(mono_class_inflate_generic_method): Likewise.
(mono_class_create_from_typespec): Just use `context->container'
to get the container.

* loader.c (method_from_methodspec): Set `context->parent' from
`context->container' - and if that's a method container, use its
parent.  Also set the `context->container' when creating a new
MonoGenericContext.
(mono_get_method_from_token): Use just `context->container' to get
the container.

* metadata.c (do_mono_metadata_parse_generic_class): Also set
`gclass->context->container'.

* reflection.c (do_mono_reflection_bind_generic_parameters): Set
the `context->container' when creating a new MonoGenericContext.

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

19 years ago2004-12-03 Sebastien Pouliot <sebastien@ximian.com>
Sebastien Pouliot [Fri, 3 Dec 2004 20:14:50 +0000 (20:14 -0000)]
2004-12-03  Sebastien Pouliot  <sebastien@ximian.com>

* BigInteger.cs: Fix issue #70169 in ModPow when modulus is a power of
two.

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

19 years ago2004-12-03 Sebastien Pouliot <sebastien@ximian.com>
Sebastien Pouliot [Fri, 3 Dec 2004 20:13:54 +0000 (20:13 -0000)]
2004-12-03  Sebastien Pouliot  <sebastien@ximian.com>

* BigInteger.cs: Fix issue #70169 in ModPow when modulus is a power of
two.

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

19 years ago2004-12-03 Sebastien Pouliot <sebastien@ximian.com>
Sebastien Pouliot [Fri, 3 Dec 2004 20:03:11 +0000 (20:03 -0000)]
2004-12-03  Sebastien Pouliot  <sebastien@ximian.com>

* BigIntegerTest.cs: Added tests for ModPow when power is 0, for a
known case that was faling in classpath and when modulo is a power of
two (bug #70169).

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

19 years agoimplemented clipping, selection single and multiple, and bug fixing
Jordi Mas i Hernandez [Fri, 3 Dec 2004 19:15:56 +0000 (19:15 -0000)]
implemented clipping, selection single and multiple, and bug fixing

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

19 years ago * System.Web.dll.sources: Added new files:
Lluis Sanchez [Fri, 3 Dec 2004 19:11:50 +0000 (19:11 -0000)]
* System.Web.dll.sources: Added new files:
System.Web.UI.WebControls/Menu.cs
System.Web.UI.WebControls/MenuEventArgs.cs
System.Web.UI.WebControls/MenuEventHandler.cs
System.Web.UI.WebControls/MenuItem.cs
System.Web.UI.WebControls/MenuItemBinding.cs
System.Web.UI.WebControls/MenuItemBindingCollection.cs
System.Web.UI.WebControls/MenuItemCollection.cs
System.Web.UI.WebControls/MenuItemStyle.cs
System.Web.UI.WebControls/MenuItemStyleCollection.cs

2004-12-02  Lluis Sanchez Gual <lluis@novell.com>

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

19 years ago2004-12-03 Lluis Sanchez Gual <lluis@novell.com>
Lluis Sanchez [Fri, 3 Dec 2004 19:09:20 +0000 (19:09 -0000)]
2004-12-03 Lluis Sanchez Gual <lluis@novell.com>

* MenuEventArgs.cs: Changed to sealed.
* TreeView.cs: Minor fix.
* Menu.cs, MenuItemBindingCollection.cs, MenuItemCollection.cs,
MenuItemStyle.cs, MenuItemBinding.cs, MenuItem.cs,
MenuItemStyleCollection.cs: Initial Menu code.

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

19 years ago2004-12-03 Atsushi Enomoto <atsushi@ximian.com>
Atsushi Eno [Fri, 3 Dec 2004 18:24:41 +0000 (18:24 -0000)]
2004-12-03  Atsushi Enomoto  <atsushi@ximian.com>

* XmlResultVisitor.cs : ... was still broken.

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

19 years ago2004-12-03 Atsushi Enomoto <atsushi@ximian.com>
Atsushi Eno [Fri, 3 Dec 2004 17:54:39 +0000 (17:54 -0000)]
2004-12-03  Atsushi Enomoto  <atsushi@ximian.com>

* xslttest.cs : improved. See "mono xslttest.exe -?" for details.
* Makefile : modified "make test" to "make run-test" and output
  results into TestResult.Xml that contains all results.
* README : updated as well.

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

19 years ago2004-12-03 Atsushi Enomoto <atsushi@ximian.com>
Atsushi Eno [Fri, 3 Dec 2004 17:07:19 +0000 (17:07 -0000)]
2004-12-03  Atsushi Enomoto <atsushi@ximian.com>

* DTMXPathDocumentWriter.cs : Fix for DTM_CLASS switch that does not
  allow unadjusted arrays.

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

19 years ago2004-12-03 Atsushi Enomoto <atsushi@ximian.com>
Atsushi Eno [Fri, 3 Dec 2004 16:38:42 +0000 (16:38 -0000)]
2004-12-03  Atsushi Enomoto  <atsushi@ximian.com>

* XmlResultVisitor.cs : the last patch does not make sense ;-)

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

19 years ago2004-12-03 Geoff Norton <gnorton@customerdna.com>
Geoff Norton [Fri, 3 Dec 2004 16:11:54 +0000 (16:11 -0000)]
2004-12-03  Geoff Norton  <gnorton@customerdna.com>

        * System.IO/SearchPattern.cs:  Have IsMatch(string)
        call IsMatch(string, bool) to avoid setting a instance variable in a
        method that logically should not be changing it.

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

19 years ago2004-12-03 Atsushi Enomoto <atsushi@ximian.com>
Atsushi Eno [Fri, 3 Dec 2004 16:10:57 +0000 (16:10 -0000)]
2004-12-03  Atsushi Enomoto  <atsushi@ximian.com>

* XmlResultVisitor.cs : Local fix - don't use WriteCData() which
  cannot escape invalid characters. It broke VB unit test. See also:
  http://sourceforge.net/tracker/?group_id=10749&atid=110749&func=detail&aid=1073539

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

19 years agoI forgot to save at the right time :-( Now the file is complete!
Massimiliano Mantione [Fri, 3 Dec 2004 16:06:58 +0000 (16:06 -0000)]
I forgot to save at the right time :-( Now the file is complete!

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

19 years agoIn mcs:
Raja R Harinath [Fri, 3 Dec 2004 15:29:42 +0000 (15:29 -0000)]
In mcs:
Fix test-327.cs, test-328.cs, and put in early infrastructure
for eventually fixing #52697.
* namespace.cs (NamespaceEntry.LookupForUsing): New method.
(NamespaceEntry.LookupNamespaceOrType): New method, refactored
from other methods.
(NamespaceEntry.Lookup): Remove 'ignore_using' flag.
(AliasEntry.Resolve, UsingEntry.Resolve): Use 'LookupForUsing'.
(VerifyUsing, error246): Update.
* rootcontext.cs (RootContext.NamespaceLookup): Just use
'NamespaceEntry.LookupNamespaceOrType'.

In tests:
* Makefile (NEW_TEST_SOURCES_common): Add test-327 and test-328.

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

19 years ago2004-12-03 Zoltan Varga <vargaz@freemail.hu>
Zoltan Varga [Fri, 3 Dec 2004 15:20:11 +0000 (15:20 -0000)]
2004-12-03  Zoltan Varga  <vargaz@freemail.hu>

* reflection.c (compare_genericparam): Sort params with identical
owner by their number. Fixes gen-111 on sparc.

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

19 years ago* configure.in (ENABLE_NUNIT_TESTS): New.
Raja R Harinath [Fri, 3 Dec 2004 15:14:37 +0000 (15:14 -0000)]
* configure.in (ENABLE_NUNIT_TESTS): New.
* runtime/Makefile.am (check-local): Use it to disable nunit
tests.  Ensure that the test dlls are always built, however.

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

19 years agoIn Test:
Raja R Harinath [Fri, 3 Dec 2004 15:11:36 +0000 (15:11 -0000)]
In Test:
* System.IO.Compression/GzipStreamTest.cs: Fix compile errors.
* System.IO.Compression/GzipStreamTest.cs: Likewise.

In System.IO.Compression:
* DeflateStream.cs, GzipStream.cs, CompressionMode.cs: Make class public.

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

19 years agoOops, formatting.
Ravindra [Fri, 3 Dec 2004 14:57:12 +0000 (14:57 -0000)]
Oops, formatting.

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

19 years ago * ListView.cs (ListView_KeyDown):
Ravindra [Fri, 3 Dec 2004 14:55:26 +0000 (14:55 -0000)]
* ListView.cs (ListView_KeyDown):
* ListView.cs (ListView_KeyUp): Fixed multiple selection handling
when CTRL key is pressed.
* ListViewItem.cs (Selected): Fixed setting the property.

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

19 years ago2004-12-03 Martin Baulig <martin@ximian.com>
Martin Baulig [Fri, 3 Dec 2004 14:47:29 +0000 (14:47 -0000)]
2004-12-03  Martin Baulig  <martin@ximian.com>

* arrays/SortedArrayTests.cs: Removed the exception message from
the [ExpectedException(typeof(ArgumentOutOfRangeException))].

* trees/RedBlackTreeSetTests.cs: Likewise.
* trees/Bag.cs: Likewise.

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

19 years agoFixed more FIXME's.
Martin Baulig [Fri, 3 Dec 2004 14:30:19 +0000 (14:30 -0000)]
Fixed more FIXME's.

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

19 years ago2004-12-03 Sureshkumar T <tsureshkumar@novell.com>
Sureshkumar T [Fri, 3 Dec 2004 14:27:19 +0000 (14:27 -0000)]
2004-12-03  Sureshkumar T  <tsureshkumar@novell.com>

* OdbcParameter.cs: Fixed a null reference exception when a
parameter is created and its value is not set. #68750.

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

19 years agoKill more FIXME's.
Martin Baulig [Fri, 3 Dec 2004 14:24:06 +0000 (14:24 -0000)]
Kill more FIXME's.

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

19 years ago* profiles/basic.make (MCS): Run the INTERNAL_MCS.
Raja R Harinath [Fri, 3 Dec 2004 14:23:07 +0000 (14:23 -0000)]
* profiles/basic.make (MCS): Run the INTERNAL_MCS.
(USE_BOOT_COMPILE): Remove.

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

19 years agoRevert parts of r37007.
Raja R Harinath [Fri, 3 Dec 2004 14:22:44 +0000 (14:22 -0000)]
Revert parts of r37007.

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

19 years ago**** Merged r36569 from MCS ****
Martin Baulig [Fri, 3 Dec 2004 14:21:49 +0000 (14:21 -0000)]
**** Merged r36569 from MCS ****
2004-11-25  Miguel de Icaza  <miguel@ximian.com>

* convert.cs (ImplicitReferenceConversionExists): A surprisingly
old bug: when converting from the null literal to a pointer,
return an EmptyCast, not the NullLiteral.

This fixes #69921, the recent null_type changes probably made this
bug more prominent.

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

19 years agoOoops.
Martin Baulig [Fri, 3 Dec 2004 14:21:36 +0000 (14:21 -0000)]
Ooops.

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

19 years agoOoops.
Martin Baulig [Fri, 3 Dec 2004 14:21:17 +0000 (14:21 -0000)]
Ooops.

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

19 years agoNew test.
Martin Baulig [Fri, 3 Dec 2004 14:17:34 +0000 (14:17 -0000)]
New test.

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

19 years ago2004-12-03 Martin Baulig <martin@ximian.com>
Martin Baulig [Fri, 3 Dec 2004 14:17:09 +0000 (14:17 -0000)]
2004-12-03  Martin Baulig  <martin@ximian.com>

* delegate.cs (NewDelegate.DoResolve): If we have an anonymous
method as our child, call AnonymousMethod.Compatible() on it.

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

19 years ago2004-12-03 Martin Baulig <martin@ximian.com>
Martin Baulig [Fri, 3 Dec 2004 14:16:40 +0000 (14:16 -0000)]
2004-12-03  Martin Baulig  <martin@ximian.com>

* delegate.cs (NewDelegate.DoResolve): If we have an anonymous
method as our child, call AnonymousMethod.Compatible() on it.

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

19 years ago2004-12-03 Atsushi Enomoto <atsushi@ximian.com>
Atsushi Eno [Fri, 3 Dec 2004 13:51:09 +0000 (13:51 -0000)]
2004-12-03  Atsushi Enomoto  <atsushi@ximian.com>

* monop.cs : csc build fix. See bug #70185 for details.

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

19 years ago**** Merged r36976 from MCS ****
Martin Baulig [Fri, 3 Dec 2004 13:44:34 +0000 (13:44 -0000)]
**** Merged r36976 from MCS ****
2004-12-02  Miguel de Icaza  <miguel@ximian.com>

* class.cs (FieldBase): Use an unused bit field from the field to
encode the `has_offset' property from the FieldMember.  This saves
a couple of Ks on bootstrap compilation.

* delegate.cs (NewDelegate.DoResolve): If we have an anonymous
method as our child, return the AnonymousMethod resolved
expression.

* expression.cs (New.DoResolve): Allow return values from
NewDelegate to also include AnonymousMethods.

Fixes #70150.

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

19 years agoremove stray ^Ms, and try to ensure it doesn't happen again
Raja R Harinath [Fri, 3 Dec 2004 13:35:34 +0000 (13:35 -0000)]
remove stray ^Ms, and try to ensure it doesn't happen again

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

19 years agoSome old versions of mono/mcs (e.g., mono-core-1.1.2-1.ximian.8.1)
Raja R Harinath [Fri, 3 Dec 2004 13:19:59 +0000 (13:19 -0000)]
Some old versions of mono/mcs (e.g., mono-core-1.1.2-1.ximian.8.1)
have trouble building System.Xml, with errors like:

  Could not load class from token 0x1000074 in /usr/lib/mono/1.0/System.dll

In mcs:
Disable XML documentation support in 'basic' profile.
* decl.cs, class.cs [BOOTSTRAP_WITH_OLDLIB]: Don't import System.Xml.
Redirect XmlElement to System.Object.
* driver.cs, enum.cs, rootcontext.cs: Don't reference System.Xml.
* doc.cs [BOOTSTRAP_WITH_OLDLIB]: Disable compile.
* mcs.exe.sources: Add doc-bootstrap.cs.
* doc-bootstrap.cs: New file.  Contains empty stub implementation
of doc.cs.

In class/System.XML:
* Makefile: Remove support for being in bootstrap build.

In class:
System.Xml.dll is no longer built in the 'basic' profile.
* Makefile (basic_SUBDIRS): Don't mention System.XML.
(basic_files): Remove System.Xml.dll.

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

19 years ago* test-326.cs (Main): Set return type to int, not void.
Raja R Harinath [Fri, 3 Dec 2004 12:25:11 +0000 (12:25 -0000)]
* test-326.cs (Main): Set return type to int, not void.

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

19 years ago2004-12-03 Massimiliano Mantione <massi@ximian.com>
Massimiliano Mantione [Fri, 3 Dec 2004 11:42:12 +0000 (11:42 -0000)]
2004-12-03  Massimiliano Mantione  <massi@ximian.com>

* mini.c: Added removal of critical edges (prerequisite for SSAPRE),
and some utility functions (always for SSAPRE), integrated SSAPRE.
* mini.h: Likewise.
* driver.c: Added ssapre option.
* ssa.c: Small fix on OP_ARG handling.
* ssapre.c, ssapre.h: Added files containing SSAPRE implementation.
* Makefile.am: Likewise.
* ../docs/ssapre.txt: Added SSAPRE documentation.

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

19 years ago2004-12-03 Marek Safar <marek.safar@seznam.cz>
Marek Safar [Fri, 3 Dec 2004 11:30:17 +0000 (11:30 -0000)]
2004-12-03  Marek Safar  <marek.safar@seznam.cz>

* Application.cs (OnThreadException): Use ThreadExceptionDialog.

* Form.cs: Add ActiveForm, FormBorderStyle, MaximizeBox,
MinimizeBox, ShowInTaskbar, TopMost properties.

* ThreadExceptionDialog.cs: Implemented (disabled TextBox until
will be implemented).

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

19 years ago2004-12-03 Marek Safar <marek.safar@seznam.cz>
Marek Safar [Fri, 3 Dec 2004 10:04:21 +0000 (10:04 -0000)]
2004-12-03  Marek Safar  <marek.safar@seznam.cz>

* Makefile: Added System.Drawing.dll deps for tests.

* System.Windows.Forms_test.dll.sources: New test files.

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

19 years agonew test file
Marek Safar [Fri, 3 Dec 2004 09:58:07 +0000 (09:58 -0000)]
new test file

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

19 years agoImproved tests
Marek Safar [Fri, 3 Dec 2004 09:56:05 +0000 (09:56 -0000)]
Improved tests

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

19 years ago2004-12-03 Marek Safar <marek.safar@seznam.cz>
Marek Safar [Fri, 3 Dec 2004 09:55:02 +0000 (09:55 -0000)]
2004-12-03  Marek Safar  <marek.safar@seznam.cz>

* OwnerDrawPropertyBag.cs: New internal parameterless ctor.

* TreeNode.cs: Implemented ICloneable, Fixed to pass my simple
tests.

* TreeNodeCollection.cs: Add exception throwing for Add,AddRange.

* TreeView.cs: BackColor is Colors.Window.

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

19 years ago2004-12-03 Gonzalo Paniagua Javier <gonzalo@ximian.com>
Gonzalo Paniagua Javier [Fri, 3 Dec 2004 09:54:10 +0000 (09:54 -0000)]
2004-12-03 Gonzalo Paniagua Javier <gonzalo@ximian.com>

* SoapHttpClientProtocol.cs: dispose the StreamReader that wraps the
response stream.

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

19 years ago* VBCodeProviderTest.cs: Change namespace to
Raja R Harinath [Fri, 3 Dec 2004 09:30:16 +0000 (09:30 -0000)]
* VBCodeProviderTest.cs: Change namespace to
MonoTests.Microsoft.VisualBasic.

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

19 years ago* Makefile (basic_SUBDIRS): Add second-pass System, too.
Raja R Harinath [Fri, 3 Dec 2004 09:29:45 +0000 (09:29 -0000)]
* Makefile (basic_SUBDIRS): Add second-pass System, too.
(basic_files): Add System.Xml.dll.

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

19 years ago2004-12-03 Gonzalo Paniagua Javier <gonzalo@ximian.com>
Gonzalo Paniagua Javier [Fri, 3 Dec 2004 08:37:45 +0000 (08:37 -0000)]
2004-12-03 Gonzalo Paniagua Javier <gonzalo@ximian.com>

* XmlTextReader.cs: don't use \0 as buffer terminator.
* XmlInputStream.cs: s/Array.Copy/Buffer.BlockCopy/.

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

19 years ago2004-12-03 Gonzalo Paniagua Javier <gonzalo@ximian.com>
Gonzalo Paniagua Javier [Fri, 3 Dec 2004 07:37:32 +0000 (07:37 -0000)]
2004-12-03 Gonzalo Paniagua Javier <gonzalo@ximian.com>

* WebConnection.cs: remove prevStream and don't set busy to false in
HandleError. prevStream is not needed any more and setting 'busy' so
early might let a request skip the queue.

* WebConnectionGroup.cs: decrement the indexer when removing a dead
reference from the arraylist.

* WebConnectionStream.cs:
(ReadAll): call NextRead if it has not been called before even when
we have completed the request. Reuse the read buffer when reading a
response of unknown size. Increase the buffer to 8kB.
(BeginRead): increase pendingReads earlier and even when reading from
the internal buffer.
(EndRead): decrease pendingReads later and always.

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

19 years ago* Makefile.am (dist-hook): Ensure we use the 'default' profile.
Raja R Harinath [Fri, 3 Dec 2004 06:51:50 +0000 (06:51 -0000)]
* Makefile.am (dist-hook): Ensure we use the 'default' profile.
* mono/Makefile.am (HANDLES): New.  Disable 'handles' dir on Win32.
(SUBDIRS): Use it.  Move 'cil' before 'metadata'.
* runtime/Makefile.am (install-exec): Pass
RUNTIME_HAS_CONSISTENT_GACDIR to the mcs/ build.

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

19 years ago* library.make (gacdir_flag): New. Disable /gacdir flag if
Raja R Harinath [Fri, 3 Dec 2004 06:46:36 +0000 (06:46 -0000)]
* library.make (gacdir_flag): New.  Disable /gacdir flag if
RUNTIME_HAS_CONSISTENT_GACDIR flag is set.
(install-local): Use it.

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

19 years ago2004-12-03 Gonzalo Paniagua Javier <gonzalo@ximian.com>
Gonzalo Paniagua Javier [Fri, 3 Dec 2004 06:24:59 +0000 (06:24 -0000)]
2004-12-03 Gonzalo Paniagua Javier <gonzalo@ximian.com>

* NetworkStream.cs: Write should ensure that writes all the contents
of the buffer. Fixes bug #70123. Besos para Miguelito.

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

19 years ago2004-12-03 Atsushi Enomoto <atsushi@ximian.com>
Atsushi Eno [Fri, 3 Dec 2004 05:58:33 +0000 (05:58 -0000)]
2004-12-03  Atsushi Enomoto  <atsushi@ximian.com>

* cs-tokenizer.cs : Only '////' is rejected. Other non-whitespace
  comments are allowed.

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

19 years ago2004-12-03 Carlos Alberto Cortez <calberto.cortez@gmail.com>
Carlos Alberto Cortez [Fri, 3 Dec 2004 05:38:30 +0000 (05:38 -0000)]
2004-12-03  Carlos Alberto Cortez <calberto.cortez@gmail.com>

* delegate.cs: Add checks for subtypes in paramaters and return values
in VerifyMethod () to add support for Covariance/Contravariance
in delegates.

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

19 years ago * TreeView.cs: When resizing the tree if the user is making it
Jackson Harper [Fri, 3 Dec 2004 04:40:33 +0000 (04:40 -0000)]
* TreeView.cs: When resizing the tree if the user is making it
smaller we don't get expose events, so we need to handle adding
the horizontal scrollbar in the size changed handler as well as
the expose handler.

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

19 years ago * ExternTypeRefInst.cs: When converting to arrays we loose our valuetypedness.
Jackson Harper [Fri, 3 Dec 2004 04:11:55 +0000 (04:11 -0000)]
* ExternTypeRefInst.cs: When converting to arrays we loose our valuetypedness.

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

19 years ago * MethodDef.cs: Abstract methods don't get bodies. Even if there
Jackson Harper [Fri, 3 Dec 2004 03:33:14 +0000 (03:33 -0000)]
* MethodDef.cs: Abstract methods don't get bodies. Even if there
are bodies there.

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