Sebastien Pouliot [Wed, 17 Oct 2007 12:15:53 +0000 (12:15 -0000)]
2007-10-17 Sebastien Pouliot <sebastien@ximian.com>
* sn.1: Fix help for -T / -t as this shows the public key token
(and not the public key).
svn path=/trunk/mono/; revision=87657
Sebastien Pouliot [Wed, 17 Oct 2007 12:14:33 +0000 (12:14 -0000)]
2007-10-17 Sebastien Pouliot <sebastien@ximian.com>
* sn.cs: Fix help for -T / -t as this shows the public key token
(and not the public key). Patch by Andy Hume. Fix bug #334507
svn path=/trunk/mcs/; revision=87656
Atsushi Eno [Wed, 17 Oct 2007 12:03:41 +0000 (12:03 -0000)]
2007-10-17 Atsushi Enomoto <atsushi@ximian.com>
* WebServicesSection.cs : r87621 has changed WebConfigurationManager
to not read web.config, which caused couple of configuration
regressions. So enable ConfigurationManager again.
svn path=/trunk/mcs/; revision=87654
Atsushi Eno [Wed, 17 Oct 2007 12:01:59 +0000 (12:01 -0000)]
2007-10-17 Atsushi Enomoto <atsushi@ximian.com>
* web.config, machine.config: moved webSerices section from former
to latter.
svn path=/trunk/mono/; revision=87653
Mark Probst [Wed, 17 Oct 2007 11:26:19 +0000 (11:26 -0000)]
2007-10-17 Mark Probst <mark.probst@gmail.com>
* bug-331798-tb.2.cs: added for Rodrigo
* Makefile.am: added bug-331798-tb.2.cs
svn path=/trunk/mono/; revision=87650
Paolo Molaro [Wed, 17 Oct 2007 11:09:04 +0000 (11:09 -0000)]
Wed Oct 17 13:24:33 CEST 2007 Paolo Molaro <lupus@ximian.com>
* Timer.cs: better cleanup test for the expired array.
svn path=/trunk/mcs/; revision=87649
Paolo Molaro [Wed, 17 Oct 2007 11:06:59 +0000 (11:06 -0000)]
Relax the success criteria for a timing-dependent test.
svn path=/trunk/mcs/; revision=87648
Noam Lampert [Wed, 17 Oct 2007 10:51:37 +0000 (10:51 -0000)]
Fix Java compilation
svn path=/trunk/mcs/; revision=87647
Atsushi Eno [Wed, 17 Oct 2007 09:28:54 +0000 (09:28 -0000)]
2007-10-17 Atsushi Enomoto <atsushi@ximian.com>
* MailMessage.cs : removed MonoTODO. some comment.
* SmtpException.cs, SmtpFailedRecipientsException.cs,
SmtpFailedRecipientException.cs : implemented serialization.
svn path=/trunk/mcs/; revision=87642
Noam Lampert [Wed, 17 Oct 2007 09:04:54 +0000 (09:04 -0000)]
Remove redundant file from Java build
svn path=/trunk/mcs/; revision=87640
Gert Driesen [Wed, 17 Oct 2007 08:52:59 +0000 (08:52 -0000)]
oops.
svn path=/trunk/mcs/; revision=87639
Gert Driesen [Wed, 17 Oct 2007 08:42:42 +0000 (08:42 -0000)]
* cs0177-8.cs: New test based on #325478.
svn path=/trunk/mcs/; revision=87638
Marek Habersack [Wed, 17 Oct 2007 08:16:44 +0000 (08:16 -0000)]
A slightly more elegant way of dealing with 'item==null' issue
svn path=/trunk/mcs/; revision=87637
Marek Habersack [Wed, 17 Oct 2007 08:09:38 +0000 (08:09 -0000)]
2007-10-17 Marek Habersack <mhabersack@novell.com>
* SessionInProcHandler.cs: in certain situations the 'item'
parameter passed to SetAndReleaseItemExclusive may be null. The
issue was reported in bug #333898, but the reporter cannot provide
a test case that triggers the issue. Added work around the problem
in the way that should have the least impact on the rest of the
code. If 'item' is null, then the new session item is created
without the items and staticItems collections - they will be
initialized to defaults when retrieving the session item. This is
not a correct fix, but since there is no test case this is the
best what can be done right now.
svn path=/trunk/mcs/; revision=87636
Gert Driesen [Wed, 17 Oct 2007 07:26:49 +0000 (07:26 -0000)]
* AssemblyTest.cs: Enabled test for bug #334204.
svn path=/trunk/mcs/; revision=87632
Konstantin Triger [Wed, 17 Oct 2007 07:20:31 +0000 (07:20 -0000)]
add new file
svn path=/trunk/mcs/; revision=87630
Konstantin Triger [Wed, 17 Oct 2007 07:19:04 +0000 (07:19 -0000)]
TARGET_JVM: remove extern declaration from compilation
svn path=/trunk/mcs/; revision=87629
Gert Driesen [Wed, 17 Oct 2007 07:18:08 +0000 (07:18 -0000)]
* bug-331958.cs: added.
* Makefile.am: added bug-331958.cs.
svn path=/trunk/mono/; revision=87628
Marek Habersack [Tue, 16 Oct 2007 22:34:48 +0000 (22:34 -0000)]
2007-10-17 Marek Habersack <mhabersack@novell.com>
* ApplicationHost.cs: introduce an application domain data item to
allow checks for whether System.Web code runs inside a hosted
application or in a stand-alone one.
Made the array of web.config name variations an internal one, to
be used from within configuration code.
2007-10-17 Marek Habersack <mhabersack@novell.com>
* WebConfigurationHost.cs: if running outside hosted environment,
read only the assemblyname.config configuration file instead of
web.config. Fixes bug #332425
svn path=/trunk/mcs/; revision=87621
Zoltan Varga [Tue, 16 Oct 2007 22:09:03 +0000 (22:09 -0000)]
2007-10-17 Zoltan Varga <vargaz@gmail.com>
* mini-x86.c (mono_arch_emit_prolog): Increase the size allocated for the
prolog. Fixes #331958.
svn path=/trunk/mono/; revision=87620
Zoltan Varga [Tue, 16 Oct 2007 18:49:00 +0000 (18:49 -0000)]
2007-10-16 Zoltan Varga <vargaz@gmail.com>
* icall.c (ves_icall_System_Reflection_Assembly_InternalGetType): Throw an
exception if the type name contains an assembly component. Fixes #334203.
svn path=/trunk/mono/; revision=87612
Zoltan Varga [Tue, 16 Oct 2007 18:31:00 +0000 (18:31 -0000)]
2007-10-16 Zoltan Varga <vargaz@gmail.com>
* reflection.c (mono_reflection_get_type_with_rootimage): Search all the
modules inside dynamic assemblies. Fixes #334200.
svn path=/trunk/mono/; revision=87611
Gert Driesen [Tue, 16 Oct 2007 18:23:21 +0000 (18:23 -0000)]
* DbTransactionTest.cs: Added test for bug #325397.
svn path=/trunk/mcs/; revision=87609
Zoltan Varga [Tue, 16 Oct 2007 17:50:14 +0000 (17:50 -0000)]
2007-10-16 Zoltan Varga <vargaz@gmail.com>
* reflection.c: Set image->public_key and image->public_key_length;
* metadata-internals.h (MonoDynamicImage): Add public_key and public_key_len
fields.
* image.c (mono_image_get_public_key): Handle dynamic assemblies. Fixes #334173.
svn path=/trunk/mono/; revision=87608
Jonathan Pobst [Tue, 16 Oct 2007 16:52:24 +0000 (16:52 -0000)]
2007-10-16 Jonathan Pobst <monkey@jpobst.com>
* TableLayout.cs: Revert the last change to TableLayout. It breaks
other, more important things.
svn path=/trunk/mcs/; revision=87602
Gert Driesen [Tue, 16 Oct 2007 16:22:11 +0000 (16:22 -0000)]
* ButtonBase.cs: Fixed IsDefault to use assigned value instead of
always setting value to true.
* Form.cs: When changing AcceptButton, notify new and original button.
* ButtonBaseTest.cs: Added test for IsDefault.
* FormTest.cs: Added test for AcceptButton. Commented out CWLs.
svn path=/trunk/mcs/; revision=87599
Mark Probst [Tue, 16 Oct 2007 16:00:47 +0000 (16:00 -0000)]
2007-10-16 Mark Probst <mark.probst@gmail.com>
* metadata.c: Implemented correct comparing of generic classes.
An inflated generic class can be equal to a non-inflated one if it
is inflated with generic type variables as type arguments. Fixes
bug #333798.
2007-10-16 Mark Probst <mark.probst@gmail.com>
* bug-333798.2.cs: added
* Makefile.am: added bug-333798.2.cs
svn path=/trunk/mono/; revision=87598
Paolo Molaro [Tue, 16 Oct 2007 15:05:38 +0000 (15:05 -0000)]
Tue Oct 16 17:22:15 CEST 2007 Paolo Molaro <lupus@ximian.com>
* Timer.cs: remove expired timers from the the jobs list.
svn path=/trunk/mcs/; revision=87594
Gert Driesen [Tue, 16 Oct 2007 14:48:47 +0000 (14:48 -0000)]
* UTF8Encoding.cs: IsMailNewsSave should return true. Fixes bug
#332515.
* UTF32Encoding.cs: IsBrowserSave returns false for both Big-Endian and
Little-Endian.
* TestEncoding.cs: Also make class available on 1.0 profile.
* EncodingTest.cs: Added tests for Is* properties.
* UTF7EncodingTest.cs: Added tests for Is* properties.
* UnicodeEncodingTest.cs: Added tests for Is* properties. Fixed
line endings.
* UTF8EncodingTest.cs: Added tests for Is* properties. Spaces to
tabs. Numbered tests.
* ASCIIEncodingTest.cs: Added tests for Is* properties. No longer
derive from TestCase class. Spaces to tabs.
* UTF32EncodingTest.cs: Added tests for Is* properties. No longer
derive from deprecated Assertion class.
svn path=/trunk/mcs/; revision=87593
Atsushi Eno [Tue, 16 Oct 2007 14:45:54 +0000 (14:45 -0000)]
2007-10-16 Atsushi Enomoto <atsushi@ximian.com>
* SmtpClient.cs : use 3 StringBuilder.Replace() calls rather than
3 string.Replace() calls.
svn path=/trunk/mcs/; revision=87592
Atsushi Eno [Tue, 16 Oct 2007 14:43:21 +0000 (14:43 -0000)]
2007-10-16 Atsushi Enomoto <atsushi@ximian.com>
* SmtpClient.cs : do state check on other setters than set_Timeout().
svn path=/trunk/mcs/; revision=87591
Jonathan Pobst [Tue, 16 Oct 2007 14:14:53 +0000 (14:14 -0000)]
2007-10-16 Jonathan Pobst <monkey@jpobst.com>
* Form.cs: Guard against an NRE when the user sets the AcceptButton to
a custom control that implements IButtonControl instead of an actual
button. [Fixes bug #334244]
svn path=/trunk/mcs/; revision=87589
Atsushi Eno [Tue, 16 Oct 2007 13:00:28 +0000 (13:00 -0000)]
2007-10-16 Atsushi Enomoto <atsushi@ximian.com>
* MailMessage.cs : Some entire refactory on BodyEncoding and
IsBodyHtml. BodyEncoding and SubjectEncoding are guessed when
Body and Subject are set for each.
* SmtpClient.cs :
Subject header is encoded according to RFC 2047.
Body is encoded according to RFC 2821.
Output Date header.
ToQuotedPrintable() should take encoding into consideration.
For SevenBit/Unknown TransferEncoding, just decode with ASCII.
In set_UseDefaultCredentials(), raise NIE only when value is true.
In set_Timeout(), raise an error when Send() is in progress.
* MailMessageTest.cs : added test for encoding guess.
svn path=/trunk/mcs/; revision=87585
Gert Driesen [Tue, 16 Oct 2007 11:33:06 +0000 (11:33 -0000)]
* AssemblyTest.cs: Added test for bug #334203. Use more meaningful name
for test for bug #49114.
svn path=/trunk/mcs/; revision=87575
Gert Driesen [Tue, 16 Oct 2007 11:11:06 +0000 (11:11 -0000)]
* UriTest.cs: Removed extra tabs.
* UriTest3.cs: Added test for bug #325863. Improved test for absolute
URI.
svn path=/trunk/mcs/; revision=87574
Everaldo Canuto [Tue, 16 Oct 2007 10:40:54 +0000 (10:40 -0000)]
* Form.cs: Change SelectActiveControl to internal, we need to call it in
MdiWindowManager.
* MdiWindowManager.cs: In RaiseActivated call SelectActiveControl to select
active control when activate a new mdi window.
[Fixes bug #330495]
2007-10-15 Everaldo Canuto <ecanuto@novell.com>
svn path=/trunk/mcs/; revision=87569
Paolo Molaro [Tue, 16 Oct 2007 10:01:30 +0000 (10:01 -0000)]
Timer test cases from Rafael Ferreira (raf@ophion.org).
svn path=/trunk/mcs/; revision=87566
Paolo Molaro [Tue, 16 Oct 2007 10:00:19 +0000 (10:00 -0000)]
Tue Oct 16 12:14:43 CEST 2007 Paolo Molaro <lupus@ximian.com>
* Timer.cs: rewrote to use threadpool threads to invoke the callbacks,
avoid Thread.Abort and Thread.Interrupt and use a single scheduler
thread, partially from the patch of Rafael Ferreira in bug #315999.
Fixes bug #315999, #332206.
svn path=/trunk/mcs/; revision=87565
Atsushi Eno [Tue, 16 Oct 2007 07:06:34 +0000 (07:06 -0000)]
2007-10-16 Atsushi Enomoto <atsushi@ximian.com>
* SmtpClient.cs : Replace every \r and \n with \r\n per RFC 2821
section 2.3.7, or you will receive SMTP error 451.
svn path=/trunk/mcs/; revision=87558
Atsushi Eno [Tue, 16 Oct 2007 06:59:36 +0000 (06:59 -0000)]
2007-10-16 Atsushi Enomoto <atsushi@ximian.com>
* AlternateViewCollection.cs, LinkedResourceCollection.cs,
AttachmentCollection.cs : added missing 2.0 members.
svn path=/trunk/mcs/; revision=87557
Everaldo Canuto [Tue, 16 Oct 2007 06:36:10 +0000 (06:36 -0000)]
svn path=/trunk/mcs/; revision=87555
Jonathan Pobst [Mon, 15 Oct 2007 21:46:36 +0000 (21:46 -0000)]
2007-10-15 Jonathan Pobst <monkey@jpobst.com>
* TextControl.cs: When SuspendRecalc is first called, reset the recalc_start
to MaxValue and recalc_end to MinValue. Currently, recalc_start is always 1,
so we always recalculate the whole document instead of just the new part.
[Fixes bug #325082]
svn path=/trunk/mcs/; revision=87537
Zoltan Varga [Mon, 15 Oct 2007 21:17:24 +0000 (21:17 -0000)]
2007-10-15 Zoltan Varga <vargaz@gmail.com>
* mini-sparc.h mini-sparc.c: Add support for the common vtable trampoline.
svn path=/trunk/mono/; revision=87535
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
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
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
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
Marek Safar [Mon, 15 Oct 2007 16:30:17 +0000 (16:30 -0000)]
Better error message.
svn path=/trunk/mcs/; revision=87521
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
Gert Driesen [Mon, 15 Oct 2007 16:03:54 +0000 (16:03 -0000)]
Flush local changes.
svn path=/trunk/mcs/; revision=87519
Gert Driesen [Mon, 15 Oct 2007 15:48:09 +0000 (15:48 -0000)]
Remove commented code.
svn path=/trunk/mcs/; revision=87518
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
Marek Safar [Sat, 13 Oct 2007 18:27:48 +0000 (18:27 -0000)]
Added 2 empty stubs
svn path=/trunk/mcs/; revision=87446
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
Gert Driesen [Sat, 13 Oct 2007 17:51:51 +0000 (17:51 -0000)]
Set eol-style.
svn path=/trunk/mcs/; revision=87442
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
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
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
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
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
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
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
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
Marek Safar [Fri, 12 Oct 2007 17:50:24 +0000 (17:50 -0000)]
A test for bug #332442
svn path=/trunk/mcs/; revision=87413
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