mono.git
14 years ago2009-07-23 Gonzalo Paniagua Javier <gonzalo@novell.com>
Gonzalo Paniagua Javier [Thu, 23 Jul 2009 17:45:31 +0000 (17:45 -0000)]
2009-07-23 Gonzalo Paniagua Javier <gonzalo@novell.com>

* BuildManager.cs: precompilation setup failed if the precompiled
virtual directory was / and it was deployed somewhere else.

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

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

* expression.cs, delegate.cs: Moved arguments resolve into their
counterparts expressions. Removed argument resolve from
CollectionElementInitializer.

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

14 years ago* xbuild/Microsoft.Common.targets: Oops, forgot to remove some
Ankit Jain [Thu, 23 Jul 2009 16:11:31 +0000 (16:11 -0000)]
* xbuild/Microsoft.Common.targets: Oops, forgot to remove some
debug stuff.

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

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

* expression.cs, delegate.cs: Moved arguments resolve into their
counterparts expressions.

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

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

* load-exceptions.cs: Add a test for #524498.

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

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

* mini.c (mono_jit_compile_method_with_opt): Add an 'ex' argument to let
the caller handle the exceptions.
(mono_jit_runtime_invoke): Handle exceptions thrown while compiling the
method. Fixes #524498.

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

14 years ago2009-07-23 Sebastien Pouliot <sebastien@ximian.com>
Sebastien Pouliot [Thu, 23 Jul 2009 12:38:49 +0000 (12:38 -0000)]
2009-07-23  Sebastien Pouliot  <sebastien@ximian.com>

* XmlObjectSerializerTest.cs: Add test cases with a generic
dictionary (empty, broken with r138386, and with one element)
that both works on MS.NET and for which Moonlight depends on.

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

14 years agolocation,location,location. Fixes all the tests I broke last night
Gonzalo Paniagua Javier [Thu, 23 Jul 2009 11:53:26 +0000 (11:53 -0000)]
location,location,location. Fixes all the tests I broke last night

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

14 years ago2009-07-23 Marek Habersack <mhabersack@novell.com>
Marek Habersack [Thu, 23 Jul 2009 10:16:54 +0000 (10:16 -0000)]
2009-07-23  Marek Habersack  <mhabersack@novell.com>

* AspGenerator.cs:
Check for duplicate control IDs at the end of parse. Fixes bug
#524358

2009-07-23  Marek Habersack  <mhabersack@novell.com>

* ControlBuilder.cs: added an internal helper property
IsNamingContainer.

2009-07-23  Marek Habersack  <mhabersack@novell.com>

* HttpException.cs: if an exception is processed which refers to
internal "files", don't show the internal name.

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

14 years agoDo not skip comments, just pluck expressions/tags from within them
Marek Habersack [Thu, 23 Jul 2009 10:16:40 +0000 (10:16 -0000)]
Do not skip comments, just pluck expressions/tags from within them

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

14 years ago2009-07-23 Carlos Alberto Cortez <calberto.cortez@gmail.com>
Carlos Alberto Cortez [Thu, 23 Jul 2009 10:07:26 +0000 (10:07 -0000)]
2009-07-23  Carlos Alberto Cortez <calberto.cortez@gmail.com>

* PropertyGrid.cs: Use click handlers for each ToolStripButton instead
of using a global handler for the ToolStrip. This way the buttons can
be recovered and can have its PerformClick method called properly.
Fixes #522454.

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

14 years agoNew test.
Marek Safar [Thu, 23 Jul 2009 09:28:39 +0000 (09:28 -0000)]
New test.

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

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

A fix for bug #523683
* convert.cs, delegate.cs: Use common overload mechanism for method
group conversion check.

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

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

* XmlSchemaDataImporter.cs (HandleDataSourceAnnotation): Don't rely
on the order of elements.

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

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

* XmlSchemaDataImporter.cs: String.IsNullOrEmpty changes

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

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

* TcpChannelListener.cs, TcpReplyChannel.cs, TcpRequestChannel.cs:
  Acquire TcpClient for each request/reply. Now it is fully
  interoperable with .NET.

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

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

