mono.git
14 years agoUpdate man page
Miguel de Icaza [Wed, 29 Jul 2009 15:14:19 +0000 (15:14 -0000)]
Update man page

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

14 years agoAdd 4.0 profile
Marek Safar [Wed, 29 Jul 2009 13:57:36 +0000 (13:57 -0000)]
Add 4.0 profile

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

14 years agoUse correct naming, add 4.0 profile
Marek Safar [Wed, 29 Jul 2009 13:53:27 +0000 (13:53 -0000)]
Use correct naming, add 4.0 profile

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

14 years ago2009-07-29 Marek Safar <marek.safar@gmail.com>
Marek Safar [Wed, 29 Jul 2009 13:51:33 +0000 (13:51 -0000)]
2009-07-29  Marek Safar  <marek.safar@gmail.com>

* compiler-tester.cs: Add predefined file masks.

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

14 years ago2009-07-29 Rodrigo Kumpera <rkumpera@novell.com>
Rodrigo Kumpera [Wed, 29 Jul 2009 13:40:26 +0000 (13:40 -0000)]
2009-07-29 Rodrigo Kumpera  <rkumpera@novell.com>

* Makefile: Fix mac build and dependencies.
Add new file.

* cli-blob-tests.md: stand-alone-method-sig tests now use
a separate input file with a single standalone sig so it's
no longer dependent on ilasm ordering.

* assembly-with-calli.il: New file with a single standalone
signature.

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

14 years ago2009-07-29 Rodrigo Kumpera <rkumpera@novell.com>
Rodrigo Kumpera [Wed, 29 Jul 2009 13:40:15 +0000 (13:40 -0000)]
2009-07-29 Rodrigo Kumpera  <rkumpera@novell.com>

* metadata-verify.c: Fix endianness problems on decoding functions.
Based on a patch by Ulrich Weigand <uweigand@de.ibm.com>

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

14 years ago2009-07-29 Marek Safar <marek.safar@gmail.com>
Marek Safar [Wed, 29 Jul 2009 13:26:40 +0000 (13:26 -0000)]
2009-07-29  Marek Safar  <marek.safar@gmail.com>

* generic.cs, typemanager.cs, decl.cs, iterators.cs, convert.cs,
nullable.cs, expression.cs, ecore.cs, class.cs, attribute.cs:
More TypeManager.TypeToCoreType needed.

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

14 years agoForget to commit.
Marek Safar [Wed, 29 Jul 2009 12:58:40 +0000 (12:58 -0000)]
Forget to commit.

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

14 years ago2008-07-29 Marek Safar <marek.safar@gmail.com>
Marek Safar [Wed, 29 Jul 2009 12:55:02 +0000 (12:55 -0000)]
2008-07-29  Marek Safar  <marek.safar@gmail.com>

* MonoGenericClass.cs: Removed one IsCompilerContext hack.

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

14 years ago2009-07-29 Marek Safar <marek.safar@gmail.com>
Marek Safar [Wed, 29 Jul 2009 12:52:19 +0000 (12:52 -0000)]
2009-07-29  Marek Safar  <marek.safar@gmail.com>

* anonymous.cs: Update after recent SRE fixes.

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

14 years ago2009-07-28 Atsushi Enomoto <atsushi@ximian.com>
Atsushi Eno [Wed, 29 Jul 2009 09:48:15 +0000 (09:48 -0000)]
2009-07-28  Atsushi Enomoto  <atsushi@ximian.com>

* TcpReplyChannel.cs : make sure to not try to receive request when
  it is already closed.

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

14 years ago2009-07-28 Atsushi Enomoto <atsushi@ximian.com>
Atsushi Eno [Wed, 29 Jul 2009 08:39:22 +0000 (08:39 -0000)]
2009-07-28  Atsushi Enomoto  <atsushi@ximian.com>

* TcpChannelListener.cs, TcpDuplexSessionChannel.cs :
  some mannerless clients [*1] do not send EndRecord accordingly, but
  such channels at listener side should not be kept open. So, close
  disconnected channels when the listener needs to accept another
  one.
  [*1] see olive/samples/wcf/clientbase/samplecli4.cs.

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

14 years ago2009-07-28 Atsushi Enomoto <atsushi@ximian.com>
Atsushi Eno [Wed, 29 Jul 2009 05:26:39 +0000 (05:26 -0000)]
2009-07-28  Atsushi Enomoto  <atsushi@ximian.com>

* TcpDuplexSessionChannel.cs :
  Remove extra NIE overrides.
  Implement OnAbort() apart from OnClose().
  For duplex session channel, unlike reply channel, it must acquire
  TCP connection before OnOpen(), otherwise ChannelDispatcher
  releases the connection acceptance WaitHandle and the detected
  live connection may be stolen by another channel acceptor.

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

14 years ago2009-07-28 Rodrigo Kumpera <rkumpera@novell.com>
Rodrigo Kumpera [Wed, 29 Jul 2009 03:02:47 +0000 (03:02 -0000)]
2009-07-28 Rodrigo Kumpera  <rkumpera@novell.com>

