mono.git
16 years ago2007-09-27 Atsushi Enomoto <atsushi@ximian.com>
Atsushi Eno [Thu, 27 Sep 2007 15:40:06 +0000 (15:40 -0000)]
2007-09-27  Atsushi Enomoto <atsushi@ximian.com>

* XmlAtomicValue.cs :
  Added ToString(). Public API metadata completion.

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

16 years ago2007-09-27 Atsushi Enomoto <atsushi@ximian.com>
Atsushi Eno [Thu, 27 Sep 2007 15:36:14 +0000 (15:36 -0000)]
2007-09-27  Atsushi Enomoto  <atsushi@ximian.com>

* XmlMapping.cs : added XsdElementName.
* XmlSerializationWriter.cs : some more implementation.

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

16 years agofix another crasher
Miguel de Icaza [Thu, 27 Sep 2007 15:01:39 +0000 (15:01 -0000)]
fix another crasher

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

16 years ago2007-09-27 Rodrigo Kumpera <rkumpera@novell.com>
Rodrigo Kumpera [Thu, 27 Sep 2007 14:40:44 +0000 (14:40 -0000)]
2007-09-27 Rodrigo Kumpera  <rkumpera@novell.com>

* generic_type_definition.2.cs: added

* Makefile.am: added generic_type_definition.2.cs

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

16 years ago2007-09-27 Rodrigo Kumpera <rkumpera@novell.com>
Rodrigo Kumpera [Thu, 27 Sep 2007 14:15:55 +0000 (14:15 -0000)]
2007-09-27  Rodrigo Kumpera  <rkumpera@novell.com>

* class-internals.h (struct _MonoGenericClass): new field is_tb_open
which is used to distinguish the fully open instantiation of a TypeBuilder
with the rest. This temporary hack is required to restore the property that
the fully open instantiation is the same type of the generic type definition.

* class-internals.h (mono_generic_class_is_generic_type_definition):
new function as part of the internal API.

* class.c (inflate_generic_type): return NULL when the generic inst is
fully open. The fully open generic type is now the same as the generic type
definition for non TypeBuilder types.

* class.c (mono_generic_class_get_class): removed assert since it is
no longer valid, gklass->cached_class can point to the generic type definition.

* class.c (mono_generic_class_is_generic_type_definition): new.

* metadata.c (mono_generic_class_hash): added is_tb_open field
to the hash calculation.

* metadata.c (free_generic_class): if the generic class is associated
with the generic type definition, its field will come from the mempool and
must not be freed.

* metadata.c (mono_metadata_is_type_builder_generic_type_definition):
new, this function identifies the corner case of a TypeBuilder fully open
instantiation.

* metadata.c (mono_metadata_lookup_generic_class): use is_tb_open
for lookup. Set gclass->cached_class to be the container class in case of
the fully open instantiation of non TypeBuilder types.

* metadata.c (_mono_metadata_generic_class_equal): use is_tb_open
to compare generic classes.

* reflection.c (method_encode_methodspec): remove assert that
no longer is valid.

* reflection.c (mono_reflection_generic_class_initialize): add
an aditional assert to ensure the proper type is used.

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

16 years agoChange the test strings to represent the fixes for GetXsdType()
Veerapuram Varadhan [Thu, 27 Sep 2007 13:09:58 +0000 (13:09 -0000)]
Change the test strings to represent the fixes for GetXsdType()
implementation.

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

16 years ago* SqlDecimal.cs, SqlInt32.cs, SqlChars.cs, SqlInt16.cs, SqlInt64.cs,
Veerapuram Varadhan [Thu, 27 Sep 2007 13:02:10 +0000 (13:02 -0000)]
* SqlDecimal.cs, SqlInt32.cs, SqlChars.cs, SqlInt16.cs, SqlInt64.cs,
  SqlString.cs, SqlDouble.cs (GetXsdType, GetSchema): Removed the
  extra XmlRootAttribute and GetXsdType will return appropriate
  modified root attribute for the XML Serializer.  Implemented
  missing 2.0 API.

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

16 years ago007-09-27 Marek Habersack <mhabersack@novell.com>
Marek Habersack [Thu, 27 Sep 2007 12:43:57 +0000 (12:43 -0000)]
007-09-27  Marek Habersack  <mhabersack@novell.com>

* System.Web.Extensions/System.Web.UI/ExtenderControl.cs:
TargetControlID must not be stored in view state. It is evidenced
by the ConfirmButton sample from the AjaxControlToolkit (release
1.0.10920.0 or later).

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

16 years ago2007-09-27 Atsushi Enomoto <atsushi@ximian.com>
Atsushi Eno [Thu, 27 Sep 2007 11:39:15 +0000 (11:39 -0000)]
2007-09-27  Atsushi Enomoto  <atsushi@ximian.com>

* XmlWriter.cs : implemented WriteValue(object) based on
  MSDN "Writing Typed Data" with some fix.
  http://msdn2.microsoft.com/en-us/library/bft97s8e(VS.80).aspx
* XmlTextWriter.cs : state check is extraneous. It caused unexpected
  rejection of empty namespace URI.

* XmlWriterTests.cs : added test for WriteValue(object).
* XmlTextWriterTests.cs : added WriteQualifiedName() test with empty
  namespace.

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

16 years ago2007-09-27 Marek Habersack <mhabersack@novell.com>
Marek Habersack [Thu, 27 Sep 2007 11:24:44 +0000 (11:24 -0000)]
2007-09-27  Marek Habersack  <mhabersack@novell.com>

* TemplateControlCompiler.cs: support nullable types in
GenerateExpressionFromString.

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