* TcpReplyChannel.cs, TcpRequestChannel.cs: it somehow adds/expects
  ReplyTo and MessageId (though it is session-less), and it expects
  EndRecord at weird stage, inconsistent with [MC-NMF]...
  Now .NET service accepts one mono client request.

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

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

* TcpReplyChannel.cs, TcpRequestChannel.cs, TcpBinaryFrameManager.cs:
  Send and receive unsized message terminator at once.
  Send EndRecord mutually. Got one .net client request working.

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

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

* BinaryMessageEncoder.cs : revert the previous dictionary change.
  They are indeed used for non-in-band-dictionary messages.

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

14 years ago2009-07-23 Gonzalo Paniagua Javier <gonzalo@novell.com>
Gonzalo Paniagua Javier [Thu, 23 Jul 2009 05:01:23 +0000 (05:01 -0000)]
2009-07-23 Gonzalo Paniagua Javier <gonzalo@novell.com>

* WebConfigurationManager.cs: avoid possible infinite loop when the
path starts with ~ and 1 file check.

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

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

* LogicalMethodInfo.cs: add CacheDuration property.
* WebServiceHandlerFactory.cs: use CacheDuration.
Fixes bug #524460.

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

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

* TcpDuplexSessionChannel.cs, TcpBinaryFrameManager.cs:
  split out binary frame manager class into separate file.

* System.ServiceModel.dll.sources:
  split out binary frame manager class into separate file.

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

14 years ago2009-07-22 Gonzalo Paniagua Javier <gonzalo@novell.com>
Gonzalo Paniagua Javier [Thu, 23 Jul 2009 02:57:41 +0000 (02:57 -0000)]
2009-07-22 Gonzalo Paniagua Javier <gonzalo@novell.com>

* WebHeaderCollectionTest.cs: test for allowed characters in headers.

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

14 years ago2009-07-22 Gonzalo Paniagua Javier <gonzalo@novell.com>
Gonzalo Paniagua Javier [Thu, 23 Jul 2009 02:57:21 +0000 (02:57 -0000)]
2009-07-22 Gonzalo Paniagua Javier <gonzalo@novell.com>

* WebHeaderCollection.cs: check the validity of the characters in the
header names.

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

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

* MethodOnTypeBuilderInst.cs: Implement ToString to help debugging.

* TypeBuilder.cs: Make the properties field internal.

* PropertyOnTypeBuilderInst.cs: New type implementing a property of an
inflated TypeBuilder.

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

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

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

14 years ago2009-07-22 Geoff Norton <gnorton@novell.com>
Geoff Norton [Thu, 23 Jul 2009 01:28:20 +0000 (01:28 -0000)]
2009-07-22  Geoff Norton  <gnorton@novell.com>

        * mini-exceptions.c: Fix build on ia64.

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

14 years ago2009-07-20 Geoff Norton <gnorton@novell.com>
Geoff Norton [Thu, 23 Jul 2009 01:28:16 +0000 (01:28 -0000)]
2009-07-20  Geoff Norton  <gnorton@novell.com>

* mini-x86.h: Fix the x86 version guards to use Apple's
properly defined macros.

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

14 years ago2009-07-20 Geoff Norton <gnorton@novell.com>
Geoff Norton [Thu, 23 Jul 2009 01:28:12 +0000 (01:28 -0000)]
2009-07-20  Geoff Norton  <gnorton@novell.com>

        * darwin_stop_world.c: Fix the x86 version guards to use Apple's
        properly defined macros.

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

14 years agoUnbreak the build
Marek Habersack [Wed, 22 Jul 2009 23:46:36 +0000 (23:46 -0000)]
Unbreak the build

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

14 years ago2009-07-23 Marek Habersack <mhabersack@novell.com>
Marek Habersack [Wed, 22 Jul 2009 23:41:32 +0000 (23:41 -0000)]
2009-07-23  Marek Habersack  <mhabersack@novell.com>

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

2009-07-23  Marek Habersack  <mhabersack@novell.com>

* AspGenerator.cs: TextParsed takes a different approach to
post-processing text blocks now. It applies, in order, client-side
comment, tag and expression regular expressions to the text
and splits it into blocks of different types. Then the blocks are
processed accordingly.

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

