mono.git
14 years ago2009-09-22 Michael Barker <mike@middlesoft.co.uk>
Michael Barker [Tue, 22 Sep 2009 20:36:46 +0000 (20:36 -0000)]
2009-09-22  Michael Barker  <mike@middlesoft.co.uk>

* AdminTest.cs:  Added support for unique queue names
* AsyncPeekTest.cs:  Added support for unique queue names
* AsyncReceiveTest.cs:  Added support for unique queue names
* BasicMessagingTest.cs:  Added support for unique queue names
* MessageEnumeratorTest.cs:  Added support for unique queue names
* MQUtil.cs:  Added queue name generation and prepending server names
to queue names based on environment variable
* PeekTest.cs:  Added support for unique queue names
* SelectorTest.cs:  Added support for unique queue names

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

14 years agoIn Test/System.Security.Cryptography:
Sebastien Pouliot [Tue, 22 Sep 2009 19:48:12 +0000 (19:48 -0000)]
In Test/System.Security.Cryptography:
2009-09-22  Sebastien Pouliot  <sebastien@ximian.com>

* CryptoStreamTest.cs: Add (nunit-ized) test cases provided by
Santa Marta (via Atsushi) as repro for bugs #539288 and #539229

In System.Security.Cryptography:
2009-09-22  Sebastien Pouliot  <sebastien@ximian.com>

