mono.git
16 years ago2007-10-15 Jonathan Pobst <monkey@jpobst.com>
Jonathan Pobst [Mon, 15 Oct 2007 20:52:10 +0000 (20:52 -0000)]
2007-10-15  Jonathan Pobst  <monkey@jpobst.com>

* LineTag.cs: Fix a case where the GetCharIndex would not return 0
when the mouse was to the left of the first character in the line.

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

16 years ago* FtpWebRequest.cs: Added support for DELETE.
Gert Driesen [Mon, 15 Oct 2007 18:47:32 +0000 (18:47 -0000)]
* FtpWebRequest.cs: Added support for DELETE.

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

16 years ago2007-10-15 Jonathan Pobst <monkey@jpobst.com>
Jonathan Pobst [Mon, 15 Oct 2007 16:55:47 +0000 (16:55 -0000)]
2007-10-15  Jonathan Pobst  <monkey@jpobst.com>

* TableLayout.cs: If a control has an explicitly set col/row greater
than the number of columns/rows in the panel, expand the table to
accommodate the control.  [Fixes bug #332892]

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

16 years ago2007-10-15 Marek Safar <marek.safar@gmail.com>
Marek Safar [Mon, 15 Oct 2007 16:45:59 +0000 (16:45 -0000)]
2007-10-15  Marek Safar  <marek.safar@gmail.com>

* class.cs (FixedField): Removed redundant volatile check.

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

16 years agoBetter error message.
Marek Safar [Mon, 15 Oct 2007 16:30:17 +0000 (16:30 -0000)]
Better error message.

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

16 years ago2007-10-15 Marek Safar <marek.safar@gmail.com>
Marek Safar [Mon, 15 Oct 2007 16:26:06 +0000 (16:26 -0000)]
2007-10-15  Marek Safar  <marek.safar@gmail.com>

* class.cs, decl.cs: Fixed overload members verification to do only one
check per possible collision.

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

16 years agoFlush local changes.
Gert Driesen [Mon, 15 Oct 2007 16:03:54 +0000 (16:03 -0000)]
Flush local changes.

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

16 years agoRemove commented code.
Gert Driesen [Mon, 15 Oct 2007 15:48:09 +0000 (15:48 -0000)]
Remove commented code.

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

16 years ago* WebRequestTest.cs: Fixed test for serialization ctor to match
Gert Driesen [Mon, 15 Oct 2007 15:46:36 +0000 (15:46 -0000)]
* WebRequestTest.cs: Fixed test for serialization ctor to match
1.0 profile change. Added trivial tests to argument null checks.
Added test for DefaultWebProxy. Fixed line endings.
* WebRequest.cs: Changed serialization ctor to throw NIE on 1.0
profile. Cache default proxy, but still allow it to be explicitly set
to null.

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

16 years ago2007-10-15 Dick Porter <dick@ximian.com>
Dick Porter [Mon, 15 Oct 2007 14:49:11 +0000 (14:49 -0000)]
2007-10-15  Dick Porter  <dick@ximian.com>

* monitor.c (mono_monitor_try_enter_internal): Set thread state to
WaitSleepJoin while it is waiting to acquire a lock.  Fixes bug
81646.

* threads.c: Turn the thread synch_lock into a CRITICAL_SECTION,
instead of a monitor lock.  This means that monitor_try_enter and
co can set the thread state safely.
(ves_icall_System_Threading_Thread_Interrupt_internal): Always set
thread_interrupt_requested, so interrupt actually works.

* socket-io.c (ves_icall_System_Net_Sockets_Socket_Poll_internal,
ves_icall_System_Net_Sockets_Socket_Select_internal): Use thread
state accessor function

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

16 years ago2007-10-15 Dick Porter <dick@ximian.com>
Dick Porter [Mon, 15 Oct 2007 14:49:07 +0000 (14:49 -0000)]
2007-10-15  Dick Porter  <dick@ximian.com>

* Thread.cs: Initialise synch_cs to null now we aren't using it as
a monitor lock

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

16 years ago2007-10-15 Jonathan Pobst <monkey@jpobst.com>
Jonathan Pobst [Mon, 15 Oct 2007 14:23:52 +0000 (14:23 -0000)]
2007-10-15  Jonathan Pobst  <monkey@jpobst.com>

* TextBox.cs, TextBoxBase.cs: When setting the document's password
character, use the property instead of the variable so that the
UseSystemPasswordChar property is taken into account.
[Fixes bug #333748]

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

16 years ago2007-10-15 Martin Baulig <martin@ximian.com>
Martin Baulig [Mon, 15 Oct 2007 14:17:42 +0000 (14:17 -0000)]
2007-10-15  Martin Baulig  <martin@ximian.com>

* mono-debug.h
(MONO_DEBUGGER_VERSION): Bump to 63 to make it impossible to use
the debugger with the current runtime.

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

16 years ago* SqlException.cs: Do not hide Message on 2.0 profile. Fixes bug
Gert Driesen [Mon, 15 Oct 2007 13:24:54 +0000 (13:24 -0000)]
* SqlException.cs: Do not hide Message on 2.0 profile. Fixes bug
#333901.

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

16 years ago2007-10-15 Marek Habersack <mhabersack@novell.com>
Marek Habersack [Mon, 15 Oct 2007 13:07:47 +0000 (13:07 -0000)]
2007-10-15  Marek Habersack  <mhabersack@novell.com>

* TemplateControlCompiler.cs, WebServiceCompiler.cs,
BuildProvider.cs, BaseCompiler.cs, CachingCompiler.cs: use
HttpApplication.LoadType instead of Type.GetType.
2007-10-15  Marek Habersack  <mhabersack@novell.com>

* ProvidersHelper.cs: use HttpApplication.LoadType instead of
Type.GetType.
2007-10-15  Marek Habersack  <mhabersack@novell.com>

* ObjectDataSourceView.cs: use HttpApplication.LoadType instead of
Type.GetType.
2007-10-15  Marek Habersack  <mhabersack@novell.com>

* ProfileBase.cs: use HttpApplication.LoadType instead of
Type.GetType.

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

16 years ago2007-10-15 Juraj Skripsky <js@hotfeet.ch>
Juraj Skripsky [Mon, 15 Oct 2007 12:48:57 +0000 (12:48 -0000)]
2007-10-15  Juraj Skripsky  <js@hotfeet.ch>

* SessionStateModule.cs (Init): Use HttpApplication.LoadType,
don't swallow TypeLoadException.

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

16 years ago* EnvironmentTest.cs: Added test for bug #333740. Made names of some
Gert Driesen [Mon, 15 Oct 2007 12:04:23 +0000 (12:04 -0000)]
* EnvironmentTest.cs: Added test for bug #333740. Made names of some
existing tests more clear. Code formatting.

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

16 years ago2007-10-15 Marek Habersack <mhabersack@novell.com>
Marek Habersack [Mon, 15 Oct 2007 09:42:03 +0000 (09:42 -0000)]
2007-10-15  Marek Habersack  <mhabersack@novell.com>

* SessionStateServerHandler.cs: adjust order of field
initialization.

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

16 years ago* DateTimeTest.cs: Added test for bug #322510.
Gert Driesen [Mon, 15 Oct 2007 09:40:58 +0000 (09:40 -0000)]
* DateTimeTest.cs: Added test for bug #322510.

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

16 years ago2007-10-15 Marek Habersack <mhabersack@novell.com>
Marek Habersack [Mon, 15 Oct 2007 09:25:46 +0000 (09:25 -0000)]
2007-10-15  Marek Habersack  <mhabersack@novell.com>

* HttpApplication.cs: do not return a non-existing bin directory
from BinDirectories. Patch from Atsushi Enomoto
<atsushi@ximian.com>, thanks! Fixes bug #332434.

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

16 years ago2007-10-15 Marek Habersack <mhabersack@novell.com>
Marek Habersack [Mon, 15 Oct 2007 09:17:41 +0000 (09:17 -0000)]
2007-10-15  Marek Habersack  <mhabersack@novell.com>

* BulletedList.cs: html encode the item text. Fixes bug #333550.

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

16 years agoMon Oct 15 11:18:52 CEST 2007 Paolo Molaro <lupus@ximian.com>
Paolo Molaro [Mon, 15 Oct 2007 09:04:38 +0000 (09:04 -0000)]
Mon Oct 15 11:18:52 CEST 2007 Paolo Molaro <lupus@ximian.com>

* mini-ppc.c, mini-ppc.h: ppc support for the common vtable
trampoline.

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

16 years ago2007-10-15 Marek Habersack <mhabersack@novell.com>
Marek Habersack [Mon, 15 Oct 2007 08:57:38 +0000 (08:57 -0000)]
2007-10-15  Marek Habersack  <mhabersack@novell.com>

* HttpModulesSection.cs: use HttpApplication.LoadType when loading
modules, to include both the bin/ directory and the top-level
assemblies in search. Fixes bug #333686.
2007-10-15  Marek Habersack  <mhabersack@novell.com>

* ModulesConfiguration.cs: load modules using
HttpApplication.LoadType to include the bin/ directory in search.

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

16 years agoMon Oct 15 10:41:27 CEST 2007 Paolo Molaro <lupus@ximian.com>
Paolo Molaro [Mon, 15 Oct 2007 08:27:21 +0000 (08:27 -0000)]
Mon Oct 15 10:41:27 CEST 2007 Paolo Molaro <lupus@ximian.com>

* mini-amd64.c, mini-amd64.h: amd64 support for the common vtable
trampoline.

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

16 years agoMon Oct 15 10:39:26 CEST 2007 Paolo Molaro <lupus@ximian.com>
Paolo Molaro [Mon, 15 Oct 2007 08:23:45 +0000 (08:23 -0000)]
Mon Oct 15 10:39:26 CEST 2007 Paolo Molaro <lupus@ximian.com>

* mini-x86.c, mini-x86.h: x86 support for the common vtable
trampoline.

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

16 years agoMon Oct 15 10:37:15 CEST 2007 Paolo Molaro <lupus@ximian.com>
Paolo Molaro [Mon, 15 Oct 2007 08:21:41 +0000 (08:21 -0000)]
Mon Oct 15 10:37:15 CEST 2007 Paolo Molaro <lupus@ximian.com>

* mini-trampolines.c: changed the magic rampoline to understand
the common vtable trampoline method: the method to invoke is
determined by the vtable displacement of the call.

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

16 years agoMon Oct 15 10:35:12 CEST 2007 Paolo Molaro <lupus@ximian.com>
Paolo Molaro [Mon, 15 Oct 2007 08:18:50 +0000 (08:18 -0000)]
Mon Oct 15 10:35:12 CEST 2007 Paolo Molaro <lupus@ximian.com>

* mini.c, mini.h: register the common vtable trampoline if the
architecture supports it.

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

16 years ago* ILGenerator.cs: Added missing null checks. Removed extra tabs.
Gert Driesen [Mon, 15 Oct 2007 08:13:33 +0000 (08:13 -0000)]
* ILGenerator.cs: Added missing null checks. Removed extra tabs.
* ILGeneratorTest.cs: Improve test for DeclareLocal null check.
Added tests for null checks in Emit overloads.

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

16 years agoMon Oct 15 10:20:56 CEST 2007 Paolo Molaro <lupus@ximian.com>
Paolo Molaro [Mon, 15 Oct 2007 08:06:13 +0000 (08:06 -0000)]
Mon Oct 15 10:20:56 CEST 2007 Paolo Molaro <lupus@ximian.com>

* object.c, object-internals.h: added the ability to set a single
trampoline for all the slots in a vtable.

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

16 years agoMon Oct 15 09:50:52 CEST 2007 Paolo Molaro <lupus@ximian.com>
Paolo Molaro [Mon, 15 Oct 2007 07:36:24 +0000 (07:36 -0000)]
Mon Oct 15 09:50:52 CEST 2007 Paolo Molaro <lupus@ximian.com>

* cpu-amd64.md: use the correct max length for tls_get.

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

16 years ago * FolderBrowserDialog.cs: When a node is right clicked and the "New
Carlos Alberto Cortez [Mon, 15 Oct 2007 06:56:34 +0000 (06:56 -0000)]
* FolderBrowserDialog.cs: When a node is right clicked and the "New
folder" contex menu appears, actually add the new folder to it, even
if the node is not currently selected. Still use SelectedNode in case
there wasn't found a node under the pointer.
Fixes #325452.

2007-10-13  Carlos Alberto Cortez <calberto.cortez@gmail.com>

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

16 years ago * ListViewItem.cs: When retrieving the focused state, the index check
Carlos Alberto Cortez [Mon, 15 Oct 2007 03:09:01 +0000 (03:09 -0000)]
* ListViewItem.cs: When retrieving the focused state, the index check
should be done only when ListView is in virtualmode, as it is an
expensive check for normal mode.

2007-10-13  Carlos Alberto Cortez <calberto.cortez@gmail.com>

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

16 years ago2007-10-14 Zoltan Varga <vargaz@gmail.com>
Zoltan Varga [Sun, 14 Oct 2007 16:58:12 +0000 (16:58 -0000)]
2007-10-14  Zoltan Varga  <vargaz@gmail.com>

* mini.c (mono_method_to_ir): Use mini_get_class in CEE_LDELEM_ANY and
CEE_STELEM_ANY. Fixes #333696.

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

16 years ago* SecurityElementTest.cs: Added tests for using single quotes as
Gert Driesen [Sun, 14 Oct 2007 15:05:28 +0000 (15:05 -0000)]
* SecurityElementTest.cs: Added tests for using single quotes as
delimiter of which one passes on Mono and one on MS (due to bug).

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

16 years ago* SecurityElementTest.cs: Modified test for bug #333699 to use double
Gert Driesen [Sun, 14 Oct 2007 14:40:10 +0000 (14:40 -0000)]
* SecurityElementTest.cs: Modified test for bug #333699 to use double
quote as delimiter to work around MS bug. Added test for bug #333725.

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

16 years ago* SecurityElement.cs: In ctors, do not assign to Tag property to
Gert Driesen [Sun, 14 Oct 2007 13:44:48 +0000 (13:44 -0000)]
* SecurityElement.cs: In ctors, do not assign to Tag property to
ensure exception message match that of MS. In Tag property, set name
of parameter in ArgumentNullException and do not filter out
namespace prefixes. Modified Text property to allow null values
after change to IsValidText that no longer considers null value as
valid. Avoid NRE in Escape.
* SecurityElementTest.cs: No longer derive from Assertion. Added and
improved ctor tests. Improved AddAttribute and AddChild tests.
Added comment to mono's Attributes test and added test that passes
on MS (to track fix for MS bug). Improved IsValid* tests. Added tests
for Tag and Text. Improved FromString test to verify behavior wrt
namespace prefixes. Added test for bug #333699.

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

16 years ago* RegistryKeyTest.cs: Added test for bug #322839.
Gert Driesen [Sun, 14 Oct 2007 08:11:30 +0000 (08:11 -0000)]
* RegistryKeyTest.cs: Added test for bug #322839.

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

16 years ago2007-10-14 Gonzalo Paniagua Javier <gonzalo.mono@gmail.com>
Gonzalo Paniagua Javier [Sun, 14 Oct 2007 06:19:30 +0000 (06:19 -0000)]
2007-10-14 Gonzalo Paniagua Javier <gonzalo.mono@gmail.com>

* WebRequest.cs: DefaultWebProxy allows a null value. Fixes bug #323668.

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

16 years ago2007-10-13 Miguel de Icaza <miguel@novell.com>
Miguel de Icaza [Sun, 14 Oct 2007 03:13:12 +0000 (03:13 -0000)]
2007-10-13  Miguel de Icaza  <miguel@novell.com>

* SerialPortStream.cs: Send a break on the Unix case.

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

16 years agoAdd support for sending breaks
Miguel de Icaza [Sun, 14 Oct 2007 03:08:59 +0000 (03:08 -0000)]
Add support for sending breaks

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

16 years ago2007-10-13 kevin.fitzgerald@soarce.us
Miguel de Icaza [Sun, 14 Oct 2007 02:50:25 +0000 (02:50 -0000)]
2007-10-13  kevin.fitzgerald@soarce.us

* UnixRegistryApi.cs: Escape the strings before passing them to
SecurityElement.   This fixes bug #322839

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

16 years ago2007-10-13 Carlos Alberto Cortez <calberto.cortez@gmail.com>
Carlos Alberto Cortez [Sun, 14 Oct 2007 01:46:33 +0000 (01:46 -0000)]
2007-10-13  Carlos Alberto Cortez <calberto.cortez@gmail.com>

* ListViewItemTest.cs: New tests for focused state. Also,
comment a new ones, as they don't work by now, but should work
as soon as we fix an issue there.

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

16 years ago2007-10-13 Carlos Alberto Cortez <calberto.cortez@gmail.com>
Carlos Alberto Cortez [Sun, 14 Oct 2007 01:45:08 +0000 (01:45 -0000)]
2007-10-13  Carlos Alberto Cortez <calberto.cortez@gmail.com>

* ListViewItem.cs: Make the focus state information be stored
in the ListView, not in the items. This is done to match the MS
behaviour for items that are not yet part of a ListView control;
besides that, since just one item can be focused at the same time,
we save a little space in our items.
Fixes part of #331643.

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

16 years ago* DelegateTest.cs: Enabled test for bug #333647.
Gert Driesen [Sat, 13 Oct 2007 20:47:12 +0000 (20:47 -0000)]
* DelegateTest.cs: Enabled test for bug #333647.

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

16 years agoAdded 2 empty stubs
Marek Safar [Sat, 13 Oct 2007 18:27:48 +0000 (18:27 -0000)]
Added 2 empty stubs

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

16 years ago2007-10-13 Zoltan Varga <vargaz@gmail.com>
Zoltan Varga [Sat, 13 Oct 2007 18:08:02 +0000 (18:08 -0000)]
2007-10-13  Zoltan Varga  <vargaz@gmail.com>

* Delegate.cs (CreateDelegate): Allow binding instance methods to
delegates with an extra argument, a NET 2.0 feature. Fixes #333647.

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

16 years agoSet eol-style.
Gert Driesen [Sat, 13 Oct 2007 17:51:51 +0000 (17:51 -0000)]
Set eol-style.

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

16 years ago* DelegateTest.cs: Added test for bug #333647. Added trivial tests
Gert Driesen [Sat, 13 Oct 2007 17:49:29 +0000 (17:49 -0000)]
* DelegateTest.cs: Added test for bug #333647. Added trivial tests
that verify null argument checks in CreateDelegate.

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

16 years ago* ComboBox.cs: When focus is lost, deselect the text. When setting
Gert Driesen [Sat, 13 Oct 2007 13:41:29 +0000 (13:41 -0000)]
* ComboBox.cs: When focus is lost, deselect the text. When setting
text of control, select all text. Do not hide selection when control
does not have focus. Fixes bug #333663.

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

16 years ago* RichTextBoxTest.cs: Added tests for negative SelectionLength and
Gert Driesen [Sat, 13 Oct 2007 13:05:47 +0000 (13:05 -0000)]
* RichTextBoxTest.cs: Added tests for negative SelectionLength and
SelectionStart.
* TextBoxTest.cs: Added tests for negative SelectionLength and
SelectionStart. Avoid using anonymous methods to allow tests to build
using csc 1.x; use EventLogger to capture events. Removed CWL.
* TextBoxBase.cs: On 2.0 profile, throw ArgumentOutOFRangeException
instead of ArgumentException when SelectionLength is set to negative
value. Added same check to SelectionStart. Code formatting.

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

16 years ago* TextBoxBase.cs: Invalidate selection before changing SelectionLength
Gert Driesen [Sat, 13 Oct 2007 12:00:23 +0000 (12:00 -0000)]
* TextBoxBase.cs: Invalidate selection before changing SelectionLength
or SelectionStart. Code formatting.

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

16 years ago2007-10-13 Marek Safar <marek.safar@gmail.com>
Marek Safar [Sat, 13 Oct 2007 10:56:57 +0000 (10:56 -0000)]
2007-10-13  Marek Safar  <marek.safar@gmail.com>

A fix for bug #325478
* anonymous.cs (AnonymousContainer.Compatible): Merge are flags together
and create only one disposable flags container.

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

16 years ago * TreeView.cs: drag_begin_x and drag_begin_y are now set to -1,
Carlos Alberto Cortez [Sat, 13 Oct 2007 01:55:20 +0000 (01:55 -0000)]
* TreeView.cs: drag_begin_x and drag_begin_y are now set to -1,
indicating that there was not a previous drag-and-drop operation going
on.
Fixes part of #325071.

2007-10-12  Carlos Alberto Cortez <calberto.cortez@gmail.com>

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

16 years ago2007-10-12 Carlos Alberto Cortez <calberto.cortez@gmail.com>
Carlos Alberto Cortez [Sat, 13 Oct 2007 01:09:57 +0000 (01:09 -0000)]
2007-10-12  Carlos Alberto Cortez <calberto.cortez@gmail.com>

* X11Dnd.cs: When DragEventArgs.Effect is set to a value not part of
AllowedEffect, don't let the drop operation happen.
Fixes #32580.

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

16 years ago2007-10-12 Jonathan Pobst <monkey@jpobst.com>
Jonathan Pobst [Fri, 12 Oct 2007 20:43:54 +0000 (20:43 -0000)]
2007-10-12  Jonathan Pobst  <monkey@jpobst.com>

* TextRenderer.cs: Use GDI on Windows in both the 1.1 and 2.0 profiles.

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

16 years agoA test for bug #332442
Marek Safar [Fri, 12 Oct 2007 17:50:24 +0000 (17:50 -0000)]
A test for bug #332442

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

16 years ago2007-10-12 Marek Safar <marek.safar@gmail.com>
Marek Safar [Fri, 12 Oct 2007 17:49:59 +0000 (17:49 -0000)]
2007-10-12  Marek Safar  <marek.safar@gmail.com>

A fix for bug #332442 by Alexandre Gomes <alexmipego@gmail.com>
* statement.cs (Fixed): Fixed variables cloning.

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

16 years agoA test for bug #333342
Marek Safar [Fri, 12 Oct 2007 17:33:13 +0000 (17:33 -0000)]
A test for bug #333342

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

16 years ago2007-10-12 Marek Safar <marek.safar@gmail.com>
Marek Safar [Fri, 12 Oct 2007 17:32:51 +0000 (17:32 -0000)]
2007-10-12  Marek Safar  <marek.safar@gmail.com>

A fix for bug #333342
* class.cs (EventField): Don't mark value type event as synchronized.

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

16 years agoNew tests + update
Marek Safar [Fri, 12 Oct 2007 17:11:00 +0000 (17:11 -0000)]
New tests + update

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

16 years ago2007-10-12 Marek Safar <marek.safar@gmail.com>
Marek Safar [Fri, 12 Oct 2007 17:08:45 +0000 (17:08 -0000)]
2007-10-12  Marek Safar  <marek.safar@gmail.com>

* ecore.cs, anonymous.cs (MethodGroupExpr): Use score from type
inference to identify best candidate method correctly.
(ProperyExpr): A range variable is read only and cannot be modified.

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

16 years ago2007-10-12 Marek Safar <marek.safar@gmail.com>
Marek Safar [Fri, 12 Oct 2007 17:08:20 +0000 (17:08 -0000)]
2007-10-12  Marek Safar  <marek.safar@gmail.com>

* generics.cs: Implemented basic type inference scoring mechanism.

* linq.cs (QueryExpressionInvocation): Try to identify and report which
query section is wrong.

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

16 years ago2007-10-12 Jonathan Pobst <monkey@jpobst.com>
Jonathan Pobst [Fri, 12 Oct 2007 16:33:50 +0000 (16:33 -0000)]
2007-10-12  Jonathan Pobst  <monkey@jpobst.com>

* Line.cs, LineTag.cs: Guard against an exception when Document.Clear
is called.

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

16 years agoFri Oct 12 17:50:11 CEST 2007 Paolo Molaro <lupus@ximian.com>
Paolo Molaro [Fri, 12 Oct 2007 15:34:45 +0000 (15:34 -0000)]
Fri Oct 12 17:50:11 CEST 2007 Paolo Molaro <lupus@ximian.com>

* marshal.c: deal with a possible race condition during multicast
delegate invocation.

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

16 years ago2007-10-12 Jonathan Pobst <monkey@jpobst.com>
Jonathan Pobst [Fri, 12 Oct 2007 14:29:06 +0000 (14:29 -0000)]
2007-10-12  Jonathan Pobst  <monkey@jpobst.com>

* Line.cs: Add a method that finds the tag that contains an x-coord.
* LineTag.cs: Add a method that finds the character at an x-coord using
a binary search, the old way was a linear search.
* TextControl.cs: Change FindCursor to use the above new methods.

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

16 years agoLimit the check to instance methods.
Paolo Molaro [Fri, 12 Oct 2007 11:20:36 +0000 (11:20 -0000)]
Limit the check to instance methods.

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

16 years agoTest case for synchronied methods in value types.
Paolo Molaro [Fri, 12 Oct 2007 11:16:28 +0000 (11:16 -0000)]
Test case for synchronied methods in value types.

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

16 years agoFri Oct 12 13:31:11 CEST 2007 Paolo Molaro <lupus@ximian.com>
Paolo Molaro [Fri, 12 Oct 2007 11:15:44 +0000 (11:15 -0000)]
Fri Oct 12 13:31:11 CEST 2007 Paolo Molaro <lupus@ximian.com>

* class.c: ensure value type methods don't have the synchronized
flag set.

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

16 years ago2007-10-12 Nagappan A <anagappan@novell.com>
Nagappan Alagappan [Fri, 12 Oct 2007 08:29:44 +0000 (08:29 -0000)]
2007-10-12  Nagappan A  <anagappan@novell.com>

* OdbcDataReaderTest.cs (Bug332400Test): Bug 332400 - ODBC and
  LONGBLOB columns. Thanks to Ernesto Carrea
  <equistango@gmail.com> for the patch and the test case.

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

16 years ago* OdbcDataReader.cs: Bug 332400 - ODBC and LONGBLOB columns. Thanks to
Nagappan Alagappan [Fri, 12 Oct 2007 08:24:22 +0000 (08:24 -0000)]
* OdbcDataReader.cs: Bug 332400 - ODBC and LONGBLOB columns. Thanks to
  Ernesto Carrea <equistango@gmail.com> for the patch and the test
  case.

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

16 years agoFri Oct 12 08:11:50 CEST 2007 Paolo Molaro <lupus@ximian.com>
Paolo Molaro [Fri, 12 Oct 2007 06:07:23 +0000 (06:07 -0000)]
Fri Oct 12 08:11:50 CEST 2007 Paolo Molaro <lupus@ximian.com>

* String.cs: reverted unapproved patch that breaks the build.

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

16 years agoFri Oct 12 08:10:59 CEST 2007 Paolo Molaro <lupus@ximian.com>
Paolo Molaro [Fri, 12 Oct 2007 06:07:20 +0000 (06:07 -0000)]
Fri Oct 12 08:10:59 CEST 2007 Paolo Molaro <lupus@ximian.com>

* string-icalls.c, string-icalls.h: reverted unapproved patch that
breaks the build.

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

16 years agoString.Split(char[],int,StringSplitOptions) should remove empty entries while
Joel Reed [Fri, 12 Oct 2007 03:08:38 +0000 (03:08 -0000)]
String.Split(char[],int,StringSplitOptions) should remove empty entries while
the string is being split and always return the maximum number of elements possible

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

16 years agomodify System_String_InternalSplit to take an options parameter so that empty entries
Joel Reed [Fri, 12 Oct 2007 03:04:30 +0000 (03:04 -0000)]
modify System_String_InternalSplit to take an options parameter so that empty entries
can be removed during the split procedure.

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

16 years ago2007-10-11 Carlos Alberto Cortez <calberto.cortez@gmail.com>
Carlos Alberto Cortez [Thu, 11 Oct 2007 21:45:41 +0000 (21:45 -0000)]
2007-10-11  Carlos Alberto Cortez <calberto.cortez@gmail.com>

* DragEventArgs.cs: Allow Effect to have a non allowed value (a
value different than AllowedEffect). This should be possible to
indicate that dragging is not possible in some control/area.

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

16 years ago2007-10-11 Carlos Alberto Cortez <calberto.cortez@gmail.com>
Carlos Alberto Cortez [Thu, 11 Oct 2007 21:43:29 +0000 (21:43 -0000)]
2007-10-11  Carlos Alberto Cortez <calberto.cortez@gmail.com>

* System.Windows.Forms_test.dll.sources: Added DragEventArgsTest.cs.

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

16 years ago2007-10-11 Carlos Alberto Cortez <calberto.cortez@gmail.com>
Carlos Alberto Cortez [Thu, 11 Oct 2007 21:42:02 +0000 (21:42 -0000)]
2007-10-11  Carlos Alberto Cortez <calberto.cortez@gmail.com>

* DragEventArgsTest.cs: New file.

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

16 years agoThu Oct 11 20:16:58 CEST 2007 Paolo Molaro <lupus@ximian.com>
Paolo Molaro [Thu, 11 Oct 2007 18:04:02 +0000 (18:04 -0000)]
Thu Oct 11 20:16:58 CEST 2007 Paolo Molaro <lupus@ximian.com>

* marshal.c: make sure we don't store the signature from a dynamic
method into the runtime invoke cache (bug #327189).

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

16 years ago2007-10-11 Jonathan Pobst <monkey@jpobst.com>
Jonathan Pobst [Thu, 11 Oct 2007 17:16:32 +0000 (17:16 -0000)]
2007-10-11  Jonathan Pobst  <monkey@jpobst.com>

* LineTag.cs: Encapsulate all variables with properties.  Calculate ascent/
descent internally when font changes instead of outside code being responsible
for setting it.
* Line.cs, RichTextBox.cs, TextBoxBase.cs, TextControl.cs: Use Tag properties
instead of accessing internal variables.

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

16 years agoNew tests + update
Marek Safar [Thu, 11 Oct 2007 17:11:37 +0000 (17:11 -0000)]
New tests + update

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

16 years ago2007-10-11 Marek Safar <marek.safar@gmail.com>
Marek Safar [Thu, 11 Oct 2007 17:11:16 +0000 (17:11 -0000)]
2007-10-11  Marek Safar  <marek.safar@gmail.com>

* generics.cs (InferTypeArguments): Removed redundant check.

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

16 years ago2007-10-11 Marek Safar <marek.safar@gmail.com>
Marek Safar [Thu, 11 Oct 2007 17:09:58 +0000 (17:09 -0000)]
2007-10-11  Marek Safar  <marek.safar@gmail.com>

* ecore.cs, delegate.cs (MethodGroupExpr): Refactored best candidate
logic to identify best candidate method correctly.

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

16 years agoThu Oct 11 18:22:31 CEST 2007 Paolo Molaro <lupus@ximian.com>
Paolo Molaro [Thu, 11 Oct 2007 16:07:10 +0000 (16:07 -0000)]
Thu Oct 11 18:22:31 CEST 2007 Paolo Molaro <lupus@ximian.com>

* marshal.c: make sure the wrapper methods are properly initialized.

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

16 years agoThu Oct 11 18:04:29 CEST 2007 Paolo Molaro <lupus@ximian.com>
Paolo Molaro [Thu, 11 Oct 2007 15:50:51 +0000 (15:50 -0000)]
Thu Oct 11 18:04:29 CEST 2007 Paolo Molaro <lupus@ximian.com>

* exceptions-x86.c: provide more graceful handling of the case where
we followed a bogus function pointer from managed code (bug #332866).

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

16 years ago2007-10-11 Jonathan Pobst <monkey@jpobst.com>
Jonathan Pobst [Thu, 11 Oct 2007 14:18:36 +0000 (14:18 -0000)]
2007-10-11  Jonathan Pobst  <monkey@jpobst.com>

* TableLayout.cs: When calculating the size of AutoSize row/columns,
don't take !Visible controls into account.  When laying out controls,
start from the DisplayRectangle instead of (0,0) to account for
a scrolled TableLayoutPanel where the start point is negative.
[Fixes bug #332892]

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

16 years ago2007-10-11 Marek Safar <marek.safar@gmail.com>
Marek Safar [Thu, 11 Oct 2007 12:49:11 +0000 (12:49 -0000)]
2007-10-11  Marek Safar  <marek.safar@gmail.com>

* location.cs (Equals, GetHashCode): Removed.

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

16 years ago2007-10-11 Mark Probst <mark.probst@gmail.com>
Mark Probst [Thu, 11 Oct 2007 12:19:00 +0000 (12:19 -0000)]
2007-10-11  Mark Probst  <mark.probst@gmail.com>

* metadata.c, metadata-internals.h: Generalized
mono_type_stack_size() to mono_type_stack_size_internal() which
takes an additional argument specifying whether it allows open
types.

2007-10-11  Mark Probst  <mark.probst@gmail.com>

* mini.h, mini.c: Introduced the MonoGenericSharingContext, which
replaces the generic_shared flag and will carry more information
in the future.

* generic-sharing.c: Added mini_type_stack_size() which allows
allows open types if given a generic sharing context.
mini_get_basic_type_from_generic() takes a
MonoGenericSharingContext* instead of a MonoCompile* now.

* mini-alpha.c, mini-amd64.c, mini-arm.c, mini-hppa.c,
mini-ia64.c, mini-mips.c, mini-ppc.c, mini-s390.c, mini-s390x.c,
mini-sparc.c, mini-x86.c: Trivial changes required by the two
changes above.  Just passing arguments through to the right
places.

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

16 years ago2007-10-11 Jb Evain <jbevain@novell.com>
Jb Evain [Thu, 11 Oct 2007 11:41:44 +0000 (11:41 -0000)]
2007-10-11  Jb Evain  <jbevain@novell.com>

* Mono.Cecil/TypeReference.cs: add a IsNested helper property.

* Mono.Cecil/ReflectionWriter.cs
  Mono.Cecil.Signatures/SignatureWriter.cs:
Integrate patch for Carlo, start working on enum writing
in custom attribute.

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

16 years agoNew tests + updates.
Marek Safar [Thu, 11 Oct 2007 10:24:31 +0000 (10:24 -0000)]
New tests + updates.

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

16 years ago2007-10-11 Marek Safar <marek.safar@gmail.com>
Marek Safar [Thu, 11 Oct 2007 10:22:57 +0000 (10:22 -0000)]
2007-10-11  Marek Safar  <marek.safar@gmail.com>

* cs-parser.jay: Added couple of ISO-2 checks.

* linq.cs: Report range variable error message.

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

16 years agoRemoved cs0647-17.cs
Marek Safar [Thu, 11 Oct 2007 09:45:46 +0000 (09:45 -0000)]
Removed cs0647-17.cs

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

16 years ago2007-10-11 Marek Safar <marek.safar@gmail.com>
Marek Safar [Thu, 11 Oct 2007 09:25:22 +0000 (09:25 -0000)]
2007-10-11  Marek Safar  <marek.safar@gmail.com>

* report.cs: Implemented message recorder. It is used mainly for lambda
expressions to capture otherwise swallowed error messages.

* anonymous.cs, lambda.cs.cs: Do full parameters check.

* ecore.cs (ExtensionMethodGroup): Report binding failure at the botton
and not at the top.
(MethodGroupExpr.DoResolve): Use message recorder for error handling.

* expression.cs (MemberAccess): Always report lookup failure.

* location.cs: Implemented Equals, GetHashCode.

* statement.cs (Return.DoResolve): Fixed hardcoded error argument.

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

16 years agoRemove redundant call to Type.GetType.
Roei Erez [Thu, 11 Oct 2007 07:55:19 +0000 (07:55 -0000)]
Remove redundant call to Type.GetType.

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

16 years agosvn path=/trunk/mcs/; revision=87309
Everaldo Canuto [Thu, 11 Oct 2007 04:00:52 +0000 (04:00 -0000)]
svn path=/trunk/mcs/; revision=87309

16 years ago2007-10-11 Zoltan Varga <vargaz@freemail.hu>
Zoltan Varga [Wed, 10 Oct 2007 23:00:10 +0000 (23:00 -0000)]
2007-10-11  Zoltan Varga  <vargaz@freemail.hu>

* mono-mmap.c (mono_vfree): Fix call to VirtualFree (). Fixes #332165.

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

16 years ago* DateTimeFormatInfoTest.cs: Added test for bug #332553.
Gert Driesen [Wed, 10 Oct 2007 19:55:32 +0000 (19:55 -0000)]
* DateTimeFormatInfoTest.cs: Added test for bug #332553.

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

16 years agoTypo.
Paolo Molaro [Wed, 10 Oct 2007 18:40:16 +0000 (18:40 -0000)]
Typo.

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

16 years agoWed Oct 10 19:44:42 CEST 2007 Paolo Molaro <lupus@ximian.com>
Paolo Molaro [Wed, 10 Oct 2007 17:29:35 +0000 (17:29 -0000)]
Wed Oct 10 19:44:42 CEST 2007 Paolo Molaro <lupus@ximian.com>

* mini-arm.c: unify the call emission to emit_code_seq().

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

16 years ago2007-10-10 Atsushi Enomoto <atsushi@ximian.com>
Atsushi Eno [Wed, 10 Oct 2007 17:22:43 +0000 (17:22 -0000)]
2007-10-10  Atsushi Enomoto  <atsushi@ximian.com>

* XmlTextWriter2.cs : making <del>silly</del>funky MS compatibility
  change in WriteStartAttribute() to call WriteEndAttribute() if an
  attribute is open.

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

16 years ago2007-10-10 Rodrigo Kumpera <rkumpera@novell.com>
Rodrigo Kumpera [Wed, 10 Oct 2007 15:00:25 +0000 (15:00 -0000)]
2007-10-10  Rodrigo Kumpera  <rkumpera@novell.com>

* verify.c (do_invoke_method): handle typedbyref params
correctly and check for unverifiable return values.

* verify.c (do_newobj): fix a warning.

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