mono.git
16 years ago2007-10-24 Jonathan Pobst <monkey@jpobst.com>
Jonathan Pobst [Wed, 24 Oct 2007 15:55:56 +0000 (15:55 -0000)]
2007-10-24  Jonathan Pobst  <monkey@jpobst.com>

* TextControl.cs: Code cleaning, simplifying.

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

16 years ago2007-10-24 Geoff Norton <gnorton@novell.com>
Geoff Norton [Wed, 24 Oct 2007 15:51:53 +0000 (15:51 -0000)]
2007-10-24  Geoff Norton  <gnorton@novell.com>

    * XplatUIOSX.cs: Route mouse events to the grab hwnd on mouse down as well.
    * XplatUIStructs.cs: Fix the ToString method of POINT and MSG.

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

16 years ago2007-10-24 Dick Porter <dick@ximian.com>
Dick Porter [Wed, 24 Oct 2007 15:35:52 +0000 (15:35 -0000)]
2007-10-24  Dick Porter  <dick@ximian.com>

* Thread.cs: Assign the ManagedThreadId when it is asked for,
rather than in the constructor, so ThreadPool threads also work.
Fixes bug 335579 (and doesn't break 325367 or 325566)

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

16 years ago2007-10-24 Juraj Skripsky <js@hotfeet.ch>
Juraj Skripsky [Wed, 24 Oct 2007 15:33:49 +0000 (15:33 -0000)]
2007-10-24  Juraj Skripsky <js@hotfeet.ch>

* Regex.cs: Store and re-use IMachine, no need to re-instantiate
it every time we're matching.

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

16 years agofix the 2.1 build
Jb Evain [Wed, 24 Oct 2007 15:26:28 +0000 (15:26 -0000)]
fix the 2.1 build

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

16 years ago2007-10-24 Jonathan Pobst <monkey@jpobst.com>
Jonathan Pobst [Wed, 24 Oct 2007 15:04:34 +0000 (15:04 -0000)]
2007-10-24  Jonathan Pobst  <monkey@jpobst.com>

* TextBoxBase.cs: If the user sets maxlength to 0, it should mean
the cap is maxvalue, not actually 0.  [Fixes bug #336218]

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

16 years agoforgot to add that
Jb Evain [Wed, 24 Oct 2007 14:50:12 +0000 (14:50 -0000)]
forgot to add that

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

16 years agorename
Jb Evain [Wed, 24 Oct 2007 14:49:21 +0000 (14:49 -0000)]
rename

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

16 years agomove the adjust visibility step to where it belongs: the tuner
Jb Evain [Wed, 24 Oct 2007 14:48:33 +0000 (14:48 -0000)]
move the adjust visibility step to where it belongs: the tuner

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

16 years ago- Added new machine that implements IMachine interface. It executes parsing with...
Arina Itkes [Wed, 24 Oct 2007 14:21:51 +0000 (14:21 -0000)]
- Added new machine that implements IMachine interface. It executes parsing with java regular expressions.

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

16 years ago- Added new machine that implements IMachine interface. It executes parsing with...
Arina Itkes [Wed, 24 Oct 2007 14:21:01 +0000 (14:21 -0000)]
- Added new machine that implements IMachine interface. It executes parsing with java regular expressions.

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

16 years ago- Refactoring of Interpreter with extracting of base abstract class that executes...
Arina Itkes [Wed, 24 Oct 2007 14:18:57 +0000 (14:18 -0000)]
- Refactoring of Interpreter with extracting of base abstract class that executes some methods that were moved from Regex and Match classes.
- Added a field that maps group numbers to group names in Regex for improvement of performance of GroupNameFromNumber method.

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

16 years ago2007-10-24 Atsushi Enomoto <atsushi@ximian.com>
Atsushi Eno [Wed, 24 Oct 2007 12:44:33 +0000 (12:44 -0000)]
2007-10-24  Atsushi Enomoto  <atsushi@ximian.com>

* Assembly.cs : include ReflectionOnlyLoad() as part of 2.0
  bootstrap build.

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

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

* cs-parser.jay: Renamed method FeatureIsNotISO to FeatureIsNotAvailable.

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

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

* report.cs, cs-tokenizer.cs, class.cs, cs-parser.jay, anonymous.cs,
expression.cs, statement.cs: Renamed method FeatureIsNotISO to
FeatureIsNotAvailable.

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

16 years agoNew tests.
Marek Safar [Wed, 24 Oct 2007 09:22:28 +0000 (09:22 -0000)]
New tests.

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

16 years agoNew tests.
Marek Safar [Wed, 24 Oct 2007 09:17:20 +0000 (09:17 -0000)]
New tests.

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

16 years ago2007-10-24 Marek Safar <marek.safar@gmail.com>
Marek Safar [Wed, 24 Oct 2007 09:16:28 +0000 (09:16 -0000)]
2007-10-24  Marek Safar  <marek.safar@gmail.com>

** C# 3.0 Partial methods

* cs-parser.jay: Implemented partial methods support.

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

16 years ago2007-10-24 Marek Safar <marek.safar@gmail.com>
Marek Safar [Wed, 24 Oct 2007 09:15:34 +0000 (09:15 -0000)]
2007-10-24  Marek Safar  <marek.safar@gmail.com>

** C# 3.0 Partial methods

* cs-tokenizer.cs, support.cs, class.cs, decl.cs: Implemented partial
methods support. Because of member cache issue with generics only
non-generics partial methods are fully supported.

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

16 years ago2007-10-24 Atsushi Enomoto <atsushi@ximian.com>
Atsushi Eno [Wed, 24 Oct 2007 08:32:21 +0000 (08:32 -0000)]
2007-10-24  Atsushi Enomoto  <atsushi@ximian.com>

* SynchronizationContext.cs : removed SendOrPost().

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

16 years ago2007-10-24 Atsushi Enomoto <atsushi@ximian.com>
Atsushi Eno [Wed, 24 Oct 2007 08:30:51 +0000 (08:30 -0000)]
2007-10-24  Atsushi Enomoto  <atsushi@ximian.com>

* Type.cs : implemented ReflectionOnlyGetType().

* TypeTest.cs : tests for ReflectionOnlyGetType().

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

16 years ago * PropertyGridView.cs: If a property has an UIEditor available,
Carlos Alberto Cortez [Tue, 23 Oct 2007 23:50:30 +0000 (23:50 -0000)]
* PropertyGridView.cs: If a property has an UIEditor available,
make the drop-down/editor button available only if the property
is _not_ read only.

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

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

16 years ago2007-10-24 Marek Habersack <mhabersack@novell.com>
Marek Habersack [Tue, 23 Oct 2007 22:39:33 +0000 (22:39 -0000)]
2007-10-24  Marek Habersack  <mhabersack@novell.com>

* ApplicationHost.cs: ignore exceptions resulting from the attempt
to delete a stamp directory in CreateApplicationHost. It is safe
to do so, since the code inside the loop serves the only purpose
to create the asp.net temporary directory if the filesystem
permissions allow it. If the directory has been deleted by some
other thread, that's ok.

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

16 years ago2007-10-23 Carlos Alberto Cortez <calberto.cortez@gmail.com>
Carlos Alberto Cortez [Tue, 23 Oct 2007 22:12:07 +0000 (22:12 -0000)]
2007-10-23  Carlos Alberto Cortez <calberto.cortez@gmail.com>

* PropertyGridView.cs: Don't make the grid item textbox
editable when a drop-down control is available, but
CanConvertFrom (typeof (string)) is false or GetStandardValuesExclusive () is
true. The same bur the color of the grid item value's label.

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

16 years ago2007-10-24 Marek Habersack <mhabersack@novell.com>
Marek Habersack [Tue, 23 Oct 2007 21:59:07 +0000 (21:59 -0000)]
2007-10-24  Marek Habersack  <mhabersack@novell.com>

* HttpUtility.cs: MS.NET does not support the ';' query parameter
separator. Fixes bug #335615

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

16 years ago2007-10-23 Geoff Norton <gnorton@novell.com>
Geoff Norton [Tue, 23 Oct 2007 21:30:44 +0000 (21:30 -0000)]
2007-10-23  Geoff Norton  <gnorton@novell.com>

    * System.Windows.Forms.dll.sources: Added OSXKeyboard.cs

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

16 years ago2007-10-22 Geoff Norton <gnorton@novell.com>
Geoff Norton [Tue, 23 Oct 2007 21:29:18 +0000 (21:29 -0000)]
2007-10-22  Geoff Norton  <gnorton@novell.com>

    * OSXStructs.cs: Add the needed constants for keyboard modifiers.
    * OSXKeyboard.cs: Initial support for keyboard and limited modifiers.
    * XplatUIOSX.cs: New reversible frame support.  Wire in the new keyboard
    driver.  Padd the bottom of all real windows so the resize thumb doesn't
    obscure scroll/status bars.

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

16 years ago2007-10-22 Jonathan Pobst <monkey@jpobst.com>
Jonathan Pobst [Tue, 23 Oct 2007 21:06:35 +0000 (21:06 -0000)]
2007-10-22  Jonathan Pobst  <monkey@jpobst.com>

* WindowsFormsSection.cs: Implement.

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

16 years ago* TextBoxTextRenderer.cs: Lower bounds max size to Int16.MaxValue, the
Andreia Gaita [Tue, 23 Oct 2007 21:01:30 +0000 (21:01 -0000)]
* TextBoxTextRenderer.cs: Lower bounds max size to Int16.MaxValue, the
Windows 2000 gdi DrawText call doesn't draw if it's higher than that
for some reason

2007-10-23  Andreia Gaita <avidigal@novell.com>

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

16 years ago * SortedListTest.cs: No longer derive from deprecated Assertion class.
Gert Driesen [Tue, 23 Oct 2007 19:20:40 +0000 (19:20 -0000)]
 * SortedListTest.cs: No longer derive from deprecated Assertion class.
Added serialization tests, and a (NotWorking) deserialization test.

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

16 years ago2007-10-23 Sebastien Pouliot <sebastien@ximian.com>
Sebastien Pouliot [Tue, 23 Oct 2007 18:45:34 +0000 (18:45 -0000)]
2007-10-23  Sebastien Pouliot  <sebastien@ximian.com>

* DESCryptoServiceProviderTest.cs: Fix CreateEncryptor_KeyNull test
case not to fail about 1 out of 256 times under the 2.0 profile.

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

16 years ago2007-10-23 Zoltan Varga <vargaz@gmail.com>
Zoltan Varga [Tue, 23 Oct 2007 17:55:53 +0000 (17:55 -0000)]
2007-10-23  Zoltan Varga  <vargaz@gmail.com>

* mini.c (mini_init): Install the jump trampoline callback.

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

16 years ago2007-10-23 Zoltan Varga <vargaz@gmail.com>
Zoltan Varga [Tue, 23 Oct 2007 17:54:30 +0000 (17:54 -0000)]
2007-10-23  Zoltan Varga  <vargaz@gmail.com>

* icall.c (ves_icall_System_Delegate_CreateDelegate_internal): Create a jump
trampoline instead of compiling the method right away.

* class-internals.h object.c: Add a JIT callback to create a jump trampoline.

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

16 years ago2007-10-23 Robert Jordan <robertj@gmx.net>
Robert Jordan [Tue, 23 Oct 2007 15:58:17 +0000 (15:58 -0000)]
2007-10-23  Robert Jordan  <robertj@gmx.net>

* SortedList.cs: Mark List|{Values|Keys} as serializable.
Fixes #335703.

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

16 years agoTest case for bug #335601.
Paolo Molaro [Tue, 23 Oct 2007 14:52:25 +0000 (14:52 -0000)]
Test case for bug #335601.

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

16 years agoTue Oct 23 17:07:52 CEST 2007 Paolo Molaro <lupus@ximian.com>
Paolo Molaro [Tue, 23 Oct 2007 14:51:54 +0000 (14:51 -0000)]
Tue Oct 23 17:07:52 CEST 2007 Paolo Molaro <lupus@ximian.com>

* mini-trampolines.c: handle synchronized methods with the common
vtable trampoline (bug #335601).

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

16 years ago2007-10-23 Marek Habersack <mhabersack@novell.com>
Marek Habersack [Tue, 23 Oct 2007 12:39:45 +0000 (12:39 -0000)]
2007-10-23  Marek Habersack  <mhabersack@novell.com>

* ClientScriptManager.cs: added two constants to define start/end
script block comments rendering. 1.1 uses HTML comments, while 2.0
uses a CDATA block.

* Page.cs: render script blocks with start/end comments taken from
the ClientScriptManager constants above.

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

16 years ago2007-10-23 Marek Habersack <mhabersack@novell.com>
Marek Habersack [Tue, 23 Oct 2007 12:14:27 +0000 (12:14 -0000)]
2007-10-23  Marek Habersack  <mhabersack@novell.com>

* ListBox.cs, Table.cs: use Render{Begin,End}Tag
instead of the Write* counterparts when rendering contents.

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

16 years ago2007-10-23 Atsushi Enomoto <atsushi@ximian.com>
Atsushi Eno [Tue, 23 Oct 2007 10:06:35 +0000 (10:06 -0000)]
2007-10-23  Atsushi Enomoto  <atsushi@ximian.com>

* Ping.cs : Do not call OnPingCompleted() at CancelAsync() it should
  be called at RunWorkerCompleted. Simplified RunWorkerCompleted.

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

16 years agoNew tests, message update
Marek Safar [Tue, 23 Oct 2007 10:06:22 +0000 (10:06 -0000)]
New tests, message update

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

16 years ago2007-10-23 Atsushi Enomoto <atsushi@ximian.com>
Atsushi Eno [Tue, 23 Oct 2007 10:04:12 +0000 (10:04 -0000)]
2007-10-23  Atsushi Enomoto  <atsushi@ximian.com>

* SmtpClient.cs : small async refactory.

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

16 years ago2007-10-23 Marek Safar <marek.safar@gmail.com>
Marek Safar [Tue, 23 Oct 2007 10:02:18 +0000 (10:02 -0000)]
2007-10-23  Marek Safar  <marek.safar@gmail.com>

* class.cs, decl.cs: Rewrote member overloads check to cope with
generics and to use member cache for member checking. It also improves
performance and fixes remaining overloads issues.

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

16 years ago2007-10-23 Marek Habersack <mhabersack@novell.com>
Marek Habersack [Tue, 23 Oct 2007 09:47:21 +0000 (09:47 -0000)]
2007-10-23  Marek Habersack  <mhabersack@novell.com>

* AppResourcesAssemblyBuilder.cs: do not output preservation files
for satellite assemblies, just for the main assembly. Also, don't
add the satellite assemblies to the list of top-level assemblies.

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

16 years ago2007-10-23 Atsushi Enomoto <atsushi@ximian.com>
Atsushi Eno [Tue, 23 Oct 2007 09:28:44 +0000 (09:28 -0000)]
2007-10-23  Atsushi Enomoto  <atsushi@ximian.com>

* SmtpClient.cs : Implemented async operations.

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

16 years ago2007-10-23 Atsushi Enomoto <atsushi@ximian.com>
Atsushi Eno [Tue, 23 Oct 2007 04:28:44 +0000 (04:28 -0000)]
2007-10-23  Atsushi Enomoto  <atsushi@ximian.com>

* Attachment.cs : reverted previous change. NameEncoding is not
  guessed at set_Name().

* AttachmentTest.cs : more NameEncoding tests.

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

16 years ago* build-csproj2k5, SWF2k5.csproj: add System.configuration reference
Andreia Gaita [Mon, 22 Oct 2007 22:49:23 +0000 (22:49 -0000)]
* build-csproj2k5, SWF2k5.csproj: add System.configuration reference

2007-10-22  Andreia Gaita <avidigal@novell.com>

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

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

* mconfig.1: added

* Makefile.am (man_MANS): added mconfig.1

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

16 years ago* SD2K5.csproj: Add 2k5 project
Andreia Gaita [Mon, 22 Oct 2007 22:33:54 +0000 (22:33 -0000)]
* SD2K5.csproj: Add 2k5 project

2007-10-22  Andreia Gaita  <avidigal@novell.com>

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

16 years ago * MdiClient.cs: Maximize new active mdi child when a maximized child is
Everaldo Canuto [Mon, 22 Oct 2007 22:03:57 +0000 (22:03 -0000)]
* MdiClient.cs: Maximize new active mdi child when a maximized child is
closed see #325434 patch.

2007-10-22  Everaldo Canuto  <ecanuto@novell.com>

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

16 years ago2007-10-22 Geoff Norton <gnorton@novell.com>
Geoff Norton [Mon, 22 Oct 2007 21:37:47 +0000 (21:37 -0000)]
2007-10-22  Geoff Norton  <gnorton@novell.com>

    * Makefile: Add a reference to System.Configuration.dll in NET 2.0

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

16 years ago2007-10-22 Everaldo Canuto <ecanuto@novell.com>
Everaldo Canuto [Mon, 22 Oct 2007 21:06:21 +0000 (21:06 -0000)]
2007-10-22  Everaldo Canuto  <ecanuto@novell.com>

* MdiClient.cs: Fix remaining issues from layout vertical and horizontal,
see #325434 patch.

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

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

* AttachmentTest.cs : I have no time to fix it now. Disable it.

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

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

* SmtpClient.cs : lunatic cyclic build.

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

16 years agoNew test.
Marek Safar [Mon, 22 Oct 2007 16:22:19 +0000 (16:22 -0000)]
New test.

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

16 years ago2007-10-22 Jb Evain <jbevain@novell.com>
Jb Evain [Mon, 22 Oct 2007 14:18:18 +0000 (14:18 -0000)]
2007-10-22  Jb Evain  <jbevain@novell.com>

* net_2_1_System.dll.sources: remove System.Net.Mail.*

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

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

* AttachmentBase.cs : implemented Dispose(bool).

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

16 years ago2007-10-22 Atsushi Enomoto <atsushi@ximian.com>
Atsushi Eno [Mon, 22 Oct 2007 13:54:23 +0000 (13:54 -0000)]
2007-10-22  Atsushi Enomoto  <atsushi@ximian.com>

* AttachmentCollection.cs : remove TODO.
* Attachment.cs : guess NameEncoding when set_Name().
* MailMessage.cs : moved encoding guess impl to ContentType.
* SmtpClient.cs : moved RFC 2047 encoding impl to ContentType.
  Support attachment Name encoding. Added some SSL changes (it's not
  working yet).

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

16 years ago2007-10-22 Atsushi Enomoto <atsushi@ximian.com>
Atsushi Eno [Mon, 22 Oct 2007 13:50:30 +0000 (13:50 -0000)]
2007-10-22  Atsushi Enomoto  <atsushi@ximian.com>

* ContentType.cs : moved couple of encoding stuff to here.
  Encode non-ASCII value in RFC 2047.

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

16 years ago2007-10-22 Marek Habersack <mhabersack@novell.com>
Marek Habersack [Mon, 22 Oct 2007 12:29:45 +0000 (12:29 -0000)]
2007-10-22  Marek Habersack  <mhabersack@novell.com>

* mconfig.cs: do not use Mono.GetOptions. Added own option parsing
code instead.

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

16 years agoAdd missing property
Noam Lampert [Mon, 22 Oct 2007 09:26:10 +0000 (09:26 -0000)]
Add missing property

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

16 years agoWorkaround for minor Grasshopper build bug (TD 9196)
Noam Lampert [Mon, 22 Oct 2007 09:11:20 +0000 (09:11 -0000)]
Workaround for minor Grasshopper build bug (TD 9196)

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

16 years ago2007-10-22 Atsushi Enomoto <atsushi@ximian.com>
Atsushi Eno [Mon, 22 Oct 2007 06:31:56 +0000 (06:31 -0000)]
2007-10-22  Atsushi Enomoto  <atsushi@ximian.com>

* SmtpClient.cs : attachment refactory. First, determine whether we
  send multipart/mixed for attachments. Second, determine whether we
  send multipart/alternative for AlternateViews.
  Consider LinkedResources. Mark EnableSsl as TODO.

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

16 years ago2007-10-22 Atsushi Enomoto <atsushi@ximian.com>
Atsushi Eno [Mon, 22 Oct 2007 06:29:25 +0000 (06:29 -0000)]
2007-10-22  Atsushi Enomoto  <atsushi@ximian.com>

* LinkedResource.cs : Now they are implemented and soon to be
  supported. Fixed TransferEncoding (same as other AttachmentBase).

* LinkedResourceTest.cs : removed NotWorking.

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

16 years ago2007-10-22 Atsushi Enomoto <atsushi@ximian.com>
Atsushi Eno [Mon, 22 Oct 2007 06:23:09 +0000 (06:23 -0000)]
2007-10-22  Atsushi Enomoto  <atsushi@ximian.com>

* Attachment.cs : null name is allowed.

* AttachmentTest.cs : test for null names.

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

16 years ago * PropertyGridView.cs: When showing the textbox for a grid item,
Carlos Alberto Cortez [Mon, 22 Oct 2007 05:39:26 +0000 (05:39 -0000)]
* PropertyGridView.cs: When showing the textbox for a grid item,
have two local variables to store the read-only and non-editable
status of a grid item (we were previously using just one variable
to do this, when actually they are slightly different).
Fixes part of #325023.

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

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

16 years ago2007-10-22 Atsushi Enomoto <atsushi@ximian.com>
Atsushi Eno [Mon, 22 Oct 2007 03:13:39 +0000 (03:13 -0000)]
2007-10-22  Atsushi Enomoto  <atsushi@ximian.com>

* LinkedResourceTest.cs : NotWorking, buildbot loudly claims for
  unimplemented stuff.

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

16 years ago2007-10-21 Carlos Alberto Cortez <calberto.cortez@gmail.com>
Carlos Alberto Cortez [Mon, 22 Oct 2007 00:38:33 +0000 (00:38 -0000)]
2007-10-21  Carlos Alberto Cortez <calberto.cortez@gmail.com>

* PropertyGridView.cs: When showing a drop-down list, try to get the
values using TypeConverter.ConvertTo (to convert to a string). Fixes
part of #325023.

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

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

* class.c (mono_generic_class_get_class): Avoid setting klass->size_inited and
related fields for dynamic classes. Fixes #334493.

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

16 years ago* ThreadTest.cs: On 2.0 profile, enable > 0 tests for GetHashCode.
Gert Driesen [Sun, 21 Oct 2007 15:01:17 +0000 (15:01 -0000)]
* ThreadTest.cs: On 2.0 profile, enable > 0 tests for GetHashCode.
Added test that asserts if the hashcode of two threads is distinct.

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

16 years ago* RegexTest.cs: Removed. Test was already moved to the appropriate
Gert Driesen [Sun, 21 Oct 2007 13:29:41 +0000 (13:29 -0000)]
* RegexTest.cs: Removed. Test was already moved to the appropriate
location.

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

16 years ago* DataColumn.cs: Fixed ParamName of ArgumentNullException. Modified
Gert Driesen [Sun, 21 Oct 2007 13:26:43 +0000 (13:26 -0000)]
* DataColumn.cs: Fixed ParamName of ArgumentNullException. Modified
exception message for invalid DateTimeMode value to match MS. Code
formatting.
* DbDataPermissionAttribute.cs: In KeyRestrictionBehavior, reuse
ExceptionHelper.CheckEnumValue.
* ExceptionHelper.cs: Use same exception message for both 1.0 and 2.0.
* Index.cs: Fixed compiler warnings. Code formatting.
* SqlCommand.cs: Use ExceptionHelper.CheckEnumValue for enum checks.
* OleDbCommand.cs: Use ExceptionHelper.CheckEnumValue for enum checks.
* DBDataPermissionAttributeTest.cs: Improved test for invalid
KeyRestrictionBehavior. Fixed line endings.
* DataColumnTest.cs: No longer derive from deprecated Assertion class.
Code formatting. Added test for DateTimeMode.

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

16 years agoIn System.Net.Sockets:
Robert Jordan [Sun, 21 Oct 2007 11:59:00 +0000 (11:59 -0000)]
In System.Net.Sockets:
2007-10-21  Robert Jordan  <robertj@gmx.net>

* Socket.cs: Remove GetHashCode override from the NET_2_0
profile. Add LAMESPEC comment. Fixes bug #325113.

In Test/System.Net.Sockets:
2007-10-21  Robert Jordan  <robertj@gmx.net>

* SocketTest.cs: Enable GetHashCodeTest.

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

16 years ago* RegexBugs.cs: No longer derive from deprecated Assertion class.
Gert Driesen [Sun, 21 Oct 2007 09:46:50 +0000 (09:46 -0000)]
* RegexBugs.cs: No longer derive from deprecated Assertion class.
Added test for bug #313642.
* MatchTest.cs: Code formatting.
* RegexTest.cs: Fixed compiler warnings. Code formatting. Spaces to
tabs.

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

16 years ago* SwitchesTest.cs: Fixed compiler warning.
Gert Driesen [Sun, 21 Oct 2007 09:33:34 +0000 (09:33 -0000)]
* SwitchesTest.cs: Fixed compiler warning.

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

16 years ago* WebProxyTest.cs: Remove unused fields.
Gert Driesen [Sun, 21 Oct 2007 09:32:47 +0000 (09:32 -0000)]
* WebProxyTest.cs: Remove unused fields.

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

16 years ago* System.Data_test.dll.sources: Added DbDataAdapterTest.cs,
Gert Driesen [Sat, 20 Oct 2007 23:16:52 +0000 (23:16 -0000)]
* System.Data_test.dll.sources: Added DbDataAdapterTest.cs,
OdbcCommandTest.cs, OdbcConnectionTest.cs, OdbcDataAdapterTest.cs,
OleDbCommandTest.cs, OleDbConnectionTest.cs, OleDbDataAdapterTest.cs,
SqlDataAdapterTest.cs.
* DbDataAdapter.cs: Implemented UpdateBatchSize setter.
* DataAdapter.cs: In FillLoadOption setter, ensure value is valid.
Modified MissingMappingAction and MissingSchemaAction setters to use
ExceptionHelper.CheckEnumValue to validate value. Spaces to tabs and
code formatting.
* ExceptionHelper.cs: Added CheckEnumValue method and modified
InvalidEnumValueException method to return AORE on 2.0 profile. Added
ConnectionClosed method that returns an InvalidOperationException.
* OleDbDataAdapter.cs: In default ctor, set SelectCommand to null.
Only initialize SelectCommand in ctors. Use direct assignment in
IDbDataAdapter implementation.
* OleDbCommand.cs: Added constant for default CommandTimeout, instead
of using a magic number. Avoid unnecessary initialization. Fixed
default value for DesignTimeVisible. Return zero-length string if
CommandText is null. Added implementation for UpdatedRowSource.
* OleDbConnection.cs: Moved initialization of gda to Open ().
Avoid unnecessary initialization. Return zero-length string if
ConnectionString is null. If getters to Database, DataSource and
Provider return zero-length string if the connection is closed.
In ServerVersion, BeginTransaction and GetSchema, throw an
InvalidOperationException if connection is closed.
* OdbcCommand.cs: Added constant for default CommandTimeout, instead
of using a magic number. Avoid unnecessary initialization. Fixed
default value for DesignTimeVisible. Return zero-length string if
CommandText is null. Spaces to tabs and code formatting.
* OdbcError.cs: Fixed typo in exception message.
* OdbcConnection.cs: Return zero-length string if ConnectionString is
null. In getters for Database, DataSource and Driver return a
zero-length string if connection is closed. In BeginTransaction and
GetSchema throw InvalidOperationException if connection is closed.
Added override for GetSchema (string, string []). Use string.Empty
instead of "".
* OdbcDataAdapter.cs: Avoid unnecessary initializations. Use direct
assignment in IDbDataAdapter implementation. In default ctor, set
SelectCommand to null.
* SqlCommand.cs: Added constant for default CommandTimeout, instead
of using a magic number. Avoid unnecessary initialization. Fixed
default value for DesignTimeVisible. Return zero-length string if
CommandText is null. Use ExceptionHelper.InvalidEnumValueException
to avoid code duplication. Spaces to tabs and code formatting.
* SqlConnection.cs: Use different default package size on 2.0 profile.
Added constants for default values, instead of using magic numbers.
Avoid unnecessary initialization. In PacketSize, return default or
configured packet size when connection is not open. Use
ExceptionHelper.ConnectionClosed instead of local method. Removed
use of some hardcoded values in SetDefaultConnectionParameters, and
use Environment.MachineName as default WorkstationId instead of
DNS host name. Code formatting.
* SqlDataAdapter.cs: In default ctor, set SelectCommand to null.
Avoid unnecessary initializations. Use direct assignment in
IDbDataAdapter implementation. Fixed exception message for negative
UpdateBatchSize. In Dispose override, make sure to invoke base
method.
* DbDataAdapterTest.cs: Added test for UpdateBatchSize.
* DataAdapterTest.cs: Added tests for AcceptChangesDuringFile,
AcceptChangesDuringUpdate, ContinueUpdateOnError, FillLoadOption,
MissingMappingAction, MissingSchemaAction and
ReturnProviderSpecificTypes.
* OdbcDataAdapterTest.cs: Added tests for ctors, DeleteCommand,
InsertCommand, SelectCommand, UpdateCommand and Dispose.
* OdbcDataReaderTest.cs: fixed line endings.
* OdbcCommandTest.cs: Added tests for ctors and CommantText.
* OdbcConnectionTest.cs: Removed original test that relied on MySQL.
Added ctor tests. Added tests for BeginTransaction, GetSchema and
ServerVersion with connection that is closed.
* OleDbDataAdapterTest.cs: Added tests for ctors, DeleteCommand,
InsertCommand, SelectCommand, UpdateCommand and Dispose.
* OleDbCommandTest.cs: Added tests for ctors and CommandText.
* OleDbConnectionTest.cs: Added tests for ctors and ConnectionString.
Added tests for BeginTransaction, GetSchema and ServerVersion with connection that is closed.
* SqlCommandTest.cs: Added tests for ctors and CommantText.
* SqlConnectionTest.cs: Added tests for ctors, ConnectionString and
ServerVersion.
* SqlDataAdapterTest.cs: Added tests for ctors, DeleteCommand,
InsertCommand, SelectCommand, UpdateCommand, UpdateBatchSize and
Dispose.

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

16 years ago2007-10-20 William Holmes <billholmes54@gmail.com>
Bill Holmes [Sat, 20 Oct 2007 21:00:34 +0000 (21:00 -0000)]
2007-10-20  William Holmes  <billholmes54@gmail.com>

* pinvoke2.cs, libtest.c Adding test cases for marshaling
  booleans as I1 and U1.  Tests commit r87725.

Code is contributed under MIT/X11 license.

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

16 years ago2007-10-20 Zoltan Varga <vargaz@gmail.com>
Zoltan Varga [Sat, 20 Oct 2007 17:25:23 +0000 (17:25 -0000)]
2007-10-20  Zoltan Varga  <vargaz@gmail.com>

* class.c (mono_generic_class_get_class): Set klass->field.count as well.

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

16 years ago2007-10-20 Zoltan Varga <vargaz@gmail.com>
Zoltan Varga [Sat, 20 Oct 2007 16:38:39 +0000 (16:38 -0000)]
2007-10-20  Zoltan Varga  <vargaz@gmail.com>

* class.c (mono_class_layout_fields): Use 1 instead of TRUE for consistency.

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

16 years ago2007-10-20 Zoltan Varga <vargaz@gmail.com>
Zoltan Varga [Sat, 20 Oct 2007 16:32:24 +0000 (16:32 -0000)]
2007-10-20  Zoltan Varga  <vargaz@gmail.com>

* class.c (mono_class_layout_fields): Set size_inited for generic classes as well.
(mono_class_setup_vtable): Obtain overrides for dynamic generic classes correctly.

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

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

* class.c (mono_class_setup_methods): Handle dynamic inflated classes correctly.

* reflection.c (create_generic_typespec): Initialize klass->generic_container
if needed.
(reflection_methodbuilder_to_mono_method): Set container->is_method to TRUE.

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

16 years ago2007-10-20 Marek Safar <marek.safar@gmail.com>
Marek Safar [Sat, 20 Oct 2007 14:46:09 +0000 (14:46 -0000)]
2007-10-20  Marek Safar  <marek.safar@gmail.com>

* class.cs, const.cs, decl.cs, delegate.cs, enum.cs, generic.cs,
roottypes.cs, typemanager.cs:

A member cache creation logic changed to add members immediately and
not rely on fallback. The member cache is now only prefered way
how to access and find type declaration members. It saves 5 MB of memory
during MWF compilation and makes code ready for more optimizations and
clean-ups, it's also a pre-requirement for partial methods.

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

16 years agoGak, forgot to move the code after the null check on 'type'`
R. Tyler Ballance [Sat, 20 Oct 2007 11:33:55 +0000 (11:33 -0000)]
Gak, forgot to move the code after the null check on 'type'`

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

16 years agoFix for handling Nullable types in JSON deserialization
R. Tyler Ballance [Sat, 20 Oct 2007 11:30:19 +0000 (11:30 -0000)]
Fix for handling Nullable types in JSON deserialization
re #328836

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

16 years ago2007-10-19 Carlos Alberto Cortez <calberto.cortez@gmail.com>
Carlos Alberto Cortez [Sat, 20 Oct 2007 04:04:17 +0000 (04:04 -0000)]
2007-10-19  Carlos Alberto Cortez <calberto.cortez@gmail.com>

* PropertyGrid.cs: When updating a property and populating sub grid
items, remove the previous ones, and invalidate the specific area.
* PropertyGridView.cs: A new InvalidateBelowGridItem to invalidate the
area behind a grid item.
* GridItemCollection.cs: Add an internal Clear method, to allow us to
clean the items if needed (specially for controls implementing
ICustomTypeDescriptor and returning a variable number of properties).
Fixes #324865.

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

16 years ago2007-10-19 Zoltan Varga <vargaz@gmail.com>
Zoltan Varga [Fri, 19 Oct 2007 19:26:37 +0000 (19:26 -0000)]
2007-10-19  Zoltan Varga  <vargaz@gmail.com>

* AppDomain.cs: Add NET 3.5 DefineDynamicAssembly () overloads.

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

16 years ago* TimerTest.cs (TestHeavyCreationLoad): Don't shadow a variable name.
Raja R Harinath [Fri, 19 Oct 2007 19:25:58 +0000 (19:25 -0000)]
* TimerTest.cs (TestHeavyCreationLoad): Don't shadow a variable name.

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

16 years ago2007-10-19 Robert Jordan <robertj@gmx.net>
Robert Jordan [Fri, 19 Oct 2007 18:17:33 +0000 (18:17 -0000)]
2007-10-19  Robert Jordan  <robertj@gmx.net>

* mkbundle.cs (Execute): [Windows] since recently (?) cygwin's bash
doesn't strip CRLFs from ``-style command interpolation anymore.
The superfluous CRLF was breaking the gcc command line.

* mkbundle.cs (Execute): [Windows] set UseShellExecute = false to
prevent the creation of a new console windows.

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

16 years ago* DbTransactionTest.cs: Enabled test for bug #325397.
Gert Driesen [Fri, 19 Oct 2007 17:15:32 +0000 (17:15 -0000)]
* DbTransactionTest.cs: Enabled test for bug #325397.

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

16 years ago* OdbcTransaction.cs: Clear connection in Commit and Rollback.
Gert Driesen [Fri, 19 Oct 2007 17:12:55 +0000 (17:12 -0000)]
* OdbcTransaction.cs: Clear connection in Commit and Rollback.
In IsolationLevel, throw IOE if transaction is no longer open.
* SqlTransaction.cs: Clear connection in commit. In IsolationLevel,
throw IOE if transaction is no longer open.
* OleDbTransaction.cs: Clear connection in Commit and Rollback. In
IsolationLevel and Begin overloads, throw IOE if transaction is no
longer open.

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

16 years ago* DbTransaction.cs: Do not perform a rollback in Dispose (bool).
Gert Driesen [Fri, 19 Oct 2007 16:04:39 +0000 (16:04 -0000)]
* DbTransaction.cs: Do not perform a rollback in Dispose (bool).
Leaves it up to deriving classes to override Dispose (bool) and
perform a rollback if necessary. Fixes bug #325397. Code formatting.
* ExceptionHelper.cs: Added TransactionNotUsable method that constructs
an InvalidOperationException to be thrown by IDbTransaction
implementations when the transaction is no longer open.
* OdbcTransaction.cs: Keep state of the transaction, and update it
when performing commit or rollback. In Dispose (bool), only perform
a rollback if transaction was not committed or rollback before.
In Commit and Rollback, throw an InvalidOperationException if
transaction is no longer open.
* SqlTransaction.cs: Avoid unnecessary initialization. Remove
isRolledBack since its essentially the same as isOpen. Use
ExceptionHelper.TransactionNotUsable instead of duplicating code.
On 2.0 profile, ignore call to Rollback when transaction was already
disposed.
* OleDbTransaction.cs: Keep track of whether transaction is open and
whether it's disposed. In Commit an Rollback, throw an IOE if the
transaction is no longer open. In Dispose (bool), perform a rollback
if the transaction is still open.

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

16 years agoMore time-dependent fixing.
Paolo Molaro [Fri, 19 Oct 2007 15:59:13 +0000 (15:59 -0000)]
More time-dependent fixing.

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

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

* TextControl.cs: Clean up and document the Insert function.

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

16 years ago* OdbcTransaction.cs: Use OdbcIsolationLevel enum value instead of
Gert Driesen [Fri, 19 Oct 2007 13:36:40 +0000 (13:36 -0000)]
* OdbcTransaction.cs: Use OdbcIsolationLevel enum value instead of
magic numbers. For Snapshot isolation level, the attribute
SQL_COPT_SS_TXN_ISOLATION must be used instead. When isolation level
is Unspecified, then do not modify the isolation level at all and
lazy initlization the IsolationLevel property. Modified exceptions
for invalid / not supported isolation levels to match MS.
* libodbc.cs: Added attribute for changing SQL Server specific
connection option. Added enum for ODBC isolation level options.
Added SQLGetConnectAttr method.

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

16 years ago2007-10-19 Dick Porter <dick@ximian.com>
Dick Porter [Fri, 19 Oct 2007 13:18:01 +0000 (13:18 -0000)]
2007-10-19  Dick Porter  <dick@ximian.com>

* ThreadTest.cs: Re-enable ManagedThreadId test too

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

16 years ago2007-10-19 Dick Porter <dick@ximian.com>
Dick Porter [Fri, 19 Oct 2007 13:15:05 +0000 (13:15 -0000)]
2007-10-19  Dick Porter  <dick@ximian.com>

* ThreadTest.cs: Re-enable GetHashCodeTest

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

16 years ago2007-10-19 Nagappan A <anagappan@novell.com>
Nagappan Alagappan [Fri, 19 Oct 2007 11:50:27 +0000 (11:50 -0000)]
2007-10-19  Nagappan A  <anagappan@novell.com>

* OdbcDataReaderTest.cs (Bug332404Test): Bug 332404 - ODBC and
  numeric columns. Thanks to Ernesto Carrea <equistango@gmail.com>
  for the patch and the test case.
  Fixed compilation issues in Bug332400Test method.

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

16 years ago2007-10-19 Nagappan A <anagappan@novell.com>
Nagappan Alagappan [Fri, 19 Oct 2007 11:49:41 +0000 (11:49 -0000)]
2007-10-19  Nagappan A  <anagappan@novell.com>

* SqlCommandBuilderTest.cs: Fixed compilation warnings.

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

16 years ago2007-10-19 Marek Habersack <mhabersack@novell.com>
Marek Habersack [Fri, 19 Oct 2007 09:34:40 +0000 (09:34 -0000)]
2007-10-19  Marek Habersack  <mhabersack@novell.com>

* Makefile: include consts.cs.in in the dist tarball.
Extra distribution files should be named in EXTRA_DISTFILES.

2007-10-19  Marek Habersack  <mhabersack@novell.com>

* Makefile: fix the buildbot build - mconfig should be
listed also in DIST_ONLY_SUBDIRS

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

16 years agoSet eol-style to native.
Gert Driesen [Fri, 19 Oct 2007 09:09:42 +0000 (09:09 -0000)]
Set eol-style to native.

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