mono.git
14 years ago2009-08-21 Atsushi Enomoto <atsushi@ximian.com>
Atsushi Eno [Fri, 21 Aug 2009 06:35:21 +0000 (06:35 -0000)]
2009-08-21  Atsushi Enomoto  <atsushi@ximian.com>

* ChannelDispatcher.cs, EndpointDispatcher.cs :
  moved some initialization code from ServiceHostBase, to start
  reducing dependencies on ServiceHostBase.

* ServiceHostBase.cs : moved some code to channel/endpoint dispatcher
  to reduce their dependencies on this type.

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

14 years agoChanged max depth of call chains to 128.
Massimiliano Mantione [Fri, 21 Aug 2009 06:06:22 +0000 (06:06 -0000)]
Changed max depth of call chains to 128.

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

14 years agoReport all wrapper types.
Massimiliano Mantione [Fri, 21 Aug 2009 06:06:19 +0000 (06:06 -0000)]
Report all wrapper types.

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

14 years agoWhile debugging file writes, also print the exact number of bytes written to disk.
Massimiliano Mantione [Fri, 21 Aug 2009 06:06:14 +0000 (06:06 -0000)]
While debugging file writes, also print the exact number of bytes written to disk.

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

14 years ago2009-08-21 Atsushi Enomoto <atsushi@ximian.com>
Atsushi Eno [Fri, 21 Aug 2009 03:45:06 +0000 (03:45 -0000)]
2009-08-21  Atsushi Enomoto  <atsushi@ximian.com>

* XmlTextReader.cs : there still was use of bogus
  XmlParserContext.NameTable.

* XmlTextReaderTests.cs : added test for null nametable in parser
  context.

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

14 years ago2009-08-21 Marek Habersack <mhabersack@novell.com>
Marek Habersack [Fri, 21 Aug 2009 00:41:34 +0000 (00:41 -0000)]
2009-08-21  Marek Habersack  <mhabersack@novell.com>

* TreeNodeCollection.cs: {Save,Load}ViewState now store/load the
type of the node, if node is a of a custom type. Fixes bug #475997

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

14 years ago2009-08-20 Rodrigo Kumpera <rkumpera@novell.com>
Rodrigo Kumpera [Fri, 21 Aug 2009 00:01:31 +0000 (00:01 -0000)]
2009-08-20  Rodrigo Kumpera  <rkumpera@novell.com>

* metadata-verify.c (verify_assembly_table): Accept 0x10 as a valid
bit for assembly flags. MS is ok with it but there is no spec anywhere
on its mean

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

14 years ago2009-08-19 Rodrigo Kumpera <rkumpera@novell.com>
Rodrigo Kumpera [Fri, 21 Aug 2009 00:01:21 +0000 (00:01 -0000)]
2009-08-19  Rodrigo Kumpera  <rkumpera@novell.com>

* class.c (mono_class_create_from_typedef): Emit profiler events
in all cases.

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

14 years ago2009-08-21 Zoltan Varga <vargaz@gmail.com>
Zoltan Varga [Thu, 20 Aug 2009 23:22:40 +0000 (23:22 -0000)]
2009-08-21  Zoltan Varga  <vargaz@gmail.com>

* mini-arm.c (mono_arch_get_global_int_regs): Avoid using V5 as a
global register in methods with calls, since the calls can go through
a static rgctx trampoline which doesn't save it.

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

14 years ago* Makefile.am (man_MANS): Add xbuild.1
Ankit Jain [Thu, 20 Aug 2009 22:28:39 +0000 (22:28 -0000)]
* Makefile.am (man_MANS): Add xbuild.1
* xbuild.1: New.

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

14 years ago2009-08-20 Marek Habersack <mhabersack@novell.com>
Marek Habersack [Thu, 20 Aug 2009 21:07:20 +0000 (21:07 -0000)]
2009-08-20  Marek Habersack  <mhabersack@novell.com>

* WebConfigurationManager.cs: GetSection does not use
FindWebConfig to get the virtual path to open configuration for -
doing so would make the configuration system ignore <location>
sections. Fixes bug #482181

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

14 years agoFix for tests I broke yesterday
Marek Habersack [Thu, 20 Aug 2009 21:03:07 +0000 (21:03 -0000)]
Fix for tests I broke yesterday

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

14 years ago2009-08-20 Geoff Norton <gnorton@novell.com>
Geoff Norton [Thu, 20 Aug 2009 20:40:59 +0000 (20:40 -0000)]
2009-08-20  Geoff Norton  <gnorton@novell.com>

* Socket_2_1.cs: Disable ipv6 on monotouch.

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

14 years agoFix bug #531926
Ankit Jain [Thu, 20 Aug 2009 20:04:01 +0000 (20:04 -0000)]
Fix bug #531926
* xbuild/Microsoft.Common.targets: Add $(ConfigurationName)
and $(PlatformName) default values.
Move CoreCompile to a Compile target with corresponding
Before/After hooks and *DependsOn.
Add Pre/PostBuildEvents handling.

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