14 years agoImplement the 2.0 IsRestricted and add tests
Gonzalo Paniagua Javier [Wed, 22 Jul 2009 23:29:10 +0000 (23:29 -0000)]
Implement the 2.0 IsRestricted and add tests

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

14 years agoFix bug #511370.
Ankit Jain [Wed, 22 Jul 2009 23:28:36 +0000 (23:28 -0000)]
Fix bug #511370.
* Project.cs (ExtensionsPath): New.
(InitializeProperties): Set "MSBuildExtensionsPath" property.

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

14 years ago* Makefile: Create a lib/mono/xbuild directory for xbuild
Ankit Jain [Wed, 22 Jul 2009 23:28:12 +0000 (23:28 -0000)]
* Makefile: Create a lib/mono/xbuild directory for xbuild
extensions.

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

14 years ago2.0
Gonzalo Paniagua Javier [Wed, 22 Jul 2009 21:52:26 +0000 (21:52 -0000)]
2.0

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

14 years agoImplement AssignProjectConfiguration task.
Ankit Jain [Wed, 22 Jul 2009 21:51:58 +0000 (21:51 -0000)]
Implement AssignProjectConfiguration task.

In class/Microsoft.Build.Tasks:

* Microsoft.Build.Tasks_test.dll.sources: Added
AssignProjectConfigurationTest.cs .

* Microsoft.Build.Tasks.dll.sources: Added
In class/Microsoft.Build.Tasks/Microsoft.Build.Tasks:

* AssignProjectConfiguration.cs (Execute): Implement.

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

* AssignProjectConfigurationTest.cs: New.

In tools/xbuild:

* xbuild/Microsoft.Common.targets (AssignProjectConfigurations): New.
(ResolveProjectReferences): Add dependency on AssignProjectConfigurations
target. Also, set the config and platform properties for the msbuild task
being invoked.
* xbuild/Microsoft.Common.tasks: Add AssignProjectConfiguration .

In tools/xbuild/tests:

* standalone/Project01: Change config mappings a bit to mix them up,
like Debug->Release etc. Update .proj file and final-outputs.txt.

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

14 years ago2009-07-22 Gonzalo Paniagua Javier <gonzalo@novell.com>
Gonzalo Paniagua Javier [Wed, 22 Jul 2009 19:58:51 +0000 (19:58 -0000)]
2009-07-22 Gonzalo Paniagua Javier <gonzalo@novell.com>

* WebConnectionStream.cs: when sending a 0-length POST, ignore further
writes instead of throwing.
Fixes bug #524049.

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

14 years ago2009-07-23 Veerapuram Varadhan <vvaradhan@novell.com>
Veerapuram Varadhan [Wed, 22 Jul 2009 18:52:56 +0000 (18:52 -0000)]
2009-07-23  Veerapuram Varadhan  <vvaradhan@novell.com>

* XmlSchemaDataImporter.cs: Added null checks.

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

14 years ago2009-07-22 Veerapuram Varadhan <vvaradhan@novell.com>
Veerapuram Varadhan [Wed, 22 Jul 2009 18:27:00 +0000 (18:27 -0000)]
2009-07-22  Veerapuram Varadhan  <vvaradhan@novell.com>

* XmlSchemaDataImporter.cs:
CustomDataClassGenerator.cs: Silence off CWLs.

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

14 years ago* Implementation of System.Data.Design.TypedDataSetGenerator::Generate methods that...
Veerapuram Varadhan [Wed, 22 Jul 2009 18:26:17 +0000 (18:26 -0000)]
* Implementation of System.Data.Design.TypedDataSetGenerator::Generate methods that generate TableAdapter code

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

14 years ago* Use System.Data.Design version of TypedDataSetGenerator instead of from System...
Veerapuram Varadhan [Wed, 22 Jul 2009 18:25:42 +0000 (18:25 -0000)]
* Use System.Data.Design version of TypedDataSetGenerator instead of from System.Data

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

14 years ago* Implemented generation of code for TableAdapters
Veerapuram Varadhan [Wed, 22 Jul 2009 18:24:58 +0000 (18:24 -0000)]
* Implemented generation of code for TableAdapters

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

