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
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
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
Miguel de Icaza [Sun, 26 Jul 2009 22:44:29 +0000 (22:44 -0000)]
Add new test
svn path=/trunk/mcs/; revision=138707
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
Miguel de Icaza [Sun, 26 Jul 2009 22:39:47 +0000 (22:39 -0000)]
Revert
svn path=/trunk/mcs/; revision=138705
Miguel de Icaza [Sun, 26 Jul 2009 22:38:04 +0000 (22:38 -0000)]
Wrong fix; Revert
svn path=/trunk/mcs/; revision=138704
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
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
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
Miguel de Icaza [Sun, 26 Jul 2009 20:35:28 +0000 (20:35 -0000)]
Small fix for trace
svn path=/trunk/mono/; revision=138700
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
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
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
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
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
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
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
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
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
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