16 years ago* OdbcTransaction.cs: AutoCommit and BeginTransaction fix. Thanks to
Nagappan Alagappan [Thu, 27 Sep 2007 10:31:33 +0000 (10:31 -0000)]
* OdbcTransaction.cs: AutoCommit and BeginTransaction fix. Thanks to
  Mads Bondo Dydensborg <mbd@dbc.dk> and Amc <amc1999@gmail.com> for
  providing this patch.

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

16 years ago2007-09-27 Marek Habersack <mhabersack@novell.com>
Marek Habersack [Thu, 27 Sep 2007 08:35:52 +0000 (08:35 -0000)]
2007-09-27  Marek Habersack  <mhabersack@novell.com>

        * System.Design.dll.sources: added
        System.Web.UI.Design/ControlDesignerState.cs,
        System.Web.UI.Design/ViewFlags.cs
2007-09-27  Marek Habersack  <mhabersack@novell.com>

        * ControlPersister.cs: added the PersistTemplate property stubs.

        * ControlDesignerState.cs: added

        * ControlDesigner.cs: added the DesignerState, SetViewFlags,
        TemplateGroups, ViewControl and ViewControlCreated property
        stubs.
2007-09-27  Marek Habersack  <mhabersack@novell.com>

        * DataBoundControlDesigner.cs: TemplateGroups moved to
        ControlDesigner.

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

16 years agoit's an _override_, after all
Marek Habersack [Thu, 27 Sep 2007 07:17:33 +0000 (07:17 -0000)]
it's an _override_, after all

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

16 years ago2007-09-27 Marek Habersack <mhabersack@novell.com>
Marek Habersack [Thu, 27 Sep 2007 07:06:34 +0000 (07:06 -0000)]
2007-09-27  Marek Habersack  <mhabersack@novell.com>

* Button.cs: added missing OnPreRender method.

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

16 years ago* UriTest.cs: Added test for Fragment with relative URI. Fixed line
Gert Driesen [Wed, 26 Sep 2007 20:22:43 +0000 (20:22 -0000)]
* UriTest.cs: Added test for Fragment with relative URI. Fixed line
endings.
* UriTest2.cs: Fixed line endings.
* UriTest3.cs: Added test for MakeRelativeUri. Added tests for
AbsoluteUri, PathAndQuery, Query and Scheme with relative URI.

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

16 years ago2007-09-26 Jonathan Pobst <monkey@jpobst.com>
Jonathan Pobst [Wed, 26 Sep 2007 20:11:34 +0000 (20:11 -0000)]
2007-09-26  Jonathan Pobst  <monkey@jpobst.com>

* RichTextBox.cs, TextBoxBase.cs, WindowsFormsSynchronizationContext.cs:
corcompare stuffs.

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

16 years ago* test-587.cs: test for bug #328136.
Gert Driesen [Wed, 26 Sep 2007 17:53:51 +0000 (17:53 -0000)]
* test-587.cs: test for bug #328136.
* test-588.cs: test for bug #328490.
* known-issues-gmcs: added test-587.cs and test-588.cs.
* known-issues-mcs: added test-587.cs and test-588.cs.

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

16 years ago2007-09-26 Jonathan Pobst <monkey@jpobst.com>
Jonathan Pobst [Wed, 26 Sep 2007 15:12:22 +0000 (15:12 -0000)]
2007-09-26  Jonathan Pobst  <monkey@jpobst.com>