14 years ago* Utility changes to convert between DbType/SqlDbType/System.Type
Veerapuram Varadhan [Wed, 22 Jul 2009 18:24:13 +0000 (18:24 -0000)]
* Utility changes to convert between DbType/SqlDbType/System.Type

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

14 years ago* Handle <TableAdapter ...> tags in XSD
Veerapuram Varadhan [Wed, 22 Jul 2009 18:23:24 +0000 (18:23 -0000)]
* Handle <TableAdapter ...> tags in XSD

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

14 years agoNew test.
Marek Safar [Wed, 22 Jul 2009 14:26:28 +0000 (14:26 -0000)]
New test.

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

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

A fix for bug #523899
* generics.cs: Exact type inference with other bound types.

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

14 years ago2009-07-22 Jb Evain <jbevain@novell.com>
Jb Evain [Wed, 22 Jul 2009 14:20:44 +0000 (14:20 -0000)]
2009-07-22  Jb Evain  <jbevain@novell.com>

* monotouch_System.dll.sources: bring Process in.

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

14 years ago2009-07-22 Jb Evain <jbevain@novell.com>
Jb Evain [Wed, 22 Jul 2009 14:20:27 +0000 (14:20 -0000)]
2009-07-22  Jb Evain  <jbevain@novell.com>

* ExpandableObjectConverter.cs: no method to override for a NET_2_1 profile.

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

14 years ago2009-07-22 Jb Evain <jbevain@novell.com>
Jb Evain [Wed, 22 Jul 2009 14:19:51 +0000 (14:19 -0000)]
2009-07-22  Jb Evain  <jbevain@novell.com>

* ProcessStartInfo.cs: force no-verb on MONOTOUCH.

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

14 years ago2009-07-22 Mark Probst <mark.probst@gmail.com>
Mark Probst [Wed, 22 Jul 2009 14:07:21 +0000 (14:07 -0000)]
2009-07-22  Mark Probst  <mark.probst@gmail.com>

        * sgen-gc.c: Align array bounds calculation to mono_array_size_t
        so that big arrays are handled correctly.  Always use
        safe_object_get_size() to calculate array object sizes, which
        takes bounds into account.

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

14 years ago2009-07-22 Mark Probst <mark.probst@gmail.com>
Mark Probst [Wed, 22 Jul 2009 12:46:40 +0000 (12:46 -0000)]
2009-07-22  Mark Probst  <mark.probst@gmail.com>

        * sgen-gc.c (mono_gc_wbarrier_value_copy): Make sure the class's
        GC descriptor is computed before we use it.

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

14 years ago2009-07-22 Mark Probst <mark.probst@gmail.com>
Mark Probst [Wed, 22 Jul 2009 12:37:53 +0000 (12:37 -0000)]
2009-07-22  Mark Probst  <mark.probst@gmail.com>

        * icall.c (ves_icall_System_Array_SetGenericValueImpl): Use a
        write barrier if necessary.

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

14 years ago2009-07-22 Atsushi Enomoto <atsushi@ximian.com>
Atsushi Eno [Wed, 22 Jul 2009 12:33:56 +0000 (12:33 -0000)]
2009-07-22  Atsushi Enomoto  <atsushi@ximian.com>

* XmlNamespaceManager.cs : Adding prefix "xml" seems to be allowed
  as long as the URI is correct. Fixed bug #514015.

* XmlNamespaceManagerTests.cs : add test for bug #514015.

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

14 years ago2009-07-22 Mark Probst <mark.probst@gmail.com>
Mark Probst [Wed, 22 Jul 2009 12:22:33 +0000 (12:22 -0000)]
2009-07-22  Mark Probst  <mark.probst@gmail.com>

        * icall-def.h, icall.c, thread-types.h: New separate icall for
        VolatileWrite(object&,object) that uses a write barrier.

        * console-unix.c, file-io.c, icall.c, threads.c: Use write
        barriers in icalls which write to "ref" or "out" arguments.

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

        * mini-exceptions.c (ves_icall_get_frame_info): Use write
        barriers.

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