14 years ago* Engine.cs (EndProjectBuild): Use the @succeeded argument
Ankit Jain [Thu, 20 Aug 2009 20:03:22 +0000 (20:03 -0000)]
* Engine.cs (EndProjectBuild): Use the @succeeded argument
instead of hardcoding 'true'.
* Target.cs (Build): Add an overload to return executeOnErrors
value for the target executed. If building dependencies fails,
and executeOnErrors is true, then execute OnError tasks.
Add the new param to ..
(BuildDependencies): this, ..
(DoBuild): and this.
(GetDependencies): Improve error message and variable name.
(ExecuteOnErrors): Honor OnError tag's Condition also.
* TaskBatchingImpl.cs (Run): Correctly set executeOnErrors param.

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

14 years agoUnbreak the 4.0 build
Marek Habersack [Thu, 20 Aug 2009 19:17:34 +0000 (19:17 -0000)]
Unbreak the 4.0 build

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

14 years ago2009-08-20 Sebastien Pouliot <sebastien@ximian.com>
Sebastien Pouliot [Thu, 20 Aug 2009 18:26:28 +0000 (18:26 -0000)]
2009-08-20  Sebastien Pouliot  <sebastien@ximian.com>

* SslStream.cs : Always use/provide a X509Chain even if this
duplicates some of the old/existing logic of Mono.Security.
This makes it possible to provide a callback using
ServicePointManager.ServerCertificateValidationCallback

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

14 years ago2009-08-20 Sebastien Pouliot <sebastien@ximian.com>
Sebastien Pouliot [Thu, 20 Aug 2009 18:25:50 +0000 (18:25 -0000)]
2009-08-20  Sebastien Pouliot  <sebastien@ximian.com>

* TlsServerCertificate.cs: If no usage information is available then
assume it's ok for SSL since we'll (later) check that the CN contains
a host name (that match the server) and such a certificate wouldn't
be much useful for anything but SSL/TLS. Fix the new stmp.gmail.com
certificate usage failure.

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

14 years ago2009-08-20 Sebastien Pouliot <sebastien@ximian.com>
Sebastien Pouliot [Thu, 20 Aug 2009 16:01:57 +0000 (16:01 -0000)]
2009-08-20  Sebastien Pouliot  <sebastien@ximian.com>

* SmtpClient.cs: Honor ServicePointManager.
ServerCertificateValidationCallback when provided

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

14 years ago2009-08-20 Atsushi Enomoto <atsushi@ximian.com>
Atsushi Eno [Thu, 20 Aug 2009 14:09:09 +0000 (14:09 -0000)]
2009-08-20  Atsushi Enomoto  <atsushi@ximian.com>

* NamedPipeReplyChannel.cs, NamedPipeRequestChannel.cs,
  NamedPipeChannelFactory.cs, NamedPipeChannelListener.cs :
  ongoing works, not working at all yet.

* System.ServiceModel.dll.sources: add more named pipe files.

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

14 years ago2009-08-20 Atsushi Enomoto <atsushi@ximian.com>
Atsushi Eno [Thu, 20 Aug 2009 14:07:11 +0000 (14:07 -0000)]
2009-08-20  Atsushi Enomoto  <atsushi@ximian.com>

* TcpChannelListener.cs, TcpReplyChannel.cs :
  cosmetic cleanup and corrections.

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

14 years ago2009-08-20 Atsushi Enomoto <atsushi@ximian.com>
Atsushi Eno [Thu, 20 Aug 2009 14:05:29 +0000 (14:05 -0000)]
2009-08-20  Atsushi Enomoto  <atsushi@ximian.com>

* TcpChannelFactory.cs : use expected Via uri.
  Remove extra NIE stuff that are implemented in base.

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

14 years agoFix bug #532264.
Ankit Jain [Thu, 20 Aug 2009 13:03:22 +0000 (13:03 -0000)]
Fix bug #532264.

In class/Microsoft.Build.Engine:

* Microsoft.Build.Engine.dll.sources: Add tools/xbuild/SolutionParser.cs

In class/Microsoft.Build.Engine/Microsoft.Build.BuildEngine:
Fix bug #532264
* Project.cs (Load): Add support for loading .sln files.

In tools/xbuild:
Fix bug #532264.
* Main.cs: Dont generate .sln.proj, project.Load can handle
.sln directly now. Show stack trace for exceptions if logger
verbosity is > normal
* SolutionParser.cs (ParseSolution): Add a param for a raise
warning delegate. Use Dictionary.TryGetValue, key might not
be present.

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

14 years ago2009-08-20 Atsushi Enomoto <atsushi@ximian.com>
Atsushi Eno [Thu, 20 Aug 2009 12:41:20 +0000 (12:41 -0000)]
2009-08-20  Atsushi Enomoto  <atsushi@ximian.com>

* TcpDuplexSessionChannel.cs : remove extra code.

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

14 years ago2009-08-20 Atsushi Enomoto <atsushi@ximian.com>
Atsushi Eno [Thu, 20 Aug 2009 11:32:57 +0000 (11:32 -0000)]
2009-08-20  Atsushi Enomoto  <atsushi@ximian.com>

* PeerDuplexChannel.cs : ongoing implementation towards get callback
  replies on peer connector clients (not working as duplex client
  callback is not working yet).

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

14 years ago2009-08-20 Atsushi Enomoto <atsushi@ximian.com>
Atsushi Eno [Thu, 20 Aug 2009 11:30:51 +0000 (11:30 -0000)]
2009-08-20  Atsushi Enomoto  <atsushi@ximian.com>

* ClientRuntimeChannel.cs : implement async OnBegin/EndOpen like close.
  Add FIXME and OnOpen() override on duplex channel.

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

