mono.git
15 years ago2009-06-01 Rodrigo Kumpera <rkumpera@novell.com>
Rodrigo Kumpera [Mon, 1 Jun 2009 23:49:49 +0000 (23:49 -0000)]
2009-06-01 Rodrigo Kumpera  <rkumpera@novell.com>

Change MonoImage::name_cache to be protected by the image lock
instead of the loader lock.

* appdomain.c (deregister_reflection_info_roots): Protect access
to name_cache.

* class.c (mono_image_init_name_cache): Change from the loader lock
to the image lock. Check if the cache wasn't already created.

* class.c: Change from the loader to the image lock.

* icall.c (ves_icall_System_Reflection_Assembly_GetNamespaces): Fix
the code to hold the image lock while iterating over name_cache and
not go into mono_array_new holding it.

* metadata-internals.h: Add a comment about this change.

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

15 years ago2009-06-01 Rodrigo Kumpera <rkumpera@novell.com>
Rodrigo Kumpera [Mon, 1 Jun 2009 23:49:31 +0000 (23:49 -0000)]
2009-06-01 Rodrigo Kumpera  <rkumpera@novell.com>

* load-exceptions.cs: Fix thiko.

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

15 years ago2009-06-01 Rodrigo Kumpera <rkumpera@novell.com>
Rodrigo Kumpera [Mon, 1 Jun 2009 22:02:29 +0000 (22:02 -0000)]
2009-06-01 Rodrigo Kumpera  <rkumpera@novell.com>

* load-exceptions.cs: Test for #508532.

* load-missing.il: Ditto.

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

15 years ago2009-06-01 Rodrigo Kumpera <rkumpera@novell.com>
Rodrigo Kumpera [Mon, 1 Jun 2009 22:02:19 +0000 (22:02 -0000)]
2009-06-01 Rodrigo Kumpera  <rkumpera@novell.com>

* icall.c (ves_icall_System_Reflection_Assembly_InternalGetType):
Under the 2.0 profile raise the loader error.

Fixes #508532.

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

15 years ago2009-06-01 Rodrigo Kumpera <rkumpera@novell.com>
Rodrigo Kumpera [Mon, 1 Jun 2009 22:02:02 +0000 (22:02 -0000)]
2009-06-01 Rodrigo Kumpera  <rkumpera@novell.com>

* marshal.c (mono_marshal_get_runtime_invoke): Emit the right kind
of ldind opcode for generic instances so we don't fail for direct wrappers.
This only affect direct calls.

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

15 years ago2009-06-01 Carlos Alberto Cortez <calberto.cortez@gmail.com>
Carlos Alberto Cortez [Mon, 1 Jun 2009 21:04:35 +0000 (21:04 -0000)]
2009-06-01  Carlos Alberto Cortez <calberto.cortez@gmail.com>

* ClipboardTest.cs: New test for serializable types.

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

15 years ago2009-06-01 Carlos Alberto Cortez <calberto.cortez@gmail.com>
Carlos Alberto Cortez [Mon, 1 Jun 2009 21:03:09 +0000 (21:03 -0000)]
2009-06-01  Carlos Alberto Cortez <calberto.cortez@gmail.com>

* Clipboard.cs:
* XplatUIX11.cs:
* DataFormats.cs: Implement support for serializable types in our
clipboard.
Fixes #357642.

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

15 years ago2009-06-01 Marek Habersack <mhabersack@novell.com>
Marek Habersack [Mon, 1 Jun 2009 20:43:24 +0000 (20:43 -0000)]
2009-06-01  Marek Habersack  <mhabersack@novell.com>

* HttpException.cs: if custom errors are enabled and the error
code is 404 show the "standard" 404 error message instead of the
default custom error mode one. Fixes bug #508649

2009-06-01  Marek Habersack  <mhabersack@novell.com>

* BuildManager.cs: when throwing a 404 exception, pass the virtual
path to the exception constructor.

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

15 years ago2009-06-01 Marek Habersack <mhabersack@novell.com>
Marek Habersack [Mon, 1 Jun 2009 20:17:55 +0000 (20:17 -0000)]
2009-06-01  Marek Habersack  <mhabersack@novell.com>

* AspGenerator.cs: fix mapping of our tag types into
CodeConstructType. Fixes bug #508570

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

15 years ago2009-06-01 Marek Habersack <mhabersack@novell.com>
Marek Habersack [Mon, 1 Jun 2009 18:35:41 +0000 (18:35 -0000)]
2009-06-01  Marek Habersack  <mhabersack@novell.com>

* MetaModelTest.cs: disabled GetActionPath test - nothing to test
there.

2009-06-01  Marek Habersack  <mhabersack@novell.com>

* MetaModel.cs: GetModel throws InvalidOperationException on
missing model.
Implemented GetActionPath and GetTable.

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

15 years ago2009-06-01 Marek Habersack <mhabersack@novell.com>
Marek Habersack [Mon, 1 Jun 2009 18:22:04 +0000 (18:22 -0000)]
2009-06-01  Marek Habersack  <mhabersack@novell.com>

* ClientScriptManager.cs: WriteHiddenFields doesn't add the id
attribute to generated input element in the 1.1 profile. Fixes bug
#508167. Patch from Hubert FONGARNAND
<informatique.internet@fiducial.fr>, thanks!

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