* TypeBuilder.cs (CreateType): Throw if concrete
type has abstract method.

2009-07-28 Rodrigo Kumpera  <rkumpera@novell.com>

* TypeBuilderTest.cs: Test for concrete type with
abstract method.

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

14 years ago2009-07-28 Rodrigo Kumpera <rkumpera@novell.com>
Rodrigo Kumpera [Wed, 29 Jul 2009 02:04:15 +0000 (02:04 -0000)]
2009-07-28 Rodrigo Kumpera  <rkumpera@novell.com>

* GenericTypeParameterBuilder.cs: SetBaseTypeConstraint with
null argument is the same as passing typeof (object).

2009-07-28 Rodrigo Kumpera  <rkumpera@novell.com>

* GenericTypeParameterBuilderTest.cs: Test for BaseType
and SetBaseTypeConstraint.

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

14 years ago2009-07-28 Rodrigo Kumpera <rkumpera@novell.com>
Rodrigo Kumpera [Wed, 29 Jul 2009 02:03:50 +0000 (02:03 -0000)]
2009-07-28 Rodrigo Kumpera  <rkumpera@novell.com>

TypeTest.cs: Fix the test.

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

14 years ago2009-07-28 Rodrigo Kumpera <rkumpera@novell.com>
Rodrigo Kumpera [Wed, 29 Jul 2009 00:43:04 +0000 (00:43 -0000)]
2009-07-28 Rodrigo Kumpera  <rkumpera@novell.com>

Type.cs (MakeArrayType): Handle one-dym multidimensional array
created with Type::MakeArrayType (1).

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

14 years ago2009-07-28 Rodrigo Kumpera <rkumpera@novell.com>
Rodrigo Kumpera [Wed, 29 Jul 2009 00:42:38 +0000 (00:42 -0000)]
2009-07-28 Rodrigo Kumpera  <rkumpera@novell.com>

* DerivedTypes.cs (ArrayType): Special case vector arrays using zero
 as rank. This is required because we need to make the distinction
between a vector and a one dimension SZARRAY.

* EnumBuilder.cs: Create vectors as rank-zero ArrayType objects.

  * TypeBuilder.cs: Same.

* GenericTypeParameterBuilder.cs: Same.

2009-07-28 Rodrigo Kumpera  <rkumpera@novell.com>

* DerivedTypesTests.cs: Add test for the distinction between
vector and one-dimension SZARRAY.

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

14 years ago2009-07-28 Rodrigo Kumpera <rkumpera@novell.com>
Rodrigo Kumpera [Wed, 29 Jul 2009 00:42:11 +0000 (00:42 -0000)]
2009-07-28 Rodrigo Kumpera  <rkumpera@novell.com>

DerivedTypes.cs: ByRef and Pointer types return Array as base
type.

2009-07-28 Rodrigo Kumpera  <rkumpera@novell.com>

DerivedTypesTest.cs: ByRef and Pointer types return Array as base
type.

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

14 years ago2009-07-28 Rodrigo Kumpera <rkumpera@novell.com>
Rodrigo Kumpera [Wed, 29 Jul 2009 00:41:57 +0000 (00:41 -0000)]
2009-07-28 Rodrigo Kumpera  <rkumpera@novell.com>

* icall.c (ves_icall_Type_make_array_type): Handle the new encoding
schema for vectors and one dimension SZARRAY.

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

14 years ago2009-07-28 Rodrigo Kumpera <rkumpera@novell.com>
Rodrigo Kumpera [Wed, 29 Jul 2009 00:41:44 +0000 (00:41 -0000)]
2009-07-28  Rodrigo Kumpera  <rkumpera@novell.com>

* Type.cs (FindMembers): Fix the ordering of returned members
to method, ctor, property, event, field and nested type.

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

14 years ago2009-07-28 Rodrigo Kumpera <rkumpera@novell.com>
Rodrigo Kumpera [Wed, 29 Jul 2009 00:41:42 +0000 (00:41 -0000)]
2009-07-28 Rodrigo Kumpera  <rkumpera@novell.com>

* reflection.c (mono_reflection_type_get_handle): Handle the new encoding
schema for vectors and one dimension SZARRAY.

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

14 years ago2009-07-28 Sebastien Pouliot <sebastien@ximian.com>
Sebastien Pouliot [Tue, 28 Jul 2009 23:39:31 +0000 (23:39 -0000)]
2009-07-28  Sebastien Pouliot  <sebastien@ximian.com>

* CryptoConfig_2_1.cs: Add SHA1 support in MapNameToOID in order to
be able to verify the codecs signature integrity.

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

14 years agoFix the Exec task to work correctly.
Ankit Jain [Tue, 28 Jul 2009 23:37:24 +0000 (23:37 -0000)]
Fix the Exec task to work correctly.

In class/Microsoft.Build.Tasks/Microsoft.Build.Tasks:

