mono.git
19 years ago2004-10-29 Sebastien Pouliot <sebastien@ximian.com>
Sebastien Pouliot [Fri, 29 Oct 2004 13:40:51 +0000 (13:40 -0000)]
2004-10-29  Sebastien Pouliot  <sebastien@ximian.com>

* ASN1.cs: Throw an NotSupportedException when "undefined length
encoding" is used (#68903 but it's not a fix ;-). Fixed GetBytes to
encode structures bigger than 64k (fix #68907). Simplified ToString
and added Length to help debugging.

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

19 years ago2004-10-29 Atsushi Enomoto <atsushi@ximian.com>
Atsushi Eno [Fri, 29 Oct 2004 12:21:38 +0000 (12:21 -0000)]
2004-10-29  Atsushi Enomoto <atsushi@ximian.com>

* XmlSchemaAttribute.cs : AttributeSchemaType could be determined on
  compilation time. AttributeType is obsolete.
* XmlSchemaElement.cs : ditto for ElementSchemaType and ElementType.

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

19 years agoHelp the gc
Jordi Mas i Hernandez [Fri, 29 Oct 2004 11:58:24 +0000 (11:58 -0000)]
Help the gc

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

19 years ago(install-local): Install .mdb files too.
Raja R Harinath [Fri, 29 Oct 2004 10:50:37 +0000 (10:50 -0000)]
(install-local): Install .mdb files too.
(uninstall-local): Remove them.

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

19 years ago(bootstrap_libs,bootstrap_libfiles): New.
Raja R Harinath [Fri, 29 Oct 2004 10:49:05 +0000 (10:49 -0000)]
(bootstrap_libs,bootstrap_libfiles): New.
(bootstrap-libs): New target.  Invokes the net_2_0_bootstrap profile.
(gmcs.exe): Invoke bootstrap-libs.
(clean-local): Clean the net_2_0_bootstrap profile too.
(PROGRAM_INSTALL_DIR): New.
(install-local): Use it.

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

19 years agoMove support for building net_2_0_bootstrap libraries
Raja R Harinath [Fri, 29 Oct 2004 10:46:40 +0000 (10:46 -0000)]
Move support for building net_2_0_bootstrap libraries
to gmcs.

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

19 years ago(net_2_0_SUBDIRS): New. Only build 'wsdl' in the
Raja R Harinath [Fri, 29 Oct 2004 10:45:00 +0000 (10:45 -0000)]
(net_2_0_SUBDIRS): New.  Only build 'wsdl' in the
net_2_0 profile.

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

19 years ago(net_2_0_bootstrap_SUBDIRS): New.
Raja R Harinath [Fri, 29 Oct 2004 10:43:16 +0000 (10:43 -0000)]
(net_2_0_bootstrap_SUBDIRS): New.

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

19 years ago(PROFILE_MCS_FLAGS): Remove
Raja R Harinath [Fri, 29 Oct 2004 10:40:18 +0000 (10:40 -0000)]
(PROFILE_MCS_FLAGS): Remove
-langversion:default flag.

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

19 years ago(net_2_0_bootstrap_SUBDIRS,net_2_0_SUBDIRS): New.
Raja R Harinath [Fri, 29 Oct 2004 10:39:17 +0000 (10:39 -0000)]
(net_2_0_bootstrap_SUBDIRS,net_2_0_SUBDIRS): New.
(profile-do--net_2_0_bootstrap--all): New target.
(profile-do--net_2_0--all): Depend on it.
(distdir,top_distdir): Remove.
(dist-tarball): Define distdir here for dist-recursive.

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

19 years agoMake 'dist-recursive' better integrate with automake's 'make dist'.
Raja R Harinath [Fri, 29 Oct 2004 10:38:58 +0000 (10:38 -0000)]
Make 'dist-recursive' better integrate with automake's 'make dist'.

(distdir): Remove.
(PROFILE_SUBDIRS): New.  Support profile-specific SUBDIRS.
(DIST_SUBDIRS): New.
(dist-recursive): Define distdir here.

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

19 years ago2004-10-29 Atsushi Enomoto <atsushi@ximian.com>
Atsushi Eno [Fri, 29 Oct 2004 09:35:12 +0000 (09:35 -0000)]
2004-10-29  Atsushi Enomoto <atsushi@ximian.com>

* XmlSchemaComplexType.cs : added LocalElements, with the description
  why it can never be correct implementation.
* XmlSchemaUtil.cs : use IHasXmlParserContext.

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

19 years ago2004-10-30 Umadevi S <sumadevi@novell.com>
Umadevi S [Fri, 29 Oct 2004 08:39:00 +0000 (08:39 -0000)]
2004-10-30 Umadevi S <sumadevi@novell.com>
        * SqlDataAdapterTest.cs - Added testcase for nullguid

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

19 years ago2004-10-29 Atsushi Enomoto <atsushi@ximian.com>
Atsushi Eno [Fri, 29 Oct 2004 08:36:44 +0000 (08:36 -0000)]
2004-10-29  Atsushi Enomoto  <atsushi@ximian.com>

* Makefile : just ignore obsolete attribute warnings (those obsolete
  members are widely used in obsolete code).

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

19 years ago2004-10-29 Atsushi Enomoto <atsushi@ximian.com>
Atsushi Eno [Fri, 29 Oct 2004 08:33:35 +0000 (08:33 -0000)]
2004-10-29  Atsushi Enomoto <atsushi@ximian.com>

* XmlSchemaSimpleTypeUnion.cs : Added 2.0 BaseMemberTypes property
  (this property name is also ambiguous and should be changed too.)

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

19 years ago2004-10-29 Atsushi Enomoto <atsushi@ximian.com>
Atsushi Eno [Fri, 29 Oct 2004 07:15:47 +0000 (07:15 -0000)]
2004-10-29  Atsushi Enomoto <atsushi@ximian.com>

* XmlSchemaSimpleTypeList.cs : Added 2.0 BaseItemType property (BTW
  this property name is really ambiguous and should be changed.)

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

19 years ago2004-10-29 Atsushi Enomoto <atsushi@ximian.com>
Atsushi Eno [Fri, 29 Oct 2004 06:56:59 +0000 (06:56 -0000)]
2004-10-29  Atsushi Enomoto <atsushi@ximian.com>

* XmlValidatingReader.cs : fixed incorrect recursion between
  indexer and GetAttribute().

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

19 years ago2004-10-30 Umadevi S <sumadevi@novell.com>
Umadevi S [Fri, 29 Oct 2004 05:27:33 +0000 (05:27 -0000)]
2004-10-30 Umadevi S <sumadevi@novell.com>
        * Tds.cs : GetColumnValue method: handling null guid values correctly.
                This fixes bug #68804.
                Thanks for the patch /bug report by Aleksandar Dezelin

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

19 years ago2004-10-29 Atsushi Enomoto <atsushi@ximian.com>
Atsushi Eno [Fri, 29 Oct 2004 04:48:04 +0000 (04:48 -0000)]
2004-10-29  Atsushi Enomoto <atsushi@ximian.com>

* DTDReader.cs, DTDValidatingReader.cs, XmlTextReader.cs :
  When XmlTextReader is created with NodeType Element or Attribute,
  skip possible text declaration (that might be used for resolving
  entities) that specifies text encoding. With this fix, bug #61274
  must be regarded as fixed.

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

19 years ago2004-10-29 Atsushi Enomoto <atsushi@ximian.com>
Atsushi Eno [Fri, 29 Oct 2004 04:26:02 +0000 (04:26 -0000)]
2004-10-29  Atsushi Enomoto <atsushi@ximian.com>

* XmlNodeReader.cs : Reimplemented ResolveEntity(). It does not use
  XmlTextReader trick anymore. XmlNodeReader itself it used instead.

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

19 years ago2004-10-29 Gonzalo Paniagua Javier <gonzalo@ximian.com>
Gonzalo Paniagua Javier [Fri, 29 Oct 2004 04:16:46 +0000 (04:16 -0000)]
2004-10-29 Gonzalo Paniagua Javier <gonzalo@ximian.com>

* AspGenerator.cs: correctly process script tags that self-closing.
Fixes bug #69657.

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

19 years ago2004-10-29 Atsushi Enomoto <atsushi@ximian.com>
Atsushi Eno [Fri, 29 Oct 2004 03:20:30 +0000 (03:20 -0000)]
2004-10-29  Atsushi Enomoto <atsushi@ximian.com>

* XmlNodeReader.cs : for NET_1_0 ReadInnerXml(), just use
  XmlReader.ReadInnerXmlInternal(). It should work fine.
  Ditto for ReadOuterXml().

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

19 years agoOops. Correcting the grave errors that I "committed" previously.
Jambunathan K [Fri, 29 Oct 2004 03:13:19 +0000 (03:13 -0000)]
Oops. Correcting the grave errors that I "committed" previously.

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

19 years agoOops.
Jambunathan K [Fri, 29 Oct 2004 03:00:43 +0000 (03:00 -0000)]
Oops.

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

19 years ago2004-10-29 Atsushi Enomoto <atsushi@ximian.com>
Atsushi Eno [Fri, 29 Oct 2004 02:51:37 +0000 (02:51 -0000)]
2004-10-29  Atsushi Enomoto <atsushi@ximian.com>

* XmlNodeReader.cs : removed unused/unreachable code. Simplify
  namespace lookup.

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

19 years ago2004-10-29 Atsushi Enomoto <atsushi@ximian.com>
Atsushi Eno [Fri, 29 Oct 2004 02:07:07 +0000 (02:07 -0000)]
2004-10-29  Atsushi Enomoto <atsushi@ximian.com>

* XmlReaderCommonTests.cs : ReadAsObject() is removed.
* XmlTextWriterTests.cs : added CloseTwice().
* XmlNodeTests.cs : added labels.

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

19 years ago2004-10-29 Atsushi Enomoto <atsushi@ximian.com>
Atsushi Eno [Fri, 29 Oct 2004 01:20:48 +0000 (01:20 -0000)]
2004-10-29  Atsushi Enomoto <atsushi@ximian.com>

* XmlDocument.cs, XmlNodeReader.cs, XmlTextReader.cs,
  XmlValidatingReader.cs : Those readers could just implement internal
  interface IHasXmlParserContext.
* XmlTextReader.cs, XmlValidatingReader.cs : this[] disappeared in 2.0.
  (XmlReader has them as virtual.)
* XmlReader.cs : ReadAsObject() disappeared.
* XmlWriter.cs : WriteFromObject() disappeared.

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

19 years ago2004-10-29 Atsushi Enomoto <atsushi@ximian.com>
Atsushi Eno [Fri, 29 Oct 2004 01:16:28 +0000 (01:16 -0000)]
2004-10-29  Atsushi Enomoto <atsushi@ximian.com>

* XPathEditableDocument.cs : internalize classes.

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

19 years ago2004-10-29 Atsushi Enomoto <atsushi@ximian.com>
Atsushi Eno [Fri, 29 Oct 2004 01:13:03 +0000 (01:13 -0000)]
2004-10-29  Atsushi Enomoto <atsushi@ximian.com>

* XmlDocumentNavigator.cs : GetNode() should consider namespace nodes.
* XmlNode.cs : dustclean.

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

19 years ago... should have been removed in the last commit.
Atsushi Eno [Thu, 28 Oct 2004 20:26:16 +0000 (20:26 -0000)]
... should have been removed in the last commit.

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

19 years agoOops
Miguel de Icaza [Thu, 28 Oct 2004 18:47:13 +0000 (18:47 -0000)]
Oops

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

19 years agoUpdate
Miguel de Icaza [Thu, 28 Oct 2004 18:42:23 +0000 (18:42 -0000)]
Update

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

19 years ago2004-10-28 Ben Maurer <bmaurer@ximian.com>
Ben Maurer [Thu, 28 Oct 2004 18:22:26 +0000 (18:22 -0000)]
2004-10-28  Ben Maurer  <bmaurer@ximian.com>

* String.cs: Rather than == String.Empty, use .Length == 0. It
is a bit faster (avoids a method call, and the code is less complex).

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

19 years ago2004-10-28 Sebastien Pouliot <sebastien@ximian.com>
Sebastien Pouliot [Thu, 28 Oct 2004 17:56:40 +0000 (17:56 -0000)]
2004-10-28  Sebastien Pouliot  <sebastien@ximian.com>

* Updated to NUnit 2.2.0 Final Release.

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

19 years agoNew files.
Sebastien Pouliot [Thu, 28 Oct 2004 17:55:19 +0000 (17:55 -0000)]
New files.

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

19 years ago* mb-parser.jay: Refined the attributes grammar so that a
Jambunathan K [Thu, 28 Oct 2004 17:46:46 +0000 (17:46 -0000)]
* mb-parser.jay: Refined the attributes grammar so that a
syntactically correct VB.NET file containing both global and
non-global attributes could atleast be tokenized correctly.

* errors/AttributesC8.vb:
* errors/AttributesC7.vb:
* errors/AttributesC3.vb: Newly added.

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

19 years agoAdd another test case, this was a recent regression
Miguel de Icaza [Thu, 28 Oct 2004 15:45:38 +0000 (15:45 -0000)]
Add another test case, this was a recent regression

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

19 years ago2004-10-28 Sebastien Pouliot <sebastien@ximian.com>
Sebastien Pouliot [Thu, 28 Oct 2004 12:32:10 +0000 (12:32 -0000)]
2004-10-28  Sebastien Pouliot  <sebastien@ximian.com>

* KeyPairPersistenceTest.cs: Fix two tests to work even if the user
doesn't have access to the machine key store.

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

19 years ago2004-10-28 Sebastien Pouliot <sebastien@ximian.com>
Sebastien Pouliot [Thu, 28 Oct 2004 12:30:08 +0000 (12:30 -0000)]
2004-10-28  Sebastien Pouliot  <sebastien@ximian.com>

* AuthenticodeDeformatterTest.cs: Check timestamp as an UTC value so
that the test can work anywhere in the world (and not just at home ;)

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

19 years ago2004-10-28 Sebastien Pouliot <sebastien@ximian.com>
Sebastien Pouliot [Thu, 28 Oct 2004 11:54:56 +0000 (11:54 -0000)]
2004-10-28  Sebastien Pouliot  <sebastien@ximian.com>

* KeyPairPersistence.cs: Added localization for exceptions messages.
Also added more details (type and path) when an exception is thrown.

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

19 years ago * gdipFunctions.cs: Added checks for null stream in the
Ravindra [Thu, 28 Oct 2004 11:34:12 +0000 (11:34 -0000)]
* gdipFunctions.cs: Added checks for null stream in the
StreamHelper internal class.
* Icon.cs: Removed an ugly hack that used temp files in
ToBitmap () method. We use MemoryStream instead.

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

19 years ago2004-10-28 Atsushi Enomoto <atsushi@ximian.com>
Atsushi Eno [Thu, 28 Oct 2004 06:29:02 +0000 (06:29 -0000)]
2004-10-28  Atsushi Enomoto <atsushi@ximian.com>

* XPathEditableDocument.cs : Copied from sys.xml.

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

19 years ago2004-10-28 Atsushi Enomoto <atsushi@ximian.com>
Atsushi Eno [Thu, 28 Oct 2004 06:27:46 +0000 (06:27 -0000)]
2004-10-28  Atsushi Enomoto <atsushi@ximian.com>

* XmlDocument.cs : use XPathEditableDocument again.
* XmlNode.cs : To be compatible with XPathEditableDocument, it should
  not cast XPathNavigator to XmlDocumentNavigator but to IHasXmlNode.

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

19 years ago2004-10-28 Atsushi Enomoto <atsushi@ximian.com>
Atsushi Eno [Thu, 28 Oct 2004 06:26:53 +0000 (06:26 -0000)]
2004-10-28  Atsushi Enomoto <atsushi@ximian.com>

* XPathEditableDocument.cs : fixed wrong recursion problem.

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

19 years ago2004-10-28 Atsushi Enomoto <atsushi@ximian.com>
Atsushi Eno [Thu, 28 Oct 2004 05:13:09 +0000 (05:13 -0000)]
2004-10-28  Atsushi Enomoto <atsushi@ximian.com>

* .cvsignore : should be here ;-)

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