14 years ago2009-08-20 Atsushi Enomoto <atsushi@ximian.com>
Atsushi Eno [Thu, 20 Aug 2009 10:48:11 +0000 (10:48 -0000)]
2009-08-20  Atsushi Enomoto  <atsushi@ximian.com>

* ServiceHostBase.cs : support UnknownMessageReceived (used by
  ChannelDispatcher).

* ChannelDispatcher.cs : handle unknown message in host event.

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

14 years ago2009-08-20 Atsushi Enomoto <atsushi@ximian.com>
Atsushi Eno [Thu, 20 Aug 2009 09:58:31 +0000 (09:58 -0000)]
2009-08-20  Atsushi Enomoto  <atsushi@ximian.com>

* TcpDuplexSessionChannel.cs : in callback client channels,
  OperationContext.IncomingMessageHeaders is null.

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

14 years ago2009-08-20 Atsushi Enomoto <atsushi@ximian.com>
Atsushi Eno [Thu, 20 Aug 2009 09:48:40 +0000 (09:48 -0000)]
2009-08-20  Atsushi Enomoto  <atsushi@ximian.com>

* OperationContext.cs, OperationContextScope.cs :
  implement IsUserContext.

* OperationContextTest.cs : new.

* System.ServiceModel_test.dll.sources: add OperationContextTest.cs.

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

14 years ago2009-08-20 Atsushi Enomoto <atsushi@ximian.com>
Atsushi Eno [Thu, 20 Aug 2009 08:22:37 +0000 (08:22 -0000)]
2009-08-20  Atsushi Enomoto  <atsushi@ximian.com>

* DuplexChannelFactory.cs, ChannelFactory_1.cs: with static factory
  methods, they should close the factory when the channel is closed,
  but nonstatic CreateChannel() could be called more than once, so
  do not always close it.
* ClientRuntimeChannel.cs : take OperationContext.Current into
  consideration (it could be created by users).

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

14 years ago2009-08-20 Atsushi Enomoto <atsushi@ximian.com>
Atsushi Eno [Thu, 20 Aug 2009 08:05:00 +0000 (08:05 -0000)]
2009-08-20  Atsushi Enomoto  <atsushi@ximian.com>

* MessageHeaders.cs : duplicate check was sloppy.

* MessageHeadersTest.cs : added a couple od duplicate tests. Fixed
  non-working test output.

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

14 years ago2009-08-20 Gonzalo Paniagua Javier <gonzalo@novell.com>
Gonzalo Paniagua Javier [Thu, 20 Aug 2009 05:50:42 +0000 (05:50 -0000)]
2009-08-20 Gonzalo Paniagua Javier <gonzalo@novell.com>

* statement.cs: avoid nullref when the return value of GetEnumerator()
does not contain any MoveNext() method.

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

14 years ago* BuildTask.cs (Execute): Use task_logger only after the task
Ankit Jain [Wed, 19 Aug 2009 22:44:52 +0000 (22:44 -0000)]
* BuildTask.cs (Execute): Use task_logger only after the task
has been initialized. Catch and report task loading errors.
* Target.cs (DoBuild): Dont rethrow the exception, and emit
the stacktrace as a low importance message.

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

14 years ago2009-08-18 Marek Habersack <mhabersack@novell.com>
Marek Habersack [Wed, 19 Aug 2009 22:33:52 +0000 (22:33 -0000)]
2009-08-18  Marek Habersack  <mhabersack@novell.com>

* ControlBuilder.cs: Location property makes a copy of assigned
ILocation now.

2009-08-20  Marek Habersack  <mhabersack@novell.com>

* ControlAdapter.cs: check if Control isn't null before using it.
CreateChildControls () must forward call to the control. Fixes bug
#517172

2009-08-20  Marek Habersack  <mhabersack@novell.com>

* ControlAdapterTest.cs: added test for bug #517172

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

14 years ago2009-08-19 Rodrigo Kumpera <rkumpera@novell.com>
Rodrigo Kumpera [Wed, 19 Aug 2009 22:29:57 +0000 (22:29 -0000)]
2009-08-19 Rodrigo Kumpera  <rkumpera@novell.com>

* constraints-load.il: New test for errors related to loading
type and method constraints.

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

14 years ago2009-08-19 Rodrigo Kumpera <rkumpera@novell.com>
Rodrigo Kumpera [Wed, 19 Aug 2009 22:29:47 +0000 (22:29 -0000)]
2009-08-19  Rodrigo Kumpera  <rkumpera@novell.com>

* icall.c (ves_icall_Type_GetMethodsByName): Don't leak loader errors.
Release memory on failure.

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

14 years ago2009-08-19 Rodrigo Kumpera <rkumpera@novell.com>
Rodrigo Kumpera [Wed, 19 Aug 2009 22:29:36 +0000 (22:29 -0000)]
2009-08-19  Rodrigo Kumpera  <rkumpera@novell.com>

* class-internals.h: Add mono_metadata_load_generic_param_constraints_full
to the internal API.

* metadata.c (get_constraints): Use a single-linked table as we don't
traverse it backward. Fail and return FALSE if only of the contraint types
is not found.

* metadata.c (mono_metadata_load_generic_param_constraints_full): Identical
to mono_metadata_load_generic_param_constraints except for having a return value.
This has to be done since the later is part of the public API.

* class.c (mono_class_create_from_typedef): Properly check the loading of constrains
and fail the type.