14 years ago2009-07-22 Atsushi Enomoto <atsushi@ximian.com>
Atsushi Eno [Wed, 22 Jul 2009 12:10:53 +0000 (12:10 -0000)]
2009-07-22  Atsushi Enomoto  <atsushi@ximian.com>

* XmlDictionaryReader.cs : ReadValueAsBase64(byte[],int,int) is only
  in SL2.

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

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

* SerializationMap.cs : for empty element, do not try to consume
  children. Fixed bug #524086.
  For enum, it is always error when the enum is not flags, and
  is always default value for flags.

* XmlObjectSerializerTest.cs :
  Add test for bug #524086 by Rolf Bjarne Kvinge.
  Add enum flags test, which should not raise an error.

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

14 years agoDon't complain when the same type is implemented by the
Raja R Harinath [Wed, 22 Jul 2009 11:10:49 +0000 (11:10 -0000)]
Don't complain when the same type is implemented by the
output assembly as well as multiple referenced assemblies

* namespace.cs (RootNamespace.LookupTypeReflection): Add
'must_be_unique' flag.
(GlobalRootNamespace): Update to changes.
(Namespace.LookupType): Pass 'must_be_unique' only when we don't
already have a type in hand.

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

14 years ago2009-07-22 Atsushi Enomoto <atsushi@ximian.com>
Atsushi Eno [Wed, 22 Jul 2009 11:05:00 +0000 (11:05 -0000)]
2009-07-22  Atsushi Enomoto  <atsushi@ximian.com>

* XPathNavigator.cs : name test did not handle String.Empty cases
  for name and ns (i.e. no filter). Fixed bug #515136.

* XPathNavigatorTests.cs : added test for bug #515136.

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

14 years agoNew test & update.
Marek Safar [Wed, 22 Jul 2009 10:45:34 +0000 (10:45 -0000)]
New test & update.

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

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

* expression.cs: More verifier instrumentation.

* statement.cs: Do proper throw expression conversion.

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

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

A fix for bug #522789
* expression.cs: Mutate invocation return type.

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

14 years ago* xbuild/Microsoft.VisualBasic.targets (Vbc.References): Remove
Ankit Jain [Wed, 22 Jul 2009 08:39:12 +0000 (08:39 -0000)]
* xbuild/Microsoft.VisualBasic.targets (Vbc.References): Remove
"@(ChildProjectReferences)" as it gets resolved earlier
and is part of @(ResolvedFiles).

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

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

* XmlInputStream.cs : cosmetic exception type change. Patch by
  Hib Eris. Fixed bug #523971.

* XmlTextReaderTests.cs : added test for bug #523971 by Hib Eris.

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

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

* XmlFormatterDeserializer.cs : when reading empty primitive value,
  make sure to consume the reader. Fixed bug #524083.

* XmlObjectSerializerTest.cs : add test for bug #524083, by
  Rolf Bjarne Kvinge.

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

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

* SerializationMap.cs : call MoveToContent() before examining
  the reader node type.

* XmlObjectSerializerTest.cs : now we can make xml indented as
  originally done in #524088.

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

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

* KnownTypeCollection.cs : Find KnownTypeAttributes in base types
  too. Patch by Rolf Bjarne Kvinge. Fixed bug #524088.

* XmlObjectSerializerTest.cs : added test for bug #524088 by
  Rolf Bjarne Kvinge (a bit modified).

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

14 years ago2009-07-21 Atsushi Enomoto <atsushi@ximian.com>
Atsushi Eno [Wed, 22 Jul 2009 06:23:35 +0000 (06:23 -0000)]
2009-07-21  Atsushi Enomoto  <atsushi@ximian.com>

* XNodeReader.cs : do not possibly return null as the Prefix value.
  Fixed bug #524084.

* XNodeReaderTest.cs : test Prefix on default namespace.

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

14 years ago2009-07-21 Atsushi Enomoto <atsushi@ximian.com>
Atsushi Eno [Wed, 22 Jul 2009 06:13:07 +0000 (06:13 -0000)]
2009-07-21  Atsushi Enomoto  <atsushi@ximian.com>

