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
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
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
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
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
Veerapuram Varadhan [Thu, 30 Jul 2009 12:36:07 +0000 (12:36 -0000)]
Test fix.
svn path=/trunk/mcs/; revision=139064
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
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
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
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
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
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
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
Raja R Harinath [Thu, 30 Jul 2009 11:19:56 +0000 (11:19 -0000)]
Make CreateConcreteTypeWithAbstractMethod testcase compile
svn path=/trunk/mcs/; revision=139054
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
Marek Safar [Wed, 29 Jul 2009 17:12:18 +0000 (17:12 -0000)]
Fixes build.
svn path=/trunk/mcs/; revision=138972
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
Miguel de Icaza [Wed, 29 Jul 2009 15:14:19 +0000 (15:14 -0000)]
Update man page
svn path=/trunk/mono/; revision=138964
Marek Safar [Wed, 29 Jul 2009 13:57:36 +0000 (13:57 -0000)]
Add 4.0 profile
svn path=/trunk/mcs/; revision=138960
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
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
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
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
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
Marek Safar [Wed, 29 Jul 2009 12:58:40 +0000 (12:58 -0000)]
Forget to commit.
svn path=/trunk/mcs/; revision=138949
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
Gonzalo Paniagua Javier [Tue, 28 Jul 2009 16:31:24 +0000 (16:31 -0000)]
fix the build
svn path=/trunk/mcs/; revision=138852
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
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
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
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
Marek Safar [Tue, 28 Jul 2009 13:32:27 +0000 (13:32 -0000)]
Updated.
svn path=/trunk/mcs/; revision=138833
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
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
Marek Safar [Tue, 28 Jul 2009 12:03:40 +0000 (12:03 -0000)]
Fixes build.
svn path=/trunk/mcs/; revision=138825
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
Jb Evain [Tue, 28 Jul 2009 08:14:49 +0000 (08:14 -0000)]
fix the build
svn path=/trunk/mcs/; revision=138794
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
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
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
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
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
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
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
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
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
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
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
Marek Safar [Mon, 27 Jul 2009 16:30:53 +0000 (16:30 -0000)]
New test.
svn path=/trunk/mcs/; revision=138748
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
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
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
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
Marek Safar [Mon, 27 Jul 2009 15:14:36 +0000 (15:14 -0000)]
New test.
svn path=/trunk/mcs/; revision=138732
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
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
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
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