* Exec.cs (AddCommandLineCommands): First word from @command is treated
as exec name, and rest as arguments. Extract arguments here.
(ExecuteTool): Don't ignore params.
(GenerateFullPathToTool): Extract first word as tool name.
(HandleTaskExecutionErrors): Honor IgnoreExitCode property.
(LogEventsFromTextOutput): Log as messages.
* ManagedCompiler.cs (HandleTaskExecutionErrors): Implement.

In class/Microsoft.Build.Utilities/Microsoft.Build.Utilities:

* ToolTask (.ctor): Initialize Timeout value.
(Execute): Use HandleTaskExecutionErrors to determine task result. Set
exitCode to the result of ExecuteTool and let HandleTaskExecutionErrors
determine final result of the task.
(RealExecute): Rename to ..
(ExecuteTool): .. this. @responseFileCommands could be empty.
Use specified timeout value for the executing tool.
Rename 'compilerOutput' to 'toolOutput'. Cleanup resources in the
finally block. Move processing of stdout/stderr output to ..
(ProcessOutputFile): .. here and ..
(LogEventsFromTextOutput): .. here.
(HandleTaskExecutionErrors): Implement.
(DeleteTempFile): Implement.

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

14 years ago* xbuild/Microsoft.Common.targets: Add missing 'SkipUnchangedFiles=true'
Ankit Jain [Tue, 28 Jul 2009 23:36:54 +0000 (23:36 -0000)]
* xbuild/Microsoft.Common.targets: Add missing 'SkipUnchangedFiles=true'
for the Copy tasks.
(CopyDeployFiles*): Fix typos, Add inputs/outputs for the
PreserveNewest case and remove for copy always case.

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

14 years ago* TaskEngine.cs (Prepare): Fix formatting mistake.
Ankit Jain [Tue, 28 Jul 2009 23:35:44 +0000 (23:35 -0000)]
* TaskEngine.cs (Prepare): Fix formatting mistake.
* ConsoleLogger.cs: Emit "-- FAILED" also when project/target building
fails. Also, emit result of project at Normal verbosity level.

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

14 years ago2009-07-28 Marek Safar <marek.safar@gmail.com>
Marek Safar [Tue, 28 Jul 2009 22:07:01 +0000 (22:07 -0000)]
2009-07-28  Marek Safar  <marek.safar@gmail.com>

* DynamicMethod.cs: Pass skipVisibility.

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

14 years ago* ToolStripMenuItem.cs: Added UIA CheckOnClickChanged event.
Mike Gorse [Tue, 28 Jul 2009 20:30:53 +0000 (20:30 -0000)]
* ToolStripMenuItem.cs: Added UIA CheckOnClickChanged event.

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

14 years ago2009-07-28 Gonzalo Paniagua Javier <gonzalo@novell.com>
Gonzalo Paniagua Javier [Tue, 28 Jul 2009 17:26:51 +0000 (17:26 -0000)]
2009-07-28 Gonzalo Paniagua Javier <gonzalo@novell.com>

* WebClient.cs: rethrow WebExceptions instead of creating a new one
with less information on the actual error.
Fixes bug #526069.

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

14 years ago* SqlCommandTest.cs: Improved test for invalid statement to cover
Gert Driesen [Tue, 28 Jul 2009 17:24:35 +0000 (17:24 -0000)]
* SqlCommandTest.cs: Improved test for invalid statement to cover
CloseConnection behavior.
* SqlCommand.cs: Ensure connection is closed if CloseConnection
behavior is set, and reader could not be created.

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

14 years agofix the build
Gonzalo Paniagua Javier [Tue, 28 Jul 2009 16:31:24 +0000 (16:31 -0000)]
fix the build

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

14 years ago2009-07-28 Astushi Enomoto <atsushi@ximian.com>
Atsushi Eno [Tue, 28 Jul 2009 14:47:42 +0000 (14:47 -0000)]
2009-07-28  Astushi Enomoto  <atsushi@ximian.com>

* System.ServiceModel.dll.sources: add TransactionFlowAttribute.cs.

* TransactionFlowAttribute.cs : new file.

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

14 years ago2009-07-28 Atsushi Enomoto <atsushi@ximian.com>
Atsushi Eno [Tue, 28 Jul 2009 14:41:43 +0000 (14:41 -0000)]
2009-07-28  Atsushi Enomoto  <atsushi@ximian.com>

* ChannelFactory.cs : implement some remaining members.
  Remove null argument check and make setter optional.

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

14 years ago2009-07-28 Atsushi Enomoto <atsushi@ximian.com>
Atsushi Eno [Tue, 28 Jul 2009 14:38:17 +0000 (14:38 -0000)]
2009-07-28  Atsushi Enomoto  <atsushi@ximian.com>

* HttpRequestChannel.cs : implement OnAbort().

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

14 years ago2009-07-28 Carlos Alberto Cortez <calberto.cortez@gmail.com>
Carlos Alberto Cortez [Tue, 28 Jul 2009 13:48:25 +0000 (13:48 -0000)]
2009-07-28  Carlos Alberto Cortez <calberto.cortez@gmail.com>

* Application.cs: Make FilterMessage internal for 1.1. Fixes the 1.1 build.

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

