mono.git
13 years ago[runtime] System.Web.Extensions must not be remapped to the current framework.
Marek Habersack [Wed, 3 Nov 2010 02:08:58 +0000 (03:08 +0100)]
[runtime] System.Web.Extensions must not be remapped to the current framework.

The reason for this is applications which still use Sys.Web.Ext 1.0* (note: 1.0 does NOT
mean the assembly is for the 1.x runtime - it's for 2.0). Remapping would cause 1.0* not
to be loaded, instead a 3.5 or 4.0 assembly would be fetched.

13 years agoRemove obsolete mcs/configure script. Fixes #650806.
Zoltan Varga [Wed, 3 Nov 2010 01:16:20 +0000 (02:16 +0100)]
Remove obsolete mcs/configure script. Fixes #650806.

13 years agoFix bootstrapping issue wrt moonlight profile
Sebastien Pouliot [Tue, 2 Nov 2010 23:22:20 +0000 (19:22 -0400)]
Fix bootstrapping issue wrt moonlight profile

* mcs/class/corlib/Mono.Security.X509/X509Store.cs:
* mcs/class/Mono.Security/Mono.Security.X509/X509Store.cs:
Add if !INSIDE_CORLIB around code that use CspParameters
in order to allow compilation to work when bootstraping
the moonlight profile

13 years ago[API] X509 related enhacemnts to allow 1) associating keystore's private keys with...
Pablo Ruiz Garcia [Wed, 20 Oct 2010 21:36:08 +0000 (23:36 +0200)]
[API] X509 related enhacemnts to allow 1) associating keystore's private keys with their corresponding public certificates found at X509Stores, and 2) importing private keys to X509Stores along with certificates.

mcs/class/corlib/Mono.Security.X509/X509Store.cs:
mcs/class/Mono.Security/Mono.Security.X509/X509Store.cs:
mcs/class/corlib/Mono.Security.X509/X509StoreManager.cs:
mcs/class/Mono.Security/Mono.Security.X509/X509StoreManager.cs:
Modified MSX.X509Store to allow importing privateKeys along certificates (by using RSACryptoServiceProvider and KeyPairPersister).
Fixed X509Store to use certificate's hash as CspParameters.KeyContainerName.

mcs/tools/security/certmgr.cs:
Added a new -importKey action to certmgr, which allows importing a PKCS12 contained key into our KeyPair store.
Added a more (verbose) output to certmgr's -list action.

man/certmgr.1:
Updated certmgr man page ti reflect -importKey addition.

mcs/class/corlib/System.Security.Cryptography/CspParameters.cs:
mcs/class/corlib/System.Security.Cryptography/RSACryptoServiceProvider.cs:
Implemented RSACryptoServiceProvider.CspKeyContainerInfo getter
RSACryptoServiceProvider will not take into account CspParameterFlags.UseExistingKey by throwing a CryptographicException if keyset identified by KeyContainerName does not exists.

13 years agoRevert change in FromBinary
Gonzalo Paniagua Javier [Tue, 2 Nov 2010 22:28:02 +0000 (18:28 -0400)]
Revert change in FromBinary

13 years agoMap libcups for mac
Andrew Jorgensen [Tue, 2 Nov 2010 21:00:59 +0000 (15:00 -0600)]
Map libcups for mac

Fixes bnc#649994

13 years agoRenaming a dangling symlink works now
Gonzalo Paniagua Javier [Tue, 2 Nov 2010 18:50:03 +0000 (14:50 -0400)]
Renaming a dangling symlink works now

Ditto.

Fixes bug #650779.

13 years agoExtracted PrefixLookup to another file. Add more XamlTypeName.ToString() tests.
Atsushi Eno [Tue, 2 Nov 2010 17:31:28 +0000 (02:31 +0900)]
Extracted PrefixLookup to another file. Add more XamlTypeName.ToString() tests.

13 years agoEmit lock statement using Monitor.Enter (object, ref bool) when available
Marek Safar [Tue, 2 Nov 2010 15:20:51 +0000 (15:20 +0000)]
Emit lock statement using Monitor.Enter (object, ref bool) when available