* loader.c (mono_get_method_from_token): Properly check the loading of constraints
and fail the method.

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

14 years ago2009-08-19 Zoltan Varga <vargaz@gmail.com>
Zoltan Varga [Wed, 19 Aug 2009 21:54:23 +0000 (21:54 -0000)]
2009-08-19  Zoltan Varga  <vargaz@gmail.com>

* mini-arm.c (mono_arch_context_get_int_reg): Handle SP as well.

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

14 years ago2009-08-19 Zoltan Varga <vargaz@gmail.com>
Zoltan Varga [Wed, 19 Aug 2009 21:54:14 +0000 (21:54 -0000)]
2009-08-19  Zoltan Varga  <vargaz@gmail.com>

* mini-arm.c (mono_arch_context_get_int_reg): Handle SP as well.

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

14 years ago* xbuild/Microsoft.Common.targets (ResolveReferences*): Add
Ankit Jain [Wed, 19 Aug 2009 21:21:54 +0000 (21:21 -0000)]
* xbuild/Microsoft.Common.targets (ResolveReferences*): Add
a *DependsOn property and Before/After hooks. Change output
of ResolvedFiles to @(ReferencePath).
* xbuild/Microsoft.CSharp.targets (Csc): Use @(ReferencePath)
for references.

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

14 years agoFinal piece of explicit numeric group support
Raja R Harinath [Wed, 19 Aug 2009 20:43:01 +0000 (20:43 -0000)]
Final piece of explicit numeric group support

* parser.cs (gap): New.
(GetMapping): Return it.
(ResolveReferences): Collect explicit numeric groups which may not
match their indices.
(HandleExplicitNumericGroups): New.  Process the above list to
assign appropriate indices, and compute the correct value of 'gap'.

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

14 years ago* syntax.cs (CapturingGroup.Index): Rename from Number to clarify semantics.
Raja R Harinath [Wed, 19 Aug 2009 20:42:36 +0000 (20:42 -0000)]
* syntax.cs (CapturingGroup.Index): Rename from Number to clarify semantics.

(CapturingGroup.CompareTo): New.
* parser.cs, syntax.cs: Update to changes.

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

14 years agoImplement some more group number/index distinction
Raja R Harinath [Wed, 19 Aug 2009 20:42:13 +0000 (20:42 -0000)]
Implement some more group number/index distinction

* Regex.cs (gap, Gap): New.
(Init, InitNewRegex): Update it.
(GroupNumberFromName): If the 'name' is beyond the gap, it is an
explicit numeric group -- use the name as the group number.
GetGroupIndex): Use a binary search to map a group number to its
index when we know that they don't match.
(GroupNumbers): Use group number, not group index, for explicit
numeric groups.
* Match.cs (.ctor): Use the newly introduce 'Regex.Gap'.

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

14 years agoMinor code re-organization
Raja R Harinath [Wed, 19 Aug 2009 20:41:51 +0000 (20:41 -0000)]
Minor code re-organization

* Regex.cs (group_numbers): New.
(GetGroupNumbers): Move array initialization ...
(GroupNumbers): ... to new on-demand initializer.

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

14 years agoUse IDictionaryEnumerator in a loop where both key and value are used
Raja R Harinath [Wed, 19 Aug 2009 20:41:26 +0000 (20:41 -0000)]
Use IDictionaryEnumerator in a loop where both key and value are used

* Regex.cs (group_names): Rename from _groupNumbersToNameMap.
(GetGroupNamesArray): Use an IDictionaryEnumerator to walk the
mapping, since both the key and value are used in the loop.

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

14 years agoIntroduce 'gap' concept into all the variants of regex
Raja R Harinath [Wed, 19 Aug 2009 20:41:03 +0000 (20:41 -0000)]
Introduce 'gap' concept into all the variants of regex

* arch.cs (IMachineFactory::Gap): New property.
* compiler.cs (InterpreterFactory): Update to changes.
* RxCompiler.cs (RxInterpreterFactory): Likewise.
* JvmReMachineFactory.cs: Likewise.
* parser.cs (GetMapping): Return the 'gap' index.  Move creation
of mapping dictionary ...
* Regex.cs (CreateMachineFactory): ... here.  Update to changes.

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

14 years agoDistinguish between the internal index of a group and group number.
Raja R Harinath [Wed, 19 Aug 2009 20:40:39 +0000 (20:40 -0000)]
Distinguish between the internal index of a group and group number.

* Regex.cs (GetGroupIndex): New.
(GroupNameFromNumber): Use it.
* GroupCollection.cs (.ctor): Introduce 'gap' argument.  It is the
index of the first group whose group number differs from its index.
(Item.get): Likewise.

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

14 years ago2009-08-19 Marek Habersack <mhabersack@novell.com>
Marek Habersack [Wed, 19 Aug 2009 18:37:10 +0000 (18:37 -0000)]
2009-08-19  Marek Habersack  <mhabersack@novell.com>

* Route.cs: GetRouteData adds contents of its DataTokens
dictionary to the returned RouteData.DataTokens dictionary. Fixes
bug #523330. Patch from Dax@daxxfiles.net, thanks!

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

14 years ago2009-08-19 Rodrigo Kumpera <rkumpera@novell.com>
Rodrigo Kumpera [Wed, 19 Aug 2009 17:32:51 +0000 (17:32 -0000)]
2009-08-19  Rodrigo Kumpera  <rkumpera@novell.com>