19 years ago2004-10-28 Atsushi Enomoto <atsushi@ximian.com>
Atsushi Eno [Thu, 28 Oct 2004 05:10:05 +0000 (05:10 -0000)]
2004-10-28  Atsushi Enomoto <atsushi@ximian.com>

* Mono.Xml.Ext.dll.sources : added new files.
* .cvsignore : added

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

19 years ago2004-10-28 Atsushi Enomoto <atsushi@ximian.com>
Atsushi Eno [Thu, 28 Oct 2004 05:05:40 +0000 (05:05 -0000)]
2004-10-28  Atsushi Enomoto <atsushi@ximian.com>

* XmlCachingResolver.cs : added (thanks to BenM).
* XmlNodeWriter.cs, SubtreeXmlReader.cs : added (copy from sys.xml).
* InternalPool.cs : it is NET_2_0.
* XmlStoredResolver.cs : namespace Mono.Xml.

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

19 years ago- Now throws a nice error message when no X display could be opened
Peter Dennis Bartok [Thu, 28 Oct 2004 04:58:13 +0000 (04:58 -0000)]
- Now throws a nice error message when no X display could be opened

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

19 years ago2004-10-28 Atsushi Enomoto <atsushi@ximian.com>
Atsushi Eno [Thu, 28 Oct 2004 03:01:13 +0000 (03:01 -0000)]
2004-10-28  Atsushi Enomoto <atsushi@ximian.com>