15 years agoMoved Test/System.Web.DynamicData/TestStubTypes.cs to Test/Common/TestStubTypes.cs
Marek Habersack [Mon, 1 Jun 2009 18:21:52 +0000 (18:21 -0000)]
Moved Test/System.Web.DynamicData/TestStubTypes.cs to Test/Common/TestStubTypes.cs

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

15 years agoAdded custom data sources, updated some MetaModel tests, added Mainsoft web testing...
Marek Habersack [Mon, 1 Jun 2009 18:21:35 +0000 (18:21 -0000)]
Added custom data sources, updated some MetaModel tests, added Mainsoft web testing framework, added some common classes used by tests, made System.DynamicData_test.dll a friend to System.Web.dll

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

15 years agoAdded nunit.mocks.dll to the set of NUnit libraries used by test targets
Marek Habersack [Mon, 1 Jun 2009 18:21:22 +0000 (18:21 -0000)]
Added nunit.mocks.dll to the set of NUnit libraries used by test targets

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

15 years agoNew test.
Marek Safar [Mon, 1 Jun 2009 16:16:00 +0000 (16:16 -0000)]
New test.

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

15 years agoNew test.
Marek Safar [Mon, 1 Jun 2009 16:15:02 +0000 (16:15 -0000)]
New test.

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

15 years ago2009-06-01 Marek Safar <marek.safar@gmail.com>
Marek Safar [Mon, 1 Jun 2009 16:11:18 +0000 (16:11 -0000)]
2009-06-01  Marek Safar  <marek.safar@gmail.com>

A fix for bug #508334
* typemanager.cs, parameter.cs, convert.cs, expression.cs, ecore.cs,
cs-parser.jay: Fully import __arglist modifier.

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

15 years ago2009-06-01 Atsushi Enomoto <atsushi@ximian.com>
Atsushi Eno [Mon, 1 Jun 2009 10:17:26 +0000 (10:17 -0000)]
2009-06-01  Atsushi Enomoto  <atsushi@ximian.com>

* TcpDuplexSessionChannel.cs : WaitForMessage() should not return
  true when socket input is not available.

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

15 years ago2009-06-01 Atsushi Enomoto <atsushi@ximian.com>
Atsushi Eno [Mon, 1 Jun 2009 10:16:13 +0000 (10:16 -0000)]
2009-06-01  Atsushi Enomoto  <atsushi@ximian.com>

* ChannelDispatcher.cs : handle more errors gracefully.

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

15 years ago2009-06-01 Atsushi Enomoto <atsushi@ximian.com>
Atsushi Eno [Mon, 1 Jun 2009 09:31:34 +0000 (09:31 -0000)]
2009-06-01  Atsushi Enomoto  <atsushi@ximian.com>

* CustomPeerResolverService.cs : Refresh() now gives readable reply.

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

15 years ago2009-06-01 Atsushi Enomoto <atsushi@ximian.com>
Atsushi Eno [Mon, 1 Jun 2009 08:17:24 +0000 (08:17 -0000)]
2009-06-01  Atsushi Enomoto  <atsushi@ximian.com>

* XmlFormatterSerializer.cs, KnownTypeCollection.cs : collection
  types does not emit xsi:type when the actual type is different
  from the nominal serilaization type. To achieve this, introduced
  the idea of the actual serialization type.

* XmlObjectSerializerTest.cs : enable interface collection test and
  add some more test lines.

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

15 years ago2009-05-31 Zoltan Varga <vargaz@gmail.com>
Zoltan Varga [Sun, 31 May 2009 21:34:47 +0000 (21:34 -0000)]
2009-05-31  Zoltan Varga  <vargaz@gmail.com>

* reflection.c (create_dynamic_mono_image): Fix warnings.

* generic-sharing.c (other_info_equal): Ditto.

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

15 years ago2009-05-31 Zoltan Varga <vargaz@gmail.com>
Zoltan Varga [Sun, 31 May 2009 21:21:35 +0000 (21:21 -0000)]
2009-05-31  Zoltan Varga  <vargaz@gmail.com>

* aot-compiler.c (mono_compile_assembly): Move the creation of the
output file after the code has been compiled.

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

15 years ago2009-05-31 Zoltan Varga <vargaz@gmail.com>
Zoltan Varga [Sun, 31 May 2009 21:16:02 +0000 (21:16 -0000)]
2009-05-31  Zoltan Varga  <vargaz@gmail.com>

* aot-compiler.c aot-runtime.c: Get rid of the shared/non-shared got
entries distinction to simplify the code.

* mini.h: Bump AOT file format version.

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

15 years ago2009-05-30 Zoltan Varga <vargaz@gmail.com>
Zoltan Varga [Sat, 30 May 2009 18:19:00 +0000 (18:19 -0000)]
2009-05-30  Zoltan Varga  <vargaz@gmail.com>

* tramp-ppc.c (mono_arch_get_static_rgctx_trampoline): Fix 64 bit support.

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

15 years ago2009-05-29 Steven Munroe <munroesj@us.ibm.com>
Zoltan Varga [Sat, 30 May 2009 13:41:01 +0000 (13:41 -0000)]
2009-05-29  Steven Munroe  <munroesj@us.ibm.com>

This patch is contributed under the terms of the MIT/X11 license

       * template_main.c: Include string.h to define strchr, memcpy,
       and strdup.

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

