mono.git
14 years agoFix Enumerator.Current handling in SortedDictionary<,>
Raja R Harinath [Thu, 30 Jul 2009 19:42:04 +0000 (19:42 -0000)]
Fix Enumerator.Current handling in SortedDictionary<,>

* System.Collections.Generic/RBTree.cs (NodeEnumerator.check_current):
 New helper.
(NodeEnumerator.Current): Don't check invariants.
* SortedDictionary.cs (Enumerator.Current): Likewise.
(ValueCollection.Enumerator.Current): Likewise.
(KeyCollection.Enumerator.Current): Likewise.

* Test/System.Collections.Generic/SortedDictionaryTest.cs
(Enumerator_Current, KeyEnumerator_Current, ValueEnumerator_Current): New tests.

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

14 years ago* List.cs (Enumerator.MoveNext): Simplify.
Raja R Harinath [Thu, 30 Jul 2009 19:04:39 +0000 (19:04 -0000)]
* List.cs (Enumerator.MoveNext): Simplify.

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

14 years ago* Dictionary.cs (Enumerator.MoveNext): Avoid an out-of-bounds access.
Raja R Harinath [Thu, 30 Jul 2009 19:04:14 +0000 (19:04 -0000)]
* Dictionary.cs (Enumerator.MoveNext): Avoid an out-of-bounds access.

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

14 years ago2009-07-30 Zoltan Varga <vargaz@gmail.com>
Zoltan Varga [Thu, 30 Jul 2009 18:36:30 +0000 (18:36 -0000)]
2009-07-30  Zoltan Varga  <vargaz@gmail.com>

* driver.c (main_thread_handler): Check that the assembly loaded
matches the filename when doing AOT.

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

14 years ago* HashSet.cs (Enumerator.IEnumerator.Reset): Check invariants.
Raja R Harinath [Thu, 30 Jul 2009 18:03:20 +0000 (18:03 -0000)]
* HashSet.cs (Enumerator.IEnumerator.Reset): Check invariants.

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

14 years agoFix HashSet<>-related parts of #491858, #517415
Raja R Harinath [Thu, 30 Jul 2009 17:49:41 +0000 (17:49 -0000)]
Fix HashSet<>-related parts of #491858, #517415

* System.Collections.Generic/HashSet.cs (Enumerator.next): Rename from
Enumerator.current and change meaning to be the index of the slot to start
searching on the next iteration.
(Enumerator.current): New.  Contains the current element.
(Enumerator.MoveNext): Update.  Avoid an out-of-bounds access.
(Enumerator.Current): Don't check any invariants.
* Test/System.Collections.Generic/HashSetTest.cs (Enumerate_Current):
New test, including cases from #491858, #517415.

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

14 years ago1.x build fix
Veerapuram Varadhan [Thu, 30 Jul 2009 16:57:47 +0000 (16:57 -0000)]
1.x build fix

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

14 years ago* standalone/Project01/final-outputs.txt: Update to include obj/
Ankit Jain [Thu, 30 Jul 2009 16:17:44 +0000 (16:17 -0000)]
* standalone/Project01/final-outputs.txt: Update to include obj/
dir also, and sort the list.

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

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

* BuildManager.cs: path fixup should work now for /foo running on
/foo. Fixes bug #526563.

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

14 years agoFix bug #484771.
Ankit Jain [Thu, 30 Jul 2009 15:54:58 +0000 (15:54 -0000)]
Fix bug #484771.
* xbuild/Microsoft.Common.targets (ResolveAssemblyReference): Add support
for $(OutDir).

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

14 years agoIn class/Microsoft.Build.Engine/Microsoft.Build.BuildEngine:
Ankit Jain [Thu, 30 Jul 2009 15:20:50 +0000 (15:20 -0000)]
In class/Microsoft.Build.Engine/Microsoft.Build.BuildEngine:
* Engine.cs (.ctor): Set default BinPath. Currently this assumes
v2.0, this will change when multi-targeting lands.