14 years agoUpdated.
Marek Safar [Tue, 28 Jul 2009 13:32:27 +0000 (13:32 -0000)]
Updated.

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

14 years ago2009-07-28 Marek Safar <marek.safar@gmail.com>
Marek Safar [Tue, 28 Jul 2009 13:32:11 +0000 (13:32 -0000)]
2009-07-28  Marek Safar  <marek.safar@gmail.com>

* typemanager.cs, expression.cs, ecore.cs, delegate.cs: Use correct
version of GetFieldHandle for fields of generic types.

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

14 years ago * XplatUIX11.cs:
Carlos Alberto Cortez [Tue, 28 Jul 2009 12:24:04 +0000 (12:24 -0000)]
* XplatUIX11.cs:
* XplatUIWin32.cs: We need to filter the messages using
Application.FilterMessage for our DoEvents implementations. Observe
that I don't like the idea of XplatUI call the upper level Application
class, but at this point is easier and simpler to do this call - based
on the fact it's only one simple call.
Fixes #516735.

2009-07-28  Carlos Alberto Cortez <calberto.cortez@gmail.com>

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

14 years agoFixes build.
Marek Safar [Tue, 28 Jul 2009 12:03:40 +0000 (12:03 -0000)]
Fixes build.

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

14 years ago2009-07-28 Carlos Alberto Cortez <calberto.cortez@gmail.com>
Carlos Alberto Cortez [Tue, 28 Jul 2009 12:02:09 +0000 (12:02 -0000)]
2009-07-28  Carlos Alberto Cortez <calberto.cortez@gmail.com>

* TreeNodeCollection.cs: When removing the selected node, set the
SelectedNode value of TreeView to null if there aren't more nodes left -
this is better than to clear the selected node in Clear, since we need
to handle the situation in the Remove methods as well.
Fixes #525002.

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

14 years agofix the build
Jb Evain [Tue, 28 Jul 2009 08:14:49 +0000 (08:14 -0000)]
fix the build

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

14 years ago2009-07-28 Jb Evain <jbevain@novell.com>
Jb Evain [Tue, 28 Jul 2009 07:59:05 +0000 (07:59 -0000)]
2009-07-28  Jb Evain  <jbevain@novell.com>

* Mono.Cecil/AssemblyStripper.cs: Make all methods share
the same body.

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

14 years ago2009-07-28 Miguel de Icaza <miguel@novell.com>
Miguel de Icaza [Tue, 28 Jul 2009 05:06:31 +0000 (05:06 -0000)]
2009-07-28  Miguel de Icaza  <miguel@novell.com>

* UTF8Encoding.cs: Small optimization, reuse the static
EncoderFallback and DecoderFallback instead of creating new ones.

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

14 years ago2009-07-28 Miguel de Icaza <miguel@novell.com>
Miguel de Icaza [Tue, 28 Jul 2009 05:04:08 +0000 (05:04 -0000)]
2009-07-28  Miguel de Icaza  <miguel@novell.com>

* UTF8Encoding.cs: Use Equals to compare the objects as the
fallback objects do not overload operator ==.    The comparison
was previously failing.

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

14 years ago2009-07-28 Gonzalo Paniagua Javier <gonzalo@novell.com>
Gonzalo Paniagua Javier [Tue, 28 Jul 2009 04:55:07 +0000 (04:55 -0000)]
2009-07-28 Gonzalo Paniagua Javier <gonzalo@novell.com>

* HttpApplicationFactory.cs: allow subclasses of EventHandler for
event handlers in global.asax.
Fixes bug #525743.

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

14 years ago2009-07-28 Atsushi Enomoto <atsushi@ximian.com>
Atsushi Eno [Tue, 28 Jul 2009 03:21:20 +0000 (03:21 -0000)]
2009-07-28  Atsushi Enomoto  <atsushi@ximian.com>

* OutgoingWebRequestContext.cs : implement.

* WebMessageFormatter.cs : apply OutgoingRequest if available.

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

14 years ago2009-07-27 Rodrigo Kumpera <rkumpera@novell.com>
Rodrigo Kumpera [Tue, 28 Jul 2009 02:00:05 +0000 (02:00 -0000)]
2009-07-27 Rodrigo Kumpera  <rkumpera@novell.com>

* Assembly.cs (GetType): Throw if name is empty.

2009-07-27 Rodrigo Kumpera  <rkumpera@novell.com>

* AssemblyTest.cs: Add test for empty string passed to
Assembly::GetType.

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

14 years ago2009-07-27 Rodrigo Kumpera <rkumpera@novell.com>
Rodrigo Kumpera [Mon, 27 Jul 2009 23:10:13 +0000 (23:10 -0000)]
2009-07-27 Rodrigo Kumpera  <rkumpera@novell.com>

OpCode.cs: HashCode is meant to be calculated based on Name.

OpCodeNames.cs: Fix some names.

OpCodes.cs: Fix Stelem, Constrained and Readonly specs.

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