15 years ago2009-05-29 Rodrigo Kumpera <rkumpera@novell.com>
Rodrigo Kumpera [Fri, 29 May 2009 21:45:29 +0000 (21:45 -0000)]
2009-05-29 Rodrigo Kumpera  <rkumpera@novell.com>

* cli-blob-tests.md: FieldSig tests.

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

15 years ago2009-05-29 Rodrigo Kumpera <rkumpera@novell.com>
Rodrigo Kumpera [Fri, 29 May 2009 21:45:16 +0000 (21:45 -0000)]
2009-05-29 Rodrigo Kumpera  <rkumpera@novell.com>

* metadata-verify.c: Implement field signature check.

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

15 years ago2009-05-29 Rodrigo Kumpera <rkumpera@novell.com>
Rodrigo Kumpera [Fri, 29 May 2009 20:50:23 +0000 (20:50 -0000)]
2009-05-29 Rodrigo Kumpera  <rkumpera@novell.com>

* cli-blob-tests.md: StandAloneSig tests.

* assembly-with-custommod.il: Added a calli

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

15 years ago2009-05-29 Rodrigo Kumpera <rkumpera@novell.com>
Rodrigo Kumpera [Fri, 29 May 2009 20:50:13 +0000 (20:50 -0000)]
2009-05-29 Rodrigo Kumpera  <rkumpera@novell.com>

* metadata-verify.c: Implement standalone signature check.

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

15 years agoNew tests, updates.
Marek Safar [Fri, 29 May 2009 19:44:40 +0000 (19:44 -0000)]
New tests, updates.

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

15 years agoNew tests.
Marek Safar [Fri, 29 May 2009 19:44:21 +0000 (19:44 -0000)]
New tests.

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

15 years ago2009-05-29 Marek Safar <marek.safar@gmail.com>
Marek Safar [Fri, 29 May 2009 19:44:03 +0000 (19:44 -0000)]
2009-05-29  Marek Safar  <marek.safar@gmail.com>

* generic.cs, typemanager.cs, parameter.cs, ecore.cs, class.cs,
delegate.cs, generic-mcs.cs: Rewrote type variance checks to
actually work with closed generic types.

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

15 years ago2009-05-29 Marek Habersack <mhabersack@novell.com>
Marek Habersack [Fri, 29 May 2009 10:25:35 +0000 (10:25 -0000)]
2009-05-29  Marek Habersack  <mhabersack@novell.com>

* ListItem.cs: when tracking view state is turned on after
attributes have been set, make sure that the associated state bag
begins tracking state and that all of its existing items are
marked as dirty. Do the same after loading view state. Fixes bug
#507836

2009-05-29  Marek Habersack  <mhabersack@novell.com>

* StateBag.cs: made SetDirty (bool) available on 1.1 as
internal. Fixes bug #507836

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

15 years ago2009-05-29 Atsushi Enomoto <atsushi@ximian.com>
Atsushi Eno [Fri, 29 May 2009 09:06:35 +0000 (09:06 -0000)]
2009-05-29  Atsushi Enomoto  <atsushi@ximian.com>

* CustomPeerResolverService.cs : implement some members.

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

15 years ago2009-05-29 Atsushi Enomoto <atsushi@ximian.com>
Atsushi Eno [Fri, 29 May 2009 09:05:54 +0000 (09:05 -0000)]
2009-05-29  Atsushi Enomoto  <atsushi@ximian.com>

* RegisterResponseInfo.cs : it does not always reply lifetime.

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

15 years ago2009-05-29 Atsushi Enomoto <atsushi@ximian.com>
Atsushi Eno [Fri, 29 May 2009 08:12:47 +0000 (08:12 -0000)]
2009-05-29  Atsushi Enomoto  <atsushi@ximian.com>

* XmlBinaryDictionaryWriter.cs : allow mapping an identical prefix
  to different xmlns in different element level.

* XmlBinaryDictionaryWriterTest.cs : added test for failing duplicate
  namespace declaration in the same element context.

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

15 years ago2009-05-29 Atsushi Enomoto <atsushi@ximian.com>
Atsushi Eno [Fri, 29 May 2009 07:50:45 +0000 (07:50 -0000)]
2009-05-29  Atsushi Enomoto  <atsushi@ximian.com>

* XmlBinaryDictionaryWriter.cs : allow writing xml/xmlns attributes
  without specifying their corresponding namespaces.

* XmlBinaryDictionaryWriter.cs : added test for writing xml/xmlns
  attributes with null namespace.

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

15 years agoHush compilation warnings
Marek Habersack [Fri, 29 May 2009 07:48:14 +0000 (07:48 -0000)]
Hush compilation warnings

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

15 years ago2009-05-29 Atsushi Enomoto <atsushi@ximian.com>
Atsushi Eno [Fri, 29 May 2009 07:27:16 +0000 (07:27 -0000)]
2009-05-29  Atsushi Enomoto  <atsushi@ximian.com>

* TcpDuplexSessionChannel.cs : Moved tcp listener accept to OnOpen().
  I cannot precisely identify when EndRecord should be consumed,
  so allow it at either at the end of ReadSizedMessage() or on
  consuming preamble (it's likely handling EndRecord of previous
  message though).

  Now duplex IPeerResolverContract communication works between
  either of .NET/Mono client and .NET/Mono server.

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