* CryptoStream.cs: Fix [Input|Output]BlockSize for custom streams.
Patches by Santa Marta (via Atsushi).
[Fix bug #539288 and #539229]

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

14 years ago2009-09-22 Marek Habersack <mhabersack@novell.com>
Marek Habersack [Tue, 22 Sep 2009 19:28:04 +0000 (19:28 -0000)]
2009-09-22  Marek Habersack  <mhabersack@novell.com>

* TemplateControlCompiler.cs: ResourceProviderHasObject needs to
close ResourceReader instance obtained from resource provider.

* DefaultResourceProvider.cs: implemented the ResourceReader
property. Fixes bug #520397

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

14 years ago2009-09-22 Atsushi Enomoto <atsushi@ximian.com>
Atsushi Eno [Tue, 22 Sep 2009 17:52:31 +0000 (17:52 -0000)]
2009-09-22  Atsushi Enomoto  <atsushi@ximian.com>

* UriTemplate.cs : Fix method signatures. Take care of dictionary
  case sensitivity.

* UriTemplateTest.cs : add test for case-insensitive comparison in
  IDictionary, and test for null-value string in there.

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

14 years agoDictionary: Ensure that invalid arrays to CopyTo result in ArgumentExceptions.
Raja R Harinath [Tue, 22 Sep 2009 17:39:52 +0000 (17:39 -0000)]
Dictionary: Ensure that invalid arrays to CopyTo result in ArgumentExceptions.

* System.Collections.Generic/Dictionary.cs (CopyToCheck, Do_CopyTo):
Carve out of ...
(CopyTo): ... this.
(Do_ICollectionCopyTo): Carve out of ICollection.CopyTo.  Convert
type-cast exceptions to ArgumentExceptions.
(KeyCollection.CopyTo): Use them.
(ValueCollection.CopyTo): Use them.
* Test/System.Collections.Generic/DictionaryTest.cs (ICollectionCopyTo):
Test various odd scenarios where .NET CopyTo does _not_ throw an exception.
(ICollectionCopyTo_ex1..4): Ensure that ArgumentExceptions are
thrown in appropriate cases.

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

14 years ago2009-09-22 Atsushi Enomoto <atsushi@ximian.com>
Atsushi Eno [Tue, 22 Sep 2009 17:35:35 +0000 (17:35 -0000)]
2009-09-22  Atsushi Enomoto  <atsushi@ximian.com>

* JsonValue.cs, JsonReader.cs, JsonPrimitive.cs :
  Handle "null" values, as string, so far (haven't tried what .NET
  actually does).
  Fix array ToString() that missed commas (while Save() worked fine -
  it has different serialization logic).

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

14 years ago2009-09-22 Atsushi Enomoto <atsushi@ximian.com>
Atsushi Eno [Tue, 22 Sep 2009 17:30:32 +0000 (17:30 -0000)]
2009-09-22  Atsushi Enomoto  <atsushi@ximian.com>

* JsonSerializationWriter.cs : output "type" attribute on bool
  values too.
* JsonSerializationReader.cs : type loading attempt was insufficient
  and hence often missed indicated types to deserialize.

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

14 years agoNew test.
Marek Safar [Tue, 22 Sep 2009 16:52:09 +0000 (16:52 -0000)]
New test.

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

14 years ago2009-09-22 Marek Safar <marek.safar@gmail.com>
Marek Safar [Tue, 22 Sep 2009 16:39:55 +0000 (16:39 -0000)]
2009-09-22  Marek Safar  <marek.safar@gmail.com>

* nullable.cs, expression.cs: Fixed null lifted conversion for
bitwise enum operations.

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

14 years agoadd comment
Jb Evain [Tue, 22 Sep 2009 16:35:40 +0000 (16:35 -0000)]
add comment

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

14 years ago2009-09-22 Zoltan Varga <vargaz@gmail.com>
Zoltan Varga [Tue, 22 Sep 2009 16:00:42 +0000 (16:00 -0000)]
2009-09-22  Zoltan Varga  <vargaz@gmail.com>

* Makefile.am: Disable filter-stack.cs on ia64.

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

14 years ago2009-09-22 Sebastien Pouliot <sebastien@ximian.com>
Sebastien Pouliot [Tue, 22 Sep 2009 15:55:07 +0000 (15:55 -0000)]
2009-09-22  Sebastien Pouliot  <sebastien@ximian.com>

* MembershipProvider.cs: Ensure password decryption is always
possible.
[Fix bug #538406]

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

14 years ago2009-09-22 Sebastien Pouliot <sebastien@ximian.com>
Sebastien Pouliot [Tue, 22 Sep 2009 15:53:19 +0000 (15:53 -0000)]
2009-09-22  Sebastien Pouliot  <sebastien@ximian.com>

* CryptoStreamTest.cs: Convert to newer nunit syntax

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

14 years ago2009-09-22 Zoltan Varga <vargaz@gmail.com>
Zoltan Varga [Tue, 22 Sep 2009 15:53:07 +0000 (15:53 -0000)]
2009-09-22  Zoltan Varga  <vargaz@gmail.com>

* mini-ia64.c (mono_arch_output_basic_block): Fix ISHR/ISHR_IMM.

* basic.cs: Add a test.

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

14 years ago2009-09-22 Jb Evain <jbevain@novell.com>
Jb Evain [Tue, 22 Sep 2009 15:43:35 +0000 (15:43 -0000)]
2009-09-22  Jb Evain  <jbevain@novell.com>

* Timer.cs: MONOTOUCH doesn't support remoting, so do not pass
true to exitContext when calling WaitOne on a WaitHandle.

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

14 years ago2009-09-22 Zoltan Varga <vargaz@gmail.com>
Zoltan Varga [Tue, 22 Sep 2009 15:16:10 +0000 (15:16 -0000)]
2009-09-22  Zoltan Varga  <vargaz@gmail.com>

* mini-ia64.c (mono_arch_build_imt_thunk): Implement support the virtual
generic invokes.

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

14 years ago2009-09-22 Sebastien Pouliot <sebastien@ximian.com>
Sebastien Pouliot [Tue, 22 Sep 2009 13:58:47 +0000 (13:58 -0000)]
2009-09-22  Sebastien Pouliot  <sebastien@ximian.com>
* Evidence_2_1.cs: New.

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

14 years ago2009-09-22 Sebastien Pouliot <sebastien@ximian.com>
Sebastien Pouliot [Tue, 22 Sep 2009 13:42:13 +0000 (13:42 -0000)]
2009-09-22  Sebastien Pouliot  <sebastien@ximian.com>

* net_2_1_bootstrap_corlib.dll.sources, net_2_1_raw_corlib.dll.sources:
Remove more unneeded code and replace some classes with simpler
NET_2_1 versions.

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

14 years ago2009-09-22 Sebastien Pouliot <sebastien@ximian.com>
Sebastien Pouliot [Tue, 22 Sep 2009 13:40:55 +0000 (13:40 -0000)]
2009-09-22  Sebastien Pouliot  <sebastien@ximian.com>

* Thread.cs: Remove [Get|Set]CompressedStack for NET_2_1

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

14 years ago2009-09-22 Sebastien Pouliot <sebastien@ximian.com>
Sebastien Pouliot [Tue, 22 Sep 2009 13:40:44 +0000 (13:40 -0000)]
2009-09-22  Sebastien Pouliot  <sebastien@ximian.com>

* CodeAccessPermission_2_1.cs: New. Stub to compile NET_2_1
* IPermission.cs: Remove ISecurityEncodable for NET_2_1
* PermissionSet_2_1.cs: New. Stub to compile NET_2_1
* SecurityContext.cs: Remove usage of CompressedStack for NET_2_1
* SecurityException_2_1.cs: New, CAS-less version for NET_2_1
* SecurityException.cs: Remove NET_2_1 conditions
* SecurityFrame.cs: Keep structures (needed by the runtime) but
remove SecurityFrame itself for NET_2_1

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

14 years ago2009-09-22 Sebastien Pouliot <sebastien@ximian.com>
Sebastien Pouliot [Tue, 22 Sep 2009 13:36:51 +0000 (13:36 -0000)]
2009-09-22  Sebastien Pouliot  <sebastien@ximian.com>

* Assembly.cs: Remove Evidence and GlobalAssemblyCache
properties for NET_2_1

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

14 years ago2009-09-22 Sebastien Pouliot <sebastien@ximian.com>
Sebastien Pouliot [Tue, 22 Sep 2009 13:35:47 +0000 (13:35 -0000)]
2009-09-22  Sebastien Pouliot  <sebastien@ximian.com>

* _Assembly.cs: Remove Evidence and GlobalAssemblyCache
properties for NET_2_1
* Marshal.cs: Avoid depending on SecureString for NET_2_1

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

14 years ago2009-09-22 Sebastien Pouliot <sebastien@ximian.com>
Sebastien Pouliot [Tue, 22 Sep 2009 13:34:24 +0000 (13:34 -0000)]
2009-09-22  Sebastien Pouliot  <sebastien@ximian.com>

* Encoding.cs: Remove UTF32, Latin1 and custom (loaded code)
encodings for NET_2_1

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

14 years ago2009-09-22 Sebastien Pouliot <sebastien@ximian.com>
Sebastien Pouliot [Tue, 22 Sep 2009 13:32:39 +0000 (13:32 -0000)]
2009-09-22  Sebastien Pouliot  <sebastien@ximian.com>

* PolicyLevel_2_1.cs: Remove use of NamedPermissionSet

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

14 years ago2009-09-22 Sebastien Pouliot <sebastien@ximian.com>
Sebastien Pouliot [Tue, 22 Sep 2009 13:30:41 +0000 (13:30 -0000)]
2009-09-22  Sebastien Pouliot  <sebastien@ximian.com>

* PermissionSetAttribute.cs: Don't create a pset for NET_2_1

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

14 years ago2009-09-22 Marek Safar <marek.safar@gmail.com>
Marek Safar [Tue, 22 Sep 2009 13:29:15 +0000 (13:29 -0000)]
2009-09-22  Marek Safar  <marek.safar@gmail.com>

* convert.cs, ecore.cs: Fixed explicit unsafe coversion of long
values in checked context.

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

14 years ago2009-09-22 Sebastien Pouliot <sebastien@ximian.com>
Sebastien Pouliot [Tue, 22 Sep 2009 13:15:06 +0000 (13:15 -0000)]
2009-09-22  Sebastien Pouliot  <sebastien@ximian.com>

* Environment.cs: Remove imperative CAS environment
permission checks under NET_2_1

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

14 years ago2009-09-22 Sebastien Pouliot <sebastien@ximian.com>
Sebastien Pouliot [Tue, 22 Sep 2009 13:13:56 +0000 (13:13 -0000)]
2009-09-22  Sebastien Pouliot  <sebastien@ximian.com>

* StreamReader.cs: Don't use UTF32 under NET_2_1

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

14 years ago2009-09-22 Sebastien Pouliot <sebastien@ximian.com>
Sebastien Pouliot [Tue, 22 Sep 2009 13:12:28 +0000 (13:12 -0000)]
2009-09-22  Sebastien Pouliot  <sebastien@ximian.com>

* StrongName.cs: Moonlight NET_2_1 cannot depend on machine.config
* StrongNameManager_2_1.cs: Minimal version for NET_2_1

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

14 years ago2009-09-22 Zoltan Varga <vargaz@gmail.com>
Zoltan Varga [Tue, 22 Sep 2009 12:32:42 +0000 (12:32 -0000)]
2009-09-22  Zoltan Varga  <vargaz@gmail.com>

* appdomain-thread-abort.cs: Add a new test.

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

14 years ago2009-09-22 Zoltan Varga <vargaz@gmail.com>
Zoltan Varga [Tue, 22 Sep 2009 12:32:32 +0000 (12:32 -0000)]
2009-09-22  Zoltan Varga  <vargaz@gmail.com>

* mini-exceptions.c (mini_jit_info_table_find): New helper function which
searches all the domains of the current thread.

* exceptions-<ARCH>.c: Use it. Fixes #539394.

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

14 years ago2009-09-22 Sebastien Pouliot <sebastien@ximian.com>
Sebastien Pouliot [Tue, 22 Sep 2009 12:27:33 +0000 (12:27 -0000)]
2009-09-22  Sebastien Pouliot  <sebastien@ximian.com>

* X509Certificate20.cs: Don't depend on SecureString for NET_2_1

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

14 years ago2009-09-22 Marek Habersack <mhabersack@novell.com>
Marek Habersack [Tue, 22 Sep 2009 12:15:04 +0000 (12:15 -0000)]
2009-09-22  Marek Habersack  <mhabersack@novell.com>

* WebServiceParser.cs: GetCompiledType uses BuildManager on the
2.0 profile. Fixes bug #533166

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

14 years ago2009-09-22 Gonzalo Paniagua Javier <gonzalo@novell.com>
Gonzalo Paniagua Javier [Tue, 22 Sep 2009 10:30:07 +0000 (10:30 -0000)]
2009-09-22 Gonzalo Paniagua Javier <gonzalo@novell.com>

* threadpool.c: actually use the minimum number of 'completion ports'
(for us is just a potential worker thread).

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

14 years ago2009-09-22 Gonzalo Paniagua Javier <gonzalo@novell.com>
Gonzalo Paniagua Javier [Tue, 22 Sep 2009 10:05:03 +0000 (10:05 -0000)]
2009-09-22 Gonzalo Paniagua Javier <gonzalo@novell.com>

* threadpool.c: remove ares_htable. It does not make sense any more
since the same objects are now stored in GC-tracked arrays while they are
in the queue.

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

14 years ago2009-09-22 Gonzalo Paniagua Javier <gonzalo@novell.com>
Gonzalo Paniagua Javier [Tue, 22 Sep 2009 10:00:28 +0000 (10:00 -0000)]
2009-09-22 Gonzalo Paniagua Javier <gonzalo@novell.com>

* threadpool.c: increase the minimum length of the queues to 128.
Remove warning.

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

14 years agoNew tests.
Marek Safar [Tue, 22 Sep 2009 09:50:21 +0000 (09:50 -0000)]
New tests.

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

14 years ago2009-09-22 Marek Safar <marek.safar@gmail.com>
Marek Safar [Tue, 22 Sep 2009 09:50:04 +0000 (09:50 -0000)]
2009-09-22  Marek Safar  <marek.safar@gmail.com>

* expression.cs, ecore.cs: Fixed array index constant conversion.

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

14 years agoNew test.
Marek Safar [Mon, 21 Sep 2009 21:57:16 +0000 (21:57 -0000)]
New test.

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

14 years ago2009-09-21 Zoltan Varga <vargaz@gmail.com>
Zoltan Varga [Mon, 21 Sep 2009 20:45:07 +0000 (20:45 -0000)]
2009-09-21  Zoltan Varga  <vargaz@gmail.com>

* exceptions-arm.c (mono_arm_throw_exception): Set ctx->ebp to fp instead of sp
so catching exceptions thrown in the same method works. Fixes exception17.exe.

* tramp-arm.c (mono_arch_create_trampoline_code_full): Store NULL into lmf->method
for non-jit trampolines.

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

14 years ago2009-09-21 Sebastien Pouliot <sebastien@ximian.com>
Sebastien Pouliot [Mon, 21 Sep 2009 19:00:15 +0000 (19:00 -0000)]
2009-09-21  Sebastien Pouliot  <sebastien@ximian.com>

* net_2_1_raw_System.dll.sources: Remove System.Net.Mime since
System.Runtime.Serialization does not need them anymore

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

14 years agoIn System.Xml:
Sebastien Pouliot [Mon, 21 Sep 2009 18:57:37 +0000 (18:57 -0000)]
In System.Xml:
2009-09-21  Sebastien Pouliot  <sebastien@ximian.com>

* XmlDictionaryWriter.cs: Remove usage of XmlMtomDictionaryWriter
for NET_2_1

In .:
2009-09-21  Sebastien Pouliot  <sebastien@ximian.com>

* net_2_1_raw_System.Runtime.Serialization.dll.sources: Remove
System.Xml/XmlMtomDictionaryWriter.cs

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

14 years ago2009-09-21 Zoltan Varga <vargaz@gmail.com>
Zoltan Varga [Mon, 21 Sep 2009 16:04:18 +0000 (16:04 -0000)]
2009-09-21  Zoltan Varga  <vargaz@gmail.com>

* runtime-invoke.cs: Add a test for invoking string ctors. Remove tests wihich
are auto-generated now by gen-runtime-invoke.cs.

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

14 years ago2009-09-21 Zoltan Varga <vargaz@gmail.com>
Zoltan Varga [Mon, 21 Sep 2009 16:04:11 +0000 (16:04 -0000)]
2009-09-21  Zoltan Varga  <vargaz@gmail.com>

* mini.c (mono_jit_runtime_invoke): Allow string ctors with dyn runtime invoke.

* aot-compiler.c (add_wrappers): Ditto.

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

14 years ago2009-09-21 Zoltan Varga <vargaz@gmail.com>
Zoltan Varga [Mon, 21 Sep 2009 16:04:02 +0000 (16:04 -0000)]
2009-09-21  Zoltan Varga  <vargaz@gmail.com>

* marshal.c (mono_marshal_get_string_ctor_signature): New internal function to
return the modified signature used by string ctors.

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

14 years ago2009-09-21 Zoltan Varga <vargaz@gmail.com>
Zoltan Varga [Mon, 21 Sep 2009 15:44:14 +0000 (15:44 -0000)]
2009-09-21  Zoltan Varga  <vargaz@gmail.com>

* mini-arm.c: Implement support for passing vtypes and floats, and increase
the size of the param area used by dyn_call to 6 which covers the majority of
methods.

* mini.c aot-compiler.c: Allow dyn_call for string methods except ctors.

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

14 years agoFix the build.
Zoltan Varga [Mon, 21 Sep 2009 15:22:44 +0000 (15:22 -0000)]
Fix the build.

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

14 years ago2009-09-21 Zoltan Varga <vargaz@gmail.com>
Zoltan Varga [Mon, 21 Sep 2009 15:22:35 +0000 (15:22 -0000)]
2009-09-21  Zoltan Varga  <vargaz@gmail.com>

* gen-runtime-invoke.cs: New test generator for runtime invoke tests.

* Makefile.am (test-runtime-invoke): New test target.

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

14 years ago * man/mdoc-export-html.1: Document --with-profile, --with-version.
Jonathan Pryor [Mon, 21 Sep 2009 14:31:43 +0000 (14:31 -0000)]
* man/mdoc-export-html.1: Document --with-profile, --with-version.

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

14 years ago2009-09-21 Rodrigo Kumpera <rkumpera@novell.com>
Rodrigo Kumpera [Mon, 21 Sep 2009 12:27:48 +0000 (12:27 -0000)]
2009-09-21  Rodrigo Kumpera  <rkumpera@novell.com>

* array_load_exception.il: Test for broken arrays.

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

14 years ago2009-09-21 Gonzalo Paniagua Javier <gonzalo@novell.com>
Gonzalo Paniagua Javier [Mon, 21 Sep 2009 11:56:34 +0000 (11:56 -0000)]
2009-09-21 Gonzalo Paniagua Javier <gonzalo@novell.com>

* Console.cs: mark methods/properties that only work on windows.
Fixes bug #540593.

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

14 years agoIn System.Threading:
Sebastien Pouliot [Mon, 21 Sep 2009 11:54:24 +0000 (11:54 -0000)]
In System.Threading:
2009-09-21  Sebastien Pouliot  <sebastien@ximian.com>

* Thread.cs: Remove CurrentPrincipal property for NET_2_1
* ExecutionContext.cs: Remove Run method for NET_2_1

In System.Security:
2009-09-21  Sebastien Pouliot  <sebastien@ximian.com>

* SecurityContext.cs: Don't use WindowsIdentity under NET_2_1

In System:
2009-09-21  Sebastien Pouliot  <sebastien@ximian.com>

* AppDomain.cs: Remove use of IPrincipal, Evidence and
PermissionSet types for NET_2_1

In .:
2009-09-21  Sebastien Pouliot  <sebastien@ximian.com>

* net_2_1_bootstrap_corlib.dll.sources, net_2_1_raw_corlib.dll.sources:
Remove most of System.Security.Policy and System.Security.Principal
and more of System.Security.Permissions from NET_2_1 build

In System.Security.Policy:
2009-09-21  Sebastien Pouliot  <sebastien@ximian.com>

* PolicyLevel_2_1.cs: Remove use of PolicyStatement

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

14 years ago2009-09-21 Zoltan Varga <vargaz@gmail.com>
Zoltan Varga [Mon, 21 Sep 2009 11:53:00 +0000 (11:53 -0000)]
2009-09-21  Zoltan Varga  <vargaz@gmail.com>

* runtime-invoke.cs: Add more tests.

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

14 years ago2009-09-21 Zoltan Varga <vargaz@gmail.com>
Zoltan Varga [Mon, 21 Sep 2009 11:52:02 +0000 (11:52 -0000)]
2009-09-21  Zoltan Varga  <vargaz@gmail.com>

* mini-arm.c: Implement support for passing/receiving
longs and receiving floats in the dyn_call code.

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

14 years ago2009-09-21 Carlos Alberto Cortez <calberto.cortez@gmail.com>
Carlos Alberto Cortez [Mon, 21 Sep 2009 11:42:04 +0000 (11:42 -0000)]
2009-09-21  Carlos Alberto Cortez <calberto.cortez@gmail.com>

* RichTextBox.cs: For SelectedRtf, after inserting the stream, adjust
the position of the caret by adding the needed chars represented by the new line chars,
according to the system, using rich *or* hard new lines as needed. Also do a
check to be sure we don't move the cursor position beyond the limits
of our text. This should avoid problems with text being pasted,
regarding the position of the caret.

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

14 years ago* SerialPortStream.cs: Throw exception when errors occur in Close()
Leszek 'skolima' Ciesielski [Mon, 21 Sep 2009 08:20:59 +0000 (08:20 -0000)]
* SerialPortStream.cs: Throw exception when errors occur in Close()

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

14 years ago* serial.c: return -1 from close() on error
Leszek 'skolima' Ciesielski [Mon, 21 Sep 2009 08:19:09 +0000 (08:19 -0000)]
* serial.c: return -1 from close() on error

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

14 years ago2009-09-20 Daniel Morgan <monodanmorg@yahoo.com>
Daniel Morgan [Mon, 21 Sep 2009 03:18:37 +0000 (03:18 -0000)]
2009-09-20  Daniel Morgan  <monodanmorg@yahoo.com>

* OracleConnection.cs: implement GetSchema methods

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

14 years agoIn System:
Sebastien Pouliot [Mon, 21 Sep 2009 00:43:47 +0000 (00:43 -0000)]
In System:
2009-09-20  Sebastien Pouliot  <sebastien@ximian.com>

* Activator.cs: Remove COM related method for NET_2_1
* AppDomain.cs: Remove extra methods and properties for NET_2_1
* AppDomainSetup.cs: Remove some properties for NET_2_1

In .:
Remove more types (e.g. AccessControl, Soap) from NET_2_1

2009-09-20  Sebastien Pouliot  <sebastien@ximian.com>

* net_2_1_bootstrap_corlib.dll.sources, net_2_1_raw_corlib.dll.sources:

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

14 years ago2009-09-20 Sebastien Pouliot <sebastien@ximian.com>
Sebastien Pouliot [Mon, 21 Sep 2009 00:43:37 +0000 (00:43 -0000)]
2009-09-20  Sebastien Pouliot  <sebastien@ximian.com>

* compiler-tester.cs: Define out some parts for NET_2_1 since
they are not part of Silverlight 2 public API

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

14 years ago2009-09-21 Zoltan Varga <vargaz@gmail.com>
Zoltan Varga [Sun, 20 Sep 2009 23:16:08 +0000 (23:16 -0000)]
2009-09-21  Zoltan Varga  <vargaz@gmail.com>

* mini-amd64.c: Implement support for receiving vtypes in registers in
the dyn_call code.

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

14 years ago2009-09-21 Zoltan Varga <vargaz@gmail.com>
Zoltan Varga [Sun, 20 Sep 2009 23:01:21 +0000 (23:01 -0000)]
2009-09-21  Zoltan Varga  <vargaz@gmail.com>

* mini.c mini-amd64.c: Implement partial support for passing vtypes in
the dyn_call code.

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

14 years ago2009-09-21 Zoltan Varga <vargaz@gmail.com>
Zoltan Varga [Sun, 20 Sep 2009 23:01:15 +0000 (23:01 -0000)]
2009-09-21  Zoltan Varga  <vargaz@gmail.com>

* runtime-invoke.cs: Add tests for passing/receiving generic instances of
vtypes.

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

14 years ago2009-09-20 Zoltan Varga <vargaz@gmail.com>
Zoltan Varga [Sun, 20 Sep 2009 21:46:01 +0000 (21:46 -0000)]
2009-09-20  Zoltan Varga  <vargaz@gmail.com>

* mini-arm.c (get_call_info): Return more precise information in
ArgInfo->regtype.
(dyn_call_supported): Use the information in CallInfo.

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

14 years ago2009-09-20 Zoltan Varga <vargaz@gmail.com>
Zoltan Varga [Sun, 20 Sep 2009 20:03:42 +0000 (20:03 -0000)]
2009-09-20  Zoltan Varga  <vargaz@gmail.com>

* mini-arm.c: Enable support for returning vtypes in the dyn_call code.

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

14 years ago2009-09-20 Zoltan Varga <vargaz@gmail.com>
Zoltan Varga [Sun, 20 Sep 2009 19:09:02 +0000 (19:09 -0000)]
2009-09-20  Zoltan Varga  <vargaz@gmail.com>

* mini.c mini-amd64.c: Enable support for returning vtypes in the dyn_call
code.

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

14 years ago2009-09-20 Miguel de Icaza <miguel@novell.com>
Miguel de Icaza [Sun, 20 Sep 2009 18:08:04 +0000 (18:08 -0000)]
2009-09-20  Miguel de Icaza  <miguel@novell.com>

* expression.cs: Do not crash when MemberLookup returns something
that is not a MemberExpr here.   Report error 582 instead.

Fixes #499988.

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

14 years ago2009-09-20 Zoltan Varga <vargaz@gmail.com>
Zoltan Varga [Sun, 20 Sep 2009 17:11:04 +0000 (17:11 -0000)]
2009-09-20  Zoltan Varga  <vargaz@gmail.com>

* mini-arm.c: Update after the dyn_call api changes.

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

14 years ago2009-09-20 Zoltan Varga <vargaz@gmail.com>
Zoltan Varga [Sun, 20 Sep 2009 16:49:18 +0000 (16:49 -0000)]
2009-09-20  Zoltan Varga  <vargaz@gmail.com>

* mini.c (mini_create_jit_domain_info): Register a destructor function
for the runtime_invoke_hash.

* mini-amd64.c (mono_arch_get_dyn_call_args): Rename this to
'mono_arch_dyn_call_start'. Pass the pointer to the return value buffer to
this function.
(mono_arch_get_dyn_call_ret): Rename this to 'mono_arch_dyn_call_finish'.
(dyn_call_supported): Simplify this by using get_call_info ().
(mono_arch_dyn_call_free): New destructor function.

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

14 years ago2009-09-20 Zoltan Varga <vargaz@gmail.com>
Zoltan Varga [Sun, 20 Sep 2009 16:49:11 +0000 (16:49 -0000)]
2009-09-20  Zoltan Varga  <vargaz@gmail.com>

* generics.cs: Remove a printf.

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

14 years ago2009-09-20 Sebastien Pouliot <sebastien@ximian.com>
Sebastien Pouliot [Sun, 20 Sep 2009 16:43:43 +0000 (16:43 -0000)]
2009-09-20  Sebastien Pouliot  <sebastien@ximian.com>

* AppDomain.cs, Environment.cs: Remove imperative CAS file IO
permission checks under NET_2_1

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

14 years ago2009-09-20 Sebastien Pouliot <sebastien@ximian.com>
Sebastien Pouliot [Sun, 20 Sep 2009 16:38:40 +0000 (16:38 -0000)]
2009-09-20  Sebastien Pouliot  <sebastien@ximian.com>

* EventWaitHandle.cs: Remove AccessControl usage for NET_2_1
* Mutex.cs: Remove some ctors and AccessControl usage for NET_2_1
* NativeEventCalls.cs: Remove AccessControl usage for NET_2_1

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

14 years agoNET_2_1 specific implementation of AppDomainManager
Sebastien Pouliot [Sun, 20 Sep 2009 16:25:54 +0000 (16:25 -0000)]
NET_2_1 specific implementation of AppDomainManager

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

14 years ago2009-09-20 Sebastien Pouliot <sebastien@ximian.com>
Sebastien Pouliot [Sun, 20 Sep 2009 16:05:55 +0000 (16:05 -0000)]
2009-09-20  Sebastien Pouliot  <sebastien@ximian.com>

* VersioningHelper.cs: Refactor AppDomain.Id for NET_2_1

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

14 years ago2009-09-20 Sebastien Pouliot <sebastien@ximian.com>
Sebastien Pouliot [Sun, 20 Sep 2009 16:00:22 +0000 (16:00 -0000)]
2009-09-20  Sebastien Pouliot  <sebastien@ximian.com>

* net_2_1_bootstrap_corlib.dll.sources, net_2_1_raw_corlib.dll.sources:
Remove more unneeded types from NET_2_1

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

14 years ago2009-09-20 Sebastien Pouliot <sebastien@ximian.com>
Sebastien Pouliot [Sun, 20 Sep 2009 15:59:10 +0000 (15:59 -0000)]
2009-09-20  Sebastien Pouliot  <sebastien@ximian.com>

* AssemblyInfo.cs: Remove ComCompatibleVersion and
AllowPartiallyTrustedCallers for NET_2_1

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

14 years ago2009-09-20 Sebastien Pouliot <sebastien@ximian.com>
Sebastien Pouliot [Sun, 20 Sep 2009 15:58:24 +0000 (15:58 -0000)]
2009-09-20  Sebastien Pouliot  <sebastien@ximian.com>

* MarshalAsAttribute.cs: Remove VarEnum field for NET_2_1

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

14 years ago2009-09-20 Sebastien Pouliot <sebastien@ximian.com>
Sebastien Pouliot [Sun, 20 Sep 2009 15:57:19 +0000 (15:57 -0000)]
2009-09-20  Sebastien Pouliot  <sebastien@ximian.com>

* AssemblyInfo.cs: Remove ComCompatibleVersion and
AllowPartiallyTrustedCallers for NET_2_1

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

14 years ago2009-09-20 Zoltan Varga <vargaz@gmail.com>
Zoltan Varga [Sun, 20 Sep 2009 14:12:40 +0000 (14:12 -0000)]
2009-09-20  Zoltan Varga  <vargaz@gmail.com>

* method-to-ir.c (mono_method_to_ir): Allocate some param area for DYN_CALL.

* mini-arm.c: Add support for enum return values and passing a few arguments
on the stack.

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

14 years ago2009-09-20 Zoltan Varga <vargaz@gmail.com>
Zoltan Varga [Sun, 20 Sep 2009 13:42:58 +0000 (13:42 -0000)]
2009-09-20  Zoltan Varga  <vargaz@gmail.com>

* mini.c (mono_jit_runtime_invoke): Add support for enum return values to
dyn invoke.

* mini-amd64.c (mono_arch_get_dyn_call_ret): Ditto.

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

14 years ago2009-09-20 Zoltan Varga <vargaz@gmail.com>
Zoltan Varga [Sun, 20 Sep 2009 13:05:34 +0000 (13:05 -0000)]
2009-09-20  Zoltan Varga  <vargaz@gmail.com>

* aot-compiler.c (add_wrappers): Add a few restrictions for the use of
the dynamic invoke wrappers.

* mini-arm.c: Implement OP_DYN_CALL for arm.

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

14 years ago2009-09-20 Zoltan Varga <vargaz@gmail.com>
Zoltan Varga [Sun, 20 Sep 2009 12:23:04 +0000 (12:23 -0000)]
2009-09-20  Zoltan Varga  <vargaz@gmail.com>

* aot-compiler.c (add_wrappers): Avoid aot-ing runtime invoke wrappers
supported by the dynamic runtime invoke wrapper.

* aot-compiler.c aot-runtime.c: Add support for encoding the dynamic
runtime invoke wrapper.

* mini.c (mono_jit_runtime_invoke): Use the dynamic runtime invoke wrappers
if possible when running with full-aot.

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

14 years ago2009-09-20 Zoltan Varga <vargaz@gmail.com>
Zoltan Varga [Sun, 20 Sep 2009 12:22:56 +0000 (12:22 -0000)]
2009-09-20  Zoltan Varga  <vargaz@gmail.com>

* marshal.c (mono_marshal_get_runtime_invoke_dynamic): New internal function
to return a runtime-invoke wrapper which uses DYN_CALL to call the wrapped
method, to be used by full-aot.

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

14 years ago2009-09-20 Zoltan Varga <vargaz@gmail.com>
Zoltan Varga [Sun, 20 Sep 2009 12:22:49 +0000 (12:22 -0000)]
2009-09-20  Zoltan Varga  <vargaz@gmail.com>

* cil-opcodes.xml: Add mono_dyn_call opcode.

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

14 years ago2009-09-20 Zoltan Varga <vargaz@gmail.com>
Zoltan Varga [Sun, 20 Sep 2009 12:22:43 +0000 (12:22 -0000)]
2009-09-20  Zoltan Varga  <vargaz@gmail.com>

* runtime-invoke.cs: Add more tests.

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

14 years ago2009-09-20 Zoltan Varga <vargaz@gmail.com>
Zoltan Varga [Sun, 20 Sep 2009 12:22:35 +0000 (12:22 -0000)]
2009-09-20  Zoltan Varga  <vargaz@gmail.com>

* mini-ops.h: Add OP_DYN_CALL opcode.

* mini-amd64.c method-to-ir.c: Add infrastructure for making method calls
with dynamic arguments lists similar to libffi.

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

14 years agoIn .:
Sebastien Pouliot [Sat, 19 Sep 2009 23:29:17 +0000 (23:29 -0000)]
In .:
2009-09-19  Sebastien Pouliot  <sebastien@ximian.com>

* net_2_1_bootstrap_corlib.dll.sources, net_2_1_raw_corlib.dll.sources:
New. Moonlight specific build files to minimize size and build time.
Copied from corlib.dll.sources minus some 4.0 stuff and COM types.

In System.Runtime.InteropServices:
2009-09-19  Sebastien Pouliot  <sebastien@ximian.com>

* Marshal.cs: Avoid depending on COM stuff for NET_2_1

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

14 years ago * Mono.Documentation/monodocs2html.cs: Add --with-profile=PROFILE
Jonathan Pryor [Sat, 19 Sep 2009 19:30:39 +0000 (19:30 -0000)]
* Mono.Documentation/monodocs2html.cs: Add --with-profile=PROFILE
  option, which just provides a simple mapping between profile names
  like net_3_5 to the versions used in that profile.

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

14 years ago2009-09-19 Zoltan Varga <vargaz@gmail.com>
Zoltan Varga [Sat, 19 Sep 2009 18:57:46 +0000 (18:57 -0000)]
2009-09-19  Zoltan Varga  <vargaz@gmail.com>

* method-to-ir.c: Fix the previous change on 64 bit platforms.

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

14 years ago2009-09-19 Zoltan Varga <vargaz@gmail.com>
Zoltan Varga [Sat, 19 Sep 2009 18:48:20 +0000 (18:48 -0000)]
2009-09-19  Zoltan Varga  <vargaz@gmail.com>

* method-to-ir.c: Applied patch from Rodrigo Kumpera. Allow an i8 argument
to NEWARR.

* iltests.il.in: Add a new test.

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

14 years ago * Mono.Documentation/monodocs2html.cs: By request of Edd Dumbill, add
Jonathan Pryor [Sat, 19 Sep 2009 17:34:16 +0000 (17:34 -0000)]
* Mono.Documentation/monodocs2html.cs: By request of Edd Dumbill, add
  --with-version=VERSION option.  This will generate HTML
  documentation for ONLY those types/members which exist within
  VERSION.  This makes it easy to generate HTML that will show e.g.
  only MonoTouch docs (and not the full class library docs).
* Makefile: Add test for 'mdoc export-html --with-version=VERSION'.
  Somewhat brain-dead, as it only checks for added types (and not
  added members), but better than nothing...

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

14 years ago2009-09-18 Atsushi Enomoto <atsushi@ximian.com>
Atsushi Eno [Sat, 19 Sep 2009 17:00:08 +0000 (17:00 -0000)]
2009-09-18  Atsushi Enomoto  <atsushi@ximian.com>

* WebHttpBehavior.cs : parameter Wrapped check in Validate() should
  not be done only for GET.

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

14 years ago2009-09-19 Sebastien Pouliot <sebastien@ximian.com>
Sebastien Pouliot [Sat, 19 Sep 2009 15:19:31 +0000 (15:19 -0000)]
2009-09-19  Sebastien Pouliot  <sebastien@ximian.com>

* TargetException.cs, TargetInvocationException.cs,
TargetParameterCountException.cs: Inherit from Exception for
NET_2_1 since ApplicationException does not exists

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

14 years ago2009-09-19 Gonzalo Paniagua Javier <gonzalo@novell.com>
Gonzalo Paniagua Javier [Sat, 19 Sep 2009 05:03:02 +0000 (05:03 -0000)]
2009-09-19 Gonzalo Paniagua Javier <gonzalo@novell.com>

* SocketAsyncEventArgs.cs: fix check for non-null.
Fixes bug #516455.

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

14 years ago2009-09-19 Gonzalo Paniagua Javier <gonzalo@novell.com>
Gonzalo Paniagua Javier [Sat, 19 Sep 2009 04:44:28 +0000 (04:44 -0000)]
2009-09-19 Gonzalo Paniagua Javier <gonzalo@novell.com>

* Ping.cs: if we receive a packet that is ignored, adjust the
timeout. Fixes bug #538013.

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

14 years ago2009-09-18 Atsushi Enomoto <atsushi@ximian.com>
Atsushi Eno [Sat, 19 Sep 2009 04:37:12 +0000 (04:37 -0000)]
2009-09-18  Atsushi Enomoto  <atsushi@ximian.com>

* Normalization.cs : Handle blocked characters which are not
  immediately next to the primary composite character. This fixes
  some Arabic string sequence normalization.
* Makefile : fix test build.

* StringTest.cs : add more normalization tests.

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

14 years ago2009-09-18 Zoltan Varga <vargaz@gmail.com>
Zoltan Varga [Fri, 18 Sep 2009 21:21:22 +0000 (21:21 -0000)]
2009-09-18  Zoltan Varga  <vargaz@gmail.com>

* aot-compiler.c (add_generic_instances): Add more instances of
GenericEqualityComparer.

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

14 years ago2009-09-18 Rodrigo Kumpera <rkumpera@novell.com>
Rodrigo Kumpera [Fri, 18 Sep 2009 20:10:57 +0000 (20:10 -0000)]
2009-09-18  Rodrigo Kumpera  <rkumpera@novell.com>

* mini.c: Add asserts for mono_class_vtable calls that are not meant to fail.

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

14 years ago2009-09-17 Rodrigo Kumpera <rkumpera@novell.com>
Rodrigo Kumpera [Fri, 18 Sep 2009 20:10:44 +0000 (20:10 -0000)]
2009-09-17  Rodrigo Kumpera  <rkumpera@novell.com>

* method-to-ir.c: Handle failures from mono_class_vtable. Added some
comments on some functions that now can fail.

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

14 years ago2009-09-17 Rodrigo Kumpera <rkumpera@novell.com>
Rodrigo Kumpera [Fri, 18 Sep 2009 20:10:33 +0000 (20:10 -0000)]
2009-09-17  Rodrigo Kumpera  <rkumpera@novell.com>

Since the runtime supports lazy initialization of a type's vtable and this can cause a type
to fail, we need to ensure that the vtable is properly initialized at spots were the type must
be known to be good.

* class.c (mono_class_init): Fail array types if their element type fails initialization
as well.

* object.c (mono_class_create_runtime_vtable): Fail array types if their element type fails
initialization, additionally we request the element_type vtable to be initialized as well.

This is fine and should not increase the working set in any meaningful way since it's reasonable
to assume that most code will create an array and eventually populate it, which will require the
type's vtable to be initialized.

* loader.c (field_from_memberref): Add a comment for a possibly useless mono_class_init call.

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