14 years ago2009-07-27 Rodrigo Kumpera <rkumpera@novell.com>
Rodrigo Kumpera [Mon, 27 Jul 2009 21:43:13 +0000 (21:43 -0000)]
2009-07-27 Rodrigo Kumpera  <rkumpera@novell.com>

* EventInfo (RemoveEventHandler): Throw InvalidOperationException if the
event remove method is not visible.

2009-07-27 Rodrigo Kumpera  <rkumpera@novell.com>

* EventInfoTest.cs: Add test for private event and
RemoveEventHandler.

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

14 years ago2009-07-27 Rodrigo Kumpera <rkumpera@novell.com>
Rodrigo Kumpera [Mon, 27 Jul 2009 21:42:50 +0000 (21:42 -0000)]
2009-07-27 Rodrigo Kumpera  <rkumpera@novell.com>

* EventInfo (AddEventHandler): Throw TargetException if target is not cast
compatible.

* EventInfo (AddEventHandler): Throw InvalidOperationException if the
event add method is not visible.

* EventInfo (AddEventHandler): Throw TargetException if source is null
and the event is not static.

2009-07-27 Rodrigo Kumpera  <rkumpera@novell.com>

* EventInfoTest.cs: Add test for cast incompatible type.

* EventInfoTest.cs: Add test for private event.

* EventInfoTest.cs: Add test for null target for non static
event.

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

14 years ago2009-07-27 Marek Safar <marek.safar@gmail.com>
Marek Safar [Mon, 27 Jul 2009 17:32:39 +0000 (17:32 -0000)]
2009-07-27  Marek Safar  <marek.safar@gmail.com>

* typemanager.cs, argument.cs, convert.cs, assign.cs, expression.cs,
ecore.cs: Add TypeManager.IsDynamicType,
PredefinedAttributes.Dynamic.

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

14 years ago2009-07-27 Marek Safar <marek.safar@gmail.com>
Marek Safar [Mon, 27 Jul 2009 17:00:20 +0000 (17:00 -0000)]
2009-07-27  Marek Safar  <marek.safar@gmail.com>

* typemanager.cs, argument.cs, convert.cs, assign.cs, expression.cs,
ecore.cs: Add TypeManager.IsDynamicType.

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

14 years agoNew test.
Marek Safar [Mon, 27 Jul 2009 16:30:53 +0000 (16:30 -0000)]
New test.

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

14 years ago2009-07-27 Marek Safar <marek.safar@gmail.com>
Marek Safar [Mon, 27 Jul 2009 16:30:00 +0000 (16:30 -0000)]
2009-07-27  Marek Safar  <marek.safar@gmail.com>

A fix for bug #415375
* expression.cs: Fixed object and reference type parameter
comparison.

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

14 years ago2009-07-27 Marek Safar <marek.safar@gmail.com>
Marek Safar [Mon, 27 Jul 2009 15:53:51 +0000 (15:53 -0000)]
2009-07-27  Marek Safar  <marek.safar@gmail.com>

A fix for bug #415375
* expression.cs: Fixed object and reference type parameter
comparison.

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

14 years ago2009-07-27 Gonzalo Paniagua Javier <gonzalo@novell.com>
Gonzalo Paniagua Javier [Mon, 27 Jul 2009 15:35:42 +0000 (15:35 -0000)]
2009-07-27 Gonzalo Paniagua Javier <gonzalo@novell.com>

* ArrayTest.cs: new LastIndexOf test for 0-length arrays.

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

14 years ago2009-07-27 Gonzalo Paniagua Javier <gonzalo@novell.com>
Gonzalo Paniagua Javier [Mon, 27 Jul 2009 15:35:30 +0000 (15:35 -0000)]
2009-07-27 Gonzalo Paniagua Javier <gonzalo@novell.com>

* Array.cs: empty arrays just return -1 in LastIndexOf().

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

14 years agoNew test.
Marek Safar [Mon, 27 Jul 2009 15:14:36 +0000 (15:14 -0000)]
New test.

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

14 years ago2009-07-27 Marek Safar <marek.safar@gmail.com>
Marek Safar [Mon, 27 Jul 2009 15:14:17 +0000 (15:14 -0000)]
2009-07-27  Marek Safar  <marek.safar@gmail.com>

A fix for bug #525342
* class.cs: Attach partial method attributes to method
implementation.

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

14 years ago2009-07-27 Miguel de Icaza <miguel@novell.com>
Miguel de Icaza [Mon, 27 Jul 2009 14:55:16 +0000 (14:55 -0000)]
2009-07-27  Miguel de Icaza  <miguel@novell.com>

* Value types implementing IConvertible.ToType now throw an
ArgumentNullException if they are passed a null as the
"targetType" argument.

This code can not be put directly in the Convert.ToType method, as
this method is used by Convert.ToType (object o, TypeCode tc)
which uses null as a target to throw a different kind of error
(InvalidCastException).

Fixes a few more bugs in the Silverlight BCL test suite.

Additionally, the parameter type has been renamed.

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