* XmlChar.cs, XmlConstructs.cs :
  Switched again, for reducing per-process memory consumption.
* XmlInputStream.cs :
  Just 64 bytes of buffer would be enough, for example like
  <?xml version="1.0" encoding="iso-8859-15" standalone="yes" ?>

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

19 years ago2004-10-28 Atsushi Enomoto <atsushi@ximian.com>
Atsushi Eno [Thu, 28 Oct 2004 02:48:41 +0000 (02:48 -0000)]
2004-10-28  Atsushi Enomoto <atsushi@ximian.com>

* XmlSchemaAttributeGroup.cs, XmlSchemaGroup.cs :
  in 2.0, QualifiedName properties are public.
* XmlSchemaType.cs : TypeCode is [XmlIgnore] (anyways ignored though).

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

19 years ago2004-10-28 Atsushi Enomoto <atsushi@ximian.com>
Atsushi Eno [Thu, 28 Oct 2004 02:48:09 +0000 (02:48 -0000)]
2004-10-28  Atsushi Enomoto <atsushi@ximian.com>

* XQueryConvert.cs : hexbinary to base64 is now byte[] to byte[].

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

19 years ago2004-10-28 Atsushi Enomoto <atsushi@ximian.com>
Atsushi Eno [Thu, 28 Oct 2004 02:41:43 +0000 (02:41 -0000)]
2004-10-28  Atsushi Enomoto <atsushi@ximian.com>