* XNodeReader.cs : a couple of properties did not return correct
  value for EOF state.

* XNodeReaderTest.cs : test member behaviors at EOF state.

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

14 years ago2009-07-21 Atsushi Enomoto <atsushi@ximian.com>
Atsushi Eno [Wed, 22 Jul 2009 06:02:13 +0000 (06:02 -0000)]
2009-07-21  Atsushi Enomoto  <atsushi@ximian.com>

* XNodeReader.cs : do not return element's IsEmpty on attributes.

* XNodeReaderTest.cs : on attributes IsEmptyElement is false.

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

14 years agoFix the build
Marek Habersack [Tue, 21 Jul 2009 22:42:27 +0000 (22:42 -0000)]
Fix the build

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

14 years agoFix bug #517974.
Ankit Jain [Tue, 21 Jul 2009 20:20:26 +0000 (20:20 -0000)]
Fix bug #517974.
In class/Microsoft.Build.Tasks:

* Makefile: Add System.Core .

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

Fix bug #517974.
* ResolvedReference.cs (AssemblyName): New.
(IsPrimary): New. Primary (eg. specified in the project file) or
dependent reference.
(FoundInSearchPathAsString): New.
* AssemblyResolver.cs (GetResolvedReference): Add a 'assembly name'
param for the new field in ResolvedReference.
(AssemblyNamesCompatible): Fix the check for public key token.
Track api changes.

* ResolveAssemblyReference.cs: Keep track of resolved assemblies,
prevent duplicate references and other files.
Process dependencies after resolving all the primary references.
Search for dependencies in parent assembly's dir first and then
the specified search paths.
Detect assembly version conflicts and try to resolve.
Improve logged messages.
(PrimaryReference): New.
(ResolveAssemblyReferenceHelper.AddUniqueFile): New extension method.

In tools/xbuild:

* xbuild.Microsoft.CSharp.targets (Csc.References): Remove
"@(ChildProjectReferences)" as it gets resolved earlier
and is part of @(ResolvedFiles).

In tools/xbuild/tests:

* standalone/Project01: Add references to two "external" assemblies
with dependencies.
* standalone/Project01/Program.cs: Add references in code to the new
assemblies, to ensure that they are required for compilation.

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