14 years ago2009-07-27 Mark Probst <mark.probst@gmail.com>
Mark Probst [Mon, 27 Jul 2009 11:28:11 +0000 (11:28 -0000)]
2009-07-27  Mark Probst  <mark.probst@gmail.com>

        * icall-def.h, thread-types.h, threads.c: New separate icalls for
        Interlocked.(Compare)Exchange with object arguments, which invoke
        write barriers.

2009-07-27  Mark Probst  <mark.probst@gmail.com>

        * method-to-ir.c: Invoke write barriers for the
        Interlocked.(Compare)Exchange JIT intrinsics.

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

14 years ago2009-07-26 Miguel de Icaza <miguel@novell.com>
Miguel de Icaza [Mon, 27 Jul 2009 00:09:11 +0000 (00:09 -0000)]
2009-07-26  Miguel de Icaza  <miguel@novell.com>

* Type.cs: (GetMember) call directly the worker method, instead of
calling through an intermediary.

(GetMember, full): throw if the name is null.

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

14 years ago2009-07-26 Miguel de Icaza <miguel@novell.com>
Miguel de Icaza [Sun, 26 Jul 2009 23:48:12 +0000 (23:48 -0000)]
2009-07-26  Miguel de Icaza  <miguel@novell.com>

* ILGenerator.cs: Fix the exception thrown when LocalBuilders are
mixed between ILGenerators.

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

14 years ago2009-07-26 Miguel de Icaza <miguel@novell.com>
Miguel de Icaza [Sun, 26 Jul 2009 23:31:12 +0000 (23:31 -0000)]
2009-07-26  Miguel de Icaza  <miguel@novell.com>

* icall.c (ves_icall_Type_GetNestedType): Throw an exception when
passed invalid arguments.   Fixes another crasher in the
Silverlight test suite.

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

14 years agoAdd new test
Miguel de Icaza [Sun, 26 Jul 2009 22:44:29 +0000 (22:44 -0000)]
Add new test

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

14 years ago2009-07-26 Miguel de Icaza <miguel@novell.com>
Miguel de Icaza [Sun, 26 Jul 2009 22:42:18 +0000 (22:42 -0000)]
2009-07-26  Miguel de Icaza  <miguel@novell.com>

* class.c (mono_class_array_element_size): Return 0 for the size
of the class;  This fixes the crasher exposed by :

typeof (void).MakeArrayType ();

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

14 years agoRevert
Miguel de Icaza [Sun, 26 Jul 2009 22:39:47 +0000 (22:39 -0000)]
Revert

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

14 years agoWrong fix; Revert
Miguel de Icaza [Sun, 26 Jul 2009 22:38:04 +0000 (22:38 -0000)]
Wrong fix;  Revert

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

14 years ago2009-06-10 Gert Driesen <drieseng@users.sourceforge.net>
Miguel de Icaza [Sun, 26 Jul 2009 22:25:39 +0000 (22:25 -0000)]
2009-06-10  Gert Driesen  <drieseng@users.sourceforge.net>

* corlib_test.dll.sources: Added test for InternalVisibleToAttribute.

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

14 years ago2009-07-26 Miguel de Icaza <miguel@novell.com>
Miguel de Icaza [Sun, 26 Jul 2009 22:16:24 +0000 (22:16 -0000)]
2009-07-26  Miguel de Icaza  <miguel@novell.com>

* icall.c (ves_icall_MonoType_GetEvent): Do not dereference method
if there is no method to dereference.    Put all the code that
depends on this inside the if (method) block.

This fixes the crasher exposed by Microsoft's Silvelright CLR test
suite  ./Reflection/Emit/TypeBuilder/TypeBuilderGetEvent.exe

With this change, we pass the test.

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

14 years ago2009-07-26 Miguel de Icaza <miguel@novell.com>
Miguel de Icaza [Sun, 26 Jul 2009 20:56:22 +0000 (20:56 -0000)]
2009-07-26  Miguel de Icaza  <miguel@novell.com>

* reflection.c (mono_reflection_sighelper_get_signature_local):
Only dereference the assembly if it has been set.    Fixes a
crasher exposed by #525328

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

14 years agoSmall fix for trace
Miguel de Icaza [Sun, 26 Jul 2009 20:35:28 +0000 (20:35 -0000)]
Small fix for trace

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

14 years ago* SqlParameter.cs: Improved support for SqlValue and SqlTypes.
Gert Driesen [Sun, 26 Jul 2009 19:53:09 +0000 (19:53 -0000)]
* SqlParameter.cs: Improved support for SqlValue and SqlTypes.
* SqlParameterTest.cs: Added/improved tests for SqlValue, and
SqlTypes. Improved tests for char and char [] type inferrence.

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

14 years agoMake AOT compilation explicit
Raja R Harinath [Sun, 26 Jul 2009 18:46:17 +0000 (18:46 -0000)]
Make AOT compilation explicit