15 years ago2009-05-29 Atsushi Enomoto <atsushi@ximian.com>
Atsushi Eno [Fri, 29 May 2009 06:33:50 +0000 (06:33 -0000)]
2009-05-29  Atsushi Enomoto  <atsushi@ximian.com>

* TcpDuplexSessionChannel.cs : looks like I have added some bogus
  code. Handle preamble ack on ReadSizedMessage() only at server.
  Consume EndRecord from server, at client side. Though it is likely
  changed as it's blocking when mono is at server side.

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

15 years ago2009-05-29 Atsushi Enomoto <atsushi@ximian.com>
Atsushi Eno [Fri, 29 May 2009 04:05:16 +0000 (04:05 -0000)]
2009-05-29  Atsushi Enomoto  <atsushi@ximian.com>

* TcpDuplexSessionChannel.cs : .NET seems to be based on somewhat
  different protocol than existing code with related to preamble ack.
  So changed it to work fine with .NET client (finally).

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

15 years ago2009-05-28 Rodrigo Kumpera <rkumpera@novell.com>
Rodrigo Kumpera [Fri, 29 May 2009 01:57:21 +0000 (01:57 -0000)]
2009-05-28 Rodrigo Kumpera  <rkumpera@novell.com>

* cli-blob-tests.md: Methodref signature tests.

* assembly-with-signatures.cs: File with vararg call.

* Makefile: Add new dependency.

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

15 years ago2009-05-28 Rodrigo Kumpera <rkumpera@novell.com>
Rodrigo Kumpera [Fri, 29 May 2009 01:57:12 +0000 (01:57 -0000)]
2009-05-28 Rodrigo Kumpera  <rkumpera@novell.com>

* metadata-verify.c: Implement methodref signature check.

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

15 years agoCorrectly handle global properties. Correctly log
Ankit Jain [Thu, 28 May 2009 23:22:02 +0000 (23:22 -0000)]
Correctly handle global properties. Correctly log
project/build events.

In class/Microsoft.Build.Engine/Microsoft.Build.BuildEngine:
Correctly handle global properties. Correctly log
project/build events.

* BuildPropertyGroup.cs (Clone): Implement.
* Engine.cs (globalProperties): Rename to ..
(global_properties): .. this.
(currentlyBuildingProjectsStack): New. Used to correctly
log and raise project/build start/finish events.
(BuildProjectFile): Override any project global properties
with explicitly specified ones, here in the param @globalProperties.
Mark project for reevaluation, which will update the engine's
global properties also.
Reset both engine and project's old global properties at the end.
(UnregisterAllLoggers): Log build finished only if we are currently
building.
(StartBuild): Rename to ..
(StartProjectBuild): .. this. Keeps track of the projects being built
in the new stack, and logs project and build events accordingly.
(EndProjectBuild): New. Uses the stack to keep track of projects
finishing builds, and raises project and build events accordingly.
(LogProjectStarted): Move here from Project.cs
(LogProjectFinished): Likewise.

* Project.cs (Build): Log start of project build.
Set current directory to the project file's dir, and reset at end.
(BuildInternal): Don't log here, its done in Build.
(BuildTarget): Already built targets are keyed by the set of global
properties that they were built with.
(GlobalPropertiesToString): New.
(ResetBuildStatus): 'building' must be true to allow built targets to be reset.
(RemoveBuiltTargets): Initialize builtTargetKeys in .ctor
(Evaluate): Remove built targets only if we are currently building and
build settings are None.
Merge project's global properties with those of the parent engine.
Add missing properties from engine's global properties.
(LogTargetSkipped): Fix format string, add the reqd argument.

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

* EngineTest.cs (TestGlobalProperties*): New tests
and some helper methods.
* ProjectTest.cs (TestResetBuildStatus): Reset twice. Update
the event counts.

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

* TestMessageLogger.cs: Add counts for project/build start/finish
events.

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

15 years agoIn class/Microsoft.Build.Engine/Microsoft.Build.BuildEngine:
Ankit Jain [Thu, 28 May 2009 23:21:40 +0000 (23:21 -0000)]
In class/Microsoft.Build.Engine/Microsoft.Build.BuildEngine:

* ConditionFunctionExpression.cs: Add 'HasTrailingSlash' function.
(HasTrailingSlash): New.

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

* Conditions.cs (TestHasTrailingSlash1): New.
(TestUnknownFunction): New.

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

15 years agoAvoid tracking stacks and emitting allocation caller information if we are already...
Massimiliano Mantione [Thu, 28 May 2009 21:19:30 +0000 (21:19 -0000)]
Avoid tracking stacks and emitting allocation caller information if we are already emitting method enter and exit events.

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

15 years agoRevert the last change, the saving and non-saving code is too tighly interleaved
Zoltan Varga [Thu, 28 May 2009 20:48:02 +0000 (20:48 -0000)]
Revert the last change, the saving and non-saving code is too tighly interleaved
now.

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

15 years agoFix SLE10 PPC build.
Mark Probst [Thu, 28 May 2009 19:42:20 +0000 (19:42 -0000)]
Fix SLE10 PPC build.

2009-05-28  Mark Probst  <mark.probst@gmail.com>