In class/Microsoft.Build.Engine/Test/Microsoft.Build.BuildEngine:

* EngineTest.cs (TestNewProject): Disable. Invalid for
v3.5 profile.

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

14 years agoList<>-relevant fix for #491858 and #517415
Raja R Harinath [Thu, 30 Jul 2009 14:55:24 +0000 (14:55 -0000)]
List<>-relevant fix for #491858 and #517415

* System.Collections.Generic/List.cs (Enumerator.current): New.
(Enumerator.MoveNext): Update it.
(Enumerator.Current): Don't verify any invariants.
(Enumerator.Dispose): Set 'l' to null.
* Test/System.Collections.Generic/ListTest.cs (Enumerator_Current):
New test, includes relevant parts of #491858 and #517415.

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

14 years ago2009-07-30 Veerapuram Varadhan <vvaradhan@novell.com>
Veerapuram Varadhan [Thu, 30 Jul 2009 14:32:52 +0000 (14:32 -0000)]
2009-07-30  Veerapuram Varadhan  <vvaradhan@novell.com>

** Fixes the issue reported by Scott <Scott.Fluto@cmgl.ca> in Mono-list
* SqlParameter.cs (ConvertToFrameworkType): Return String.Empty
in case of zero-length strings.

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

14 years ago2009-07-30 Veerapuram Varadhan <vvaradhan@novell.com>
Veerapuram Varadhan [Thu, 30 Jul 2009 14:32:29 +0000 (14:32 -0000)]
2009-07-30  Veerapuram Varadhan  <vvaradhan@novell.com>

* CustomDataClassGenerator.cs (MakeSafeName): Throw NRE instead of
ArgumentNullException - fixes failing tests.

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

14 years agoAuthor: Jérémie Laval <jeremie.laval@gmail.com>
Jérémie Laval [Thu, 30 Jul 2009 13:56:32 +0000 (13:56 -0000)]
Author: Jérémie Laval <jeremie.laval@gmail.com>
Date:   Thu Jul 30 15:37:21 2009 +0200

First code drop of ParallelFx.

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

14 years agoFix Dictionary<,>-relevant parts of #491858 and #517415
Raja R Harinath [Thu, 30 Jul 2009 13:52:39 +0000 (13:52 -0000)]
Fix Dictionary<,>-relevant parts of #491858 and #517415

* System.Collections.Generic/Dictionary.cs (Enumerator.current): New.
(Enumerator.MoveNext): Update it.
(Enumerator.Current): Don't verify any invariants.
* Test/System.Collections.Generic/DictionaryTest.cs (Enumerator_Current):
New test, includes relevant parts of #491858 and #517415.

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

14 years ago* ErrorUtilities.cs: Set version to Consts.MonoVersion .
Ankit Jain [Thu, 30 Jul 2009 13:47:26 +0000 (13:47 -0000)]
* ErrorUtilities.cs: Set version to Consts.MonoVersion .

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

14 years ago2009-07-30 Veerapuram Varadhan <vvaradhan@novell.com>
Veerapuram Varadhan [Thu, 30 Jul 2009 13:41:31 +0000 (13:41 -0000)]
2009-07-30  Veerapuram Varadhan  <vvaradhan@novell.com>

* SqlDataAdapter.cs (IDbDataAdapter.*Command): Remove over-engineered
checks as the base implementation is changed.

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

14 years agoUpdated.
Marek Safar [Thu, 30 Jul 2009 13:32:08 +0000 (13:32 -0000)]
Updated.

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

14 years ago2009-07-30 Marek Safar <marek.safar@gmail.com>
Marek Safar [Thu, 30 Jul 2009 13:31:41 +0000 (13:31 -0000)]
2009-07-30  Marek Safar  <marek.safar@gmail.com>

* expression.cs: More verifier work.

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

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

* AppDomain.cs: Implemented 2.0 CreateDomain.

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

14 years ago2009-07-30 Marek Safar <marek.safar@gmail.com>
Marek Safar [Thu, 30 Jul 2009 13:23:09 +0000 (13:23 -0000)]
2009-07-30  Marek Safar  <marek.safar@gmail.com>