* platforms/darwin.make (PLATFORM_AOT_SUFFIX): New.
* platforms/linux.make (PLATFORM_AOT_SUFFIX): New.
* library.make ($(build_lib)): Don't try to AOT compile the
library in its possibly temporary location.
(DO_AOT): Remove.  Move to ...
($(the_lib)$(PLATFORM_AOT_SUFFIX)): ... here, new rule to
explicitly run the AOT compilation.
(all-local) [ENABLE_AOT]: Build the AOT compiled library as appropriate.

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

14 years ago2009-07-26 Miguel de Icaza <miguel@novell.com>
Miguel de Icaza [Sun, 26 Jul 2009 17:44:33 +0000 (17:44 -0000)]
2009-07-26  Miguel de Icaza  <miguel@novell.com>

* Calendar.cs: Do not add internal abstract methods to the
Calendar class, it prevents derived classes from existing.

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

14 years agoFix sed expression to only print if substitution happened
Raja R Harinath [Sun, 26 Jul 2009 17:39:40 +0000 (17:39 -0000)]
Fix sed expression to only print if substitution happened

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

14 years ago2009-07-26 Gonzalo Paniagua Javier <gonzalo@novell.com>
Gonzalo Paniagua Javier [Sun, 26 Jul 2009 17:08:10 +0000 (17:08 -0000)]
2009-07-26 Gonzalo Paniagua Javier <gonzalo@novell.com>

* StringBuilder.cs: don't throw on null values in ctor(string, int).
Unify another ctor into the main one to account for MaxCapacity.

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

14 years agoFix parallel-build issues with LIBRARY_USE_INTERMEDIATE_FILE
Raja R Harinath [Sun, 26 Jul 2009 16:56:02 +0000 (16:56 -0000)]
Fix parallel-build issues with LIBRARY_USE_INTERMEDIATE_FILE

* library.make (build_lib): Define to a profile dependent
temporary location for LIBRARY_USE_INTERMEDIATE_FILE.
(DO_AOT): New.  Extracted from ...
($(build_lib)): ... here.  Simplify.  Extract code handling
LIBRARY_USE_INTERMEDIATE_FILE into ...
($(the_lib)) [LIBRARY_USE_INTERMEDIATE_FILE]: ... here, a new rule
that takes care of copying the library from its temporary location
to the final location.

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

14 years ago* Makefile ($(build_lib)): Make CYCLIC_DEP_FILES depend on this.
Raja R Harinath [Sun, 26 Jul 2009 16:55:30 +0000 (16:55 -0000)]
* Makefile ($(build_lib)): Make CYCLIC_DEP_FILES depend on this.

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

14 years ago2009-07-26 Gonzalo Paniagua Javier <gonzalo@novell.com>
Gonzalo Paniagua Javier [Sun, 26 Jul 2009 16:27:07 +0000 (16:27 -0000)]
2009-07-26 Gonzalo Paniagua Javier <gonzalo@novell.com>

* StringBuilderTest.cs: new overflow tests.

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

14 years ago2009-07-26 Gonzalo Paniagua Javier <gonzalo@novell.com>
Gonzalo Paniagua Javier [Sun, 26 Jul 2009 16:26:55 +0000 (16:26 -0000)]
2009-07-26 Gonzalo Paniagua Javier <gonzalo@novell.com>

* StringBuilder.cs: small fixes dealing with _maxCapacity.

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

14 years ago2009-07-22 Jb Evain <jbevain@novell.com>
Miguel de Icaza [Sun, 26 Jul 2009 16:05:47 +0000 (16:05 -0000)]
2009-07-22  Jb Evain  <jbevain@novell.com>

* monotouch_System.dll.sources: bring Process in.

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

14 years ago* Makefile.am (version.h): Fix issues when built out of tree.
Raja R Harinath [Sun, 26 Jul 2009 06:47:19 +0000 (06:47 -0000)]
* Makefile.am (version.h): Fix issues when built out of tree.
Remove some redundant 'grep's piped through 'sed's.

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

14 years agoTypo fix
Miguel de Icaza [Sun, 26 Jul 2009 02:01:44 +0000 (02:01 -0000)]
Typo fix

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

14 years agoRevert patch until Rodrigo comes back on Monday
Miguel de Icaza [Sun, 26 Jul 2009 01:33:08 +0000 (01:33 -0000)]
Revert patch until Rodrigo comes back on Monday

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

14 years ago2009-07-24 Veerapuram Varadhan <vvaradhan@novell.com>
Veerapuram Varadhan [Sat, 25 Jul 2009 19:10:42 +0000 (19:10 -0000)]
2009-07-24  Veerapuram Varadhan  <vvaradhan@novell.com>

* DbCommandBuilder.cs (CreateDeleteCommand, CreateUpdateCommand): Add the
nullcheck-param into the respective command's parameter list.  Fixes
build breaks.  Individual provider's CommandBuilder classes from 2.0
profile onwards use the base version of methods to maintain these commands.
(Get*Command): Cleanup code duplication
* DbDataAdapter (Update): Use SourceColumnNullMapping property to handle
nullcheckparams.  Fixes #522624.  Patch by
Gert Driesen  <drieseng@users.sourceforge.net>.

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