13 years agoMove around some members (to correct/appropriate places) for isolated xaml writer...
Atsushi Eno [Tue, 2 Nov 2010 13:39:34 +0000 (22:39 +0900)]
Move around some members (to correct/appropriate places) for isolated xaml writer implementation.

13 years agoUpdated to r54115
Marek Safar [Tue, 2 Nov 2010 13:33:59 +0000 (13:33 +0000)]
Updated to r54115

13 years agoImplements indirect delegates invocation via dynamic member dispatch
Marek Safar [Tue, 2 Nov 2010 12:44:16 +0000 (12:44 +0000)]
Implements indirect delegates invocation via dynamic member dispatch

13 years agoPass value type dynamic members as by-ref to persist member side effects
Marek Safar [Mon, 1 Nov 2010 14:46:45 +0000 (14:46 +0000)]
Pass value type dynamic members as by-ref to persist member side effects

13 years agoUse Task helper methods in TaskCompletionSource instead of manual setting, allow...
Jérémie Laval [Tue, 2 Nov 2010 11:53:32 +0000 (11:53 +0000)]
Use Task helper methods in TaskCompletionSource instead of manual setting, allow continuation flow to happen smoothly and task status to be set accordingly.

13 years ago[asp.net] 4.0-only types don't need the NET_4_0 ifdef and should be in net_4_0_System...
Marek Habersack [Tue, 2 Nov 2010 10:30:26 +0000 (11:30 +0100)]
[asp.net] 4.0-only types don't need the NET_4_0 ifdef and should be in net_4_0_System.Web.dll.sources

13 years agoFix the text of the Signatures size stat.
Zoltan Varga [Mon, 1 Nov 2010 23:33:32 +0000 (00:33 +0100)]
Fix the text of the Signatures size stat.

13 years agoAdd a stat for the memory occupied by MonoMethodSignature structures.
Zoltan Varga [Mon, 1 Nov 2010 23:32:28 +0000 (00:32 +0100)]
Add a stat for the memory occupied by MonoMethodSignature structures.

13 years agoAdd a stat for the the memory occupied by MonoMethod structures.
Zoltan Varga [Mon, 1 Nov 2010 23:26:58 +0000 (00:26 +0100)]
Add a stat for the the memory occupied by MonoMethod structures.

13 years agoPrint double stats with more precision.
Zoltan Varga [Mon, 1 Nov 2010 22:53:37 +0000 (23:53 +0100)]
Print double stats with more precision.

13 years agoInclude JIT time in --stats output.
Zoltan Varga [Mon, 1 Nov 2010 22:53:10 +0000 (23:53 +0100)]
Include JIT time in --stats output.

13 years agoAvoid killing the thread if socket already null
Gonzalo Paniagua Javier [Mon, 1 Nov 2010 22:52:58 +0000 (18:52 -0400)]
Avoid killing the thread if socket already null

In some weird cases socket is null when we try to close it.

13 years agoConvert dynamic assignment in checked context when set
Marek Safar [Mon, 1 Nov 2010 13:18:53 +0000 (13:18 +0000)]
Convert dynamic assignment in checked context when set

13 years agoCheck for unfixed type arguments before calling overload resolution for inferred...
Marek Safar [Mon, 1 Nov 2010 12:41:48 +0000 (12:41 +0000)]
Check for unfixed type arguments before calling overload resolution for inferred return type

13 years agoSet correct result type for chained folded enum subtraction
Marek Safar [Mon, 1 Nov 2010 11:39:00 +0000 (11:39 +0000)]
Set correct result type for chained folded enum subtraction

13 years agoCheck binary header using right methods.
Marek Safar [Mon, 1 Nov 2010 09:19:38 +0000 (09:19 +0000)]
Check binary header using right methods.

13 years agoAvoid adding generic classes during non-full AOT, since it leads to a huge code blowup.
Zoltan Varga [Mon, 1 Nov 2010 00:16:07 +0000 (01:16 +0100)]
Avoid adding generic classes during non-full AOT, since it leads to a huge code blowup.

13 years agoDon't save xdebug info during AOT compilation.
Zoltan Varga [Sun, 31 Oct 2010 23:43:56 +0000 (00:43 +0100)]
Don't save xdebug info during AOT compilation.

