mono.git
16 years ago* PropertyInfoTest.cs: Added test for bug #399985.
Gert Driesen [Fri, 13 Jun 2008 16:46:38 +0000 (16:46 -0000)]
* PropertyInfoTest.cs: Added test for bug #399985.

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

16 years ago2008-06-13 Mark Probst <mark.probst@gmail.com>
Mark Probst [Fri, 13 Jun 2008 16:29:42 +0000 (16:29 -0000)]
2008-06-13  Mark Probst  <mark.probst@gmail.com>

* mini.c: Added additional context_used argument to several
functions, which will be needed for sharing generic methods.  Use
GET_RGCTX macro wherever appropriate.  Declare only one
context_used in mono_method_to_ir().

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

16 years ago2008-06-13 Jonathan Pobst <monkey@jpobst.com>
Jonathan Pobst [Fri, 13 Jun 2008 15:12:23 +0000 (15:12 -0000)]
2008-06-13  Jonathan Pobst  <monkey@jpobst.com>

* DefaultLayoutTests.cs: Add test for bug #399316.

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

16 years ago2008-06-13 Jonathan Pobst <monkey@jpobst.com>
Jonathan Pobst [Fri, 13 Jun 2008 15:09:01 +0000 (15:09 -0000)]
2008-06-13  Jonathan Pobst  <monkey@jpobst.com>