* ApplicationTrust.cs: Add FullTrustAssemblies.

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

14 years ago2009-07-30 Marek Safar <marek.safar@gmail.com>
Marek Safar [Thu, 30 Jul 2009 13:19:58 +0000 (13:19 -0000)]
2009-07-30  Marek Safar  <marek.safar@gmail.com>

* ReflectionPermission.cs: RestrictedMemberAccess can be set.

* ReflectionPermissionFlag.cs: Add [Obsolete] on NET_4_0.

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

14 years ago* xbuild/Microsoft.Common.targets (ResolveAssemblyReference): Output
Ankit Jain [Thu, 30 Jul 2009 13:12:07 +0000 (13:12 -0000)]
* xbuild/Microsoft.Common.targets (ResolveAssemblyReference): Output
ResolvedFiles to @(ReferencePath), required for IDE integration.

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

14 years ago* ResolvedReference.cs (.ctor): Set 'OriginalItemSpec' and 'ResolvedFrom',
Ankit Jain [Thu, 30 Jul 2009 13:10:54 +0000 (13:10 -0000)]
* ResolvedReference.cs (.ctor): Set 'OriginalItemSpec' and 'ResolvedFrom',
required for IDE integration.
* AssemblyResolver.cs (GetResolvedReference): All the original metadata
should be retained. Track api changes.

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

14 years agoConflict merge between trunk/local tree
Veerapuram Varadhan [Thu, 30 Jul 2009 12:38:11 +0000 (12:38 -0000)]
Conflict merge between trunk/local tree

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

14 years ago2009-07-29 Veerapuram Varadhan <vvaradhan@novell.com>
Veerapuram Varadhan [Thu, 30 Jul 2009 12:37:57 +0000 (12:37 -0000)]
2009-07-29  Veerapuram Varadhan  <vvaradhan@novell.com>

        * SqlParameterTest.cs: Marked SqlChars/SqlBytes tests for SqlValue
        as NotWorking as these types are considered as SqlString/SqlBinary
        respectively.

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

14 years ago2009-07-29 Veerapuram Varadhan <vvaradhan@novell.com>
Veerapuram Varadhan [Thu, 30 Jul 2009 12:37:44 +0000 (12:37 -0000)]
2009-07-29  Veerapuram Varadhan  <vvaradhan@novell.com>

* SqlDataAdapter.cs (IDbDataAdapter.*Command): Revert some of my earlier
changes.  Validate the incoming value as we use bases' implementation now.
Fixes failing tests.

* SqlParameter.cs (GetSqlValue): Simplify handling of SqlValue and SqlTypes.
(SqlTypeToFramworkType): Added support for SqlChars and SqlBytes types.

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

14 years ago2009-07-29 Veerapuram Varadhan <vvaradhan@novell.com>
Veerapuram Varadhan [Thu, 30 Jul 2009 12:37:30 +0000 (12:37 -0000)]
2009-07-29  Veerapuram Varadhan  <vvaradhan@novell.com>

* DbDataAdapter.cs (*Command properties): Don't call IDbDataAdapter.*Command,
as provider specific DbDataAdapters would have its own implementation.

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

14 years ago2009-07-28 Gert Driesen <drieseng@users.sourceforge.net>
Veerapuram Varadhan [Thu, 30 Jul 2009 12:37:15 +0000 (12:37 -0000)]
2009-07-28  Gert Driesen  <drieseng@users.sourceforge.net>

* More clean up of fix for #522624/#507663
* SqlCommandBuilder.cs: Appropriately handle rowUpdatingHandler and
more cleanup for 2.0 profile.

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

14 years ago2009-07-27 Veerapuram Varadhan <vvaradhan@novell.com>
Veerapuram Varadhan [Thu, 30 Jul 2009 12:36:57 +0000 (12:36 -0000)]
2009-07-27  Veerapuram Varadhan  <vvaradhan@novell.com>