* collection.c (_wapi_collection_init): If pthread_create() fails,
try again with larger and then with no stack size set.  Fixes
#470336.

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

15 years ago2009-05-28 Zoltan Varga <vargaz@gmail.com>
Zoltan Varga [Thu, 28 May 2009 17:03:00 +0000 (17:03 -0000)]
2009-05-28  Zoltan Varga  <vargaz@gmail.com>

* reflection-save.c: New file, a copy of reflection.c which will contain
the reflection.emit AssemblyBuilder.Save related code. Not part of the build
yet.

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

15 years ago2009-05-28 Atsushi Enomoto <atsushi@ximian.com>
Atsushi Eno [Thu, 28 May 2009 16:58:31 +0000 (16:58 -0000)]
2009-05-28  Atsushi Enomoto  <atsushi@ximian.com>

* RegisterResponseInfo.cs : oops, Marcos was right. .NET returns
  "Update" element here.

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

15 years ago2009-05-28 Atsushi Enomoto <atsushi@ximian.com>
Atsushi Eno [Thu, 28 May 2009 16:53:15 +0000 (16:53 -0000)]
2009-05-28  Atsushi Enomoto  <atsushi@ximian.com>

* SerializationMap.cs : for default / shared type map, members are
  serialized in alphabetical order.

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

15 years ago2009-05-28 Andrés G. Aragoneses <aaragoneses@novell.com>
Andrés G. Aragoneses [Thu, 28 May 2009 16:41:08 +0000 (16:41 -0000)]
2009-05-28  Andrés G. Aragoneses  <aaragoneses@novell.com>

        * Mono.Tuner/InjectSecurityAttributes.cs: show a warning if using
        the MoonlightAssemblyStep but no secattr option is specified.

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

15 years ago2009-05-28 Atsushi Enomoto <atsushi@ximian.com>
Atsushi Eno [Thu, 28 May 2009 15:35:32 +0000 (15:35 -0000)]
2009-05-28  Atsushi Enomoto  <atsushi@ximian.com>

* SerializationMap.cs : generic interface search has to be more
  complicated. Give kind error message on setting deserialized value.

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

15 years ago2009-05-28 Atsushi Enomoto <atsushi@ximian.com>
Atsushi Eno [Thu, 28 May 2009 15:14:38 +0000 (15:14 -0000)]
2009-05-28  Atsushi Enomoto  <atsushi@ximian.com>

* SerializationMap.cs: collection interface cannot be instantiated,
  so create List<T> (generic) or ArrayList (non-generic) instead.

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

15 years ago2009-05-28 Atsushi Enomoto <atsushi@ximian.com>
Atsushi Eno [Thu, 28 May 2009 14:32:36 +0000 (14:32 -0000)]
2009-05-28  Atsushi Enomoto  <atsushi@ximian.com>

* ServiceSettingsResponseInfo.cs, RegisterResponseInfo.cs,
  RefreshResponseInfo.cs, ResolveInfo.cs, UpdateInfo.cs,
  UnregisterInfo.cs, ResolveResponseInfo.cs, RefreshInfo.cs :
  set explicit namespaces on DataContract so that their members can
  be serialized in appropriate namespace (namespaces in
  MessageBodyMemberAttribute does not apply there).

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

15 years ago2009-05-28 Atsushi Enomoto <atsushi@ximian.com>
Atsushi Eno [Thu, 28 May 2009 14:30:23 +0000 (14:30 -0000)]
2009-05-28  Atsushi Enomoto  <atsushi@ximian.com>

* MessageBufferImpl.cs : do not output Action twice.

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

15 years ago2009-05-28 Atsushi Enomoto <atsushi@ximian.com>
Atsushi Eno [Thu, 28 May 2009 14:29:37 +0000 (14:29 -0000)]
2009-05-28  Atsushi Enomoto  <atsushi@ximian.com>

* ContractDescriptionGenerator.cs : fill ProtectionLevel by
  OperationContractAttribute.

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

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

* objects.cs: Fix the signature of one of the tests.

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

15 years ago2009-05-28 Zoltan Varga <vargaz@gmail.com>
Zoltan Varga [Thu, 28 May 2009 13:59:01 +0000 (13:59 -0000)]
2009-05-28  Zoltan Varga  <vargaz@gmail.com>

* mini.c (mini_create_ftnptr): New helper function, moved here from
object.c.
(mini_get_addr_from_ftnptr): Ditto.
(mini_init): Install the new helpers.

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

15 years ago2009-05-28 Zoltan Varga <vargaz@gmail.com>
Zoltan Varga [Thu, 28 May 2009 13:58:54 +0000 (13:58 -0000)]
2009-05-28  Zoltan Varga  <vargaz@gmail.com>

* object-internals.h (MonoRuntimeCallbacks): New structure containing
callbacks supplied by the runtime.

* object.c (mono_install_callbacks): New internal function to install
the callbacks.

* object.c (mono_create_ftnptr): Move the implementation of this to
mini/.

* object.c (mono_get_addr_from_ftnptr): Ditto.

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

15 years ago2009-05-28 Marek Habersack <mhabersack@novell.com>
Marek Habersack [Thu, 28 May 2009 12:34:40 +0000 (12:34 -0000)]
2009-05-28  Marek Habersack  <mhabersack@novell.com>