* SubtreeXmlReader.cs, XmlFilterReader.cs : internal.

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

19 years ago2004-10-28 Atsushi Enomoto <atsushi@ximian.com>
Atsushi Eno [Thu, 28 Oct 2004 02:41:21 +0000 (02:41 -0000)]
2004-10-28  Atsushi Enomoto  <atsushi@ximian.com>

* System.Xml.dll.sources : removed IXmlDataEvidence, fixed
  XmlDateTimeSerializationMode, added NewLineHandling.

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

19 years ago2004-10-28 Atsushi Enomoto <atsushi@ximian.com>
Atsushi Eno [Thu, 28 Oct 2004 02:41:01 +0000 (02:41 -0000)]
2004-10-28  Atsushi Enomoto <atsushi@ximian.com>

* IXmlDataEvidence.cs : disappeared.
* XmlConvertDateTimeSerializationMode.cs : incorrect filename. removed.
* XmlDateTimeSerializationMode.cs : added
* NewLineHandling.cs : added
* IXmlNamespaceResolver.cs, XmlNamespaceManager.cs :
  now 'atomizedNames' is obsolete.
* XmlReaderSettings.cs, XmlWriterSettings.cs :
  Should not be sealed. Should not be ICloneable.

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

19 years agoPatch so we can bootstrap with older mcs
Miguel de Icaza [Thu, 28 Oct 2004 01:51:54 +0000 (01:51 -0000)]
Patch so we can bootstrap with older mcs

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

19 years ago2004-10-28 Atsushi Enomoto <atsushi@ximian.com>
Atsushi Eno [Thu, 28 Oct 2004 01:26:49 +0000 (01:26 -0000)]
2004-10-28  Atsushi Enomoto <atsushi@ximian.com>

* XmlDocument.cs : XPathEditableDocument looks broken. Just reverted
  to fix 2.0 corcompare.

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

19 years ago2004-10-27 Chris Toshok <toshok@ximian.com>
Chris Toshok [Wed, 27 Oct 2004 23:25:38 +0000 (23:25 -0000)]
2004-10-27  Chris Toshok  <toshok@ximian.com>

* mono-debug-debugger.c (write_class): don't call mono_class_init
here, as even with the check for (!klass->init_pending), we get
into a situation where we're hitting cycles in class
initialization.  Fixes #68816.

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

19 years ago2004-10-27 Gonzalo Paniagua Javier <gonzalo@ximian.com>
Gonzalo Paniagua Javier [Wed, 27 Oct 2004 23:17:14 +0000 (23:17 -0000)]
2004-10-27 Gonzalo Paniagua Javier <gonzalo@ximian.com>

* HttpApplication.cs: don't hang if a sync step is aborted. Fixes the
system.web portion of bug #68270.

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