* DbCommandBuilder.cs (CreateUpdateCommand): Don't set Nullable
property "Original_*" fields.

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

14 years ago2009-07-26 Veerapuram Varadhan <vvaradhan@novell.com>
Veerapuram Varadhan [Thu, 30 Jul 2009 12:36:37 +0000 (12:36 -0000)]
2009-07-26  Veerapuram Varadhan  <vvaradhan@novell.com>

* SqlParameter.cs (get/set_SqlValue, GetSqlValue): Return the appropriately
SQL-typed param value.  Fixes failing provider tests.

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

14 years ago2009-07-24 Veerapuram Varadhan <vvaradhan@novell.com>
Veerapuram Varadhan [Thu, 30 Jul 2009 12:36:23 +0000 (12:36 -0000)]
2009-07-24  Veerapuram Varadhan  <vvaradhan@novell.com>

* DbCommandBuilder.cs (Create*Command): Fill up the missing pieces from
SqlCommandBuilder version of Create*Commands that fixes the failing tests.

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

14 years agoTest fix.
Veerapuram Varadhan [Thu, 30 Jul 2009 12:36:07 +0000 (12:36 -0000)]
Test fix.

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

14 years agoconflict fix between trunk and local tree
Veerapuram Varadhan [Thu, 30 Jul 2009 12:35:52 +0000 (12:35 -0000)]
conflict fix between trunk and local tree

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

14 years ago2009-07-25 Veerapuram Varadhan <vvaradhan@novell.com>
Veerapuram Varadhan [Thu, 30 Jul 2009 12:35:33 +0000 (12:35 -0000)]
2009-07-25  Veerapuram Varadhan  <vvaradhan@novell.com>

* SqlDataReader.cs: Added new schema fields to the schema row.
Fixes a failing provider test.

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

14 years ago2009-07-25 Veerapuram Varadhan <vvaradhan@novell.com>
Veerapuram Varadhan [Thu, 30 Jul 2009 12:35:12 +0000 (12:35 -0000)]
2009-07-25  Veerapuram Varadhan  <vvaradhan@novell.com>

* Fixes #507663
* SqlCommandBuilder.cs: From 2.0 onwards, use base's
implementation for handling auto-generated commands.
* SqlDataAdapter.cs: -- ditto --

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

14 years ago2009-07-30 Atsushi Enomoto <atsushi@ximian.com>
Atsushi Eno [Thu, 30 Jul 2009 11:40:52 +0000 (11:40 -0000)]
2009-07-30  Atsushi Enomoto  <atsushi@ximian.com>

* PeerDuplexChannel.cs : ongoing refactoring to work both as
  listener and client. Now it creates a listening peer node, and
  creates a set of TCP client channels for each peer in the mesh.

  (EndpointAddress must be fixed to not filter out correct inputs).

* PeerNode.cs : remove TCP listener creator.
  It is now in PeerDuplexChannel.

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

14 years ago2009-07-30 Atsushi Enomoto <atsushi@ximian.com>
Atsushi Eno [Thu, 30 Jul 2009 11:35:23 +0000 (11:35 -0000)]
2009-07-30  Atsushi Enomoto  <atsushi@ximian.com>

* PeerChannelListener.cs : do not accept more than one channel
  which results in lots of listening peer node. Only one is enough.

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

14 years ago2009-07-30 Zoltan Varga <vargaz@gmail.com>
Zoltan Varga [Thu, 30 Jul 2009 11:33:03 +0000 (11:33 -0000)]
2009-07-30  Zoltan Varga  <vargaz@gmail.com>

* icall.c (ves_icall_Type_GetMethodsByName): Use
mono_class_get_vtable_size () instead of accessing klass->vtable_size
directly. Fixes #525338.

* class.c (mono_class_get_vtable_size): New helper function.

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

14 years ago2009-07-30 Zoltan Varga <vargaz@gmail.com>
Zoltan Varga [Thu, 30 Jul 2009 11:20:57 +0000 (11:20 -0000)]
2009-07-30  Zoltan Varga  <vargaz@gmail.com>