* HttpUtility.cs: fixed UrlDecode for encoded strings which
should be converted to byte sequences longer than 2 bytes. Fixes
bug #507666

2009-05-28  Marek Habersack  <mhabersack@novell.com>

* HttpUtilityTest.cs: added test for bug #507666

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

15 years ago2009-05-28 Marek Habersack <mhabersack@novell.com>
Marek Habersack [Thu, 28 May 2009 09:03:28 +0000 (09:03 -0000)]
2009-05-28  Marek Habersack  <mhabersack@novell.com>

* FormsAuthenticationModule.cs: if forms authentication login URL
is not rooted, make it relative to the application root, so that
MapPath maps it correctly.
Use String.Compare for checking whether requested URL matches the
login URL - be case-insensitive when running on Windows or with
IOMAP in effect.

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

15 years ago2009-05-28 Atsushi Enomoto <atsushi@ximian.com>
Atsushi Eno [Thu, 28 May 2009 07:25:15 +0000 (07:25 -0000)]
2009-05-28  Atsushi Enomoto  <atsushi@ximian.com>

* machine.config: fix WCF diagnostics section name.

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

15 years ago2009-05-28 Atsushi Enomoto <atsushi@ximian.com>
Atsushi Eno [Thu, 28 May 2009 06:56:48 +0000 (06:56 -0000)]
2009-05-28  Atsushi Enomoto  <atsushi@ximian.com>

* MessageBufferImpl.cs : it did not copy headers.
* Message.cs : remove 2_1 conditional implementation for buffered
  copy and hence remove bogus code.

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

15 years ago2009-05-28 Atsushi Enomoto <atsushi@ximian.com>
Atsushi Eno [Thu, 28 May 2009 05:49:25 +0000 (05:49 -0000)]
2009-05-28  Atsushi Enomoto  <atsushi@ximian.com>

* MessageProperties.cs : copy argument is wrong.

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

15 years agoCorrectly initialize the debugger when embedding Mono.
Martin Baulig [Thu, 28 May 2009 05:12:18 +0000 (05:12 -0000)]
Correctly initialize the debugger when embedding Mono.
2009-05-28  Martin Baulig  <martin@ximian.com>

Correctly initialize the debugger when embedding Mono.

* mdb-debug-info32.s, mdb-debug-info64.s: Add a global variable
`MONO_DEBUGGER__using_debugger' to the `.mdb_debug_info' section;
see documentation in mini_debug_running_inside_mdb().

* debug-debugger.c
(mini_debug_running_inside_mdb): New function to check whether
we're running inside mdb.

* mini.c (mini_init): Call mini_debugger_init() if we're running
inside the debugger.

* driver.c (mono_main): Moved the call to mini_debugger_init()
into mini_init() to make this work when embedding Mono.

* debug-debugger.c (mini_debugger_init): Warn about duplicate
calls to mini_debugger_init().

* mini.h: Rename mono_debugger_init() -> mini_debugger_init(),
mono_debugger_main() -> mini_debugger_main() and put them inside a
`MONO_DEBUGGER_SUPPORTED' conditional.

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

15 years agoAdd missing 'MONO_DEBUGGER_SUPPORTED' conditional.
Martin Baulig [Thu, 28 May 2009 04:35:13 +0000 (04:35 -0000)]
Add missing 'MONO_DEBUGGER_SUPPORTED' conditional.

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

15 years agoCorrectly initialize the debugger when embedding Mono.
Martin Baulig [Thu, 28 May 2009 02:55:22 +0000 (02:55 -0000)]
Correctly initialize the debugger when embedding Mono.
2009-05-27  Martin Baulig  <martin@ximian.com>

Correctly initialize the debugger when embedding Mono.

* mini.c (mini_init): Call mono_debugger_init() if we're running
inside the debugger.

* driver.c (mono_main): Moved the call to mono_debugger_init()
into mini_init(); `mono_debug_init (MONO_DEBUG_FORMAT_DEBUGGER)'
sets the mono_debug_using_mono_debugger () flag for us, so we can
do the mono_debugger_init() call in mini_init().

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

15 years ago2009-05-27 Rodrigo Kumpera <rkumpera@novell.com>
Rodrigo Kumpera [Thu, 28 May 2009 00:05:48 +0000 (00:05 -0000)]
2009-05-27 Rodrigo Kumpera  <rkumpera@novell.com>

* cli-blob-tests.md: Tests for parameters and generics

* assembly-with-custommod.il: Added more methods to use
in the tests.

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

15 years ago2009-05-27 Rodrigo Kumpera <rkumpera@novell.com>
Rodrigo Kumpera [Thu, 28 May 2009 00:05:27 +0000 (00:05 -0000)]
2009-05-27 Rodrigo Kumpera  <rkumpera@novell.com>

* metadata-verify.c (parse_return_type): Proper byref check.
* metadata-verify.c (is_valid_method_signature): Check for zero arity
generic signatures and method params.

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

15 years ago2009-05-27 Rodrigo Kumpera <rkumpera@novell.com>
Rodrigo Kumpera [Wed, 27 May 2009 22:26:19 +0000 (22:26 -0000)]
2009-05-27 Rodrigo Kumpera  <rkumpera@novell.com>

* cli-blob-tests.md: More signature tests.

* assembly-with-custommod.il: File with custom mods.