19 years ago2004-10-27 Miguel de Icaza <miguel@ximian.com>
Miguel de Icaza [Wed, 27 Oct 2004 21:04:35 +0000 (21:04 -0000)]
2004-10-27  Miguel de Icaza  <miguel@ximian.com>

* expression.cs (LocalVariableReference.DoResolveLValue): Check
for obsolete use of a variable here.   Fixes regression on errors

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

19 years agoUpdate
Miguel de Icaza [Wed, 27 Oct 2004 20:35:12 +0000 (20:35 -0000)]
Update

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

19 years ago2004-10-27 Ben Maurer <bmaurer@ximian.com>
Ben Maurer [Wed, 27 Oct 2004 20:17:07 +0000 (20:17 -0000)]
2004-10-27  Ben Maurer  <bmaurer@ximian.com>

* TextInfoTest.cs: Fix up migster's type

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

19 years ago2004-10-27 Gonzalo Paniagua Javier <gonzalo@ximian.com>
Gonzalo Paniagua Javier [Wed, 27 Oct 2004 20:07:06 +0000 (20:07 -0000)]
2004-10-27 Gonzalo Paniagua Javier <gonzalo@ximian.com>

* HttpWebRequest.cs: don't fail if the request has already been sent
when accessing ContentType setter. Fixes bug #68848.

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

19 years agonew error tests
Marek Safar [Wed, 27 Oct 2004 19:57:40 +0000 (19:57 -0000)]
new error tests

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

19 years ago2004-10-27 Ben Maurer <bmaurer@ximian.com>
Ben Maurer [Wed, 27 Oct 2004 19:19:07 +0000 (19:19 -0000)]
2004-10-27  Ben Maurer  <bmaurer@ximian.com>

* DateTimeTest.cs (TestToString): Remove test C28.
The test does not work in banglore because they have an
offset that has a half-hour part.

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

19 years ago2004-10-27 Marek Safar <marek.safar@seznam.cz>
Marek Safar [Wed, 27 Oct 2004 19:14:02 +0000 (19:14 -0000)]
2004-10-27  Marek Safar  <marek.safar@seznam.cz>

Fix #62358, implemented security attribute encoding.

* attribute.cs (Attribute.CheckSecurityActionValididy): New method.
Tests permitted SecurityAction for assembly or other types.
(Assembly.ExtractSecurityPermissionSet): New method. Transforms
data from SecurityPermissionAttribute to PermisionSet class.

* class.cs (ApplyAttributeBuilder): Added special handling
for System.Security.Permissions.SecurityAttribute based types.

* codegen.cs (AssemblyClass.ApplyAttributeBuilder): Added
special handling for System.Security.Permissions.SecurityAttribute
based types.

* enum.cs (ApplyAttributeBuilder): Added special handling
for System.Security.Permissions.SecurityAttribute based types.

* parameter.cs (ApplyAttributeBuilder): Added special handling
for System.Security.Permissions.SecurityAttribute based types.

* rootcontext.cs: Next 2 core types.

* typemanager.cs (TypeManager.security_permission_attr_type):
Built in type for the SecurityPermission Attribute.
(code_access_permission_type): Build in type.

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

19 years ago2004-10-27 Sebastien Pouliot <sebastien@ximian.com>
Sebastien Pouliot [Wed, 27 Oct 2004 19:10:54 +0000 (19:10 -0000)]
2004-10-27  Sebastien Pouliot  <sebastien@ximian.com>

* signcode.cs: -i (url) and -n (description) parameters were inverted.

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

19 years ago2004-10-27 Gonzalo Paniagua Javier <gonzalo@ximian.com>
Gonzalo Paniagua Javier [Wed, 27 Oct 2004 19:06:12 +0000 (19:06 -0000)]
2004-10-27 Gonzalo Paniagua Javier <gonzalo@ximian.com>

* CachingCompiler.cs: when compiling a single .cs file, add the file
itself to dependencies. Fixes bug #68788.

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

19 years ago2004-10-27 John Luke <john.luke@gmail.com>
John Luke [Wed, 27 Oct 2004 19:00:05 +0000 (19:00 -0000)]
2004-10-27  John Luke  <john.luke@gmail.com>

        * outline.cs: report [Obsolete] types

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

19 years agoUpdate with MONO_XMLSERIALIZER_THS docs, and sort the env variable section
Miguel de Icaza [Wed, 27 Oct 2004 17:52:21 +0000 (17:52 -0000)]
Update with MONO_XMLSERIALIZER_THS docs, and sort the env variable section

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