14 years agoFix
Miguel de Icaza [Sat, 25 Jul 2009 18:40:34 +0000 (18:40 -0000)]
Fix

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

14 years ago* TdsConnectionPool.cs: Fixed typo in ResetConnectionPool.
Gert Driesen [Sat, 25 Jul 2009 15:17:11 +0000 (15:17 -0000)]
* TdsConnectionPool.cs: Fixed typo in ResetConnectionPool.

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

14 years ago2009-07-25 Mark Probst <mark.probst@gmail.com>
Mark Probst [Sat, 25 Jul 2009 09:24:42 +0000 (09:24 -0000)]
2009-07-25  Mark Probst  <mark.probst@gmail.com>

        * sgen-gc.c, object.h, null-gc.c, boehm-gc.c, marshal.c: Really
        don't perform the store in mono_gc_wbarrier_generic_nostore().
        Remove the second argument (value), which is not needed.

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

14 years ago2009-07-20 Michael Barker <mike@middlesoft.co.uk>
Michael Barker [Sat, 25 Jul 2009 05:34:40 +0000 (05:34 -0000)]
2009-07-20  Michael Barker  <mike@middlesoft.co.uk>

* MessagingProviderLocator.cs: Changed System.Exceptions to
MonoMessagingExceptions.

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

14 years ago2009-07-24 Rodrigo Kumpera <rkumpera@novell.com>
Rodrigo Kumpera [Sat, 25 Jul 2009 00:24:41 +0000 (00:24 -0000)]
2009-07-24 Rodrigo Kumpera  <rkumpera@novell.com>

* EventBuilder.cs: Make some fields internal.

* TypeBuilder.cs: Make events field internal.
Remove some MonoTODOs that are already done.

2009-07-24 Rodrigo Kumpera  <rkumpera@novell.com>

* MonoGenericClass.cs (initialize): Remember the number
of events available at initialization time. This is required as
mcs expect this behavior under compiler context that new events
are not returned for an instance that was inflated before.

* MonoGenericClass.cs: Kill GetEvents_internal and implement it
in terms of managed code.

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

14 years ago2009-07-24 Rodrigo Kumpera <rkumpera@novell.com>
Rodrigo Kumpera [Sat, 25 Jul 2009 00:24:26 +0000 (00:24 -0000)]
2009-07-24 Rodrigo Kumpera  <rkumpera@novell.com>

* MonoGenericClass.cs (GetParentType): Implement using managed code.

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

14 years ago2009-07-24 Rodrigo Kumpera <rkumpera@novell.com>
Rodrigo Kumpera [Sat, 25 Jul 2009 00:24:15 +0000 (00:24 -0000)]
2009-07-24 Rodrigo Kumpera  <rkumpera@novell.com>

* MonoGenericClass.cs: Make all icalls private. Kill GetInterfaces_internal.
Add a workaround for a GetField under compiler context.

2009-07-24 Rodrigo Kumpera  <rkumpera@novell.com>

* TypeBuilder.cs: Make the interfaces field internal.

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

14 years agorevert 138474, causes bug# 525104
Gonzalo Paniagua Javier [Fri, 24 Jul 2009 22:16:13 +0000 (22:16 -0000)]
revert 138474, causes bug# 525104

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

14 years agotry to fix the build
Jb Evain [Fri, 24 Jul 2009 20:52:51 +0000 (20:52 -0000)]
try to fix the build

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

14 years ago2009-07-24 Carlos Alberto Cortez <calberto.cortez@gmail.com>
Carlos Alberto Cortez [Fri, 24 Jul 2009 17:48:18 +0000 (17:48 -0000)]
2009-07-24  Carlos Alberto Cortez <calberto.cortez@gmail.com>

* ToolStripItemCollectionTest.cs: New test for Find.

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

14 years ago2009-07-24 Carlos Alberto Cortez <calberto.cortez@gmail.com>
Carlos Alberto Cortez [Fri, 24 Jul 2009 17:47:05 +0000 (17:47 -0000)]
2009-07-24  Carlos Alberto Cortez <calberto.cortez@gmail.com>

* ToolStripItemCollection.cs: Find should do a case insensitive
search, and should throw an ArgumentNullException if the parameter is
an empty string.

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

14 years agoNew tests.
Marek Safar [Fri, 24 Jul 2009 17:41:53 +0000 (17:41 -0000)]
New tests.

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

14 years ago2009-07-24 Marek Safar <marek.safar@gmail.com>
Marek Safar [Fri, 24 Jul 2009 17:41:26 +0000 (17:41 -0000)]
2009-07-24  Marek Safar  <marek.safar@gmail.com>

* argument.cs, dynamic.cs, expression.cs, class.cs, attribute.cs:
Dynamic arguments.

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

14 years ago2009-07-24 Jb Evain <jbevain@novell.com>
Jb Evain [Fri, 24 Jul 2009 16:50:32 +0000 (16:50 -0000)]
2009-07-24  Jb Evain  <jbevain@novell.com>

* scripts/Makefile.am: generate a dmcs script for the 4.0 compiler
when building the net_4_0 profile.

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