14 years ago* Container.cs: Replaced for loop with for loop.
Gert Driesen [Tue, 21 Jul 2009 19:12:18 +0000 (19:12 -0000)]
* Container.cs: Replaced for loop with for loop.
[Fixes bug #522474]
* ContainerTest.cs: Added test for bug #522474.

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

14 years ago2009-07-21 Zoltan Varga <vargaz@gmail.com>
Zoltan Varga [Tue, 21 Jul 2009 18:49:47 +0000 (18:49 -0000)]
2009-07-21  Zoltan Varga  <vargaz@gmail.com>

* mini-arm.c (mono_arch_emit_prolog): Fix thread attaching in aot
code.

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

14 years ago2009-07-21 Jb Evain <jbevain@novell.com>
Jb Evain [Tue, 21 Jul 2009 16:23:42 +0000 (16:23 -0000)]
2009-07-21  Jb Evain  <jbevain@novell.com>

* ThreadPool.cs: avoid an unecessary method call when not running
in moonlight.

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

14 years ago2009-07-21 Gonzalo Paniagua Javier <gonzalo@novell.com>
Gonzalo Paniagua Javier [Tue, 21 Jul 2009 16:23:03 +0000 (16:23 -0000)]
2009-07-21 Gonzalo Paniagua Javier <gonzalo@novell.com>

* zlib-helper.c: use glib for malloc/free.

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

14 years ago2009-07-21 Jb Evain <jbevain@novell.com>
Jb Evain [Tue, 21 Jul 2009 16:04:23 +0000 (16:04 -0000)]
2009-07-21  Jb Evain  <jbevain@novell.com>

* configure.in: add a --with-monotouch option.
* runtime/Makefile.am: use it to trigger the mcs monotouch build.

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

14 years ago- Fix the msvc build for the zlib changes in r138254.
Jonathan Pobst [Tue, 21 Jul 2009 15:50:03 +0000 (15:50 -0000)]
- Fix the msvc build for the zlib changes in r138254.

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

14 years agoforgot one entry
Jb Evain [Tue, 21 Jul 2009 15:32:10 +0000 (15:32 -0000)]
forgot one entry

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

14 years agomoved
Gonzalo Paniagua Javier [Tue, 21 Jul 2009 15:31:41 +0000 (15:31 -0000)]
moved

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

14 years agodo not nullify deflateStream
Gonzalo Paniagua Javier [Tue, 21 Jul 2009 15:28:56 +0000 (15:28 -0000)]
do not nullify deflateStream

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

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

* TcpReplyChannel.cs : new reply channel implementation.
* TcpChannelListener.cs : use above for streamed reply channel.
* TcpDuplexSessionChannel.cs : more streaming mode support.
* TcpRequestChannel.cs : a couple of updates to get it working
  with the reply channel above. Still some issues on .NET interop.

* System.ServiceModel.dll.sources: add TcpReplyChannel.

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

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

* RequestContext.cs : added internal derived class that implements
  some members.

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

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

* BinaryMessageEncoder.cs : for non-session reader and writer, do not
  use dictionary.

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

14 years ago2009-07-21 Jb Evain <jbevain@novell.com>
Jb Evain [Tue, 21 Jul 2009 13:56:23 +0000 (13:56 -0000)]
2009-07-21  Jb Evain  <jbevain@novell.com>

* Makefile: specify bootstrap and SUBDIRS for the monotouch profile.

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

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

* DataContractSerializer.cs : it does not write dictionary string
  when it was not created with it.

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

14 years ago2009-07-21 Zoltan Varga <vargaz@gmail.com>
Zoltan Varga [Tue, 21 Jul 2009 12:28:09 +0000 (12:28 -0000)]
2009-07-21  Zoltan Varga  <vargaz@gmail.com>

* marshal.c (mono_marshal_get_runtime_invoke): Do the work done in the exception
handler in a separate icall, to reduce the size of the wrappers.

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

14 years ago2009-07-21 Marek Habersack <mhabersack@novell.com>
Marek Habersack [Tue, 21 Jul 2009 11:24:45 +0000 (11:24 -0000)]
2009-07-21  Marek Habersack  <mhabersack@novell.com>

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

2009-07-21  Marek Habersack  <mhabersack@novell.com>

* AspTokenizer.cs: in put_back, store inTag value as well.

* AspParser.cs: correctly parse code like "<asp:tag> < </asp:tag>"

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

14 years ago2009-07-21 Gonzalo Paniagua Javier <gonzalo@novell.com>
Gonzalo Paniagua Javier [Tue, 21 Jul 2009 10:36:47 +0000 (10:36 -0000)]
2009-07-21 Gonzalo Paniagua Javier <gonzalo@novell.com>

* zlib-helper.c: don't try to finish the z_stream if it has not been
used. This fixes all the tests after the latest change.

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

14 years agofree internal buffer
Gonzalo Paniagua Javier [Tue, 21 Jul 2009 05:42:20 +0000 (05:42 -0000)]
free internal buffer

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

14 years ago2009-07-20 Gonzalo Paniagua Javier <gonzalo@novell.com>
Gonzalo Paniagua Javier [Tue, 21 Jul 2009 02:25:00 +0000 (02:25 -0000)]
2009-07-20 Gonzalo Paniagua Javier <gonzalo@novell.com>

* Makefile.am: replaced zlib_macros.c with zlib-helper.c
* zlib_macros.c: Removed file.
* zlib-helper.c: new interface for DeflateStream. Flush() actually
does something.

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

14 years ago2009-07-20 Gonzalo Paniagua Javier <gonzalo@novell.com>
Gonzalo Paniagua Javier [Tue, 21 Jul 2009 02:24:53 +0000 (02:24 -0000)]
2009-07-20 Gonzalo Paniagua Javier <gonzalo@novell.com>

* GzipStream.cs: fixed Dispose (bool).
* DeflateStream.cs: simplify the interface with unmanaged code, big
reduction of managaed<->unmanaged round trips.
Also fixes bug #523418.

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

14 years ago * X11Dnd.cs: Implement support for XdndActionList, so we can get the
Carlos Alberto Cortez [Tue, 21 Jul 2009 02:11:39 +0000 (02:11 -0000)]
* X11Dnd.cs: Implement support for XdndActionList, so we can get the
complete list of the supported actions in the drag source, and use the
action passed in the Position message only as a fallback. This will
help us with dnd operations with non winforms apps.
Fixes #402158.

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

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

14 years ago2009-07-20 Sebastien Pouliot <sebastien@ximian.com>
Sebastien Pouliot [Tue, 21 Jul 2009 00:55:39 +0000 (00:55 -0000)]
2009-07-20  Sebastien Pouliot  <sebastien@ximian.com>

* Aes.cs: Use the fully qualified name since this is not a type known
in the default corlib (2.0 or 1.x).

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

14 years ago2009-07-20 Carlos Alberto Cortez <calberto.cortez@gmail.com>
Carlos Alberto Cortez [Tue, 21 Jul 2009 00:32:03 +0000 (00:32 -0000)]
2009-07-20  Carlos Alberto Cortez <calberto.cortez@gmail.com>

* ToolStripItemCollection.cs: Use a List<> instead of an ArrayList in
Find. This should fix the exception we were getting when trying to
convert the ArrayList to an array of objects (since we were losing the
type parameter).
Fixes #519944.

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

14 years ago2009-07-21 Marek Habersack <mhabersack@novell.com>
Marek Habersack [Mon, 20 Jul 2009 23:32:36 +0000 (23:32 -0000)]
2009-07-21  Marek Habersack  <mhabersack@novell.com>

* BuildManager.cs: GetReferencedAssemblies unconditionally
includes all assemblies from bin/ for precompiled sites. Fixes bug
#502016

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

14 years ago2009-07-21 Marek Habersack <mhabersack@novell.com>
Marek Habersack [Mon, 20 Jul 2009 23:32:03 +0000 (23:32 -0000)]
2009-07-21  Marek Habersack  <mhabersack@novell.com>

* SimpleWebHandlerParser.cs: make sure to ignore invalid bin/
assemblies in AddAssembliesInBin and GetTypeFromBin.

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

14 years ago2009-07-20 Zoltan Varga <vargaz@gmail.com>
Zoltan Varga [Mon, 20 Jul 2009 20:45:55 +0000 (20:45 -0000)]
2009-07-20  Zoltan Varga  <vargaz@gmail.com>

* basic-simd.cs (Main): Pass args to the test driver.

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

14 years ago2009-07-20 Zoltan Varga <vargaz@gmail.com>
Zoltan Varga [Mon, 20 Jul 2009 20:45:49 +0000 (20:45 -0000)]
2009-07-20  Zoltan Varga  <vargaz@gmail.com>

* amd64/amd64-codegen.h (amd64_sse_pminud_reg_reg): Fix the encoding
of this instruction.

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

14 years ago2009-07-20 Michael Barker <mike@middlesoft.co.uk>
Michael Barker [Mon, 20 Jul 2009 20:38:23 +0000 (20:38 -0000)]
2009-07-20  Michael Barker  <mike@middlesoft.co.uk>

* AdminTest.cs:  Fixed namespace
* AsyncPeekTest.cs:  Fixed namespace
* AsyncReceiveTest.cs:  Fixed namespace
* BasicMessagingTest.cs:  Fixed namespace
* MessageEnumeratorTest.cs:  Fixed namespace
* MQUtil.cs:  Fixed namespace
* PeekTest.cs:  Fixed namespace
* SelectorTest.cs:  Fixed namespace

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

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

* Makefile: Add support for new test kind badmd for tests with broken
metadata.

* make_tests.sh: Fix some tests that have broken metadata.

* *.sh: Add execute bit.

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

14 years ago2009-07-20 Rodrigo Kumpera <rkumpera@novell.com>
Rodrigo Kumpera [Mon, 20 Jul 2009 19:57:39 +0000 (19:57 -0000)]
2009-07-20 Rodrigo Kumpera  <rkumpera@novell.com>

* metadata-verify.c (is_valid_typespec_blob): Fix error message.

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