* Makefile: Add new dependency.

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

15 years ago2009-05-27 Rodrigo Kumpera <rkumpera@novell.com>
Rodrigo Kumpera [Wed, 27 May 2009 22:26:09 +0000 (22:26 -0000)]
2009-05-27 Rodrigo Kumpera  <rkumpera@novell.com>

* metadata-verify.c (decode_signature_header): Fix bounds check.

* metadata-verify.c (parse_custom_mods): Check custom mods.

* metadata-verify.c (parse_type): Do initial basic verification
of valid values.

* metadata-verify.c (is_valid_method_signature): Parse the generic
param count.

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

15 years ago2009-05-26 Rodrigo Kumpera <rkumpera@novell.com>
Rodrigo Kumpera [Wed, 27 May 2009 22:25:55 +0000 (22:25 -0000)]
2009-05-26 Rodrigo Kumpera  <rkumpera@novell.com>

* mini-trampolines.c: Kill mono_find_delegate_trampoline_by_addr as
this is no longer in use.
* mini.h: Same.

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

15 years ago2009-05-27 Geoff Norton <gnorton@novell.com>
Geoff Norton [Wed, 27 May 2009 22:02:35 +0000 (22:02 -0000)]
2009-05-27  Geoff Norton  <gnorton@novell.com>

* src/gfile-posix.c: Fix g_get_current_dir on amd64

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

15 years ago2009-05-27 Marek Habersack <mhabersack@novell.com>
Marek Habersack [Wed, 27 May 2009 20:53:58 +0000 (20:53 -0000)]
2009-05-27  Marek Habersack  <mhabersack@novell.com>

* Makefile (LIB_MCS_FLAGS): added support for defining the DEBUG
symbol on compiler command line.

2009-05-27  Marek Habersack  <mhabersack@novell.com>

* PatternParser.cs: if Match is passed an empty path, do not
attempt to match the Url segments, skip to defaults matching right
away.

2009-05-27  Marek Habersack  <mhabersack@novell.com>

* RouteCollectionTest.cs: added a test for routes from
NerdDinner.

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

15 years ago2009-05-27 Alan McGovern <amcgovern@novell.com>
Alan McGovern [Wed, 27 May 2009 19:27:02 +0000 (19:27 -0000)]
2009-05-27  Alan McGovern  <amcgovern@novell.com>

        * class.cs, decl.cs, delegate.cs, parameter.cs:
        Fix the build by replacing the use of 'var' with the actual
type.

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

15 years ago * MoonIsolatedStorageFile.cs: Allow paths in search patterns.
Jackson Harper [Wed, 27 May 2009 18:12:27 +0000 (18:12 -0000)]
    * MoonIsolatedStorageFile.cs: Allow paths in search patterns.

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

15 years agoUp
Miguel de Icaza [Wed, 27 May 2009 16:37:26 +0000 (16:37 -0000)]
Up

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

15 years ago2009-05-27 Rodrigo Kumpera <rkumpera@novell.com>
Rodrigo Kumpera [Wed, 27 May 2009 15:45:32 +0000 (15:45 -0000)]
2009-05-27  Rodrigo Kumpera  <rkumpera@novell.com>

* TypeDef.cs: Add field method_list to preserve definition
order of methods when emiting the PE file.

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

15 years agoNew tests, updates
Marek Safar [Wed, 27 May 2009 14:12:28 +0000 (14:12 -0000)]
New tests, updates

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

15 years ago2009-05-27 Marek Safar <marek.safar@gmail.com>
Marek Safar [Wed, 27 May 2009 14:11:59 +0000 (14:11 -0000)]
2009-05-27  Marek Safar  <marek.safar@gmail.com>

* generic.cs, parameter.cs, decl.cs, ecore.cs, class.cs, delegate.cs
    cs-parser.jay, generic-mcs.cs: Report wrong variant types declarations.

* driver.cs, rootcontext.cs, report.cs: Add 3.0 language version
filter.

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

15 years ago2009-05-27 Zoltan Varga <vargaz@gmail.com>
Zoltan Varga [Wed, 27 May 2009 12:24:13 +0000 (12:24 -0000)]
2009-05-27  Zoltan Varga  <vargaz@gmail.com>

* configure.in: Disable USE_MUNMAP on ppc to work around #504411.

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

15 years ago2009-05-27 Sebastien Pouliot <sebastien@ximian.com>
Sebastien Pouliot [Wed, 27 May 2009 11:43:29 +0000 (11:43 -0000)]
2009-05-27  Sebastien Pouliot  <sebastien@ximian.com>

* XmlReaderSettings.cs: Set prohibitDtd when changing the value
of DtdProcessing. Will fix a few Moonlight DRT tests

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

15 years ago2009-05-27 Zoltan Varga <vargaz@gmail.com>
Zoltan Varga [Wed, 27 May 2009 11:02:03 +0000 (11:02 -0000)]
2009-05-27  Zoltan Varga  <vargaz@gmail.com>

* AppDomain.cs (DoAssemblyResolve): Fix recursion detection. Fixes #507003.

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

15 years ago2009-05-27 Atsushi Enomoto <atsushi@ximian.com>
Atsushi Eno [Wed, 27 May 2009 08:13:02 +0000 (08:13 -0000)]
2009-05-27  Atsushi Enomoto  <atsushi@ximian.com>