* Control.cs: Don't reset to Dock style layout if DockStyle is
set to none.  [Fixes bug #399316]

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

16 years ago2008-06-13 Mark Probst <mark.probst@gmail.com>
Mark Probst [Fri, 13 Jun 2008 11:46:50 +0000 (11:46 -0000)]
2008-06-13  Mark Probst  <mark.probst@gmail.com>

* generic-sharing.c: Code for maintaining the MRGCTX and MRGCTX
templates.  Templates are generalized with an additional type_argc
argument.  RGCTX templates have type_argc==0, MRGCTX templates
have type_argc>0.

* domain-internals.h, domain.c: New hash table for looking up
MRGCTXs.

* metadata.c, metadata-internals.h: Rename hash and equal
functions for MonoGenericInst's and make them public.

* class-internals.h: New data structures for the MRGCTX.  Macros
for distinguishing slots in the RGCTX and the MRGCTX.

2008-06-13  Mark Probst  <mark.probst@gmail.com>

* mini.c, generic-sharing.c: Removed generic class relations.

* mini.c, tramp-amd64.c, tramp-x86.c: Additional arguments to
functions due to MRGCTX changes.

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

16 years ago2008-06-13 Mark Probst <mark.probst@gmail.com>
Mark Probst [Fri, 13 Jun 2008 10:51:42 +0000 (10:51 -0000)]
2008-06-13  Mark Probst  <mark.probst@gmail.com>

* object.c (mono_method_get_imt_slot): Put the same methods of
different instantiations of the same generic interface in the same
IMT slots, to make generic sharing simpler.

2008-06-13  Mark Probst  <mark.probst@gmail.com>

* inssel.brg, inssel-long.brg, inssel-long32.brg, mini-ops.h,
graph.c, local-propagation.c, aliasing.c: New opcodes for calls
with calculated IMT.

* mini.c: Generic sharing of calls via generic interfaces.

* jit-icalls.c, jit-icalls.h: Helper function for compiling a
generic method with non-constant MonoGenericContext*.  Instead,
the context is taken out of the method itself.

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

16 years ago2008-06-13 Mark Probst <mark.probst@gmail.com>
Mark Probst [Fri, 13 Jun 2008 10:20:41 +0000 (10:20 -0000)]
2008-06-13  Mark Probst  <mark.probst@gmail.com>

* mini.c: Generic sharing of ldvirtftn.

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

16 years ago2008-06-13 Mark Probst <mark.probst@gmail.com>
Mark Probst [Fri, 13 Jun 2008 10:16:46 +0000 (10:16 -0000)]
2008-06-13  Mark Probst  <mark.probst@gmail.com>

* mini.c: Generic sharing of ldftn.

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

16 years ago2008-06-13 Mark Probst <mark.probst@gmail.com>
Mark Probst [Fri, 13 Jun 2008 10:04:22 +0000 (10:04 -0000)]
2008-06-13  Mark Probst  <mark.probst@gmail.com>

* mini.c: Do pass VTable/RGCTX argument to static generic methods.

2008-06-13  Mark Probst  <mark.probst@gmail.com>

* generic-static-methods.2.cs: Test case for static generic
methods.

* Makefile.am: Test added.

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

16 years ago2008-06-13 Mark Probst <mark.probst@gmail.com>
Mark Probst [Fri, 13 Jun 2008 09:57:53 +0000 (09:57 -0000)]
2008-06-13  Mark Probst  <mark.probst@gmail.com>

* mini.c: Generic sharing of the special case of ldtoken followed
by a call to GetTypeFromHandle.

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

16 years ago2008-06-13 Mark Probst <mark.probst@gmail.com>
Mark Probst [Fri, 13 Jun 2008 09:53:24 +0000 (09:53 -0000)]
2008-06-13  Mark Probst  <mark.probst@gmail.com>

* mini.c: Generic sharing of box for nullable types.

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

16 years ago2008-06-13 Atsushi Enomoto <atsushi@ximian.com>
Atsushi Eno [Fri, 13 Jun 2008 05:37:59 +0000 (05:37 -0000)]
2008-06-13  Atsushi Enomoto  <atsushi@ximian.com>

* XmlSchema.cs : fixed couple of olive regressions caused by
  previous ProcessExternal() patches.

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

16 years ago2008-06-13 Atsushi Enomoto <atsushi@ximian.com>
Atsushi Eno [Fri, 13 Jun 2008 04:57:37 +0000 (04:57 -0000)]
2008-06-13  Atsushi Enomoto  <atsushi@ximian.com>

* DataColumn.cs
  DefaultValue can be non-DBNull. For SqlXxx type, it becomes
  SqlXxx.Null. Also, changing DataType may change DefaultValue
  to be consistent with the new type (say, having int DefaultValue
  for new string DataType is wrong).

* XmlSchemaWriter.cs
  This should be fixed to take non-DBNull default value into
  consideration.

* DataTableTest.cs, DataSetTest.cs
  We could use default value as is, not in string form. This makes
  comparison more strict.

* DataColumnTest.cs
  Added test for non-DBNull case and changing DataType case.

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

16 years ago2008-06-13 Zoltan Varga <vargaz@gmail.com>
Zoltan Varga [Fri, 13 Jun 2008 01:22:39 +0000 (01:22 -0000)]
2008-06-13  Zoltan Varga  <vargaz@gmail.com>

* mini-s390x.c (add_stackParm): Fix computation of offsets when arguments
are passed on the stack. Fixes #324807.

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

16 years ago2008-06-12 Rodrigo Kumpera <rkumpera@novell.com>
Rodrigo Kumpera [Thu, 12 Jun 2008 21:40:31 +0000 (21:40 -0000)]
2008-06-12 Rodrigo Kumpera  <rkumpera@novell.com>

* metadata-internals.h: Added mono_metadata_field_info_with_mempool.

* metadata.c (mono_metadata_field_info_with_mempool): Added.
This function works just like mono_metadata_field_info, but
accept a mempool as argument to be used allocating memory.

* marshal.c (mono_marshal_load_type_info): Use new function
to load marshal data into image mempool.

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

16 years ago2008-06-12 Everaldo Canuto <ecanuto@novell.com>
Everaldo Canuto [Thu, 12 Jun 2008 21:23:53 +0000 (21:23 -0000)]
2008-06-12  Everaldo Canuto  <ecanuto@novell.com>

* Win32DnD.cs: Fix the check for control not equal null.
Fixes bug #341420 and #381886.

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

16 years ago2008-06-12 Bill Holmes <billholmes54@gmail.com>
Bill Holmes [Thu, 12 Jun 2008 21:00:53 +0000 (21:00 -0000)]
2008-06-12  Bill Holmes  <billholmes54@gmail.com>
        * libtest.c, winx64structs.cs :
          Changing winx64structs.cs to use the TestDriver.dll

        Contributed under MIT/X11 license.

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

16 years ago2008-06-12 Bill Holmes <billholmes54@gmail.com>
Bill Holmes [Thu, 12 Jun 2008 20:23:32 +0000 (20:23 -0000)]
2008-06-12  Bill Holmes  <billholmes54@gmail.com>

* mini-amd64.c:add_valuetype: Adding Winx64 code to fill the ArgInfo
  for the ArgValuetypeAddrInIReg case.

* mini-amd64.c:mono_arch_allocate_vars:  Adding a case for ArgValuetypeAddrInIReg
  to avoid asserts.  Code needs to be added here.

* mini-amd64.c: mono_arch_call_opcode:  Adding Winx64 code for an ArgInfo of type
  ArgValuetypeAddrInIReg.  The code emitted will copy the argument to a local
  variable and pass the local variable by reference to the called method.

* mini-amd64.c: mono_arch_emit_prolog:  Adjust the stack for calls to
  mono_jit_thread_attach and mono_get_lmf_addr for Winx64.

* libtest.c, winx64structs.cs :
  Adding marshaling tests for structs.  These tests
  represent the different cases to consider on Winx64.

Contributed under MIT/X11 license.

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

16 years ago2008-06-12 Jonathan Pobst <monkey@jpobst.com>
Jonathan Pobst [Thu, 12 Jun 2008 20:17:59 +0000 (20:17 -0000)]
2008-06-12  Jonathan Pobst  <monkey@jpobst.com>

* DataGridViewRowCollection.cs: Update the indexes of rows after
one has been removed.
* DataGridViewSelectedRowCollection.cs: Add internal clear method.
* DataGridViewSelectedColumnCollection.cs: Add internal clear method.
* DataGridView.cs: Add support for deleting rows via Delete key, deleting
rows for the Rows collection, or deleting rows from the bound DataSet.

2008-06-12  Jonathan Pobst  <monkey@jpobst.com>

* DataGridViewDataBindingTest.cs: Add test for deleting rows
from the dataset and the table.

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

16 years agoDo not call tds.Reset () as it is already done in the connection pool.
Veerapuram Varadhan [Thu, 12 Jun 2008 19:01:03 +0000 (19:01 -0000)]
Do not call tds.Reset () as it is already done in the connection pool.

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

16 years ago2008-06-12 Rodrigo Kumpera <rkumpera@novell.com>
Rodrigo Kumpera [Thu, 12 Jun 2008 18:26:31 +0000 (18:26 -0000)]
2008-06-12 Rodrigo Kumpera  <rkumpera@novell.com>

* class.c (mono_class_inflate_generic_type_with_mempool):
This function allows to inflate a generic type using
a mempool.

* class.c (inflate_generic_type): Take a mempool as argument
and use it to do type dup'ing.

* class.c (mono_class_setup_fields): Field type for generic
generic classes are allocated from the image mempool.

* metadata.c (free_generic_class): Inflated field type is
now allocated in the image mempool.

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

16 years ago2008-06-12 Marek Safar <marek.safar@gmail.com>
Marek Safar [Thu, 12 Jun 2008 16:43:18 +0000 (16:43 -0000)]
2008-06-12  Marek Safar  <marek.safar@gmail.com>

* MethodBuilder.cs: Removed SetGenericMethodSignature.

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

16 years ago2008-06-12 Atsushi Enomoto <atsushi@ximian.com>
Atsushi Eno [Thu, 12 Jun 2008 16:21:59 +0000 (16:21 -0000)]
2008-06-12  Atsushi Enomoto  <atsushi@ximian.com>

* SqlDateTime.cs, SqlDecimal.cs, SqlInt32.cs, SqlInt16.cs,
  SqlByte.cs, SqlInt64.cs, SqlString.cs, SqlDouble.cs,
  SqlSingle.cs, SqlBinary.cs, SqlMoney.cs, SqlGuid.cs:
  ok, everything needs the same fix.
  (Do not let me write exhausting tests for everything.)

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

16 years ago2008-06-12 Rodrigo Kumpera <rkumpera@novell.com>
Rodrigo Kumpera [Thu, 12 Jun 2008 16:06:23 +0000 (16:06 -0000)]
2008-06-12 Rodrigo Kumpera  <rkumpera@novell.com>

* threads.c (thread_cleanup): Free MonoThread::name.

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

16 years ago2008-06-12 Jonathan Pobst <monkey@jpobst.com>
Jonathan Pobst [Thu, 12 Jun 2008 15:54:56 +0000 (15:54 -0000)]
2008-06-12  Jonathan Pobst  <monkey@jpobst.com>

* DataGridView.cs: Listen to a DataSet's changed event even
when autogeneratecolumns is false.  Refactor the changed event's
add row code to use the same as the existing add row code.
[Fixes bug #399601]

2008-06-12  Jonathan Pobst  <monkey@jpobst.com>

* DataGridViewDataBindingTest.cs: Add test for bug #399601.

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

16 years ago2008-06-12 Marek Safar <marek.safar@gmail.com>
Marek Safar [Thu, 12 Jun 2008 15:20:46 +0000 (15:20 -0000)]
2008-06-12  Marek Safar  <marek.safar@gmail.com>

* class.cs: Stop using public method which should not exist.

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

16 years ago2008-06-12 Atsushi Enomoto <atsushi@ximian.com>
Atsushi Eno [Thu, 12 Jun 2008 14:50:24 +0000 (14:50 -0000)]
2008-06-12  Atsushi Enomoto  <atsushi@ximian.com>

* SqlBooleanTest.cs : oops, was running wrong test harness. Fixed it.

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

16 years ago2008-06-12 Atsushi Enomoto <atsushi@ximian.com>
Atsushi Eno [Thu, 12 Jun 2008 14:47:20 +0000 (14:47 -0000)]
2008-06-12  Atsushi Enomoto  <atsushi@ximian.com>

* SqlBoolean.cs : SqlBoolean.Null.Equals(non-null) caused crash.

* SqlBooleanTest.cs : added test for comparison with Null.

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

16 years ago2008-06-12 Marek Habersack <mhabersack@novell.com>
Marek Habersack [Thu, 12 Jun 2008 12:37:22 +0000 (12:37 -0000)]
2008-06-12  Marek Habersack  <mhabersack@novell.com>

(mono_make_shadow_copy): copy also satellite assemblies from the
private bin directories.

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

16 years ago2008-06-12 Stephane Delcroix <sdelcroix@novell.com>
Stephane Delcroix [Thu, 12 Jun 2008 12:17:50 +0000 (12:17 -0000)]
2008-06-12  Stephane Delcroix  <sdelcroix@novell.com>

* Socket.cs: minimal changes to run in the 2.1 profile

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

16 years ago2008-06-12 Atsushi Enomoto <atsushi@ximian.com>
Atsushi Eno [Thu, 12 Jun 2008 11:57:08 +0000 (11:57 -0000)]
2008-06-12  Atsushi Enomoto  <atsushi@ximian.com>

* DataSet.cs, DataTable.cs, XmlSchemaDataImporter.cs : constraints
  on missing tables are ignored when reading a DataTable schema.
  Fixes part of DataTableTest.ReadXmlSchema() test.

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

16 years ago2008-06-12 Marek Habersack <mhabersack@novell.com>
Marek Habersack [Thu, 12 Jun 2008 00:22:25 +0000 (00:22 -0000)]
2008-06-12  Marek Habersack  <mhabersack@novell.com>

* appdomain.c (ensure_directory_exists): avoid unnecessary
mkdir(2) calls when the shadow directory already exists.

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

16 years ago2008-06-12 Marek Habersack <mhabersack@novell.com>
Marek Habersack [Wed, 11 Jun 2008 22:23:39 +0000 (22:23 -0000)]
2008-06-12  Marek Habersack  <mhabersack@novell.com>

* SqlParameterCollection.cs: this [int] must check the range and
throw an exception if necessary.

* SqlCommand.cs: throw IOEX when stored procedure is not found in
DeriveParameters. All procedures in MS SQL will report at least
one parameter - the return value.

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

16 years ago2008-06-11 Zoltan Varga <vargaz@gmail.com>
Zoltan Varga [Wed, 11 Jun 2008 21:23:38 +0000 (21:23 -0000)]
2008-06-11  Zoltan Varga  <vargaz@gmail.com>

* threads.c (mono_thread_get_stack_bounds): Align the stack in all cases.

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

16 years ago2008-06-11 Zoltan Varga <vargaz@gmail.com>
Zoltan Varga [Wed, 11 Jun 2008 21:04:25 +0000 (21:04 -0000)]
2008-06-11  Zoltan Varga  <vargaz@gmail.com>

* threads.c (mono_thread_get_stack_bounds): Align the stack address to
a page boundary. Fixes #396219.

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

16 years ago2008-06-10 Rodrigo Kumpera <rkumpera@novell.com>
Rodrigo Kumpera [Wed, 11 Jun 2008 21:01:26 +0000 (21:01 -0000)]
2008-06-10 Rodrigo Kumpera  <rkumpera@novell.com>

* marshal.c (mono_marshal_load_type_info): Add a memory barrier
due to double-checked locking.

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

16 years ago2008-06-10 Rodrigo Kumpera <rkumpera@novell.com>
Rodrigo Kumpera [Wed, 11 Jun 2008 20:47:20 +0000 (20:47 -0000)]
2008-06-10 Rodrigo Kumpera  <rkumpera@novell.com>

* assembly.c (build_assembly_name): Release memory on failure.

* assembly.c (mono_assembly_name_parse_full): Release memory on failure.

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

16 years ago2008-06-10 Rodrigo Kumpera <rkumpera@novell.com>
Rodrigo Kumpera [Wed, 11 Jun 2008 20:42:12 +0000 (20:42 -0000)]
2008-06-10 Rodrigo Kumpera  <rkumpera@novell.com>

* icall.c (ves_icall_System_Reflection_Assembly_InternalGetType): Release
memory on failure.

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

16 years ago2008-06-10 Rodrigo Kumpera <rkumpera@novell.com>
Rodrigo Kumpera [Wed, 11 Jun 2008 20:11:37 +0000 (20:11 -0000)]
2008-06-10 Rodrigo Kumpera  <rkumpera@novell.com>

* icall.c (ves_icall_System_Reflection_AssemblyName_ParseName): Release
memory on failure.

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

16 years ago2008-06-11 Jonathan Pobst <monkey@jpobst.com>
Jonathan Pobst [Wed, 11 Jun 2008 20:04:14 +0000 (20:04 -0000)]
2008-06-11  Jonathan Pobst  <monkey@jpobst.com>

* TextBoxBase.cs: We need to call RaiseSelectionChanged pretty
much any time the caret moves and there is text, not just when
the selection changes as one would think.
* RichTextBox.cs: Override RaiseSelectionChanged and fire
SelectionChanged.
[Fixes bug #397271]

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

16 years ago2008-06-11 Marek Habersack <mhabersack@novell.com>
Marek Habersack [Wed, 11 Jun 2008 19:38:13 +0000 (19:38 -0000)]
2008-06-11  Marek Habersack  <mhabersack@novell.com>

* BuildManager.cs: if an error occurs while assigning the
requested path to an assembly builder inside BuildAssembly, throw
an exception.

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

16 years ago2008-06-10 Rodrigo Kumpera <rkumpera@novell.com>
Rodrigo Kumpera [Wed, 11 Jun 2008 19:37:20 +0000 (19:37 -0000)]
2008-06-10 Rodrigo Kumpera  <rkumpera@novell.com>

* loader.c (field_from_memberref): Check if field signature type is equal
to the non-inflated type of the field. Fixes #398980.

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

16 years ago2008-06-11 Zoltan Varga <vargaz@gmail.com>
Zoltan Varga [Wed, 11 Jun 2008 19:08:09 +0000 (19:08 -0000)]
2008-06-11  Zoltan Varga  <vargaz@gmail.com>

* configure.in: Remove -D_FILE_OFFSET_BITS=64 from the CPPFLAGS passed to
libgc on sparc. Fixes #323138.

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

16 years ago2008-06-11 Zoltan Varga <vargaz@gmail.com>
Zoltan Varga [Wed, 11 Jun 2008 17:33:29 +0000 (17:33 -0000)]
2008-06-11  Zoltan Varga  <vargaz@gmail.com>

* src/goutput.c (g_log): Remove unnecessary and incorrect call to
g_strdup_printf (). Fixes #398918.

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

16 years ago2008-06-11 Jonathan Pobst <monkey@jpobst.com>
Jonathan Pobst [Wed, 11 Jun 2008 17:26:50 +0000 (17:26 -0000)]
2008-06-11  Jonathan Pobst  <monkey@jpobst.com>

* FontDialog.cs: Forward ListBox keyboard events to the ListBox
instead of trying to duplicate the code.
* ListBox.cs: Make method internal so we can send keyboard events.
[Fixes bug #398344]

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

16 years ago2008-06-11 Martin Baulig <martin@ximian.com>
Martin Baulig [Wed, 11 Jun 2008 17:24:03 +0000 (17:24 -0000)]
2008-06-11  Martin Baulig  <martin@ximian.com>

* location.cs
(Location.LookupFile): Add `CompilationUnit' argument; when given
a relative file name, make it relative to the directory the .cs
file is located in instead of using the current directory.

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

16 years ago2008-06-11 Zoltan Varga <vargaz@gmail.com>
Zoltan Varga [Wed, 11 Jun 2008 16:42:57 +0000 (16:42 -0000)]
2008-06-11  Zoltan Varga  <vargaz@gmail.com>

* assembly.c (mono_assembly_load_from_full): Call
mono_assembly_load_friends () outside the assemblies lock, since it can
acquire the loader lock. Fixes #323696.

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

16 years ago2008-06-11 Martin Baulig <martin@ximian.com>
Martin Baulig [Wed, 11 Jun 2008 16:33:03 +0000 (16:33 -0000)]
2008-06-11  Martin Baulig  <martin@ximian.com>

* SymbolWriterImpl.cs: Put this back and make it work with the
current symbol writer.

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

16 years ago2008-06-11 Martin Baulig <martin@ximian.com>
Martin Baulig [Wed, 11 Jun 2008 16:00:52 +0000 (16:00 -0000)]
2008-06-11  Martin Baulig  <martin@ximian.com>

* MonoSymbolWriter.cs
(MonoSymbolWriter.OpenMethod): Maintain a method stack, so we can
now recursively call OpenMethod().

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

16 years ago2008-06-11 Jonathan Pobst <monkey@jpobst.com>
Jonathan Pobst [Wed, 11 Jun 2008 15:33:23 +0000 (15:33 -0000)]
2008-06-11  Jonathan Pobst  <monkey@jpobst.com>

* TextBoxBase.cs: When pasting and checking the max length,
subtract the selected text length (the text we will be replacing) from
the document length.
* TextControl.cs: Ensure every character insertion is reflected in
charcount, so max length will work properly.
[Fixes bug #398605]

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

16 years ago2008-06-11 Martin Baulig <martin@ximian.com>
Martin Baulig [Wed, 11 Jun 2008 15:12:24 +0000 (15:12 -0000)]
2008-06-11  Martin Baulig  <martin@ximian.com>

* MonoSymbolTable.cs
(SourceFileEntry.WriteData): Silently ignore non-existing files.

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

16 years ago2008-06-11 Jonathan Pobst <monkey@jpobst.com>
Jonathan Pobst [Wed, 11 Jun 2008 15:10:40 +0000 (15:10 -0000)]
2008-06-11  Jonathan Pobst  <monkey@jpobst.com>

* ListBox.cs: Ensure scrollbars are updated when a single
column listbox with an already set top-index is created.
[Fixes bug #398342]

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

16 years ago2008-06-11 Martin Baulig <martin@ximian.com>
Martin Baulig [Wed, 11 Jun 2008 15:08:14 +0000 (15:08 -0000)]
2008-06-11  Martin Baulig  <martin@ximian.com>

* class.cs
(IMethodData.EmitExtraSymbolInfo): Added `SourceMethod' argument.
(MethodOrOperator.EmitExtraSymbolInfo): Likewise.
(SourceMethod.SetRealMethodName): Moved here from the symbol writer.
(SourceMethod.SetCompilerGenerated): Likewise.

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

16 years ago2008-06-11 Martin Baulig <martin@ximian.com>
Martin Baulig [Wed, 11 Jun 2008 15:08:00 +0000 (15:08 -0000)]
2008-06-11  Martin Baulig  <martin@ximian.com>

* MonoSymbolWriter.cs
(MonoSymbolWriter.SetRealMethodName): Removed, call it on the
`SourceMethodBuilder'.
(MonoSymbolWriter.SetCompilerGenerated): Likewise.

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

16 years ago2008-06-11 Jonathan Pobst <monkey@jpobst.com>
Jonathan Pobst [Wed, 11 Jun 2008 14:56:54 +0000 (14:56 -0000)]
2008-06-11  Jonathan Pobst  <monkey@jpobst.com>

* FontDialog.cs: Typing in the font/style textboxes should search
the list boxes case-insensitively.  [Fixes bug #398343]

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

16 years agoSmall fix.
Martin Baulig [Wed, 11 Jun 2008 14:33:15 +0000 (14:33 -0000)]
Small fix.

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

16 years agoReflect latest symbol writer changes.
Martin Baulig [Wed, 11 Jun 2008 14:10:40 +0000 (14:10 -0000)]
Reflect latest symbol writer changes.

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

16 years agoReflect latest symbol writer changes.
Martin Baulig [Wed, 11 Jun 2008 14:10:30 +0000 (14:10 -0000)]
Reflect latest symbol writer changes.

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

16 years agoReflect latest symbol writer changes.
Martin Baulig [Wed, 11 Jun 2008 14:10:18 +0000 (14:10 -0000)]
Reflect latest symbol writer changes.

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

16 years ago2008-06-11 Martin Baulig <martin@ximian.com>
Martin Baulig [Wed, 11 Jun 2008 14:09:55 +0000 (14:09 -0000)]
2008-06-11  Martin Baulig  <martin@ximian.com>

* MonoSymbolWriter.cs
(ISourceMethod): Renamed to `IMethodDef'.
(SourceMethodBuilder): New public class.
(MonoSymbolWriter.OpenMethod): Added `int ns_id' argument and
return a `SourceMethodBuilder'.

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

16 years ago2008-06-11 Stephane Delcroix <sdelcroix@novell.com>
Stephane Delcroix [Wed, 11 Jun 2008 14:07:18 +0000 (14:07 -0000)]
2008-06-11  Stephane Delcroix  <sdelcroix@novell.com>

* SocketAsyncEventArgs.cs: catch SocketException in ConnectAsync
and set the SocketError accordingly.

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

16 years ago2008-06-11 Jb Evain <jbevain@novell.com>
Jb Evain [Wed, 11 Jun 2008 13:25:59 +0000 (13:25 -0000)]
2008-06-11  Jb Evain  <jbevain@novell.com>

* Makefile: fix EXTRA_DISTFILES to include all needed
xsd and xml files.

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

16 years agorefactoring
Jb Evain [Wed, 11 Jun 2008 13:07:11 +0000 (13:07 -0000)]
refactoring

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

16 years ago2008-06-11 Atsushi Enomoto <atsushi@ximian.com>
Atsushi Eno [Wed, 11 Jun 2008 12:20:57 +0000 (12:20 -0000)]
2008-06-11  Atsushi Enomoto  <atsushi@ximian.com>

* DateTimeConverter.cs : use MM for month instead of mm.
  Fixed bug #396649, patch by Andy Hume.

* DateTimeConverterTest.cs : test for bug #396649 by Andy Hume.

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

16 years ago2008-06-11 Atsushi Enomoto <atsushi@ximian.com>
Atsushi Eno [Wed, 11 Jun 2008 12:19:48 +0000 (12:19 -0000)]
2008-06-11  Atsushi Enomoto  <atsushi@ximian.com>

* FileVersionInfoTest.cs : disabled all English-Windows-dependent
  tests. They all fail on Windows whose language is not English.

  In general, be careful to compare language-dependent strings.

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

16 years ago2008-06-11 Marek Habersack <mhabersack@novell.com>
Marek Habersack [Wed, 11 Jun 2008 12:11:33 +0000 (12:11 -0000)]
2008-06-11  Marek Habersack  <mhabersack@novell.com>

* Test/System.Web.UI/ScriptBehaviorDescriptorTest.cs,
Test/System.Web.UI/ScriptComponentDescriptorTest.cs,
Test/System.Web.UI/ScriptControlDescriptorTest.cs: disabled
tests relying on the Dictionary keys order.

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

16 years ago2008-06-11 Atsushi Enomoto <atsushi@ximian.com>
Atsushi Eno [Wed, 11 Jun 2008 11:43:41 +0000 (11:43 -0000)]
2008-06-11  Atsushi Enomoto  <atsushi@ximian.com>

* Installer.cs : populate 'installers' instance. Fixed bug #397126.

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

16 years ago2008-06-11 Atsushi Enomoto <atsushi@ximian.com>
Atsushi Eno [Wed, 11 Jun 2008 11:27:45 +0000 (11:27 -0000)]
2008-06-11  Atsushi Enomoto  <atsushi@ximian.com>

* XmlConvert.cs : fixed bug #397934. Utc mode accepts more formats.

* XmlConvertTests.cs : added test for bug #397934

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

16 years agoNew symbol writer test
Marek Safar [Wed, 11 Jun 2008 11:22:29 +0000 (11:22 -0000)]
New symbol writer test

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

16 years ago2008-06-11 Marek Safar <marek.safar@gmail.com>
Marek Safar [Wed, 11 Jun 2008 11:20:32 +0000 (11:20 -0000)]
2008-06-11  Marek Safar  <marek.safar@gmail.com>

* codegen.cs, driver: Only write symbol file when it's asked for.

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

16 years ago2008-06-11 Atsushi Enomoto <atsushi@ximian.com>
Atsushi Eno [Wed, 11 Jun 2008 10:57:03 +0000 (10:57 -0000)]
2008-06-11  Atsushi Enomoto  <atsushi@ximian.com>

* XmlConvert.cs : no need for TARGET_JVM.

* XmlConvertTests.cs : no need for TARGET_JVM. Fix wrong comparison.

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

16 years agoForget to save the file
Marek Safar [Wed, 11 Jun 2008 10:55:28 +0000 (10:55 -0000)]
Forget to save the file

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

16 years ago2008-06-11 Marek Safar <marek.safar@gmail.com>
Marek Safar [Wed, 11 Jun 2008 10:50:16 +0000 (10:50 -0000)]
2008-06-11  Marek Safar  <marek.safar@gmail.com>

* codegen.cs: Don't use assembly writer error handling for symbol writer.

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

16 years agoforce preserving ThreadState, in case of
Jb Evain [Wed, 11 Jun 2008 10:42:15 +0000 (10:42 -0000)]
force preserving ThreadState, in case of

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

16 years ago2008-06-11 George Giolfan <georgegiolfan@yahoo.com>
George Giolfan [Wed, 11 Jun 2008 10:27:18 +0000 (10:27 -0000)]
2008-06-11  George Giolfan  <georgegiolfan@yahoo.com>

* ThemeWin32Classic.cs: Managed window title bar layout now uses actual
widths of icon and buttons instead of hard coded values.

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

16 years ago * ListBox.cs: When SelectionMode is None, clicking an item should move focus
Carlos Alberto Cortez [Wed, 11 Jun 2008 04:26:55 +0000 (04:26 -0000)]
* ListBox.cs: When SelectionMode is None, clicking an item should move focus
as well as generating a SelectedIndexChanged event, just like .Net does
-surprise-.
Fixes #398345.

2008-06-10  Carlos Alberto Cortez <calberto.cortez@gmail.com>

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

16 years ago* Mono.Mozilla/DOM/Attribute.cs: Fix missing setter
Andreia Gaita [Wed, 11 Jun 2008 04:09:53 +0000 (04:09 -0000)]
* Mono.Mozilla/DOM/Attribute.cs: Fix missing setter

2008-06-11  Andreia Gaita <avidigal@novell.com>

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

16 years ago2008-06-11 Zoltan Varga <vargaz@gmail.com>
Zoltan Varga [Wed, 11 Jun 2008 00:01:28 +0000 (00:01 -0000)]
2008-06-11  Zoltan Varga  <vargaz@gmail.com>

* TypeBuilderTest.cs (GetField): Add a test for calling GetField on an
open generic type.

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

16 years ago2008-06-11 Zoltan Varga <vargaz@gmail.com>
Zoltan Varga [Tue, 10 Jun 2008 23:56:34 +0000 (23:56 -0000)]
2008-06-11  Zoltan Varga  <vargaz@gmail.com>

* reflection.c (resolve_object): Inflate the inst with the context for
FieldOnTypeBuilderInst. Fixes #399010.

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

16 years ago2008-06-10 Carlos Alberto Cortez <calberto.cortez@gmail.com>
Carlos Alberto Cortez [Tue, 10 Jun 2008 23:33:39 +0000 (23:33 -0000)]
2008-06-10  Carlos Alberto Cortez <calberto.cortez@gmail.com>

* ListBox.cs: When navigating items visually, use FocusedItem as the
reference point instead of SelectedIndex, since even in
SelectionMode.None we need to support navigation, and in that case we
just can't use SelectedIndex.
Fixes part of #398345.

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

16 years ago2008-06-10 Rodrigo Kumpera <rkumpera@novell.com>
Rodrigo Kumpera [Tue, 10 Jun 2008 23:27:12 +0000 (23:27 -0000)]
2008-06-10 Rodrigo Kumpera  <rkumpera@novell.com>

* TypeBuilderTest.cs: Added test for bug #399047.

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

16 years ago2008-06-11 Marek Habersack <mhabersack@novell.com>
Marek Habersack [Tue, 10 Jun 2008 22:43:10 +0000 (22:43 -0000)]
2008-06-11  Marek Habersack  <mhabersack@novell.com>

* BaseCompiler.cs: do not generate #line pragma for code which
exists only in memory.

2008-06-11  Marek Habersack  <mhabersack@novell.com>

* TemplateControl.cs: make sure 'type' isn't null in LoadControl
before attempting to use it.

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

16 years ago2008-06-10 Rodrigo Kumpera <rkumpera@novell.com>
Rodrigo Kumpera [Tue, 10 Jun 2008 22:34:24 +0000 (22:34 -0000)]
2008-06-10 Rodrigo Kumpera  <rkumpera@novell.com>

* reflection.c (mono_image_get_field_on_inst_token): Don't
inflate the field to encode it's signature. If it's a
VAR or MVAR it should stay that way in the signature.
Fixes #399047.

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

16 years ago2008-06-10 Rodrigo Kumpera <rkumpera@novell.com>
Rodrigo Kumpera [Tue, 10 Jun 2008 20:47:21 +0000 (20:47 -0000)]
2008-06-10 Rodrigo Kumpera  <rkumpera@novell.com>

* reflection.c (resolve_object): Release memory of inflated types.

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

16 years agoFix build.
Zoltan Varga [Tue, 10 Jun 2008 20:38:49 +0000 (20:38 -0000)]
Fix build.

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

16 years ago2008-06-10 Jonathan Pobst <monkey@jpobst.com>
Jonathan Pobst [Tue, 10 Jun 2008 19:04:41 +0000 (19:04 -0000)]
2008-06-10  Jonathan Pobst  <monkey@jpobst.com>

* TableLayoutSettingsTypeConverter.cs: Patch from Andy Hume to
use InvariantCulture.

2008-06-10  Jonathan Pobst  <monkey@jpobst.com>

* TableLayoutSettingsTypeConverterTest.cs: New tests
from Andy Hume for bug #398274.

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

16 years ago2008-06-10 Zoltan Varga <vargaz@gmail.com>
Zoltan Varga [Tue, 10 Jun 2008 19:00:56 +0000 (19:00 -0000)]
2008-06-10  Zoltan Varga  <vargaz@gmail.com>

* Makefile.am: Delete some tests for the disabled set which seem to work now.

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

16 years ago2008-06-10 Marek Habersack <mhabersack@novell.com>
Marek Habersack [Tue, 10 Jun 2008 18:18:38 +0000 (18:18 -0000)]
2008-06-10  Marek Habersack  <mhabersack@novell.com>

* HttpRuntime.cs: do not create a new thread to run the
application, reuse the thread from the hosting application (XSP's
thread comes from threadpool).

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

16 years ago2008-06-10 Rodrigo Kumpera <rkumpera@novell.com>
Rodrigo Kumpera [Tue, 10 Jun 2008 17:22:02 +0000 (17:22 -0000)]
2008-06-10 Rodrigo Kumpera  <rkumpera@novell.com>

* loader.c (mono_method_get_signature_full): Remove assert about
loading a methodspec to a generic method. We have such methods, such as
System.Threading.Interlocked::CompareExchange<T>.
This assert was removed since it crashes the verifier when it checks
methods calling CompareExchange<T>.

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

16 years ago2008-06-10 Jonathan Pobst <monkey@jpobst.com>
Jonathan Pobst [Tue, 10 Jun 2008 17:02:21 +0000 (17:02 -0000)]
2008-06-10  Jonathan Pobst  <monkey@jpobst.com>

* Control.cs: Make a SetBoundsInternal that avoids the new
SetBounds code.
* ComboBox.cs, Form.cs, ListBox.cs, ScrollableControl.cs: Use
SetBoundsInternal instead of SetBoundsCoreInternal.

2008-06-10  Jonathan Pobst  <monkey@jpobst.com>

* DefaultLayout.cs, TableLayout.cs, FlowLayout.cs: Use SetBoundsInternal
instead of SetBoundsCoreInternal.

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

16 years agoinitial checkin. New assembly in Silverlight 2.0 beta 2.
Atsushi Eno [Tue, 10 Jun 2008 16:49:49 +0000 (16:49 -0000)]
initial checkin. New assembly in Silverlight 2.0 beta 2.

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

16 years ago2008-06-10 Marek Safar <marek.safar@gmail.com>
Marek Safar [Tue, 10 Jun 2008 16:49:11 +0000 (16:49 -0000)]
2008-06-10  Marek Safar  <marek.safar@gmail.com>

* icall.c (ves_icall_MonoMethod_GetGenericArguments): Creates an instance
of Type array and not MonoType.

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

16 years ago2008-06-10 Marek Habersack <mhabersack@novell.com>
Marek Habersack [Tue, 10 Jun 2008 16:46:34 +0000 (16:46 -0000)]
2008-06-10  Marek Habersack  <mhabersack@novell.com>

* profiler.c: fix a segfault on shutdown. Patch from Paolo Molaro
<lupus@ximian.com>

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

16 years ago* TemplateControl.jvm.cs: Don't assume that controls containing page-specific
Noam Lampert [Tue, 10 Jun 2008 16:20:04 +0000 (16:20 -0000)]
* TemplateControl.jvm.cs: Don't assume that controls containing page-specific
callbacks (e.g. Page_LoadComplete) are necessarily Page derivatives.

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

16 years ago* ListItemCollection.cs: Provide viewstate for dirty collection even if it is empty.
Noam Lampert [Tue, 10 Jun 2008 16:17:28 +0000 (16:17 -0000)]
* ListItemCollection.cs: Provide viewstate for dirty collection even if it is empty.

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

16 years agoFix Java compilation issue.
Noam Lampert [Tue, 10 Jun 2008 16:16:48 +0000 (16:16 -0000)]
Fix Java compilation issue.

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

16 years ago2008-06-10 Martin Baulig <martin@ximian.com>
Martin Baulig [Tue, 10 Jun 2008 15:59:01 +0000 (15:59 -0000)]
2008-06-10  Martin Baulig  <martin@ximian.com>

* debug-mono-symfile.h
(MONO_SYMBOL_FILE_MINOR_VERSION): Bump to 6.  There were no
changes to the file format, but we were generating incorrect
source file indices in the line number table due to a bug, which
made backtraces report an incorrect source file.

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

16 years ago2008-06-10 Martin Baulig <martin@ximian.com>
Martin Baulig [Tue, 10 Jun 2008 15:57:56 +0000 (15:57 -0000)]
2008-06-10  Martin Baulig  <martin@ximian.com>

* MonoSymbolTable.cs
(OffsetTable.MinorVersion): Bump to 6.  There were no changes to
the file format, but we were generating incorrect source file
indices in the line number table due to a bug, which made
backtraces report an incorrect source file.

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

16 years ago2008-06-10 Ivan N. Zlatev <contact@i-nz.net>
Ivan Zlatev [Tue, 10 Jun 2008 15:55:46 +0000 (15:55 -0000)]
2008-06-10  Ivan N. Zlatev  <contact@i-nz.net>

* ScrollableControl.cs: Use SetBoundsCoreInternal instead of
SetBounds for the scrollbars.

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

16 years ago2008-06-10 Martin Baulig <martin@ximian.com>
Martin Baulig [Tue, 10 Jun 2008 15:55:08 +0000 (15:55 -0000)]
2008-06-10  Martin Baulig  <martin@ximian.com>

* symbolwriter.cs: Reflect latest MarkSequencePoint() API changes.

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