13 years agoCache the array of classes in find_typespec_for_class ().
Zoltan Varga [Sun, 31 Oct 2010 23:43:25 +0000 (00:43 +0100)]
Cache the array of classes in find_typespec_for_class ().

13 years agoAvoid asserts if a forced inline fails. Fix typos. Fixes #650407.
Zoltan Varga [Sun, 31 Oct 2010 23:33:06 +0000 (00:33 +0100)]
Avoid asserts if a forced inline fails. Fix typos. Fixes #650407.

13 years agoCheck that the default from is not empty
Gonzalo Paniagua Javier [Sun, 31 Oct 2010 21:29:21 +0000 (17:29 -0400)]
Check that the default from is not empty

This should fix a bunch of tests failing since MailAddress parsing was
fixed.

13 years agoMore StringComparison.Ordinal
Gonzalo Paniagua Javier [Sun, 31 Oct 2010 21:22:15 +0000 (17:22 -0400)]
More StringComparison.Ordinal

Use StringComparison.Ordinal when calling IndexOf to find the index of
an ASCII string.

13 years agoUse ordinal comparison when looking for "::"
Gonzalo Paniagua Javier [Sun, 31 Oct 2010 21:10:38 +0000 (17:10 -0400)]
Use ordinal comparison when looking for "::"

This should fix 650355, but it might just hide the actual problem which
seems to be related to loading CJK encodings data.

13 years agoChanged new method back to private, it was accidentally public.
Nikolaos Georgiou [Sun, 31 Oct 2010 08:01:24 +0000 (16:01 +0800)]
Changed new method back to private, it was accidentally public.

13 years agoModified ResXResourceWriter so that the comment of ResXNode is not lost.
Nikolaos Georgiou [Sun, 31 Oct 2010 07:55:09 +0000 (15:55 +0800)]
Modified ResXResourceWriter so that the comment of ResXNode is not lost.
Added unit test.

13 years agoExpose some of our internals to the Mono.Winforms assembly
Miguel de Icaza [Sun, 31 Oct 2010 19:59:40 +0000 (15:59 -0400)]
Expose some of our internals to the Mono.Winforms assembly

13 years agoFix broken patch
Miguel de Icaza [Sun, 31 Oct 2010 19:54:41 +0000 (15:54 -0400)]
Fix broken patch

13 years agoAllow this file to expose its types as public if needed
Miguel de Icaza [Sun, 31 Oct 2010 19:50:47 +0000 (15:50 -0400)]
Allow this file to expose its types as public if needed

13 years agoDisable inlining if the assembly has a DebuggableAttribute with the IsJITOptimizerDis...
Zoltan Varga [Sun, 31 Oct 2010 09:26:57 +0000 (10:26 +0100)]
Disable inlining if the assembly has a DebuggableAttribute with the IsJITOptimizerDisabled flag set. Fixes #604486.

13 years agoEnable --aot (but not --aot=full) on osx/x86
Brian Luczkiewicz [Sun, 31 Oct 2010 01:52:09 +0000 (21:52 -0400)]
Enable --aot (but not --aot=full) on osx/x86

13 years agoFix the amd64 dyn call code after the this passing changes.
Zoltan Varga [Sun, 31 Oct 2010 01:53:16 +0000 (02:53 +0100)]
Fix the amd64 dyn call code after the this passing changes.

13 years agoCall mono_field_get_type () in one place to fix an aot problem.
Zoltan Varga [Sun, 31 Oct 2010 01:36:50 +0000 (02:36 +0100)]
Call mono_field_get_type () in one place to fix an aot problem.

13 years agoReturn information from decode_method_ref () in a MethodRef structure instead of...
Zoltan Varga [Sun, 31 Oct 2010 01:36:08 +0000 (02:36 +0100)]
Return information from decode_method_ref () in a MethodRef structure instead of a bunch of arguments.

13 years agoFix the generation of GenericEqualityComparer () instances in AOT.
Zoltan Varga [Sun, 31 Oct 2010 00:57:01 +0000 (02:57 +0200)]
Fix the generation of GenericEqualityComparer () instances in AOT.

13 years agoRework decoding of method references in the AOT runtime.
Zoltan Varga [Sun, 31 Oct 2010 00:44:33 +0000 (02:44 +0200)]
Rework decoding of method references in the AOT runtime.
   * Improve the hashing of methods to include generic arguments
   * Get rid of can_method_ref_match_method (), use a 'target' argument
     to decode_method_ref () instead.
   * Bump corlib file format version.