* metadata-verify.c (is_valid_method_header): Add work-around to deal
with MS broken behavior of emmitting EH section sizes without the
header size added.

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

14 years ago2009-08-19 Rodrigo Kumpera <rkumpera@novell.com>
Rodrigo Kumpera [Wed, 19 Aug 2009 17:32:41 +0000 (17:32 -0000)]
2009-08-19  Rodrigo Kumpera  <rkumpera@novell.com>

* metadata.c (mono_type_create_from_typespec): Don't allocate image
memory until we're sure that we'll need it. This avoids leaking for
broken types or duplicated instantiation.

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

14 years ago2009-08-19 Carlos Alberto Cortez <calberto.cortez@gmail.com>
Carlos Alberto Cortez [Wed, 19 Aug 2009 16:58:21 +0000 (16:58 -0000)]
2009-08-19  Carlos Alberto Cortez <calberto.cortez@gmail.com>

* System.Windows.Forms_test.dll.sources: Add a new test file.

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

14 years ago2009-08-19 Carlos Alberto Cortez <calberto.cortez@gmail.com>
Carlos Alberto Cortez [Wed, 19 Aug 2009 16:56:18 +0000 (16:56 -0000)]
2009-08-19  Carlos Alberto Cortez <calberto.cortez@gmail.com>

* ToolStripDropDownItemTest.cs: New test file.

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

14 years ago2009-08-19 Marek Safar <marek.safar@gmail.com>
Marek Safar [Wed, 19 Aug 2009 16:47:46 +0000 (16:47 -0000)]
2009-08-19  Marek Safar  <marek.safar@gmail.com>

* *.cs: Removed IResolveContext::GenericDeclContainer.

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

14 years ago2009-08-19 Carlos Alberto Cortez <calberto.cortez@gmail.com>
Carlos Alberto Cortez [Wed, 19 Aug 2009 16:37:59 +0000 (16:37 -0000)]
2009-08-19  Carlos Alberto Cortez <calberto.cortez@gmail.com>

* ToolStripDropDown.cs: When assigning the owner item, use its Font as
well.

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

14 years agoNew test.
Marek Safar [Wed, 19 Aug 2009 15:54:08 +0000 (15:54 -0000)]
New test.

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

14 years ago2009-08-19 Marek Safar <marek.safar@gmail.com>
Marek Safar [Wed, 19 Aug 2009 15:53:32 +0000 (15:53 -0000)]
2009-08-19  Marek Safar  <marek.safar@gmail.com>

* *.cs: Removed IResolveContext::GenericDeclContainer.

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

14 years ago2009-08-19 Marek Safar <marek.safar@gmail.com>
Marek Safar [Wed, 19 Aug 2009 14:15:32 +0000 (14:15 -0000)]
2009-08-19  Marek Safar  <marek.safar@gmail.com>

* class.cs, delegate.cs: Changed Delegate to be TypeContainer based.

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

14 years ago2009-08-19 Rodrigo Kumpera <rkumpera@novell.com>
Rodrigo Kumpera [Wed, 19 Aug 2009 13:56:14 +0000 (13:56 -0000)]
2009-08-19  Rodrigo Kumpera  <rkumpera@novell.com>

* metadata-verify.c (is_valid_method_header): Fix stupid formating
mistake.

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

14 years ago2009-08-19 Atsushi Enomoto <atsushi@ximian.com>
Atsushi Eno [Wed, 19 Aug 2009 13:54:11 +0000 (13:54 -0000)]
2009-08-19  Atsushi Enomoto  <atsushi@ximian.com>

* NetNamedPipeBinding.cs, NetNamedPipeSecurity.cs
  NamedPipeTransportSecurity.cs : new files.
* Dummy.cs : remove above ones.

* System.ServiceModel.dll.sources: add named pipe files.

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

14 years ago2009-08-18 Atsushi Enomoto <atsushi@ximian.com>
Atsushi Eno [Wed, 19 Aug 2009 13:34:09 +0000 (13:34 -0000)]
2009-08-18  Atsushi Enomoto  <atsushi@ximian.com>

* net_2_1_raw_System.Core.dll.sources : now it should be created.

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

14 years ago2009-08-19 Rodrigo Kumpera <rkumpera@novell.com>
Rodrigo Kumpera [Wed, 19 Aug 2009 13:21:17 +0000 (13:21 -0000)]
2009-08-19  Rodrigo Kumpera  <rkumpera@novell.com>

* metadata-verify.c (is_valid_method_header): Fix number of clauses
and expected size calculation.

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

14 years agoNew tests.
Marek Safar [Wed, 19 Aug 2009 10:58:38 +0000 (10:58 -0000)]
New tests.

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

14 years ago2009-08-19 Marek Safar <marek.safar@gmail.com>
Marek Safar [Wed, 19 Aug 2009 10:58:20 +0000 (10:58 -0000)]
2009-08-19  Marek Safar  <marek.safar@gmail.com>

* generic.cs, iterators.cs, expression.cs, statement.cs, ecore.cs,
cs-parser.jay, attribute.cs, codegen.cs: Better error reports.

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

14 years ago2009-08-19 Jérémie Laval <jeremie.laval@gmail.com>
Jérémie Laval [Wed, 19 Aug 2009 10:51:42 +0000 (10:51 -0000)]
2009-08-19  Jérémie Laval  <jeremie.laval@gmail.com>

