Geoff Norton [Sat, 30 Oct 2010 22:21:53 +0000 (18:21 -0400)]
Fix the build
Zoltan Varga [Sat, 30 Oct 2010 19:23:45 +0000 (21:23 +0200)]
Fix some copyright messages.
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).
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.
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.
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.
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.
Zoltan Varga [Fri, 29 Oct 2010 22:41:42 +0000 (00:41 +0200)]
Update the LLVM backend to latest LLVM SVN.
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.
Marek Safar [Fri, 29 Oct 2010 18:23:47 +0000 (19:23 +0100)]
Fix line endings.
Marek Safar [Fri, 29 Oct 2010 18:17:29 +0000 (19:17 +0100)]
Merge branch 'marek'
Marek Safar [Fri, 29 Oct 2010 18:15:50 +0000 (19:15 +0100)]
Make dynamic array access index expresions in checked context
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.
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.
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.
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.
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!
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.
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.
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).
Marek Safar [Fri, 29 Oct 2010 10:55:12 +0000 (11:55 +0100)]
Ignore private methods in batch import
Atsushi Eno [Fri, 29 Oct 2010 10:31:22 +0000 (19:31 +0900)]
Remove old code.
Atsushi Eno [Fri, 29 Oct 2010 10:23:05 +0000 (19:23 +0900)]
(Finally) replace old XamlObjectReader implementation with new one.
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.
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.
Atsushi Eno [Fri, 29 Oct 2010 09:32:18 +0000 (18:32 +0900)]
More compliant ordering of GetAllMembers() results. ConstructorArguments and PositionalParameters go first.
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).
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.
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.
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.
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.
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).
Atsushi Eno [Thu, 28 Oct 2010 20:56:18 +0000 (05:56 +0900)]
Add GetItems tests for collection invoker.
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
Atsushi Eno [Thu, 28 Oct 2010 18:24:13 +0000 (03:24 +0900)]
Collected tested types into a new file.
Atsushi Eno [Thu, 28 Oct 2010 18:03:25 +0000 (03:03 +0900)]
Add empty List<int> case.
Andrew Jorgensen [Thu, 28 Oct 2010 17:49:41 +0000 (11:49 -0600)]
Move version to 2.9 (next to be 2.10)
Atsushi Eno [Thu, 28 Oct 2010 16:40:10 +0000 (01:40 +0900)]
Add more object reader tests with corner cases.
Atsushi Eno [Thu, 28 Oct 2010 16:38:52 +0000 (01:38 +0900)]
Fix XamlType.Name to take TypeArguments into consideration.
Atsushi Eno [Thu, 28 Oct 2010 16:36:54 +0000 (01:36 +0900)]
Use ArrayList like .NET (no practical changes).
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
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.
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.
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.
Marek Habersack [Thu, 28 Oct 2010 13:16:41 +0000 (15:16 +0200)]
[asp.net] Cosmetics + dead code removal
Marek Habersack [Thu, 28 Oct 2010 12:50:23 +0000 (14:50 +0200)]
[asp.net] Fix for bug #646810. Implemented FormsAuthentication.EnableFormsAUthentication + tests
Marek Safar [Thu, 28 Oct 2010 12:43:17 +0000 (13:43 +0100)]
Add more type parameter checks for inherited constraints.
Marek Safar [Wed, 27 Oct 2010 16:00:03 +0000 (17:00 +0100)]
New test.
Marek Safar [Wed, 27 Oct 2010 15:59:12 +0000 (16:59 +0100)]
Implement type inference of dynamic arguments used as unknown types
Marek Safar [Wed, 27 Oct 2010 14:20:51 +0000 (15:20 +0100)]
Use correct location for unexpected type parameter
Atsushi Eno [Thu, 28 Oct 2010 12:06:01 +0000 (21:06 +0900)]
Add another couple of MarkupExtension related tests.
Atsushi Eno [Thu, 28 Oct 2010 08:58:51 +0000 (17:58 +0900)]
Add more complicated PositionalParameters test (which actually does not use it).
Atsushi Eno [Thu, 28 Oct 2010 08:57:38 +0000 (17:57 +0900)]
Remove extra DateTime handling and add some rules for PositionalParameters.
Geoff Norton [Wed, 27 Oct 2010 20:46:27 +0000 (16:46 -0400)]
Fix the profiler thread start/end hooks for threadpool threads
Andreia Gaita [Wed, 27 Oct 2010 18:32:07 +0000 (19:32 +0100)]
[Xml] Fix GetAttribute to handle null namespaces properly, add unit test.
Rodrigo Kumpera [Wed, 27 Oct 2010 16:29:17 +0000 (14:29 -0200)]
Only set lockTaken to TRUE if it did not timeout.
Rodrigo Kumpera [Wed, 27 Oct 2010 16:28:17 +0000 (14:28 -0200)]
Don't crash with bad signatures.
* reflection.c (mono_param_get_objects_internal): Use checked
variant of mono_method_signature.
Atsushi Eno [Wed, 27 Oct 2010 13:58:29 +0000 (22:58 +0900)]
Some internal refactoring for new XamlObjectReader implementation.
Rodrigo Kumpera [Wed, 27 Oct 2010 13:00:25 +0000 (11:00 -0200)]
Make MonoType::GetField lazier.
* icall.c (ves_icall_Type_GetField): Use
code path that lazy load the field type.
Fixes #649522
Rodrigo Kumpera [Wed, 27 Oct 2010 12:43:46 +0000 (10:43 -0200)]
Change a g_warning into a mono_trace call.
* loader.c (mono_loader_set_error_assembly_load): Don't
g_warning on failure. Use our tracing facility instead.
Marek Safar [Wed, 27 Oct 2010 12:37:06 +0000 (13:37 +0100)]
Reorder MethodBase::Attributes usage
Marek Safar [Wed, 27 Oct 2010 12:36:36 +0000 (13:36 +0100)]
More tests
Marek Safar [Wed, 27 Oct 2010 12:35:17 +0000 (13:35 +0100)]
[649448] Compare original goto block for cloned blocks.
Rodrigo Kumpera [Wed, 27 Oct 2010 12:37:33 +0000 (10:37 -0200)]
Load less stuff when resolving MethodInfo::Attributes.
* MonoMethod.cs: Add new icall for ::Attributes.
* icall.c: New icall to resolve ::Attributes so it can
avoid loading the signature and work around methods with
broken signatures.
Fixes #649527
Marek Habersack [Wed, 27 Oct 2010 12:21:38 +0000 (14:21 +0200)]
[asp.net] Fix for bug #646984. Theme stylesheets must be output in correct order.
This patch changes the way we output theme stylesheets to match .NET behavior. Theme
.css files are sorted using an ordinal and case-insensitive comparer and are output
to the page at the top of the <head> element's contents instead of at the end.
Atsushi Eno [Wed, 27 Oct 2010 10:34:45 +0000 (19:34 +0900)]
Add a few more default value tests.
Atsushi Eno [Wed, 27 Oct 2010 10:33:53 +0000 (19:33 +0900)]
Move member ordering code to LookupAllMembers().
Marek Habersack [Wed, 27 Oct 2010 09:55:36 +0000 (11:55 +0200)]
[asp.net] Fix for bug #643847. Membership.CreateUser overloads must check username and password for correctness.
Marek Safar [Wed, 27 Oct 2010 09:38:58 +0000 (10:38 +0100)]
[648360] When inflating nested generic type use same type arguments to not inflate already inflated type
Atsushi Eno [Wed, 27 Oct 2010 09:05:19 +0000 (18:05 +0900)]
Uncommend code that prohibits XamlMemberInvoker.GetValue() on XamlDirective.
Atsushi Eno [Wed, 27 Oct 2010 09:04:13 +0000 (18:04 +0900)]
Fix wrong lookup base call.
Marek Habersack [Wed, 27 Oct 2010 08:52:40 +0000 (10:52 +0200)]
[asp.net] Fix a build-breaking typo introduced in
ea730c5de2e555fb8ee5c5d906ad41a602f55848
Marek Safar [Wed, 27 Oct 2010 08:48:31 +0000 (09:48 +0100)]
Make the static field readonly
Marek Safar [Wed, 27 Oct 2010 08:50:24 +0000 (09:50 +0100)]
Make static fields readonly
Marek Safar [Wed, 27 Oct 2010 08:50:07 +0000 (09:50 +0100)]
crlf fix
Marek Safar [Tue, 26 Oct 2010 15:53:03 +0000 (16:53 +0100)]
Revert unwanted changes
Marek Safar [Tue, 26 Oct 2010 15:47:48 +0000 (16:47 +0100)]
Check nested declaring types when testing member overrides
Marek Safar [Tue, 26 Oct 2010 15:45:15 +0000 (16:45 +0100)]
Delay expensive inflator construction for type parameter constraints
Marek Habersack [Tue, 26 Oct 2010 23:25:07 +0000 (01:25 +0200)]
[asp.net] Fix for bug #648407. HttpCachePolicy must use the value passed to AppendCacheExtension when generating the Cache-Control header
Marek Habersack [Tue, 26 Oct 2010 23:09:13 +0000 (01:09 +0200)]
[asp.net] Added encryption notes to ObjectStateFormatter.{Serialize,Deserialize}
Marek Habersack [Tue, 26 Oct 2010 22:52:29 +0000 (00:52 +0200)]
[asp.net] Fix for bug #648432. HttpResponse.WriteFile maps file path if it isn't an absolute one.
Both on Linux and on Windows file paths starting with x:\\, x:// and //server don't have their
paths mapped. On Linux it may have weird (and unexpected for a Windows developer) effects since
we cannot treat those names in any special way - the are valid Unix file names. On Windows things
will work as expected.
Rodrigo Kumpera [Tue, 26 Oct 2010 20:52:53 +0000 (18:52 -0200)]
Fix some counters under 32bits.
Rodrigo Kumpera [Tue, 26 Oct 2010 20:17:19 +0000 (18:17 -0200)]
Implemenent v4 Monitor::TryEnter overloads.
* Monitor.cs (TryEnter): Implement v4 overloads that take
a "ref book lookTaken" var. Setting this flag must be done
in the runtime to avoid async exceptions.
* Monitor.cs (Enter): Fix v4 overload to be async exception
safe.
* monitor.c: New icall for the above.
Fixes #649159
Sebastien Pouliot [Tue, 26 Oct 2010 19:58:58 +0000 (15:58 -0400)]
Add missing 'same-module' check for GetConstructorToken
* ModuleBuilder.cs: Add missing 'same-module' check for GetConstructorToken
just like methods and fields already have
Rodrigo Kumpera [Tue, 26 Oct 2010 18:07:18 +0000 (16:07 -0200)]
Properly encode field signatures created using gtds.
* reflection.c (field_encode_signature): If the field
was constructed with a GTD, encode it as an open instance.
Fixes #649233
Rodrigo Kumpera [Tue, 26 Oct 2010 16:20:10 +0000 (14:20 -0200)]
Fix exception message
Rodrigo Kumpera [Tue, 26 Oct 2010 16:16:14 +0000 (14:16 -0200)]
Check for declaring type.
* TypeBuilder.cs (GetField): Check if the declaring type
matches the supplied type gtd.
* TypeBuilderTest.cs: Add regression test.
Fixes #649237
Atsushi Eno [Tue, 26 Oct 2010 16:00:59 +0000 (01:00 +0900)]
XamlLanguage.Items is not correctly supported in XamlObjectReader.
Atsushi Eno [Tue, 26 Oct 2010 15:19:01 +0000 (00:19 +0900)]
Add Dictionary related tests.
Atsushi Eno [Tue, 26 Oct 2010 15:17:37 +0000 (00:17 +0900)]
ItemType returns Value item for Dictionary type.
Rodrigo Kumpera [Tue, 26 Oct 2010 15:16:29 +0000 (13:16 -0200)]
Avoid initing the class for some array related methods in Type.
* icall.c (ves_icall_MonoType_GetArrayRank): Don't
mono_class_init the class as it's not needed.
* icall.c (ves_icall_Type_make_array_type): Ditto.
Fixes #648833
Rodrigo Kumpera [Tue, 26 Oct 2010 14:58:26 +0000 (12:58 -0200)]
Add regression test for #649014
Rodrigo Kumpera [Tue, 26 Oct 2010 14:38:10 +0000 (12:38 -0200)]
Casts must be to realizable types.
* verify.c (do_cast): The casted to type must be a boxable type.
Fixes #649014
Sebastien Pouliot [Tue, 26 Oct 2010 13:28:16 +0000 (09:28 -0400)]
Fix moonlight build since [s]mcs now depends on System.Diagnostics.Stopwatch
* moonlight_shared_System.dll.sources: Add Stopwatch to fix the build
Marek Habersack [Tue, 26 Oct 2010 11:36:00 +0000 (13:36 +0200)]
[asp.net] Cosmetics to make code a bit more efficient
Marek Habersack [Tue, 26 Oct 2010 11:16:25 +0000 (13:16 +0200)]
[asp.net] Fix for bug #648439. Do not prefix HttpRequest.ServerVariables ["QUERY_STRING"] with a '?'
Marek Habersack [Tue, 26 Oct 2010 10:00:29 +0000 (12:00 +0200)]
[asp.net] Fix for bug #649198. Implement MasterPage.InstantiateInContentPlaceHolder
Code based on patch from Rikard Johansson <rajoo@mail.com>, thanks!
Zoltan Varga [Tue, 26 Oct 2010 02:34:40 +0000 (04:34 +0200)]
Mark tls_get with clob:c on arm.
Carlos Alberto Cortez [Mon, 25 Oct 2010 20:25:27 +0000 (22:25 +0200)]
[fix] #647689: Fire the Mouse* events on ComboBox when using the child TextBox.
* ComboBox.cs: Fire the Mouse* events when using the child
TextBox.
Fixes #647689.
Carlos Alberto Cortez [Mon, 25 Oct 2010 09:23:30 +0000 (11:23 +0200)]
[fix] #648449: When updating Z-order for our controls add the scrollbars as well.
* ListView.cs: When updating the Z-order for our controls don't
forget to add the implicit scrollbars we well.
Fixes #648449.