13 years agoFix the build
Geoff Norton [Sat, 30 Oct 2010 22:21:53 +0000 (18:21 -0400)]
Fix the build

13 years agoFix some copyright messages.
Zoltan Varga [Sat, 30 Oct 2010 19:23:45 +0000 (21:23 +0200)]
Fix some copyright messages.

13 years agoFix Android build. MINI_THREAD_VAR_OFFSET needs to be defined as MONO_THREAD_VAR_OFFS...
Koushik Dutta [Sat, 30 Oct 2010 11:27:37 +0000 (04:27 -0700)]
Fix Android build. MINI_THREAD_VAR_OFFSET needs to be defined as MONO_THREAD_VAR_OFFSET (which returns -1).

13 years ago[asp.net] Fix for bug #650050. HtmlSelect must render non-standard attributes of...
Marek Habersack [Sat, 30 Oct 2010 01:35:29 +0000 (03:35 +0200)]
[asp.net] Fix for bug #650050. HtmlSelect must render non-standard attributes of every ListItem.

13 years agoDon't use a buffer size of 1 for zero-length buffers
Alex Fort [Fri, 29 Oct 2010 15:22:35 +0000 (23:22 +0800)]
Don't use a buffer size of 1 for zero-length buffers

Using a size of 1 for zero length buffers causes (on linux) the last character to be eaten by the buffer until the next flush.

13 years ago[Fix] Don't enforce a minimum size for zero-length buffers, fixing #645193
Alex Fort [Tue, 26 Oct 2010 18:52:21 +0000 (02:52 +0800)]
[Fix] Don't enforce a minimum size for zero-length buffers, fixing #645193

InitBuffer was forcing the length of any buffer smaller than 8 to be 8, but for zero-size buffers, this isn't correct.

13 years agoInt32.MinValue/-1 should throw OverflowException, not ArithmeticException. Our tests...
Zoltan Varga [Fri, 29 Oct 2010 23:04:49 +0000 (01:04 +0200)]
Int32.MinValue/-1 should throw OverflowException, not ArithmeticException. Our tests didn't catch this because the former is a subclass of the latter. Fixes #649889.

13 years agoUpdate the LLVM backend to latest LLVM SVN.
Zoltan Varga [Fri, 29 Oct 2010 22:41:42 +0000 (00:41 +0200)]
Update the LLVM backend to latest LLVM SVN.

13 years ago[OSX] Reintroduce Cocoa System.Drawing support
Geoff Norton [Fri, 29 Oct 2010 19:46:26 +0000 (15:46 -0400)]
[OSX] Reintroduce Cocoa System.Drawing support

The old Cocoa backend for System.Drawing appears to still work.  You must
pass in a NSView.Handle while in the DrawRect method, or with lockFocus
called to prepare the NSGraphicsContext.

13 years agoFix line endings.
Marek Safar [Fri, 29 Oct 2010 18:23:47 +0000 (19:23 +0100)]
Fix line endings.

13 years agoMerge branch 'marek'
Marek Safar [Fri, 29 Oct 2010 18:17:29 +0000 (19:17 +0100)]
Merge branch 'marek'

13 years agoMake dynamic array access index expresions in checked context
Marek Safar [Fri, 29 Oct 2010 18:15:50 +0000 (19:15 +0100)]
Make dynamic array access index expresions in checked context

13 years agoHandle lazy field loading.
Rodrigo Kumpera [Fri, 29 Oct 2010 17:51:04 +0000 (15:51 -0200)]
Handle lazy field loading.

* icall.c (ves_icall_MonoField_SetValueInternal): Handle
lazy field loading. Fixes buildbot crash.

13 years agoMake GetGenericTypeDefinitionImpl not init the class.
Rodrigo Kumpera [Fri, 29 Oct 2010 16:00:25 +0000 (14:00 -0200)]
Make GetGenericTypeDefinitionImpl not init the class.

* icall.c (ves_icall_Type_GetGenericTypeDefinition_impl):
Don't mono_class_init the type. Fixes test-792.