In class/System/System.Collections.Concurrent/:
   * BlockingCollection.cs: Rewrite to use a transaction id
   based approach. Ported to 4.0 API. Fix GetConsumingEnumerable.

In class/System/Test/System.Collections.Concurrent/:
   * BlockingCollectionTests.cs: Track API changes.

In class/System/System.Threading/:
   * Barrier.cs: Fix Barrier to be really thread-safe.
   Remove deadlocking.

In class/corlib/System.Collections.Concurrent/:
   * Partitioner.cs: Fix infinite recursion when calling Create
   with a IList.
   * Partitionners/ListPartitioner.cs: Fix bad splitting for the
   last partition.

In class/corlib/System.Threading.Tasks/:
   * Task.cs: Refactor Wait methods.

In class/corlib/System.Threading/:
   * AtomicBoolean.cs: Turn it into a class
   * CountdownEvent.cs: Work on cached variable. Make sure
   count doesn't go under 0.
   * ParallelLoopState.cs: Initialize correctly AtomicBoolean.

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

14 years agoAdding System.IO.Pipes implementation.
Atsushi Eno [Wed, 19 Aug 2009 10:19:40 +0000 (10:19 -0000)]
Adding System.IO.Pipes implementation.

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

14 years ago1.1 test fixes
Marek Habersack [Tue, 18 Aug 2009 23:56:22 +0000 (23:56 -0000)]
1.1 test fixes

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

14 years ago2009-08-17 Rodrigo Kumpera <rkumpera@novell.com>
Rodrigo Kumpera [Tue, 18 Aug 2009 23:14:43 +0000 (23:14 -0000)]
2009-08-17 Rodrigo Kumpera  <rkumpera@novell.com>

* valid_generic_type_definition_on_boxing_position.cs: Valid encoding of GTD on
box position.

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

14 years ago2009-08-18 Rodrigo Kumpera <rkumpera@novell.com>
Rodrigo Kumpera [Tue, 18 Aug 2009 23:14:32 +0000 (23:14 -0000)]
2009-08-18  Rodrigo Kumpera  <rkumpera@novell.com>

* class.c (mono_class_get_field_idx): Add fixme for broken
behavior for types with multiple fields with the same name.
I would rather fix it, but have no idea on how to generate
such artifact for testing.

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

14 years ago2009-08-18 Rodrigo Kumpera <rkumpera@novell.com>
Rodrigo Kumpera [Tue, 18 Aug 2009 23:14:22 +0000 (23:14 -0000)]
2009-08-18  Rodrigo Kumpera  <rkumpera@novell.com>

* verify.c (verifier_load_field): We should allow references to
fields to be made using the generic type definition. It's up to
the loader system to fail invalid ops.

* verify.c (get_boxable_mono_type): Only uninstantiated GTDs
are invalid.

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

14 years ago2009-08-18 Rodrigo Kumpera <rkumpera@novell.com>
Rodrigo Kumpera [Tue, 18 Aug 2009 23:14:11 +0000 (23:14 -0000)]
2009-08-18  Rodrigo Kumpera  <rkumpera@novell.com>

* class.c: Fix usage of mono_metadata_interfaces_from_typedef_full.

* metadata-internals.h: Fix declaration of
mono_metadata_interfaces_from_typedef_full.

* metadata.c (mono_metadata_interfaces_from_typedef_full): Add extra
heap_alloc_result parameter that controls if the result should be
g_malloc'd.

* metadata.c (mono_metadata_interfaces_from_typedef): Let the resulting
array be g_malloc'd and properly document this public API function.

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

14 years ago2009-08-18 Rodrigo Kumpera <rkumpera@novell.com>
Rodrigo Kumpera [Tue, 18 Aug 2009 23:14:00 +0000 (23:14 -0000)]
2009-08-18  Rodrigo Kumpera  <rkumpera@novell.com>

* cil-coff.h: Fix METHOD_HEADER_FORMAT_MASK to be 2 bits and
remove METHOD_HEADER_TINY_FORMAT1.

* reflection.c: Remove reference to METHOD_HEADER_TINY_FORMAT1.

* metadata.c (mono_metadata_parse_mh_full): Kill tiny format1.

Both spec and MS uses only 2 bits to enumerate the kind of header.
So given that 0x6 and 0x2 are equal under a 2 bits mask, tiny format1
is superfluous, only used for tiny headers with odd code lengths.

This change also make sure that mono doesn't wronly interpret bit 2
of fat header flags, which is currently reserved.

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

14 years ago2009-08-18 Rodrigo Kumpera <rkumpera@novell.com>
Rodrigo Kumpera [Tue, 18 Aug 2009 23:13:48 +0000 (23:13 -0000)]
2009-08-18  Rodrigo Kumpera  <rkumpera@novell.com>

* metadata.c (do_mono_metadata_parse_type): Do error
checking for element types. Don't abort if presented
with a broken type kind.

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

14 years ago2009-08-18 Rodrigo Kumpera <rkumpera@novell.com>
Rodrigo Kumpera [Tue, 18 Aug 2009 23:13:38 +0000 (23:13 -0000)]
2009-08-18  Rodrigo Kumpera  <rkumpera@novell.com>

* metadata.c (mono_metadata_parse_method_signature_full):
Gracefully fail bad vararg signatures.

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