* FieldInfoTest.cs: Add a test for #525733.

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

14 years agoMake CreateConcreteTypeWithAbstractMethod testcase compile
Raja R Harinath [Thu, 30 Jul 2009 11:19:56 +0000 (11:19 -0000)]
Make CreateConcreteTypeWithAbstractMethod testcase compile

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

14 years ago2009-07-30 Zoltan Varga <vargaz@gmail.com>
Zoltan Varga [Thu, 30 Jul 2009 11:15:14 +0000 (11:15 -0000)]
2009-07-30  Zoltan Varga  <vargaz@gmail.com>

* FieldInfo.cs: Throw an exception if internal_from_handle_type ()
returns null. Fixes #525733.

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

14 years ago2009-07-30 Zoltan Varga <vargaz@gmail.com>
Zoltan Varga [Thu, 30 Jul 2009 11:12:35 +0000 (11:12 -0000)]
2009-07-30  Zoltan Varga  <vargaz@gmail.com>

* icall.c (ves_icall_System_Reflection_FieldInfo_internal_from_handle_type): Fix the second argument, its a MonoType* not a MonoClass*. Check whenever
the field belongs to the type. Fixes #525733.

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

14 years ago2009-07-30 Mark Probst <mark.probst@gmail.com>
Mark Probst [Thu, 30 Jul 2009 10:29:14 +0000 (10:29 -0000)]
2009-07-30  Mark Probst  <mark.probst@gmail.com>

* mono-sigcontext.h: Include config.h.

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