19 years agoenabled the Replace test (which was disabled due to compilation errors by mbas in...
Jochen Wezel [Wed, 27 Oct 2004 14:24:51 +0000 (14:24 -0000)]
enabled the Replace test (which was disabled due to compilation errors by mbas in the history)

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

19 years agofixes bug 66533
Jordi Mas i Hernandez [Wed, 27 Oct 2004 12:12:33 +0000 (12:12 -0000)]
fixes bug 66533

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

19 years agoChangeLog: Updated.
Sanja Gupta [Wed, 27 Oct 2004 11:01:09 +0000 (11:01 -0000)]
ChangeLog: Updated.
SmtpClient.cs: Fixed bug 68829.

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

19 years ago2004-10-27 Atsushi Enomoto <atsushi@ximian.com>
Atsushi Eno [Wed, 27 Oct 2004 04:40:28 +0000 (04:40 -0000)]
2004-10-27  Atsushi Enomoto <atsushi@ximian.com>

* README : new file.

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

19 years agoFlusheroo
Miguel de Icaza [Wed, 27 Oct 2004 01:35:31 +0000 (01:35 -0000)]
Flusheroo

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

19 years ago2004-10-26 Gonzalo Paniagua Javier <gonzalo@ximian.com>
Gonzalo Paniagua Javier [Wed, 27 Oct 2004 01:03:14 +0000 (01:03 -0000)]
2004-10-26 Gonzalo Paniagua Javier <gonzalo@ximian.com>

* System.Design.dll.sources: added files in
System.Web.UI.Design.WebControls.

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

19 years ago2004-10-26 Gonzalo Paniagua Javier <gonzalo@ximian.com>
Gonzalo Paniagua Javier [Wed, 27 Oct 2004 00:53:47 +0000 (00:53 -0000)]
2004-10-26 Gonzalo Paniagua Javier <gonzalo@ximian.com>

* System.Design.dll.sources: added PanelDesigner.cs.
* System.Web.UI.Design/PanelDesigner.cs: New file.

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

19 years agoUpdateroo
Miguel de Icaza [Tue, 26 Oct 2004 23:27:22 +0000 (23:27 -0000)]
Updateroo

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

19 years agoTastyness
Miguel de Icaza [Tue, 26 Oct 2004 23:22:17 +0000 (23:22 -0000)]
Tastyness

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

19 years agoHelper script
Miguel de Icaza [Tue, 26 Oct 2004 23:16:44 +0000 (23:16 -0000)]
Helper script

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

19 years agoAdd my file that I use to remember what am doing
Miguel de Icaza [Tue, 26 Oct 2004 23:15:52 +0000 (23:15 -0000)]
Add my file that I use to remember what am doing

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

19 years ago2004-10-17 Miguel de Icaza <miguel@ximian.com>
Miguel de Icaza [Tue, 26 Oct 2004 23:14:11 +0000 (23:14 -0000)]
2004-10-17  Miguel de Icaza  <miguel@ximian.com>

* expression.cs (LocalVariableReference.DoResolveBase, Emit):
Remove the tests for `ec.RemapToProxy' from here, and encapsulate
all of this information into
EmitContext.EmitCapturedVariableInstance.

* codegen.cs (EmitCapturedVariableInstance): move here the
funcionality of emitting an ldarg.0 in the presence of a
remapping.   This centralizes the instance emit code.

(EmitContext.EmitThis): If the ScopeInfo contains a THIS field,
then emit a load of this: it means that we have reached the
topmost ScopeInfo: the one that contains the pointer to the
instance of the class hosting the anonymous method.

* anonymous.cs (AddField, HaveCapturedFields): Propagate field
captures to the topmost CaptureContext.

2004-10-12  Miguel de Icaza  <miguel@ximian.com>

* expression.cs (LocalVariableReference): Move the knowledge about
the iterators into codegen's EmitCapturedVariableInstance.

2004-10-11  Miguel de Icaza  <miguel@ximian.com>

* codegen.cs (EmitContext.ResolveTopBlock): Emit a 1643 when not
all code paths return a value from an anonymous method (it is the
same as the 161 error, but for anonymous methods).

2004-10-08  Miguel de Icaza  <miguel@ximian.com>

The introduction of anonymous methods in the compiler changed
various ways of doing things in the compiler.  The most
significant one is the hard split between the resolution phase
and the emission phases of the compiler.

For instance, routines that referenced local variables no
longer can safely create temporary variables during the
resolution phase: they must do so from the emission phase,
since the variable might have been "captured", hence access to
it can not be done with the local-variable operations from the runtime.

* statement.cs

(Block.Flags): New flag `IsTopLevel' to indicate that this block
is a toplevel block.

(ToplevelBlock): A new kind of Block, these are the blocks that
are created by the parser for all toplevel method bodies.  These
include methods, accessors and anonymous methods.

These contain some extra information not found in regular blocks:
A pointer to an optional CaptureContext (for tracking captured
local variables and parameters).  A pointer to the parent
ToplevelBlock.

(Return.Resolve): Catch missmatches when returning a value from an
anonymous method (error 1662).
Invoke NeedReturnLabel from the Resolve phase instead of the emit
phase.

(Break.Resolve): ditto.

(SwitchLabel): instead of defining the labels during the
resolution phase, we now turned the public ILLabel and ILLabelCode
labels into methods called GetILLabelCode() and GetILLabel() that
only define the label during the Emit phase.

(GotoCase): Track the SwitchLabel instead of the computed label
(its contained therein).  Emit the code by using
SwitchLabel.GetILLabelCode ().

(LocalInfo.Flags.Captured): A new flag has been introduce to track
whether the Local has been captured or not.

(LocalInfo.IsCaptured): New property, used to tell whether the
local has been captured.

* anonymous.cs: Vastly updated to contain the anonymous method
support.

The main classes here are: CaptureContext which tracks any
captured information for a toplevel block and ScopeInfo used to
track the activation frames for various local variables.

Each toplevel block has an optional capture context associated
with it.  When a method contains an anonymous method both the
toplevel method and the anonymous method will create a capture
context.   When variables or parameters are captured, they are
recorded on the CaptureContext that owns them, for example:

void Demo () {
     int a;
     MyDelegate d = delegate {
         a = 1;
     }
}

Here `a' will be recorded as captured on the toplevel
CapturedContext, the inner captured context will not have anything
(it will only have data if local variables or parameters from it
are captured in a nested anonymous method.

The ScopeInfo is used to track the activation frames for local
variables, for example:

for (int i = 0; i < 10; i++)
for (int j = 0; j < 10; j++){
   MyDelegate d = delegate {
    call (i, j);
   }
}

At runtime this captures a single captured variable `i', but it
captures 10 different versions of the variable `j'.  The variable
`i' will be recorded on the toplevel ScopeInfo, while `j' will be
recorded on a child.

The toplevel ScopeInfo will also track information like the `this'
pointer if instance variables were referenced (this is necessary
as the anonymous method lives inside a nested class in the host
type of the method).

(AnonymousMethod): Expanded to track the Toplevel, implement
`AnonymousMethod.Compatible' to tell whether an anonymous method
can be converted to a target delegate type.

The routine now also produces the anonymous method content

(AnonymousDelegate): A helper class that derives from
DelegateCreation, this is used to generate the code necessary to
produce the delegate for the anonymous method that was created.

* assign.cs: API adjustments for new changes in
Convert.ImplicitStandardConversionExists.

* class.cs: Adjustments to cope with the fact that now toplevel
blocks are of type `ToplevelBlock'.

* cs-parser.jay: Now we produce ToplevelBlocks for toplevel blocks
insteda of standard blocks.

Flag errors if params arguments are passed to anonymous methods.

* codegen.cs (EmitContext): Replace `InAnonymousMethod' with
`CurrentAnonymousMethod' which points to the current Anonymous
Method.  The variable points to the AnonymousMethod class that
holds the code being compiled.  It is set in the new EmitContext
created for the anonymous method.

(EmitContext.Phase): Introduce a variable and an enumeration to
assist in enforcing some rules about when and where we are allowed
to invoke certain methods (EmitContext.NeedsReturnLabel is the
only one that enfonces this right now).

(EmitContext.HaveCaptureInfo): new helper method that returns
whether we have a CapturedContext initialized.

(EmitContext.CaptureVariable): New method used to register that a
LocalInfo must be flagged for capturing.

(EmitContext.CapturedParameter): New method used to register that a
parameters must be flagged for capturing.

(EmitContext.CapturedField): New method used to register that a
field must be flagged for capturing.

(EmitContext.HaveCapturedVariables,
EmitContext.HaveCapturedFields): Return whether there are captured
variables or fields.

(EmitContext.EmitMethodHostInstance): This is used to emit the
instance for the anonymous method.  The instance might be null
(static methods), this (for anonymous methods that capture nothing
and happen to live side-by-side with the current method body) or a
more complicated expression if the method has a CaptureContext.

(EmitContext.EmitTopBlock): Routine that drives the emission of
code: it will first resolve the top block, then emit any metadata
and then emit the code.  The split is done so that we can extract
any anonymous methods and flag any captured variables/parameters.

(EmitContext.ResolveTopBlock): Triggers the resolution phase,
during this phase, the ILGenerator should not be used as labels
and local variables declared here might not be accessible to any
code that is part of an anonymous method.

Exceptions to this include the temporary variables that are
created by some statements internally for holding temporary
variables.

(EmitContext.EmitMeta): New routine, in charge of emitting all the
metadata for a cb

(EmitContext.TemporaryReturn): This method is typically called
from the Emit phase, and its the only place where we allow the
ReturnLabel to be defined other than the EmitMeta.  The reason is
that otherwise we would have to duplicate a lot of logic in the
Resolve phases of various methods that today is on the Emit
phase.

(EmitContext.NeedReturnLabel): This no longer creates the label,
as the ILGenerator is not valid during the resolve phase.

(EmitContext.EmitThis): Extended the knowledge in this class to
work in anonymous methods in addition to iterators.

(EmitContext.EmitCapturedVariableInstance): This emits whatever
code is necessary on the stack to access the instance to a local
variable (the variable will be accessed as a field).

(EmitContext.EmitParameter, EmitContext.EmitAssignParameter,
EmitContext.EmitAddressOfParameter): Routines to support
parameters (not completed at this point).

Removals: Removed RemapLocal and RemapLocalLValue.  We probably
will also remove the parameters.

* convert.cs (Convert): Define a `ConstantEC' which points to a
null.  This is just to prefity some code that uses
ImplicitStandardConversion code and do not have an EmitContext
handy.

The idea is to flag explicitly that at that point in time, it is
known that the conversion will not trigger the delegate checking
code in implicit conversions (which requires a valid
EmitContext).

Everywhere: pass new EmitContext parameter since
ImplicitStandardConversionExists now requires it to check for
anonymous method conversions.

(Convert.ImplicitStandardConversionExists): If the type of an
expression is the anonymous_method_type, and the type is a
delegate, we invoke the AnonymousMethod.Compatible method to check
whether an implicit conversion is possible.

(Convert.ImplicitConversionStandard): Only do implicit method
group conversions if the language level is not ISO_1.

* delegate.cs (Delegate.GetInvokeMethod): Common method to get the
MethodInfo for the Invoke method.  used by Delegate and
AnonymousDelegate.

* expression.cs (Binary.DoNumericPromotions): only allow anonymous
method conversions if the target type is a delegate.

Removed extra debugging nops.

(LocalVariableReference): Turn the `local_info' into a public
field.

Add `prepared' field, the same hack used for FieldExprs to cope
with composed assignments, as Local variables do not necessarily
operate purely on the stack as they used to: they can be captured
fields.

Add `temp' for a temporary result, like fields.

Refactor DoResolve and DoResolveLValue into DoResolveBase.

It now copes with Local variables that are captured and emits the
proper instance variable to load it from a field in the captured
case.

(ParameterReference.DoResolveBase): During the resolve phase,
capture parameters if we are in an anonymous method.

(ParameterReference.Emit, ParameterReference.AddressOf): If in an
anonymous method, use the EmitContext helper routines to emit the
parameter reference.

* iterators.cs: Set RemapToProxy to true/false during the
EmitDispose class.

* parameters.cs (GetParameterByName): New helper method.

* typemanager.cs (anonymous_method_type) a new type that
represents an anonyous method.  This is always an internal type,
used as a fencepost to test against the anonymous-methodness of an
expression.

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

19 years agoAdd anonymous method tests
Miguel de Icaza [Tue, 26 Oct 2004 23:05:31 +0000 (23:05 -0000)]
Add anonymous method tests

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

19 years ago2004-10-26 Atsushi Enomoto <atsushi@ximian.com>
Atsushi Eno [Tue, 26 Oct 2004 22:16:02 +0000 (22:16 -0000)]
2004-10-26  Atsushi Enomoto <atsushi@ximian.com>

* XmlTextReader.cs : Don't create attribute Value string on Read()
  (i.e. create string when get_Value() is invoked.) This optimizes
  some kind of XmlTextReader usage significantly such as Skip().

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

19 years agoremoves warning
Jordi Mas i Hernandez [Tue, 26 Oct 2004 19:51:20 +0000 (19:51 -0000)]
removes warning

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

19 years ago * ProtocolImporter.cs, HttpSimpleProtocolImporter.cs,
Lluis Sanchez [Tue, 26 Oct 2004 15:29:38 +0000 (15:29 -0000)]
* ProtocolImporter.cs, HttpSimpleProtocolImporter.cs,
  SoapProtocolImporter.cs: When appsettingurlkey is provided, generate
  code that reads the url from the config file, instead of doing it at
  the moment of generation. This fixes bug #68795.

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

19 years ago2004-10-26 Miguel de Icaza <miguel@ximian.com>
Miguel de Icaza [Tue, 26 Oct 2004 14:03:40 +0000 (14:03 -0000)]
2004-10-26  Miguel de Icaza  <miguel@ximian.com>

* mini.c (mono_jit_free_method): Provide extra information for
this error.  Currently this leaks, but will be turned into a
developer option in the future.

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

19 years ago2004-10-26 Zoltan Varga <vargaz@freemail.hu>
Zoltan Varga [Tue, 26 Oct 2004 10:08:50 +0000 (10:08 -0000)]
2004-10-26  Zoltan Varga  <vargaz@freemail.hu>

* driver.c (mono_main): Applied patch from Willibald Krenn <willibald.krenn@gmx.at>. Make --graph work for icalls and pinvoke methods.

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

19 years agoSome formatting for my last checkins.
Ravindra [Tue, 26 Oct 2004 09:55:48 +0000 (09:55 -0000)]
Some formatting for my last checkins.

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

19 years ago2004-10-26 Zoltan Varga <vargaz@freemail.hu>
Zoltan Varga [Tue, 26 Oct 2004 09:52:59 +0000 (09:52 -0000)]
2004-10-26  Zoltan Varga  <vargaz@freemail.hu>

* mono-codeman.c: Fall back to malloc if MAP_ANON is not defined.

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

19 years agoUpdated project.
Ravindra [Tue, 26 Oct 2004 09:38:19 +0000 (09:38 -0000)]
Updated project.

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

19 years agoImplemented DetailView drawing for ListView control and default values.
Ravindra [Tue, 26 Oct 2004 09:36:32 +0000 (09:36 -0000)]
Implemented DetailView drawing for ListView control and default values.

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

19 years agoAdded some default values for ListView control.
Ravindra [Tue, 26 Oct 2004 09:35:18 +0000 (09:35 -0000)]
Added some default values for ListView control.

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

19 years agoToolBar should use the user specified button size, if there is any. Added a size_spec...
Ravindra [Tue, 26 Oct 2004 09:33:42 +0000 (09:33 -0000)]
ToolBar should use the user specified button size, if there is any. Added a size_specified flag for the same.

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

19 years agoAdded some internal members and calculations for ColumnHeader.
Ravindra [Tue, 26 Oct 2004 09:33:00 +0000 (09:33 -0000)]
Added some internal members and calculations for ColumnHeader.

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

19 years agoCalculations for ListViewItem.
Ravindra [Tue, 26 Oct 2004 09:32:19 +0000 (09:32 -0000)]
Calculations for ListViewItem.

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

19 years agoAdded some internal members and calculations for ListView.
Ravindra [Tue, 26 Oct 2004 09:31:35 +0000 (09:31 -0000)]
Added some internal members and calculations for ListView.

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

19 years agoUpdate url
Miguel de Icaza [Tue, 26 Oct 2004 00:50:32 +0000 (00:50 -0000)]
Update url

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

19 years agoFlusheroo
Miguel de Icaza [Tue, 26 Oct 2004 00:50:25 +0000 (00:50 -0000)]
Flusheroo

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

19 years agoDelegate
Miguel de Icaza [Tue, 26 Oct 2004 00:26:19 +0000 (00:26 -0000)]
Delegate

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

19 years ago2004-10-25 Cesar Lopez Nataren <cesar@ciencias.unam.mx>
César Natarén [Mon, 25 Oct 2004 22:16:13 +0000 (22:16 -0000)]
2004-10-25  Cesar Lopez Nataren  <cesar@ciencias.unam.mx>

* StringObject.cs: add value field

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