14 years ago2009-08-18 Christian Hergert <chris@dronelabs.com>
Christian Hergert [Tue, 18 Aug 2009 21:45:23 +0000 (21:45 -0000)]
2009-08-18  Christian Hergert  <chris@dronelabs.com>

* wthreads.c: Roll back change for thread-id as it "embraces
and extends" the api by passing word-size for thread id on
s390 and amd64.

Licensed under the MIT X11.

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

14 years agoFix the build.
Zoltan Varga [Tue, 18 Aug 2009 21:04:23 +0000 (21:04 -0000)]
Fix the build.

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

14 years ago2009-08-18 Zoltan Varga <vargaz@gmail.com>
Zoltan Varga [Tue, 18 Aug 2009 20:38:02 +0000 (20:38 -0000)]
2009-08-18  Zoltan Varga  <vargaz@gmail.com>

* aot-compiler.c (add_generic_instances): Fix the net 1.1 build.

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

14 years ago* xbuild/Microsoft.Common.targets (ResolveAssemblyReference):
Ankit Jain [Tue, 18 Aug 2009 20:18:31 +0000 (20:18 -0000)]
* xbuild/Microsoft.Common.targets (ResolveAssemblyReference):
Make SearchPaths get value from a property (AssemblySearchPaths)
to allow it to be overridden.

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

14 years ago2009-08-18 Zoltan Varga <vargaz@gmail.com>
Zoltan Varga [Tue, 18 Aug 2009 18:46:57 +0000 (18:46 -0000)]
2009-08-18  Zoltan Varga  <vargaz@gmail.com>

* MonoGenericClass.cs: Use StringComparison.Ordinal when calling
String.EndsWith ().

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

14 years ago2009-08-18 Zoltan Varga <vargaz@gmail.com>
Zoltan Varga [Tue, 18 Aug 2009 18:43:39 +0000 (18:43 -0000)]
2009-08-18  Zoltan Varga  <vargaz@gmail.com>

* aot-compiler.c (add_generic_instances): Add string[] wrapper methods.
Add GetGenericValueImpl<string>.

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

14 years agoNew test.
Marek Safar [Tue, 18 Aug 2009 17:24:38 +0000 (17:24 -0000)]
New test.

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

14 years ago2009-08-18 Marek Safar <marek.safar@gmail.com>
Marek Safar [Tue, 18 Aug 2009 17:24:20 +0000 (17:24 -0000)]
2009-08-18  Marek Safar  <marek.safar@gmail.com>

* *.cs: Removed boolean fields from EmitContext.

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

14 years agoNew tests.
Marek Safar [Tue, 18 Aug 2009 16:23:47 +0000 (16:23 -0000)]
New tests.

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

14 years ago2009-08-18 Marek Safar <marek.safar@gmail.com>
Marek Safar [Tue, 18 Aug 2009 16:23:08 +0000 (16:23 -0000)]
2009-08-18  Marek Safar  <marek.safar@gmail.com>

* *.cs: Add IResolveContext::IsStatic.

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

14 years ago2009-08-18 Michael Hutchinson <mhutchinson@novell.com>
Michael Hutchinson [Tue, 18 Aug 2009 15:56:06 +0000 (15:56 -0000)]
2009-08-18  Michael Hutchinson  <mhutchinson@novell.com>

* Mono.Cecil/BaseAssemblyResolver.cs: Search GACs specified in the
  MONO_GAC_PREFIX environment variable.

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

14 years ago2009-08-18 Marek Habersack <mhabersack@novell.com>
Marek Habersack [Tue, 18 Aug 2009 13:31:49 +0000 (13:31 -0000)]
2009-08-18  Marek Habersack  <mhabersack@novell.com>

* Makefile (TEST_RESOURCE_FILES): added
Test/mainsoft/NunitWebResources/DuplicateControlsInClientComment.aspx

2009-08-18  Marek Habersack  <mhabersack@novell.com>

* ControlBuilder.cs: Location property makes a copy of assigned
ILocation now.

2009-08-18  Marek Habersack  <mhabersack@novell.com>

* AspParser.cs: added a constructor which creates an internal
parser, nested within the outer one, and adjusts its ILocation
members to report correct locations in the outer parser for better
error reporting. Inner parser also returns the outer's FileText,
if available.

* AspGenerator.cs: restored part of r138474 reverted in r138657,
r138658 and r138659 to fix bug #525104
BuilderLocation creates a copy of Location for its own use (since
the ILocation passed is actually AspParser, the line numbers
change between creating a BuilderLocation and using its Location
member).
The end of tag, expression and client comment regular expressions
now use lazy quantifiers. This fixes bugs #525104 and #517656
Client side comment blocks aren't ignored anymore, they are parsed
just as the other parts of the document. Fixes bug #524358

2009-08-18  Marek Habersack  <mhabersack@novell.com>

* JavaScriptSerializer.cs: read converters from the config only if
explicitly requested.

2009-08-18  Marek Habersack  <mhabersack@novell.com>

* TemplateControlCompilerTest.cs: added test for bug #525104 and
improved test for bug #517656

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

14 years agoIn class/Microsoft.Build.Engine/Microsoft.Build.BuildEngine:
Ankit Jain [Tue, 18 Aug 2009 11:57:52 +0000 (11:57 -0000)]
In class/Microsoft.Build.Engine/Microsoft.Build.BuildEngine:

* BatchingImplBase.cs: Make the item name lookups and metadata be case
insensitive.
* TaskDatabase.cs: Likewise.
* TaskEngine.cs: Make property name looks, case insensitive.

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

* ProjectTest.cs (TestCaseSensitivityOfProjectElements): New.

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

14 years ago* SolutionParser.cs (ParseSolution): Project reference in a project
Ankit Jain [Tue, 18 Aug 2009 11:57:18 +0000 (11:57 -0000)]
* SolutionParser.cs (ParseSolution): Project reference in a project
file, but not found in .sln file is ignored. Also, add dependencies
specified in the .sln file.

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

14 years ago2009-08-18 Christian Hergert <chris@dronelabs.com>
Christian Hergert [Tue, 18 Aug 2009 11:43:35 +0000 (11:43 -0000)]
2009-08-18  Christian Hergert  <chris@dronelabs.com>

* security.c:
* processes.c:
* wthreads.c: Be explicit when we are changing word sizes.

Licensed under the MIT X11.

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

14 years ago2009-08-18 Christian Hergert <chris@dronelabs.com>
Christian Hergert [Tue, 18 Aug 2009 11:39:59 +0000 (11:39 -0000)]
2009-08-18  Christian Hergert  <chris@dronelabs.com>

* strtod.c: Fix warnings for uninitialized variables.

Licensed under the MIT X11.

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

14 years ago2009-08-18 Christian Hergert <chris@dronelabs.com>
Christian Hergert [Tue, 18 Aug 2009 11:38:46 +0000 (11:38 -0000)]
2009-08-18  Christian Hergert  <chris@dronelabs.com>

* method-to-ir.c: Fix warnings for uninitialized variables.

Licensed under the MIT X11.

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

14 years ago2009-08-18 Christian Hergert <chris@dronelabs.com>
Christian Hergert [Tue, 18 Aug 2009 11:37:47 +0000 (11:37 -0000)]
2009-08-18  Christian Hergert  <chris@dronelabs.com>

* profiler.c:
* class.c: Fix warnings for uninitialized variables.

Licensed under the MIT X11.

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

14 years ago2009-08-18 Christian Hergert <chris@dronelabs.com>
Christian Hergert [Tue, 18 Aug 2009 11:34:35 +0000 (11:34 -0000)]
2009-08-18  Christian Hergert  <chris@dronelabs.com>

* mono-profiler-aot.c:
* mono-cov.c: Add missing method declarations.

Licensed under the MIT X11.

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

14 years ago2009-08-18 Christian Hergert <chris@dronelabs.com>
Christian Hergert [Tue, 18 Aug 2009 11:33:26 +0000 (11:33 -0000)]
2009-08-18  Christian Hergert  <chris@dronelabs.com>

* processes.c: Fix method declaration warnings.
* sockets.c: getsockopt() wants socklen_t for size.

Licensed under the MIT X11.

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

14 years ago2009-08-18 Christian Hergert <chris@dronelabs.com>
Christian Hergert [Tue, 18 Aug 2009 11:30:29 +0000 (11:30 -0000)]
2009-08-18  Christian Hergert  <chris@dronelabs.com>

* icall.c: Fix _NSGetEnviron method declaration warning.

Licensed under the MIT X11.

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

14 years ago2009-08-18 Christian Hergert <chris@dronelabs.com>
Christian Hergert [Tue, 18 Aug 2009 11:26:21 +0000 (11:26 -0000)]
2009-08-18  Christian Hergert  <chris@dronelabs.com>

* icall.c:
* reflection.c: Make bitwise checks explicit.

Licensed under the MIT X11.

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

14 years ago2009-08-18 Christian Hergert <chris@dronelabs.com>
Christian Hergert [Tue, 18 Aug 2009 11:22:31 +0000 (11:22 -0000)]
2009-08-18  Christian Hergert  <chris@dronelabs.com>

* mini-exceptions.c:
* aot-compiler.c: Fix printf warnings.

Licensed under the MIT X11.

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

14 years ago2009-08-18 Christian Hergert <chris@dronelabs.com>
Christian Hergert [Tue, 18 Aug 2009 11:22:00 +0000 (11:22 -0000)]
2009-08-18  Christian Hergert  <chris@dronelabs.com>

* monograph.c: Fix printf warnings.

Licensed under the MIT X11.

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

14 years ago2009-08-18 Christian Hergert <chris@dronelabs.com>
Christian Hergert [Tue, 18 Aug 2009 11:21:28 +0000 (11:21 -0000)]
2009-08-18  Christian Hergert  <chris@dronelabs.com>

* mono-proclib.c:
* mono-counters.c: Fix printf warnings.

Licensed under the MIT X11.

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

14 years ago2009-08-18 Christian Hergert <chris@dronelabs.com>
Christian Hergert [Tue, 18 Aug 2009 11:20:22 +0000 (11:20 -0000)]
2009-08-18  Christian Hergert  <chris@dronelabs.com>

* debug-helpers.c:
* marshal.c: Fix printf warnings.

Licensed under the MIT X11.

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

14 years ago2009-08-18 Christian Hergert <chris@dronelabs.com>
Christian Hergert [Tue, 18 Aug 2009 11:19:39 +0000 (11:19 -0000)]
2009-08-18  Christian Hergert  <chris@dronelabs.com>

* dis-cil.c:
* main.c: Fix printf warnings.

Licensed under the MIT X11.

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