* sgen-gc.c: When we stop a thread and its stack top is not within
its allocated stack (because it's in an altstack signal handler),
restart it and stop it again, until it is.

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

14 years ago2009-07-30 Mark Probst <mark.probst@gmail.com>
Mark Probst [Thu, 30 Jul 2009 10:03:57 +0000 (10:03 -0000)]
2009-07-30  Mark Probst  <mark.probst@gmail.com>

* mono-sigcontext.h, Makefile.am: Arch-dependent sigcontext
macros, moved from mini.

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

* sgen-gc.c: Take a thread's stack top and registers from the
sigcontext in the suspend signal handler.

* sgen-gc.h, sgen-archdep.h, Makefile.am: Move arch-dependent
stuff to sgen-archdep.h.

* gc.c, gc-internal.h: Remove the get_ip_from_sigctx installer and
caller, because have code in sgen-archdep.h to acquire that data.

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

* mini.c: get_ip_from_sigctx installer has been removed, so don't
call it anymore.

* mini-x86.h, mini-amd64.h, mini-ppc.h: UCONTEXT macros moved (to
utils/mono-sigcontext.h).

* exceptions-amd64.c: Use the UCONTEXT_GREGS macro instead of an
#ifdef.

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

14 years agoAdd a sanity-check to catch cyclic-dependency issues
Raja R Harinath [Thu, 30 Jul 2009 09:07:12 +0000 (09:07 -0000)]
Add a sanity-check to catch cyclic-dependency issues

* build/library.make (SNFLAGS): Remove '-R', since it's specific to the
action required.
($(build_lib)): Use -R flag with $(SN).
($(the_lib)): Add a sanity check to verify that the assembly is signed.
* tools/csharplib/Makefile ($(the_lib)): Update to changes in build/library.make.

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

14 years ago* Makefile ($(build_lib)): Move cyclic dependencies onto this.
Raja R Harinath [Thu, 30 Jul 2009 09:02:30 +0000 (09:02 -0000)]
* Makefile ($(build_lib)): Move cyclic dependencies onto this.

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

14 years ago2009-07-30 Atsushi Enomoto <atsushi@ximian.com>
Atsushi Eno [Thu, 30 Jul 2009 07:49:45 +0000 (07:49 -0000)]
2009-07-30  Atsushi Enomoto  <atsushi@ximian.com>

* DuplexChannelBase.cs : fix wrong loop implementation.

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

14 years ago* ReadLinesFromFile.cs (Execute): Log a warning instead of an error
Ankit Jain [Wed, 29 Jul 2009 23:28:41 +0000 (23:28 -0000)]
* ReadLinesFromFile.cs (Execute): Log a warning instead of an error
if unable to read from the file. Fix a null check. Always return
true.

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

14 years agoIn class/Microsoft.Build.Engine/Microsoft.Build.BuildEngine:
Ankit Jain [Wed, 29 Jul 2009 22:24:32 +0000 (22:24 -0000)]
In class/Microsoft.Build.Engine/Microsoft.Build.BuildEngine:

* Project.cs (InitializeProperties) Set 'MSBuildProjectFile' and
'MSBuildProjectName' properties.

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

* Delete.cs (Execute): Log a message when deleting a file.

In tools/xbuild:

* xbuild/Microsoft.Common.targets: Implement 'Clean' target. Currently
just handles clean for a full build.

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

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

* TypeBuilder.cs (GetConstructors): Throw if
TypeBuilder is incomplete.

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

* MonoGenericClass.cs (initialize): Call TypeBuilder::GetConstructorsInternal
since the public version throws.

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

* TypeBuilderTest: Test for GetConstructors.

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

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

* TypeBuilder.cs (GetInterfaces): Return the expanded
interface list if the type has been created.

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

* TypeBuilderTest: Test for GetInterfaces.

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

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

* TypeBuilder.cs (GetGenericArguments): Returns null for
 non generic TypeBuilders.

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

* TypeBuilderTest: Test for GetGenericArguments.

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

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

* TypeBuilder.cs (GetElementType): Throw always.

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

* TypeBuilderTest.cs: Test for GetElementType.

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

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

* TypeBuilder.cs (GetGenericTypeDefinition): Either
throw or return itself.

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

* TypeBuilderTest.cs: Test for GetGenericTypeDefinition.

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

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

* TypeBuilder.cs (GenericParameterPosition): Return 0
instead of throwing.

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

* TypeBuilderTest.cs: Test for GenericParameterPosition.

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

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

* TypeBuilder.cs (DeclaringMethod): Return null
instead of throwing.

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

* TypeBuilderTest.cs: Test for DeclaringMethod.

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

14 years agohopefully fix the build (from clean)
Sebastien Pouliot [Wed, 29 Jul 2009 20:34:10 +0000 (20:34 -0000)]
hopefully fix the build (from clean)

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

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

* TcpChannelListener.cs : to avoid creating two or more channels
  for one remote endpoint, check existing remote endpoints and
  ignore such connections (it must be handled in different thread
  fired by ChannelDispatcher loop).

* ChannelDispatcher.cs : move Open() inside acceptor lock, so that
  the channel does not have to be fired Receive() before Open().

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

14 years agoKeep track of cexecutable code buffers in the runtime instead of using mono_jit_info_...
Massimiliano Mantione [Wed, 29 Jul 2009 18:43:43 +0000 (18:43 -0000)]
Keep track of cexecutable code buffers in the runtime instead of using mono_jit_info_table_find().

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

14 years agoCall profiler hook to keep track of method code buffers.
Massimiliano Mantione [Wed, 29 Jul 2009 18:43:39 +0000 (18:43 -0000)]
Call profiler hook to keep track of method code buffers.

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

14 years agoCall profiler hooks to keep track of code chunks.
Massimiliano Mantione [Wed, 29 Jul 2009 18:43:29 +0000 (18:43 -0000)]
Call profiler hooks to keep track of code chunks.

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

14 years agoAdded support for keeping track of code chunks and buffers.
Massimiliano Mantione [Wed, 29 Jul 2009 18:43:25 +0000 (18:43 -0000)]
Added support for keeping track of code chunks and buffers.

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

14 years agoFixes build.
Marek Safar [Wed, 29 Jul 2009 17:12:18 +0000 (17:12 -0000)]
Fixes build.

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

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

* nullable.cs: Fixed SRE crash during corlib compilation.

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

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