13 years agoReplace an assert with a nicer check.
Rodrigo Kumpera [Fri, 29 Oct 2010 15:26:28 +0000 (13:26 -0200)]
Replace an assert with a nicer check.

* icall.c (ves_icall_get_method_info): Use _checked variant
and avoid the assert.

13 years agoFix vtable check that broke banshee compilation.
Rodrigo Kumpera [Fri, 29 Oct 2010 15:13:02 +0000 (13:13 -0200)]
Fix vtable check that broke banshee compilation.

* class.c (mono_class_check_vtable_constraints): Only
fetch the class of generic arguments as those are the only
ones we care about. This fixes the case where a generic
arguments has its container as a constraint and we crash
with a stackoverflow.

13 years ago[JsonWriter] Fix JsonWriter yet again. Behaviour of WriteRaw on .net and sl is
Andreia Gaita [Fri, 29 Oct 2010 14:58:15 +0000 (15:58 +0100)]
[JsonWriter] Fix JsonWriter yet again. Behaviour of WriteRaw on .net and sl is
different, so ifdef to make everyone happy!

13 years ago[asp.net] Fix for bug #649551. The LosFormatter (bool, string) constructor does not...
Marek Habersack [Fri, 29 Oct 2010 13:53:19 +0000 (15:53 +0200)]
[asp.net] Fix for bug #649551. The LosFormatter (bool, string) constructor does not expect a base64-encoded string.

Telerik controls pass the string "string" as the macKeyModifier parameter to the constructor. Tests show that .NET
accepts such input without throwing an error. The passed string is now converted into a byte array and passed to
the LosFormatter (bool, byte[]) constructor.

13 years ago[asp.net] Fix for bug #649034. Control.FindControl continues to search for controls...
Marek Habersack [Fri, 29 Oct 2010 12:44:56 +0000 (14:44 +0200)]
[asp.net] Fix for bug #649034. Control.FindControl continues to search for controls above itself if it's a naming container.

When a control is a naming container and an attempt to find a control with non-segmented id (e.g. 'myControl') is made,
the search continues to the control's naming container if pathOffset is 0, that is we're at the start of the search.

13 years agoAdd tests for all types that are tested for XamlObjectReader (mostly NotWorking).
Atsushi Eno [Fri, 29 Oct 2010 11:46:37 +0000 (20:46 +0900)]
Add tests for all types that are tested for XamlObjectReader (mostly NotWorking).

13 years agoIgnore private methods in batch import
Marek Safar [Fri, 29 Oct 2010 10:55:12 +0000 (11:55 +0100)]
Ignore private methods in batch import

13 years agoRemove old code.
Atsushi Eno [Fri, 29 Oct 2010 10:31:22 +0000 (19:31 +0900)]
Remove old code.

13 years ago(Finally) replace old XamlObjectReader implementation with new one.
Atsushi Eno [Fri, 29 Oct 2010 10:23:05 +0000 (19:23 +0900)]
(Finally) replace old XamlObjectReader implementation with new one.

13 years agoAdded some notes on how we can use and/or test this XamlReader under .NET.
Atsushi Eno [Fri, 29 Oct 2010 10:16:22 +0000 (19:16 +0900)]
Added some notes on how we can use and/or test this XamlReader under .NET.

13 years agoMake it strict to apply PositionalParameters to limit to only simple arguments.
Atsushi Eno [Fri, 29 Oct 2010 10:07:45 +0000 (19:07 +0900)]
Make it strict to apply PositionalParameters to limit to only simple arguments.

Simple arguments can be written as "{foobar}" markup string within an attribute.

13 years agoMore compliant ordering of GetAllMembers() results. ConstructorArguments and Position...
Atsushi Eno [Fri, 29 Oct 2010 09:32:18 +0000 (18:32 +0900)]
More compliant ordering of GetAllMembers() results. ConstructorArguments and PositionalParameters go first.

13 years agoGetAllMSeveral fixes regarding property readability and writability.
Atsushi Eno [Fri, 29 Oct 2010 07:50:19 +0000 (16:50 +0900)]
GetAllMSeveral fixes regarding property readability and writability.

XamlMember.IsReadOnly returns false if there is private get accessor.
This is used to filter nonpublic accessors out, so replaced its usage with
!IsWritePublic to check truly read-only members.