* ResolveInfo.cs : argument check.

* PeerCustomResolverBindingElement.cs : some argument check.

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

15 years ago2009-05-27 Atsushi Enomoto <atsushi@ximian.com>
Atsushi Eno [Wed, 27 May 2009 07:38:08 +0000 (07:38 -0000)]
2009-05-27  Atsushi Enomoto  <atsushi@ximian.com>

* BinaryMessageEncoder.cs : the serializer somehow leaves binary
  xml open, so close the writer as well as open elements.
* TcpDuplexSessionChannel.cs : clear write buffer on each operation.
  Do not output EndRecord and SizedMessage at a time.

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

15 years ago2009-05-26 Rodrigo Kumpera <rkumpera@novell.com>
Rodrigo Kumpera [Tue, 26 May 2009 22:51:11 +0000 (22:51 -0000)]
2009-05-26 Rodrigo Kumpera  <rkumpera@novell.com>

* TypeTest.cs: test for bug #506757.

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

15 years ago2009-05-26 Rodrigo Kumpera <rkumpera@novell.com>
Rodrigo Kumpera [Tue, 26 May 2009 22:48:01 +0000 (22:48 -0000)]
2009-05-26 Rodrigo Kumpera  <rkumpera@novell.com>

* icall.c (ves_icall_Type_GetMethodsByName): Virtual methods should be
discarded based on their most specific definition so we set the method_slots
array before checking if the method is acceptable or not.

Fixes #506757.

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

15 years ago2009-05-27 Zoltan Varga <vargaz@gmail.com>
Zoltan Varga [Tue, 26 May 2009 22:06:32 +0000 (22:06 -0000)]
2009-05-27  Zoltan Varga  <vargaz@gmail.com>

* CultureInfoTest.cs: Fix the net 1.1 build.

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

15 years ago2009-05-27 Zoltan Varga <vargaz@gmail.com>
Zoltan Varga [Tue, 26 May 2009 22:04:27 +0000 (22:04 -0000)]
2009-05-27  Zoltan Varga  <vargaz@gmail.com>

* Makefile.am: Disable the test_messages test as it fails on the
buildbot.

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

15 years ago2009-05-26 Zoltan Varga <vargaz@gmail.com>
Zoltan Varga [Tue, 26 May 2009 21:09:23 +0000 (21:09 -0000)]
2009-05-26  Zoltan Varga  <vargaz@gmail.com>

* shared.c (_wapi_shm_file): Avoid creating a .wapi directory here, create
it in _wapi_shm_file_open (), since platforms using posix shm don't need it.

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

15 years ago2009-05-26 Zoltan Varga <vargaz@gmail.com>
Zoltan Varga [Tue, 26 May 2009 21:09:14 +0000 (21:09 -0000)]
2009-05-26  Zoltan Varga  <vargaz@gmail.com>

* mini-sparc.c (add_outarg_load): Fix the sparc build.

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

15 years agoFree the old array when resizing a mono_ptr_array.
Mark Probst [Tue, 26 May 2009 21:05:26 +0000 (21:05 -0000)]
Free the old array when resizing a mono_ptr_array.

2009-05-26  Mark Probst  <mark.probst@gmail.com>

        * icall.c: Free the old array when resizing a mono_ptr_array.

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

15 years agor: spouliot
Andrés G. Aragoneses [Tue, 26 May 2009 20:00:02 +0000 (20:00 -0000)]
r: spouliot

2009-05-26  Andrés G. Aragoneses  <aaragoneses@novell.com>

        * AssemblyInfo.cs: Add InternalsVisibleTo for MoonAtkBridge
        under a MOON_A11Y_INTERNAL_HACK define.
* Makefile: Handling of the MOON_A11Y_INTERNAL_HACK env var.

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

15 years agoMakefile: Fixed dist from last commit here
Andrew Jorgensen [Tue, 26 May 2009 18:23:00 +0000 (18:23 -0000)]
Makefile: Fixed dist from last commit here

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

15 years agoUse mono_object_hash() for hashes with object keys.
Mark Probst [Tue, 26 May 2009 16:59:24 +0000 (16:59 -0000)]
Use mono_object_hash() for hashes with object keys.

2009-05-26  Mark Probst  <mark.probst@gmail.com>

        * reflection.c (create_dynamic_mono_image): Use mono_object_hash()
        for the hashes whose keys are managed objects.

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

15 years agoNew test.
Marek Safar [Tue, 26 May 2009 16:37:15 +0000 (16:37 -0000)]
New test.

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

15 years ago2009-05-26 Rodrigo Kumpera <rkumpera@novell.com>
Marek Safar [Tue, 26 May 2009 16:36:46 +0000 (16:36 -0000)]
2009-05-26  Rodrigo Kumpera  <rkumpera@novell.com>
Marek Safar  <marek.safar@gmail.com>

A fix for bug #377509
* parameter.cs: Use predefined and not empty name for implicit
setters.

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

15 years ago2009-05-26 Zoltan Varga <vargaz@gmail.com>
Zoltan Varga [Tue, 26 May 2009 16:25:06 +0000 (16:25 -0000)]
2009-05-26  Zoltan Varga  <vargaz@gmail.com>

* CMakeLists.txt: Implement AC_OUTPUT, creation of config.make, etc.

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