* Application.cs: Move the sync context stuff to Run instead of RunLoop
so that it doesn't get uninstalled on modal forms.
* Control.cs: Install a sync context when a control is created.
* WindowsFormsSyncronizationContext.cs: Create a private static control
to invoke on.  This is easier than trying to find a created control we
can use.
[Fixes bug #327608]

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

16 years ago2007-09-26 Rodrigo Kumpera <rkumpera@novell.com>
Rodrigo Kumpera [Wed, 26 Sep 2007 14:46:59 +0000 (14:46 -0000)]
2007-09-26  Rodrigo Kumpera  <rkumpera@novell.com>

* verify.c: disabled all debug spew by default, define MONO_VERIFIER_DEBUG
to enjoy it.

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

16 years ago* SqlMetaData.cs (Adjust, InferFromValue): Implemented overloaded
Nagappan Alagappan [Wed, 26 Sep 2007 13:56:45 +0000 (13:56 -0000)]
* SqlMetaData.cs (Adjust, InferFromValue): Implemented overloaded
  methods, constructors.

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

16 years ago* SqlCommandBuilder.cs: Code alignment.
Nagappan Alagappan [Wed, 26 Sep 2007 13:48:15 +0000 (13:48 -0000)]
* SqlCommandBuilder.cs: Code alignment.

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

16 years ago* OleDbTransaction.cs: Removed bogus TODO.
Nagappan Alagappan [Wed, 26 Sep 2007 13:46:40 +0000 (13:46 -0000)]
* OleDbTransaction.cs: Removed bogus TODO.
  Modified Finalize method to exist only in 1.0 profile.

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

16 years ago* SqlMethodAttribute.cs: Added appropriate option to AttributeUsage.
Nagappan Alagappan [Wed, 26 Sep 2007 13:44:54 +0000 (13:44 -0000)]
* SqlMethodAttribute.cs: Added appropriate option to AttributeUsage.

* SqlFacetAttribute.cs: Added appropriate option to AttributeUsage.

* Format.cs: Removed extra enum entries.

* SqlTriggerContext.cs: Code Alignment.

* TriggerAction.cs: Updated appropriate enum entries based on 2.0
  profile.

* SqlUserDefinedTypeAttribute.cs: Added appropriate option to
  AttributeUsage.
  * Removed public variable.
  * Removed set from Format property.

* SystemDataAccessKind.cs: Added Serializable attribute.

* SqlUserDefinedAggregateAttribute.cs: Removed set from Format
  property.

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

16 years ago* DataView.cs (ToTable): Added params keyword.
Nagappan Alagappan [Wed, 26 Sep 2007 13:37:02 +0000 (13:37 -0000)]
* DataView.cs (ToTable): Added params keyword.

* DataTable.cs: Added XmlSchemaProvider attribute.

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

16 years ago2007-09-26 Dick Porter <dick@ximian.com>
Dick Porter [Wed, 26 Sep 2007 12:51:16 +0000 (12:51 -0000)]
2007-09-26  Dick Porter  <dick@ximian.com>

* io-portability.c (_wapi_io_scandir): Only update the error
status of glob() when performing a secondary glob() if the first
returned an error.  Fixes bug 325107.

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

16 years ago* DataAccessKind.cs: Added serializable attribute.
Nagappan Alagappan [Wed, 26 Sep 2007 10:08:29 +0000 (10:08 -0000)]
* DataAccessKind.cs: Added serializable attribute.

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

16 years ago2007-09-26 Ivan N.Zlatev <contact@i-nz.net>
Ivan Zlatev [Tue, 25 Sep 2007 23:31:32 +0000 (23:31 -0000)]
2007-09-26  Ivan N.Zlatev <contact@i-nz.net>

* ColorConverter.cs: During conversion to InstanceDescriptor check
both IsSystemColor to get a PropertyInfo from type SystemColors
and IsKnownColor to get PropertyInfo from type Color.

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

16 years ago2007-09-25 Rodrigo Kumpera <rkumpera@novell.com>
Rodrigo Kumpera [Tue, 25 Sep 2007 22:46:51 +0000 (22:46 -0000)]
2007-09-25  Rodrigo Kumpera  <rkumpera@novell.com>

* verify.c (push_arg): Fixed support for ldarga
* verify.c (set_stack_value): Removed superfluous parameter, fixed the
MonoType used as first arg in case of instance calls.

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

16 years ago2007-09-25 Rodrigo Kumpera <rkumpera@novell.com>
Rodrigo Kumpera [Tue, 25 Sep 2007 22:43:14 +0000 (22:43 -0000)]
2007-09-25 Rodrigo Kumpera <rkumpera@novell.com>

* valid_load_addr.il: Tests for valid uses of ldarga and ldloca
* make_double_nesting_test.sh: Generate tests for calling nested classes from a diferent outer class

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

16 years agomore stubs added
Marek Habersack [Tue, 25 Sep 2007 22:14:45 +0000 (22:14 -0000)]
more stubs added

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

16 years ago2007-09-25 Miguel de Icaza <miguel@novell.com>
Miguel de Icaza [Tue, 25 Sep 2007 21:43:56 +0000 (21:43 -0000)]
2007-09-25  Miguel de Icaza  <miguel@novell.com>

        * Process.cs: Return an empty collection to prevent crashes;
        Fixes #319946

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

16 years ago2007-09-25 Rodrigo Kumpera <rkumpera@novell.com>
Rodrigo Kumpera [Tue, 25 Sep 2007 21:40:18 +0000 (21:40 -0000)]
2007-09-25  Rodrigo Kumpera  <rkumpera@novell.com>

* verify.c: Support for verifying VAR and MVAR types,

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

16 years ago2007-09-25 Rodrigo Kumpera <rkumpera@novell.com>
Rodrigo Kumpera [Tue, 25 Sep 2007 21:02:30 +0000 (21:02 -0000)]
2007-09-25 Rodrigo Kumpera <rkumpera@novell.com>

* valid_generic_params.cs (added): Tests for valid use of generic types.
* Makedfile: added valid_generic_params.cs

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

16 years agoDistribute all the supp files
Miguel de Icaza [Tue, 25 Sep 2007 20:46:24 +0000 (20:46 -0000)]
Distribute all the supp files

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

16 years ago2007-09-25 Atsushi Enomoto <atsushi@ximian.com>
Atsushi Eno [Tue, 25 Sep 2007 17:56:10 +0000 (17:56 -0000)]
2007-09-25  Atsushi Enomoto  <atsushi@ximian.com>

* XmlSerializerTests.cs : another XmlSchemaProvider test; use it
  as a member of an array.

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

16 years ago2007-09-25 Atsushi Enomoto <atsushi@ximian.com>
Atsushi Eno [Tue, 25 Sep 2007 17:35:18 +0000 (17:35 -0000)]
2007-09-25  Atsushi Enomoto  <atsushi@ximian.com>

* XmlSerializerTests.cs : added deserialization test for
  XmlSchemaProviderAttribute use.
* XmlReflectionImporterTests.cs : added test for conclict resolution
  between defaultNamespace and XmlSchemaProvider() namespace.
* XmlSchemaExporterTests.cs : use Infoset() comparison.

* XmlTypeMapping.cs : Namespace and XmlTypeNamespace could be
  different when an explicit namespace is specified (e.g. at
  XmlReflectionImporter.ctor).
* SerializationCodeGenerator.cs,
  XmlSerializationWriterInterpreter.cs :
  revert XmlTypeMapping.XmlTypeNamsepace usage. Now with the fix
  above, original code should work fine.

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

16 years ago2007-09-25 Marek Habersack <mhabersack@novell.com>
Marek Habersack [Tue, 25 Sep 2007 16:19:37 +0000 (16:19 -0000)]
2007-09-25  Marek Habersack  <mhabersack@novell.com>

* System.Design.dll.sources: added
System.Web.UI.Design/TemplateDefinition.cs,
System.Web.UI.Design/TemplatedEditableDesignerRegion.cs,
System.Web.UI.Design.WebControls/DataBoundControlDesigner.cs,
System.Web.UI.Design.WebControls/BaseDataBoundControlDesigner.cs,
System.Web.UI.Design/IDataBindingSchemaProvider.cs,
System.Web.UI.Design/IDataSourceDesigner.cs,
System.Web.UI.Design/DesignerDataSourceView.

2007-09-25  Marek Habersack  <mhabersack@novell.com>

* TemplatedEditableDesignerRegion.cs, TemplateDefinition.cs,
IDataBindingSchemaProvider.cs, IDataBindingSchemaProvider.cs: added

2007-09-25  Marek Habersack  <mhabersack@novell.com>

* DataBoundControlDesigner.cs: added

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

16 years ago2007-09-25 Jonathan Pobst <monkey@jpobst.com>
Jonathan Pobst [Tue, 25 Sep 2007 16:04:22 +0000 (16:04 -0000)]
2007-09-25  Jonathan Pobst  <monkey@jpobst.com>

* Application.cs: Install a WindowsFormsSynchronizationContext in the
run loop, and uninstall it when done.
* WindowsFormsSynchronizationContext.cs: Implement.
[Fixes the common case in bug #327608]

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

16 years agoTue Sep 25 18:03:37 CEST 2007 Paolo Molaro <lupus@ximian.com>
Paolo Molaro [Tue, 25 Sep 2007 15:57:26 +0000 (15:57 -0000)]
Tue Sep 25 18:03:37 CEST 2007 Paolo Molaro <lupus@ximian.com>

* Process.cs: eliminate the console encoding logic which was
duplicated from System.Console and just use Console.Out.Encoding
(bug #328162).

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

16 years ago2007-09-25 Atsushi Enomoto <atsushi@ximian.com>
Atsushi Eno [Tue, 25 Sep 2007 15:55:48 +0000 (15:55 -0000)]
2007-09-25  Atsushi Enomoto  <atsushi@ximian.com>

* XmlTypeMapping.cs, XmlSerializationWriterInterpreter.cs,
  SerializationCodeGenerator.cs :
  More XmlSchemaProviderAttribute method check. Use QName returned
  by the method for the output root name.

* XmlSerializerTests.cs, XmlReflectionImporterTests.cs :
  added tests for XmlSchemaProviderAttribute and how its qname works.

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

16 years ago2007-09-25 Dick Porter <dick@ximian.com>
Dick Porter [Tue, 25 Sep 2007 15:34:04 +0000 (15:34 -0000)]
2007-09-25  Dick Porter  <dick@ximian.com>

* ThreadTest.cs: Enable GetHashCodeTest

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

16 years ago2007-09-25 Dick Porter <dick@ximian.com>
Dick Porter [Tue, 25 Sep 2007 15:28:09 +0000 (15:28 -0000)]
2007-09-25  Dick Porter  <dick@ximian.com>

* Thread.cs: Keep ManagedThreadId constant over the lifetime of a
Thread.  Patch from jlarimer@gmail.com fixing bugs 325367 and
325566.

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

16 years ago2007-09-25 Zoltan Varga <vargaz@gmail.com>
Zoltan Varga [Tue, 25 Sep 2007 15:25:09 +0000 (15:25 -0000)]
2007-09-25  Zoltan Varga  <vargaz@gmail.com>

* PropertyInfoTest.cs: Add test for calling ReflectedType on accessors.

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

16 years ago2007-09-25 Zoltan Varga <vargaz@gmail.com>
Zoltan Varga [Tue, 25 Sep 2007 15:24:21 +0000 (15:24 -0000)]
2007-09-25  Zoltan Varga  <vargaz@gmail.com>

* icall.c (ves_icall_get_property_info): Set the reflected type of the
accessors correctly.

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

16 years agoMore tests.
Marek Safar [Tue, 25 Sep 2007 15:14:04 +0000 (15:14 -0000)]
More tests.

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

16 years agoNew tests.
Marek Safar [Tue, 25 Sep 2007 15:13:47 +0000 (15:13 -0000)]
New tests.

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

16 years ago2007-09-25 Marek Safar <marek.safar@gmail.com>
Marek Safar [Tue, 25 Sep 2007 15:13:10 +0000 (15:13 -0000)]
2007-09-25  Marek Safar  <marek.safar@gmail.com>

* expression.cs (ArrayCreation): Fixed cloning of an implicit types.

* statement.cs (Block): Refactored AddVariable to allow error handling
customization.

* generic.cs: New stub.

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

16 years ago2007-09-25 Marek Safar <marek.safar@gmail.com>
Marek Safar [Tue, 25 Sep 2007 15:11:55 +0000 (15:11 -0000)]
2007-09-25  Marek Safar  <marek.safar@gmail.com>

* cs-parser.jay: Use only one block per query expression.

* generics.cs (GenericMethod.Define): Moved local variables collision
check to Block.

* linq.cs: Introduced QueryBlock and removed all blocks from query
clauses.

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

16 years ago2007-09-25 Jonathan Pobst <monkey@jpobst.com>
Jonathan Pobst [Tue, 25 Sep 2007 14:38:37 +0000 (14:38 -0000)]
2007-09-25  Jonathan Pobst  <monkey@jpobst.com>

* SynchronizationContext.cs: Implement SetSynchronizationContext.

2007-09-25  Jonathan Pobst  <monkey@jpobst.com>

* AsyncOperationManager.cs: Tie the SynchronizationContext here to
SynchronizationContext.Current.

2007-09-25  Jonathan Pobst  <monkey@jpobst.com>

* AsyncOperationManagerTest.cs: Add test for SynchronizationContext.

2007-09-25  Jonathan Pobst  <monkey@jpobst.com>

* System_test.dll.sources: Added AsyncOperationManagerTest.cs.

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

16 years agocorrect WriteAttributeString while writing xml with XmlWriteMode.WriteSchema
Konstantin Triger [Tue, 25 Sep 2007 14:31:17 +0000 (14:31 -0000)]
correct WriteAttributeString while writing xml with XmlWriteMode.WriteSchema

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

16 years agounconfuse emacs font-lock
Raja R Harinath [Tue, 25 Sep 2007 13:41:26 +0000 (13:41 -0000)]
unconfuse emacs font-lock

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

16 years agoTest case for bug#325444.
Paolo Molaro [Tue, 25 Sep 2007 13:11:35 +0000 (13:11 -0000)]
Test case for bug#325444.

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

16 years agoTue Sep 25 14:56:03 CEST 2007 Paolo Molaro <lupus@ximian.com>
Paolo Molaro [Tue, 25 Sep 2007 12:46:48 +0000 (12:46 -0000)]
Tue Sep 25 14:56:03 CEST 2007 Paolo Molaro <lupus@ximian.com>

* threads.c: support OSX and other systems in
mono_thread_get_stack_bounds (bug #328026).

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

16 years agowrong namespace name in previous commit
Marek Habersack [Tue, 25 Sep 2007 12:25:07 +0000 (12:25 -0000)]
wrong namespace name in previous commit

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

16 years ago2007-09-25 Marek Habersack <mhabersack@novell.com>
Marek Habersack [Tue, 25 Sep 2007 12:20:09 +0000 (12:20 -0000)]
2007-09-25  Marek Habersack  <mhabersack@novell.com>

        * DummyClass.cs: added to have System.Web.UI.Design.Util present in the
        assembly. AJAX Control Toolkit references the namespace and it's
        apparently empty (at least no docs on MSDN).

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

16 years ago2007-09-25 Martin Baulig <martin@ximian.com>
Martin Baulig [Tue, 25 Sep 2007 11:22:13 +0000 (11:22 -0000)]
2007-09-25  Martin Baulig  <martin@ximian.com>

* mono-debug.h
(MonoDebugVarInfo): Replace `MonoClass *klass' with `MonoType *type'.

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

16 years agoReadWriteXmlTest - New Tests - for Read/WriteXml API tests.
Veerapuram Varadhan [Tue, 25 Sep 2007 11:17:43 +0000 (11:17 -0000)]
ReadWriteXmlTest - New Tests - for Read/WriteXml API tests.

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

16 years agoChangeLog for the previous commit.
Veerapuram Varadhan [Tue, 25 Sep 2007 11:12:32 +0000 (11:12 -0000)]
ChangeLog for the previous commit.

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

16 years agoReadXml, WriteXml - API implementation
Veerapuram Varadhan [Tue, 25 Sep 2007 11:09:37 +0000 (11:09 -0000)]
ReadXml, WriteXml - API implementation

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

16 years ago2007-09-25 Nagappan A <anagappan@novell.com>
Nagappan Alagappan [Tue, 25 Sep 2007 09:20:36 +0000 (09:20 -0000)]
2007-09-25  Nagappan A  <anagappan@novell.com>

        * Tds.cs (Pooling): Added new property to get the internal
        connection pooling list.

        * ITds.cs (Pooling): Added new property to get the internal
        connection pooling list.

        * TdsConnectionPool.cs (ResetConnectionPool, GetConnectionPool)
        (ReleaseConnection): Added new methods to clear connection pool.

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

16 years ago2007-09-25 Nagappan A <anagappan@novell.com>
Nagappan Alagappan [Tue, 25 Sep 2007 07:20:59 +0000 (07:20 -0000)]
2007-09-25  Nagappan A  <anagappan@novell.com>

* SqlMoney.cs (implicit, explicit): Implemented missing APIs.

* SqlBytes.cs (implicit, explicit): Implemented missing APIs.

* SqlBinary.cs: 2.0 attribute fixes.

* SqlAlreadyFilledException.cs: 2.0 attribute fixes.

* SqlBoolean.cs: 2.0 attribute fixes.

* SqlByte.cs: 2.0 attribute fixes.

* SqlXml.cs: 2.0 attribute fixes.

* SqlChars.cs (implicit, explicit): Implemented missing APIs.

* SqlDecimal.cs (implicit, explicit): Implemented missing APIs.

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

16 years ago2007-09-25 Nagappan A <anagappan@novell.com>
Nagappan Alagappan [Tue, 25 Sep 2007 07:15:03 +0000 (07:15 -0000)]
2007-09-25  Nagappan A  <anagappan@novell.com>

* OdbcParameter.cs (ResetOdbcType, ResetDbType): Implemented
missing methods. 2.0 attribute fixes.

* OdbcInfoMessageEventArgs.cs (Message, Errors, ToString):
Implemented missing properties and methods. 2.0 attribute fixes.

* OdbcConnection.cs (InfoMessage): Added public event and relevant
private APIs. 2.0 attribute fixes.

* OdbcConnectionStringBuilder.cs: 2.0 attribute fixes.

* OdbcParameterCollection.cs (GetParameter, SetParameter):
Implemented missing 2.0 APIs and 2.0 attribute fixes.

* OdbcDataReader.cs (finalize): 2.0 compatibility fixes.

* OdbcPermission.cs (Add): 2.0 compatibility fixes.

* OdbcCommandBuilder.cs: 2.0 attribute fixes.

* OdbcRowUpdatingEventArgs.cs (BaseCommand): Added 2.0 property.

* OdbcCommand.cs: 2.0 attribute fixes.

* OdbcException.cs: 2.0 attribute fixes.

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

16 years ago2007-09-25 Nagappan A <anagappan@novell.com>
Nagappan Alagappan [Tue, 25 Sep 2007 06:40:29 +0000 (06:40 -0000)]
2007-09-25  Nagappan A  <anagappan@novell.com>

* OleDbConnection.cs: 2.0 attribute changes.

* OleDbException.cs: 2.0 attribute changes.

* OleDbDataReader.cs: 2.0 attribute changes.

* OleDbCommandBuilder.cs: 2.0 attribute changes.

* OleDbParameter.cs: 2.0 attribute changes.

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

16 years ago2007-09-25 Nagappan A <anagappan@novell.com>
Nagappan Alagappan [Tue, 25 Sep 2007 06:37:24 +0000 (06:37 -0000)]
2007-09-25  Nagappan A  <anagappan@novell.com>

* SqlInitialCatalogConverter.cs, SqlDataSourceConverter.cs:
NetworkLibraryConverter.cs: Added new files.

* SqlParameter.cs: 2.0 attribute changes.

* SqlDataAdapter.cs: 2.0 attribute changes.

* SqlConnectionStringBuilder.cs: 2.0 attribute changes.

* SqlConnection.cs (ClearAllPools, ClearPool): Implemented 2.0
APIs, other 2.0 attribute changes.

* SqlCommandBuilder.cs (GetSchemaTable, InitializeCommand):
Implemented 2.0 APIs, other 2.0 attribute changes.

* SqlBulkCopyColumnMappingCollection.cs: Added constructor, 2.0
API compatibility changes.

* SqlException.cs: 2.0 attribute changes.

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

16 years ago2007-09-25 Nagappan A <anagappan@novell.com>
Nagappan Alagappan [Tue, 25 Sep 2007 05:23:45 +0000 (05:23 -0000)]
2007-09-25  Nagappan A  <anagappan@novell.com>

* DbConnection.cs: 2.0 attribute fixes.

* DataColumnMapping.cs: 2.0 attribute fixes.

* DbParameterCollection.cs: Code alignment.

* DataAdapter.cs: 2.0 attribute fixes.

* DataTableMapping.cs: 2.0 attribute fixes.

* RowUpdatingEventArgs.cs (BaseCommand): Code alignment.

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

16 years ago2007-09-25 Nagappan A <anagappan@novell.com>
Nagappan Alagappan [Tue, 25 Sep 2007 05:06:38 +0000 (05:06 -0000)]
2007-09-25  Nagappan A  <anagappan@novell.com>

* DataTable.cs: Code alignment.

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

16 years ago2007-09-25 Marek Habersack <mhabersack@novell.com>
Marek Habersack [Tue, 25 Sep 2007 00:22:04 +0000 (00:22 -0000)]
2007-09-25  Marek Habersack  <mhabersack@novell.com>

* WebControl.cs: added an internal method, BuildScriptAttribute,
which merges the specified JavaScript code in an attribute, with
the value of that attribute specified by the user.

* CheckBox.cs, DropDownList.cs: AutoPostBack handling makes sure to
preserve user-specified attribute value, if present.

* ListBox.cs, TextBox.cs: AddAttributesToRender calls the base
after doing its job. AutoPostBack handling makes sure to preserve
user-specified attribute value, if present. Fixes bug #327816.

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

16 years ago2007-09-25 Marek Habersack <mhabersack@novell.com>
Marek Habersack [Mon, 24 Sep 2007 22:18:18 +0000 (22:18 -0000)]
2007-09-25  Marek Habersack  <mhabersack@novell.com>

* WebServiceHandlerFactory.cs: WebServiceParser.GetCompiledType
must be passed a virtual path, not physical one. Fixes bug
#327809.

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

16 years ago2007-09-24 Martin Baulig <martin@ximian.com>
Martin Baulig [Mon, 24 Sep 2007 16:09:52 +0000 (16:09 -0000)]
2007-09-24  Martin Baulig  <martin@ximian.com>

* mono-debug.h
(MonoDebugClassEntry): Moved the definition of this struct into
mono-debug.c to make it private.

* mono-debug.c
(MonoDebugClassEntry): Removed `symfile_id'; since we now use one
type table per symbol file, we don't need to store the symfile id
any longer.

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

16 years agoSmall fix.
Martin Baulig [Mon, 24 Sep 2007 16:00:14 +0000 (16:00 -0000)]
Small fix.

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

16 years ago2007-09-24 Martin Baulig <martin@ximian.com>
Martin Baulig [Mon, 24 Sep 2007 15:23:57 +0000 (15:23 -0000)]
2007-09-24  Martin Baulig  <martin@ximian.com>

Create one type table per symbol file, since a `MonoClass *' gets
invalid when its image is unloaded.

* mono-debug.h (MonoSymbolTable): Removed `type_table'.
(MonoDebugHandle): Added `type_table'.

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

16 years agoMon Sep 24 17:25:43 CEST 2007 Paolo Molaro <lupus@ximian.com>
Paolo Molaro [Mon, 24 Sep 2007 15:23:02 +0000 (15:23 -0000)]
Mon Sep 24 17:25:43 CEST 2007 Paolo Molaro <lupus@ximian.com>

* mempool.c, mempool.h: added mono_mempool_new_size () API
to be able to specify a smaller initial size for the pool.
Adjusted the code to slowly increase pool size before using
the previous default size.
* image.c: use a small initial size for image mempools.

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

16 years agoscripts/Makefile.am:
Wade Berrier [Mon, 24 Sep 2007 15:16:56 +0000 (15:16 -0000)]
scripts/Makefile.am:
-make sure mono-test-install gets distributed in the tarball

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

16 years agoMon Sep 24 17:14:05 CEST 2007 Paolo Molaro <lupus@ximian.com>
Paolo Molaro [Mon, 24 Sep 2007 15:05:12 +0000 (15:05 -0000)]
Mon Sep 24 17:14:05 CEST 2007 Paolo Molaro <lupus@ximian.com>

* strtod.h, strtod.c: made the code threadsafe, fixed gcc warnings,
renamed exported call and made it properly internal.

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

16 years ago2007-09-24 Ivan N. Zlatev <contact@i-nz.net>
Ivan Zlatev [Mon, 24 Sep 2007 15:00:07 +0000 (15:00 -0000)]
2007-09-24  Ivan N. Zlatev  <contact@i-nz.net>

        * DesignerSerializationManager.cs: fix when SerializationComplete
        is fired.

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

16 years agoDbEnumerator.cs, DbDataRecord.cs: refactoring; DbDataRecord.cs: GetValue() should...
Konstantin Triger [Mon, 24 Sep 2007 14:44:35 +0000 (14:44 -0000)]
DbEnumerator.cs, DbDataRecord.cs: refactoring; DbDataRecord.cs: GetValue() should return null instead of DBNull

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

16 years agoMon Sep 24 16:15:47 CEST 2007 Paolo Molaro <lupus@ximian.com>
Paolo Molaro [Mon, 24 Sep 2007 14:06:49 +0000 (14:06 -0000)]
Mon Sep 24 16:15:47 CEST 2007 Paolo Molaro <lupus@ximian.com>

* include/private/gc_priv.h: increase the default MAX_HEAP_SECTS
value (bug#314759, bug#324318).

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

16 years agoafter a FullLoad, the symbol reader is not needed anymore
Jb Evain [Mon, 24 Sep 2007 13:41:10 +0000 (13:41 -0000)]
after a FullLoad, the symbol reader is not needed anymore

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

16 years ago2007-09-23 Andreia Gaita <avidigal@novell.com>
Andreia Gaita [Sun, 23 Sep 2007 23:07:38 +0000 (23:07 -0000)]
2007-09-23 Andreia Gaita <avidigal@novell.com>

* Added implementation of dialog popups - alert,
alertcheck, confirm, confirmcheck, confirmex, prompt,
promptusernameandpassword, promptpassword, select.
Cleaned up some.

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

16 years agoNew test.
Marek Safar [Sun, 23 Sep 2007 17:05:42 +0000 (17:05 -0000)]
New test.

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

16 years ago2007-09-23 Marek Safar <marek.safar@gmail.com>
Marek Safar [Sun, 23 Sep 2007 17:05:27 +0000 (17:05 -0000)]
2007-09-23  Marek Safar  <marek.safar@gmail.com>

* generics.cs: Fixed lower-bound type inference issue for constructed
types.

* linq.cs: Implemented nested queries.

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

16 years ago2007-09-23 Marek Safar <marek.safar@gmail.com>
Marek Safar [Sun, 23 Sep 2007 17:04:16 +0000 (17:04 -0000)]
2007-09-23  Marek Safar  <marek.safar@gmail.com>

* anonymous.cs, codegen.cs: Changed InferReturnType to be EmitContext
flag.

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

16 years ago * DataGridViewTest.cs: Added test for bug #325979. Code formatting.
Gert Driesen [Sun, 23 Sep 2007 15:25:47 +0000 (15:25 -0000)]
 * DataGridViewTest.cs: Added test for bug #325979. Code formatting.

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

16 years ago* DataGridViewCellTest.cs: Code formatting. Removed useless SetUp and
Gert Driesen [Sun, 23 Sep 2007 14:26:39 +0000 (14:26 -0000)]
* DataGridViewCellTest.cs: Code formatting. Removed useless SetUp and
TearDown methods. Removed useless test.
* DataGridViewCellCollectionTest.cs: Added indexer tests.
* DataGridViewCellCollection.cs: Added argument checks for indexers.
Use case-insensitive lookup of column name in indexer. Code
formatting.
* System.Windows.Forms_test.dll.sources: Added
DataGridViewCellCollectionTest.cs.

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

16 years ago2007-09-23 Zoltan Varga <vargaz@gmail.com>
Zoltan Varga [Sun, 23 Sep 2007 13:26:36 +0000 (13:26 -0000)]
2007-09-23  Zoltan Varga  <vargaz@gmail.com>

* marshal.c (emit_marshal_array): Generate valid IL for byref array case.
Fixes ##320990.

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

16 years ago* AssemblyTest.cs: Added test for ManifestModule.
Gert Driesen [Sun, 23 Sep 2007 09:39:35 +0000 (09:39 -0000)]
* AssemblyTest.cs: Added test for ManifestModule.
* AssemblyBuilderTest.cs: Added test for ManifestModule. Added missing
Test attributes. Avoid using ExpectedException, thereby improving lots
of existing tests. Uncomment test that checks max length of dynamic
module name and removed LAMESPEC, since MS implements the described
behavior (but we don't, so mark it NotWorking). Code formatting.
* TypeBuilderTest.cs: Removed unused variables.
* AssemblyBuilder.cs: Added missing paramname to ArgumentExceptions.
Use String.Length to check for zero-length string.

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

16 years ago2007-09-23 Zoltan Varga <vargaz@gmail.com>
Zoltan Varga [Sat, 22 Sep 2007 23:43:30 +0000 (23:43 -0000)]
2007-09-23  Zoltan Varga  <vargaz@gmail.com>

* icall.c (ves_icall_System_Reflection_Assembly_get_ManifestModuleInternal):
Rename this to ves_icall_System_Reflection_Assembly_GetManifestModuleInternal.

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

16 years ago2007-09-23 Zoltan Varga <vargaz@gmail.com>
Zoltan Varga [Sat, 22 Sep 2007 23:39:01 +0000 (23:39 -0000)]
2007-09-23  Zoltan Varga  <vargaz@gmail.com>

* AssemblyBuilder.cs (GetManifestModule): Return a ModuleBuilder here to
match MS.NET.

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

16 years ago2007-09-23 Zoltan Varga <vargaz@gmail.com>
Zoltan Varga [Sat, 22 Sep 2007 23:37:08 +0000 (23:37 -0000)]
2007-09-23  Zoltan Varga  <vargaz@gmail.com>

* Assembly.cs (GetManifestModule): New virtual method overridden by
AssemblyBuilder.

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

16 years ago2007-09-22 Zoltan Varga <vargaz@gmail.com>
Zoltan Varga [Sat, 22 Sep 2007 19:00:21 +0000 (19:00 -0000)]
2007-09-22  Zoltan Varga  <vargaz@gmail.com>

* main.c (dis_property_signature): Remove some calls to mono_metadata_free_type ().

* get.c (get_type): Ditto.

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

16 years ago* DiagnosticsConfigurationHandlerTest.cs: No longer derive from
Gert Driesen [Sat, 22 Sep 2007 17:54:03 +0000 (17:54 -0000)]
* DiagnosticsConfigurationHandlerTest.cs: No longer derive from
deprecated Assertion class. Code formatting. On 2.0 profile, allow
non-integral values for switches.
* BooleanSwitch.cs: Use base ctor for default value.
* Switch.cs: On 2.0 profile, store default value and use it if no
value is set in config file.
* SourceSwitch.cs: Use null to signal that there's no default value.

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

16 years ago* DeflateStreamTest.cs: Improved CanRead, CanSeek and CanWrite tests.
Gert Driesen [Sat, 22 Sep 2007 16:50:02 +0000 (16:50 -0000)]
* DeflateStreamTest.cs: Improved CanRead, CanSeek and CanWrite tests.
Added test for bug #327480. Code formatting.
* GzipStreamTest.cs: Improved CanRead, CanSeek and CanWrite tests.
Code formatting.
* DeflateStream.cs: Avoid double free. Fixes bug #327480.

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

16 years ago* Socket.cs: Removed unused method.
Gert Driesen [Sat, 22 Sep 2007 16:49:17 +0000 (16:49 -0000)]
* Socket.cs: Removed unused method.

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

16 years ago2007-09-22 Rodrigo Kumpera <rkumpera@novell.com>
Rodrigo Kumpera [Sat, 22 Sep 2007 16:12:25 +0000 (16:12 -0000)]
2007-09-22 Rodrigo Kumpera  <rkumpera@novell.com>

* bug-327438.2.il: added

* Makefile.am: added bug-327438.2.il

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

16 years ago* TypeBuilder.cs: Added test for bug #327484. Split up and improved
Gert Driesen [Sat, 22 Sep 2007 15:46:38 +0000 (15:46 -0000)]
* TypeBuilder.cs: Added test for bug #327484. Split up and improved
TestGetProperties(Flags)Incomplete and TestGetMethods(Flags)Incomplete
ests. Improved TestGetMethodsComplete test.
* TypeBuilder.cs: Do not include static methods of base class in
GetMethod(s). Fixes bug #327482.

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

16 years ago2007-09-22 Zoltan Varga <vargaz@gmail.com>
Zoltan Varga [Sat, 22 Sep 2007 14:00:51 +0000 (14:00 -0000)]
2007-09-22  Zoltan Varga  <vargaz@gmail.com>

* metadata.c (mono_type_create_from_typespec): Remove an invalid
free. Fixes #327438.

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

16 years ago2007-09-21 Carlos Alberto Cortez <calberto.cortez@gmail.com>
Carlos Alberto Cortez [Sat, 22 Sep 2007 00:15:25 +0000 (00:15 -0000)]
2007-09-21  Carlos Alberto Cortez <calberto.cortez@gmail.com>

* TreeNode.cs: When collapsing or expanding a node, check whether its
change will affect the visible area (we were previously doing a
IsVisible check, but that check is not enough since children nodes
could be still visible). Fixes part of #325266.

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

16 years ago2007-09-21 Robert Jordan <robertj@gmx.net>
Robert Jordan [Fri, 21 Sep 2007 19:44:10 +0000 (19:44 -0000)]
2007-09-21  Robert Jordan  <robertj@gmx.net>

* assemblyresolve/Makefile.am: remove the superfluous --security
flag.

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

16 years ago2007-09-21 Justin Cherniak <justin.cherniak@gmail.com>
Justin Cherniak [Fri, 21 Sep 2007 19:20:06 +0000 (19:20 -0000)]
2007-09-21  Justin Cherniak <justin.cherniak@gmail.com>

* SWF2k5.csproj: Fixed missing file.

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

16 years ago* metadata.c (type_in_image) <MONO_TYPE_SZARRAY>: Handle arrays of
Raja R Harinath [Fri, 21 Sep 2007 18:25:37 +0000 (18:25 -0000)]
* metadata.c (type_in_image) <MONO_TYPE_SZARRAY>: Handle arrays of
generic instantiations, etc.
<MONO_TYPE_ARRAY>: Likewise.

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