This fix also required some changes in markup types (as IsReadOnly value now
differs).

13 years ago[OSX] Fix DriveInfo.GetDrives on OSX [Bug #643910]
Geoff Norton [Fri, 29 Oct 2010 04:37:10 +0000 (00:37 -0400)]
[OSX] Fix DriveInfo.GetDrives on OSX [Bug #643910]

Merge a patch from John Labovitz <johnl@johnlabovitz.com> which
correctly populates the DriveInfo structure on OSX instead of returning
random values.

13 years agoFix JsonWriterTest.WriteRaw() regression. WriteRaw() is (looking) almost identical...
Atsushi Eno [Fri, 29 Oct 2010 04:30:35 +0000 (13:30 +0900)]
Fix JsonWriterTest.WriteRaw() regression. WriteRaw() is (looking) almost identical to WriteString() here.

13 years ago[asp.net] Fix for bug #646505. BoundField must not assume the sender of the OnDataBin...
Marek Habersack [Fri, 29 Oct 2010 00:25:25 +0000 (02:25 +0200)]
[asp.net] Fix for bug #646505. BoundField must not assume the sender of the OnDataBindField is DataControlFieldCell.

13 years ago[asp.net] HttpRequest.MapPath changes to match .NET
Marek Habersack [Thu, 28 Oct 2010 22:03:54 +0000 (00:03 +0200)]
[asp.net] HttpRequest.MapPath changes to match .NET

When MapPath is passed a rooted, absolute path which is not in the current application's virtual
root, it should throw an exception. If the path is rooted and within the current application, it
will be mapped as if it was relative to the root.

13 years agoIntroduce new XamlObjectReader implementation.
Atsushi Eno [Thu, 28 Oct 2010 20:58:20 +0000 (05:58 +0900)]
Introduce new XamlObjectReader implementation.

Nodes are iterated in XamlNodeIterator which is used by XamlObjectReader.
It collects namespace declarations as it does in the reading the objects.
The new code is somewhat better, with less "special" hardcoded rules.

It can be even compiled with .NET (with TypeExtensionMethods).

13 years agoAdd GetItems tests for collection invoker.
Atsushi Eno [Thu, 28 Oct 2010 20:56:18 +0000 (05:56 +0900)]
Add GetItems tests for collection invoker.

13 years ago[OSX] Fix debug=casts on OSX (Bug: 639172)
Geoff Norton [Thu, 28 Oct 2010 20:07:08 +0000 (16:07 -0400)]
[OSX] Fix debug=casts on OSX (Bug: 639172)

mono --debug=casts requires fast tls access and the jit tls intrinsic.
We already had support for OP_TLS_GET on darwin/x86, but we did not
expose the "tls offset (pthread_key_t)" from mini to the intrinsic,
instead falling back on the io-layer keys.  We now store mono_lmf_addr
in a pthread_key for darwin/x86 so that we can do fast-tls in the jit
and fix this feature.  X86 only for now.

r: kumpera

13 years agoCollected tested types into a new file.
Atsushi Eno [Thu, 28 Oct 2010 18:24:13 +0000 (03:24 +0900)]
Collected tested types into a new file.

13 years agoAdd empty List<int> case.
Atsushi Eno [Thu, 28 Oct 2010 18:03:25 +0000 (03:03 +0900)]
Add empty List<int> case.

13 years agoMove version to 2.9 (next to be 2.10)
Andrew Jorgensen [Thu, 28 Oct 2010 17:49:41 +0000 (11:49 -0600)]
Move version to 2.9 (next to be 2.10)

13 years agoAdd more object reader tests with corner cases.
Atsushi Eno [Thu, 28 Oct 2010 16:40:10 +0000 (01:40 +0900)]
Add more object reader tests with corner cases.

13 years agoFix XamlType.Name to take TypeArguments into consideration.
Atsushi Eno [Thu, 28 Oct 2010 16:38:52 +0000 (01:38 +0900)]
Fix XamlType.Name to take TypeArguments into consideration.

13 years agoUse ArrayList like .NET (no practical changes).
Atsushi Eno [Thu, 28 Oct 2010 16:36:54 +0000 (01:36 +0900)]
Use ArrayList like .NET (no practical changes).

13 years agoFix emitted code for predefined or/and operation between bool? and bool
Marek Safar [Thu, 28 Oct 2010 15:40:53 +0000 (16:40 +0100)]
Fix emitted code for predefined or/and operation between bool? and bool

13 years agoBetter handle failure when loading types.
Rodrigo Kumpera [Thu, 28 Oct 2010 14:22:35 +0000 (12:22 -0200)]
Better handle failure when loading types.

* class.c (mono_class_create_from_typedef): If the type
fails due to a problem with the parent make sure we have
byval_arg and this_arg are setup properly as the whole
runtime requires those two to be setup even for broken
types.

13 years agoKill some loader leaks.
Rodrigo Kumpera [Wed, 27 Oct 2010 22:44:56 +0000 (20:44 -0200)]
Kill some loader leaks.

* class.c (mono_class_create_from_typedef): Avoid a loader leak
on parent load.

* class.c (mono_method_signature_checked): Avoid a loader leak
if type parsing fails.

13 years ago[asp.net] Fix for bug #646479. Do not call control's OnLoad twice when it is dynamica...
Marek Habersack [Thu, 28 Oct 2010 13:59:18 +0000 (15:59 +0200)]
[asp.net] Fix for bug #646479. Do not call control's OnLoad twice when it is dynamically added.

Control.AddedControl will call the new control's LoadRecursive which would trigger its OnLoad
handler. OnLoad must be called only if control hasn't already been loaded.

13 years ago[asp.net] Cosmetics + dead code removal
Marek Habersack [Thu, 28 Oct 2010 13:16:41 +0000 (15:16 +0200)]
[asp.net] Cosmetics + dead code removal

13 years ago[asp.net] Fix for bug #646810. Implemented FormsAuthentication.EnableFormsAUthenticat...
Marek Habersack [Thu, 28 Oct 2010 12:50:23 +0000 (14:50 +0200)]
[asp.net] Fix for bug #646810. Implemented FormsAuthentication.EnableFormsAUthentication + tests

13 years agoAdd more type parameter checks for inherited constraints.
Marek Safar [Thu, 28 Oct 2010 12:43:17 +0000 (13:43 +0100)]
Add more type parameter checks for inherited constraints.

13 years agoNew test.
Marek Safar [Wed, 27 Oct 2010 16:00:03 +0000 (17:00 +0100)]
New test.

13 years agoImplement type inference of dynamic arguments used as unknown types
Marek Safar [Wed, 27 Oct 2010 15:59:12 +0000 (16:59 +0100)]
Implement type inference of dynamic arguments used as unknown types

13 years agoUse correct location for unexpected type parameter
Marek Safar [Wed, 27 Oct 2010 14:20:51 +0000 (15:20 +0100)]
Use correct location for unexpected type parameter

13 years agoAdd another couple of MarkupExtension related tests.
Atsushi Eno [Thu, 28 Oct 2010 12:06:01 +0000 (21:06 +0900)]
Add another couple of MarkupExtension related tests.

13 years agoAdd more complicated PositionalParameters test (which actually does not use it).
Atsushi Eno [Thu, 28 Oct 2010 08:58:51 +0000 (17:58 +0900)]
Add more complicated PositionalParameters test (which actually does not use it).

13 years agoRemove extra DateTime handling and add some rules for PositionalParameters.
Atsushi Eno [Thu, 28 Oct 2010 08:57:38 +0000 (17:57 +0900)]
Remove extra DateTime handling and add some rules for PositionalParameters.

13 years agoFix the profiler thread start/end hooks for threadpool threads
Geoff Norton [Wed, 27 Oct 2010 20:46:27 +0000 (16:46 -0400)]
Fix the profiler thread start/end hooks for threadpool threads

13 years ago[Xml] Fix GetAttribute to handle null namespaces properly, add unit test.
Andreia Gaita [Wed, 27 Oct 2010 18:32:07 +0000 (19:32 +0100)]
[Xml] Fix GetAttribute to handle null namespaces properly, add unit test.

13 years agoOnly set lockTaken to TRUE if it did not timeout.
Rodrigo Kumpera [Wed, 27 Oct 2010 16:29:17 +0000 (14:29 -0200)]
Only set lockTaken to TRUE if it did not timeout.