Marek Habersack [Sat, 21 Mar 2009 02:06:03 +0000 (02:06 -0000)]
2009-03-21 Marek Habersack <mhabersack@novell.com>
* HttpResponse.cs: added two missing 3.0+ properties -
SubStatusCode and TrySkipIisCustomErrors.
svn path=/trunk/mcs/; revision=129933
Marek Habersack [Fri, 20 Mar 2009 22:52:33 +0000 (22:52 -0000)]
Fix the build
svn path=/trunk/mono/; revision=129930
Zoltan Varga [Fri, 20 Mar 2009 21:38:56 +0000 (21:38 -0000)]
2009-03-20 Zoltan Varga <vargaz@gmail.com>
* mono/os: Remove this now empty directory.
* mono/Makefile.am (SUBDIRS): Remove 'os'.
svn path=/trunk/mono/; revision=129929
Zoltan Varga [Fri, 20 Mar 2009 21:37:08 +0000 (21:37 -0000)]
2009-03-20 Zoltan Varga <vargaz@gmail.com>
* os/gc-internal.h: Move this to 'utils'.
svn path=/trunk/mono/; revision=129928
Zoltan Varga [Fri, 20 Mar 2009 21:31:14 +0000 (21:31 -0000)]
2009-03-20 Zoltan Varga <vargaz@gmail.com>
* method-to-ir.c (mono_find_block_region): Handle try clauses nested
inside finally clauses correctly. Fixes #485721.
* mini.c (mono_find_spvar_for_region): This needs to handle try regions
after the change above.
* exceptions.cs: Add a test.
svn path=/trunk/mono/; revision=129927
Zoltan Varga [Fri, 20 Mar 2009 21:04:50 +0000 (21:04 -0000)]
2009-03-20 Zoltan Varga <vargaz@gmail.com>
* mono-gdb.py: Update for the latest python API on the archer branch.
svn path=/trunk/mono/; revision=129926
Zoltan Varga [Fri, 20 Mar 2009 21:04:00 +0000 (21:04 -0000)]
2009-03-20 Zoltan Varga <vargaz@gmail.com>
* thread6.cs: Use a monitor to avoid sleeping which doesn't work on slow
machines.
svn path=/trunk/mono/; revision=129925
Jonathan Pryor [Fri, 20 Mar 2009 16:32:43 +0000 (16:32 -0000)]
* x-struct-str.c: It's possible for struct members to be NULL, so make
sure we don't pass NULL to strlen(3).
svn path=/trunk/mono/; revision=129882
Sebastien Pouliot [Fri, 20 Mar 2009 16:24:39 +0000 (16:24 -0000)]
2009-03-20 Sebastien Pouliot <sebastien@ximian.com>
* class.c: Simplification to coreclr checks for overrides that
makes it easier to set breakpoints.
svn path=/trunk/mono/; revision=129880
Zoltan Varga [Fri, 20 Mar 2009 15:53:35 +0000 (15:53 -0000)]
2009-03-20 Zoltan Varga <vargaz@gmail.com>
* method-to-ir.c (mono_find_block_region): Handle try clauses nested
inside finally clauses correctly. Fixes #485721.
* mini.c (mono_find_spvar_for_region): This needs to handle try regions
after the change above.
* exceptions.cs: Add a test.
svn path=/trunk/mono/; revision=129877
Sebastien Pouliot [Fri, 20 Mar 2009 14:02:16 +0000 (14:02 -0000)]
2009-03-20 Sebastien Pouliot <sebastien@ximian.com>
* EventInfo.cs, MonoProperty.cs: Ensure the delegate optimization
works correctly, i.e. throw the right exception, with Moonlight.
svn path=/trunk/mcs/; revision=129872
Sebastien Pouliot [Fri, 20 Mar 2009 13:48:57 +0000 (13:48 -0000)]
2009-03-20 Sebastien Pouliot <sebastien@ximian.com>
* DynamicMethod.cs (Invoke): Wrap a MethodAccessException inside a
TargetInvocationException (required for Moonlight 2).
svn path=/trunk/mcs/; revision=129871
Sebastien Pouliot [Fri, 20 Mar 2009 13:10:43 +0000 (13:10 -0000)]
2009-03-20 Sebastien Pouliot <sebastien@ximian.com>
* security-core-clr.c|h: (mono_security_core_clr_class_level,
mono_security_core_clr_method_level): Avoid potential
MonoCustomAttrInfo allocation for transparent assemblies (e.g.
user/application code) and make it easier to set breakpoints
svn path=/trunk/mono/; revision=129866
Daniel Morgan [Fri, 20 Mar 2009 11:11:57 +0000 (11:11 -0000)]
2009-03-20 Daniel Morgan <monodanmorg@yahoo.com>
* OracleCommand.cs: fix suggested by Thracx <SpamMonkey01+Mono@gmail.com>
where the parameter was always item zero for an out parameter.
svn path=/trunk/mcs/; revision=129864
Rodrigo Kumpera [Thu, 19 Mar 2009 22:32:11 +0000 (22:32 -0000)]
2009-03-19 Rodrigo Kumpera <rkumpera@novell.com>
* metadata-verify.c: Reject cli header tables that mono don't handle.
svn path=/trunk/mono/; revision=129835
Rodrigo Kumpera [Thu, 19 Mar 2009 22:32:03 +0000 (22:32 -0000)]
2009-03-19 Rodrigo Kumpera <rkumpera@novell.com>
* cli-header-tests.md: More tests for the cli header.
svn path=/trunk/mono/; revision=129834
Rodrigo Kumpera [Thu, 19 Mar 2009 22:32:01 +0000 (22:32 -0000)]
2009-03-19 Rodrigo Kumpera <rkumpera@novell.com>
* pedump.c: Fix CLI header dumping.
svn path=/trunk/mono/; revision=129833
Rodrigo Kumpera [Thu, 19 Mar 2009 22:31:53 +0000 (22:31 -0000)]
2009-03-19 Rodrigo Kumpera <rkumpera@novell.com>
* metadata-verify.c: More CLI header verification.
svn path=/trunk/mono/; revision=129832
Rodrigo Kumpera [Thu, 19 Mar 2009 22:31:46 +0000 (22:31 -0000)]
2009-03-19 Rodrigo Kumpera <rkumpera@novell.com>
* gen-md-tests.c: Add cli-header variable to make tests
more readable.
svn path=/trunk/mono/; revision=129831
Zoltan Varga [Thu, 19 Mar 2009 21:18:52 +0000 (21:18 -0000)]
2009-03-19 Zoltan Varga <vargaz@gmail.com>
* unwind.c (mono_unwind_ops_encode): Increase the size of the encode buffer.
* mini-amd64.c (mono_arch_emit_epilog): Remove the encoding of stack size
into cfg->used_int_regs, it is not needed with the dwarf unwinder.
(mono_arch_compute_omit_fp): Remove the emit_epilog () workaround.
svn path=/trunk/mono/; revision=129826
Zoltan Varga [Thu, 19 Mar 2009 21:08:18 +0000 (21:08 -0000)]
2009-03-19 Zoltan Varga <vargaz@gmail.com>
* mini-amd64.c (mono_arch_compute_omit_fp): Add another check to avoid hitting
the stack_alloc_size < (1 << 16) assertion in emit_prolog ().
svn path=/trunk/mono/; revision=129824
Jonathan Pryor [Thu, 19 Mar 2009 21:00:27 +0000 (21:00 -0000)]
* src/DbLinq/Data/Linq/Database/Implementation/TransactionalCommand.cs,
src/DbLinq.Firebird/FirebirdDataContext.cs,
src/DbLinq.Ingres/IngresDataContext.cs,
src/DbLinq.MySql/MysqlDataContext.cs,
src/DbLinq.Oracle/OracleDataContext.cs,
src/DbLinq.PostgreSql/PgsqlDataContext.cs,
src/DbLinq.Sqlite/Schema/DataCommand.cs,
src/DbLinq.Sqlite/SqliteDataContext.cs,
src/DbLinq.SqlServer/SqlServerDataContext.cs,
src/DbLinq/Util/ReflectionUtility.cs: Make types internal so that
they aren't exported from System.Data.Linq.dll.
svn path=/trunk/mcs/; revision=129823
Ivan Zlatev [Thu, 19 Mar 2009 18:59:57 +0000 (18:59 -0000)]
2009-03-19 Ivan N. Zlatev <contact@i-nz.net>
* DataGridView.cs: If IsHandleCreated and the very first row is added
to the grid in a non-databound scenario - select the first cell.2009-03-19 Ivan N. Zlatev <contact@i-nz.net>
* DataGridViewTest.cs: Add tests to verify that the current cell changes
if IsHandleCreated and the first row is added in a non-databound scenario.
[Fixes bug #486881]
svn path=/trunk/mcs/; revision=129815
Marek Safar [Thu, 19 Mar 2009 18:44:28 +0000 (18:44 -0000)]
2009-03-19 Marek Safar <marek.safar@gmail.com>
* ecore.cs: Load build-in types directly instead of accessing
an internal field.
svn path=/trunk/mcs/; revision=129812
Sebastien Pouliot [Thu, 19 Mar 2009 18:38:42 +0000 (18:38 -0000)]
2009-03-19 Sebastien Pouliot <sebastien@ximian.com>
* method-to-ir.c: Allow CoreCLR to throw FieldAccessException.
Simplify logic for ensure_method_is_allowed_to_call_method.
Handle wrappers on callers.
svn path=/trunk/mono/; revision=129810
Ivan Zlatev [Thu, 19 Mar 2009 18:10:03 +0000 (18:10 -0000)]
2009-03-19 Ivan N. Zlatev <contact@i-nz.net>
* DataGridView.cs, DataGridViewColumn.cs: Do not set Row/CellTemplate's
DataGridView. They do not belong to a DataGridView.
* DataGridViewTest.cs, DataGridViewColumnTest.cs: Add tests for
Row/CellTemplates being always null.
[Fixes bug #486645]
svn path=/trunk/mcs/; revision=129806
Ivan Zlatev [Thu, 19 Mar 2009 18:09:59 +0000 (18:09 -0000)]
2009-03-19 Ivan N. Zlatev <contact@i-nz.net>
* DataGridViewCellCollection.cs, DataGridViewColumnCollection.cs:
Set indices and associate with DataGridView only after the item is
add to the internal list.
[Fixes part of bug #486645]
svn path=/trunk/mcs/; revision=129805
Ivan Zlatev [Thu, 19 Mar 2009 18:09:54 +0000 (18:09 -0000)]
2009-03-19 Ivan N. Zlatev <contact@i-nz.net>
* DataGridView.cs: Do not add any cells to the FullRowTemplate in RowCount.
FullRowTemplate already contains all the cells.
[Fixes part of bug #486645]
svn path=/trunk/mcs/; revision=129804
Ivan Zlatev [Thu, 19 Mar 2009 18:09:38 +0000 (18:09 -0000)]
2009-03-19 Ivan N. Zlatev <contact@i-nz.net>
* DataGridView.cs, DataGridViewCellCollection.cs: Split the column removal
to perform Pre and Post removal actions to allow the current cell to be
moved and all events fired properly before the column is removed.
svn path=/trunk/mcs/; revision=129803
Zoltan Varga [Thu, 19 Mar 2009 17:58:09 +0000 (17:58 -0000)]
2009-03-19 Zoltan Varga <vargaz@gmail.com>
* Makefile.am (fullaotcheck): Don't run the generics tests, some of
them don't run yet.
svn path=/trunk/mono/; revision=129802
Zoltan Varga [Thu, 19 Mar 2009 17:57:04 +0000 (17:57 -0000)]
2009-03-19 Zoltan Varga <vargaz@gmail.com>
* basic-simd.cs: Fix the names of some test methods.
svn path=/trunk/mono/; revision=129801
Zoltan Varga [Thu, 19 Mar 2009 17:42:53 +0000 (17:42 -0000)]
2009-03-19 Zoltan Varga <vargaz@gmail.com>
* locales.c (get_current_locale_name): Use g_malloc instead of malloc.
svn path=/trunk/mono/; revision=129798
Marek Habersack [Thu, 19 Mar 2009 13:44:14 +0000 (13:44 -0000)]
2009-03-19 Marek Habersack <mhabersack@novell.com>
* ScriptManager.cs: WriteCallbackPanel is called from
UpdatePanel.RenderChildren and should not output anything for
panels registered as the ones to refresh. If such a panel calls
this method, its output is stored in a dictionary to be used later
in RenderFormCallback.
RenderFormCallback first renders all the form controls. In that
process UpdatePanel instances, if any, may call
WriteCallbackPanel. After that, if there are panels registered for
refresh, another loop over the list is made this time checking
whether any panels left their output in WriteCallbackPanel. If a
panel hasn't done it it is rendered. And last, another check is
done to see if the loop described above caused any panels to leave
output in WriteCallbackPanel. If yes, the output is written to the
text writer.
svn path=/trunk/mcs/; revision=129774
Sebastien Pouliot [Thu, 19 Mar 2009 12:05:13 +0000 (12:05 -0000)]
2009-03-19 Sebastien Pouliot <sebastien@ximian.com>
* SecurityManager.cs: Remove VerificationException (not used from
the runtime anymore) and add FieldAccessException (which is now,
or soon will be, required/used by the runtime).
svn path=/trunk/mcs/; revision=129771
Atsushi Eno [Thu, 19 Mar 2009 08:12:07 +0000 (08:12 -0000)]
2009-03-19 Atsushi Enomoto <atsushi@ximian.com>
* KnownTypeCollection.cs, XmlFormatterDeserializer.cs :
to infer type from xml qname, consider DataContractAttribute
names.
svn path=/trunk/mcs/; revision=129764
Ankit Jain [Thu, 19 Mar 2009 01:09:56 +0000 (01:09 -0000)]
Fix bugs #323833 and #484384.
* AssemblyResolver.cs (GatherGacAssemblies): Handle duplicate entries.
These seem to be old copies of the assemblies with old keys. Pick
the one with the latest timestamp.
svn path=/trunk/mcs/; revision=129760
Ankit Jain [Thu, 19 Mar 2009 00:58:12 +0000 (00:58 -0000)]
Fix bug #484773.
* Main.cs (Execute): Check whether the project file exists or not.
* Parameters.cs (ParseArguments): Handle absolute paths too.
svn path=/trunk/mcs/; revision=129759
Ivan Zlatev [Thu, 19 Mar 2009 00:26:30 +0000 (00:26 -0000)]
2009-03-19 Ivan N. Zlatev <contact@i-nz.net>
* DataGridView.cs, DataGridViewRow.cs: Split the row removal to perform Pre and
Post removal action to allow the current cell to be moved and all events fired
properly before the row is removed.
svn path=/trunk/mcs/; revision=129757
Ivan Zlatev [Wed, 18 Mar 2009 23:19:50 +0000 (23:19 -0000)]
2009-03-18 Ivan N. Zlatev <contact@i-nz.net>
* DataGridView.cs: Fire CellEnter and CellLeave events for the Cell.
[Fixes bug #486640]
svn path=/trunk/mcs/; revision=129747
Rodrigo Kumpera [Wed, 18 Mar 2009 22:33:28 +0000 (22:33 -0000)]
2009-03-18 Rodrigo Kumpera <rkumpera@novell.com>
* cli-header-tests.md: New file with cli header tests.
* Makefile: Add new tests.
svn path=/trunk/mono/; revision=129743
Rodrigo Kumpera [Wed, 18 Mar 2009 22:33:26 +0000 (22:33 -0000)]
2009-03-18 Rodrigo Kumpera <rkumpera@novell.com>
* metadata-verify.c: Initial verification of the CLI header.
svn path=/trunk/mono/; revision=129742
Rodrigo Kumpera [Wed, 18 Mar 2009 22:33:19 +0000 (22:33 -0000)]
2009-03-18 Rodrigo Kumpera <rkumpera@novell.com>
* metadata-verify.c (verify_resources_table): Fix verification of zero
sized resource section and id entries count.
svn path=/trunk/mono/; revision=129741
Geoff Norton [Wed, 18 Mar 2009 19:29:33 +0000 (19:29 -0000)]
2009-03-18 Geoff Norton <gnorton@novell.com>
* mini.c: Only chain sigfpe if it wasn't generated in mangaed code.
svn path=/trunk/mono/; revision=129736
Marek Safar [Wed, 18 Mar 2009 17:38:06 +0000 (17:38 -0000)]
Update.
svn path=/trunk/mcs/; revision=129721
Marek Safar [Wed, 18 Mar 2009 17:36:46 +0000 (17:36 -0000)]
2009-03-18 Marek Safar <marek.safar@gmail.com>
* ecore.cs: Always use unbox.any when available.
svn path=/trunk/mcs/; revision=129719
Marek Safar [Wed, 18 Mar 2009 17:17:58 +0000 (17:17 -0000)]
New tests.
svn path=/trunk/mcs/; revision=129715
Marek Safar [Wed, 18 Mar 2009 17:17:43 +0000 (17:17 -0000)]
2009-03-18 Marek Safar <marek.safar@gmail.com>
* class.cs: Always set TypeAttributes.BeforeFieldInit conditionally.
svn path=/trunk/mcs/; revision=129714
Jonathan Pobst [Wed, 18 Mar 2009 14:46:47 +0000 (14:46 -0000)]
2009-03-18 Jonathan Pobst <monkey@jpobst.com>
* XplatUICarbon.cs: Commit patch from Alex Shulgin that fixes window
placement of popup windows on OSX.
svn path=/trunk/mcs/; revision=129699
Zoltan Varga [Wed, 18 Mar 2009 14:15:57 +0000 (14:15 -0000)]
2009-03-18 Zoltan Varga <vargaz@gmail.com>
* TypeTest.cs: Add more tests for user types.
svn path=/trunk/mcs/; revision=129693
Zoltan Varga [Wed, 18 Mar 2009 14:15:30 +0000 (14:15 -0000)]
2009-03-18 Zoltan Varga <vargaz@gmail.com>
* TypeBuilder.cs (GetGenericTypeDefinition): Call the icall instead of
the base method which now throws an exception.
svn path=/trunk/mcs/; revision=129692
Zoltan Varga [Wed, 18 Mar 2009 14:14:44 +0000 (14:14 -0000)]
2009-03-18 Zoltan Varga <vargaz@gmail.com>
* Type.cs (GetGenericTypeDefinition): Make this throw an exception to be
consistent with MS.NET. Move the real implementation to MonoType.
svn path=/trunk/mcs/; revision=129691
Zoltan Varga [Wed, 18 Mar 2009 14:08:04 +0000 (14:08 -0000)]
2009-03-18 Zoltan Varga <vargaz@gmail.com>
* icall.c: Handle user types in many Type icalls. Fixes #486303.
svn path=/trunk/mono/; revision=129689
Zoltan Varga [Wed, 18 Mar 2009 13:24:02 +0000 (13:24 -0000)]
2009-03-18 Zoltan Varga <vargaz@gmail.com>
* dwarfwriter.c (token_handler): Fix a crash caused by the last change.
svn path=/trunk/mono/; revision=129688
Marek Safar [Wed, 18 Mar 2009 12:42:54 +0000 (12:42 -0000)]
2009-03-18 Marek Safar <marek.safar@gmail.com>
* Decimal.cs: Initialize all fields.
svn path=/trunk/mcs/; revision=129686
Marek Habersack [Wed, 18 Mar 2009 08:08:19 +0000 (08:08 -0000)]
2009-03-18 Marek Habersack <mhabersack@novell.com>
* Control.cs: AppRelativeResourceDirectory no longer returns a
hard-coded "~/" when template control's virtual path cannot be
determined. It returns application relative version of
TemplateSourceDirectory instead.
svn path=/trunk/mcs/; revision=129676
Atsushi Eno [Wed, 18 Mar 2009 07:19:33 +0000 (07:19 -0000)]
2009-03-18 Atsushi Enomoto <atsushi@ximian.com>
* XmlDictionaryReader.cs : more not-understandable bits.
svn path=/trunk/mcs/; revision=129675
Atsushi Eno [Wed, 18 Mar 2009 07:04:30 +0000 (07:04 -0000)]
2009-03-18 Atsushi Enomoto <atsushi@ximian.com>
* XmlDictionaryReader.cs : implemented ReadFullStartElement (full??).
svn path=/trunk/mcs/; revision=129674
Atsushi Eno [Wed, 18 Mar 2009 06:51:59 +0000 (06:51 -0000)]
2009-03-18 Atsushi Enomoto <atsushi@ximian.com>
* XmlDictionaryReader.cs : implemented missing && understandable
members.
svn path=/trunk/mcs/; revision=129673
Atsushi Eno [Wed, 18 Mar 2009 06:36:24 +0000 (06:36 -0000)]
2009-03-18 Atsushi Enomoto <atsushi@ximian.com>
* XmlReader.cs : handle DateTimeOffset in typed reader methods.
svn path=/trunk/mcs/; revision=129672
Neville Gao [Wed, 18 Mar 2009 02:53:24 +0000 (02:53 -0000)]
Override "ToString" for FontDialog.ColorComboBox.ColorComboBoxItem
[Fixes bug #482690]. Committed for Matt Guo.
svn path=/trunk/mcs/; revision=129669
Ivan Zlatev [Wed, 18 Mar 2009 01:37:02 +0000 (01:37 -0000)]
2009-03-18 Ivan N. Zlatev <contact@i-nz.net>
* DataGridView.cs: Implement the CellMouseDoubleClick event.
[Fixes bug #486262]
svn path=/trunk/mcs/; revision=129661
Ivan Zlatev [Wed, 18 Mar 2009 01:03:25 +0000 (01:03 -0000)]
2009-03-18 Ivan N. Zlatev <contact@i-nz.net>
* DataGridView.cs: Fix scrolling to take into account that the
scrollbars are actually inside the client area of the datagridview.
svn path=/trunk/mcs/; revision=129657
Ivan Zlatev [Wed, 18 Mar 2009 01:03:20 +0000 (01:03 -0000)]
2009-03-18 Ivan N. Zlatev <contact@i-nz.net>
* DataGridView.cs: Implement mouse wheel scrolling.
[Fixes bug #486159]
svn path=/trunk/mcs/; revision=129656
Ivan Zlatev [Tue, 17 Mar 2009 23:54:18 +0000 (23:54 -0000)]
2009-03-17 Ivan N. Zlatev <contact@i-nz.net>
* DataGridView.cs: When DataSource changes the rebinding should happen
not if IsHandleCreated but if BindingContext != null.
* DataGridViewTest.cs: Add tests for the relevance of IsHandleCreated and
the BindingContext for the databound state of the DataGridView.
[Fixes bug #486013]
svn path=/trunk/mcs/; revision=129651
Ivan Zlatev [Tue, 17 Mar 2009 22:33:08 +0000 (22:33 -0000)]
2009-03-17 Ivan N. Zlatev <contact@i-nz.net>
* DataGridView.cs: Browsable(false) properties should be skipped when
autogenerating the columns.
* DataGridViewTest.cs: Add a test for Browsable(false) columns.
[Fixes bug #486021]
svn path=/trunk/mcs/; revision=129637
Jb Evain [Tue, 17 Mar 2009 22:18:07 +0000 (22:18 -0000)]
2009-03-17 Jb Evain <jbevain@novell.com>
* driver.c: remove now uneeded call to mono_gc_base_init before
mono_profiler_load.
svn path=/trunk/mono/; revision=129635
Jb Evain [Tue, 17 Mar 2009 22:16:48 +0000 (22:16 -0000)]
2009-03-17 Jb Evain <jbevain@novell.com>
* profiler.c: call mono_gc_base_init from mono_profiler_load.
svn path=/trunk/mono/; revision=129634
Jb Evain [Tue, 17 Mar 2009 22:15:09 +0000 (22:15 -0000)]
2009-03-17 Jb Evain <jbevain@novell.com>
* dwarfwriter.c (token_handler): handle more cases.
svn path=/trunk/mono/; revision=129633
Zoltan Varga [Tue, 17 Mar 2009 21:08:17 +0000 (21:08 -0000)]
2009-03-17 Zoltan Varga <vargaz@gmail.com>
* sgen-gc.c (mono_gc_make_descr_for_object): Fix 64 bit support.
(mono_gc_make_descr_for_array): Ditto.
svn path=/trunk/mono/; revision=129628
Marek Habersack [Tue, 17 Mar 2009 19:01:30 +0000 (19:01 -0000)]
2009-03-17 Marek Habersack <mhabersack@novell.com>
* Unit.cs: introduced a field to tell the difference between empty
(as in Unit.Empty) and 0px units.
2009-03-17 Marek Habersack <mhabersack@novell.com>
* UnitTest.cs: added a test for equality with Unit.Empty
svn path=/trunk/mcs/; revision=129620
Marek Safar [Tue, 17 Mar 2009 16:43:24 +0000 (16:43 -0000)]
2009-03-17 Marek Safar <marek.safar@gmail.com>
* generic.cs: Removed obsolete version of type inference.
svn path=/trunk/mcs/; revision=129605
Sebastien Pouliot [Tue, 17 Mar 2009 14:39:37 +0000 (14:39 -0000)]
2009-03-17 Sebastien Pouliot <sebastien@ximian.com>
* verify.c (mono_verifier_is_class_full_trust): Add support for
CoreCLR security mode where trusted assemblies are defined as
"platform code".
svn path=/trunk/mono/; revision=129588
Sebastien Pouliot [Tue, 17 Mar 2009 14:00:56 +0000 (14:00 -0000)]
2009-03-17 Sebastien Pouliot <sebastien@ximian.com>
* method-to-ir.c: Remove more dead code (that was required only
because of method_is_safe). Fix compiler warnings.
svn path=/trunk/mono/; revision=129585
Sebastien Pouliot [Tue, 17 Mar 2009 13:36:00 +0000 (13:36 -0000)]
2009-03-17 Sebastien Pouliot <sebastien@ximian.com>
* method-to-ir.c: Remove unneeded/useless method_is_safe
http://lists.ximian.com/archives/public/mono-devel-list/2009-March/031404.html
svn path=/trunk/mono/; revision=129583
Marek Habersack [Tue, 17 Mar 2009 13:21:57 +0000 (13:21 -0000)]
2009-03-17 Marek Habersack <mhabersack@novell.com>
* JavaScriptSerializer.cs: if conversion of IDictionary or
IDictionary <K,V> to an object is requested, make sure that a
concrete type is used (in both cases Dictionary <string, object>).
Make sure that if the target type is an IDictionary<K,V> that the
key is either an object or a string.
2009-03-17 Marek Habersack <mhabersack@novell.com>
* JavaScriptSerializerTest.cs: added tests for conversion to
IDictionary and IDictionary <K,V> types.
svn path=/trunk/mcs/; revision=129580
Atsushi Eno [Tue, 17 Mar 2009 11:29:32 +0000 (11:29 -0000)]
2009-03-17 Atsushi Enomoto <atsushi@ximian.com>
* Expression.cs : gave up another optimization for bug #443090.
* SelectNodesTests.cs : added 2nd test for bug #443490.
svn path=/trunk/mcs/; revision=129574
Atsushi Eno [Tue, 17 Mar 2009 08:54:09 +0000 (08:54 -0000)]
2009-03-17 Atsushi Enomoto <atsushi@ximian.com>
* XPathExpression.cs : eliminate use of ExpressionCache and lose
significant performance in some use for the sake of multithreaded
use. Fixed bug #477049.
svn path=/trunk/mcs/; revision=129545
Atsushi Eno [Tue, 17 Mar 2009 07:56:21 +0000 (07:56 -0000)]
2009-03-17 Atsushi Enomoto <atsushi@ximian.com>
* XmlTextWriter2.cs : some weird TextWriter has null Encoding.
Fixed bug #372525.
svn path=/trunk/mcs/; revision=129534
Atsushi Eno [Tue, 17 Mar 2009 07:34:10 +0000 (07:34 -0000)]
2009-03-17 Atsushi Enomoto <atsushi@ximian.com>
* XmlSchemaValidator.cs : check identity constraints on default or
fixed attributes too.
svn path=/trunk/mcs/; revision=129532
Carlos Alberto Cortez [Tue, 17 Mar 2009 03:59:34 +0000 (03:59 -0000)]
2009-03-16 Carlos Alberto Cortez <calberto.cortez@gmail.com>
* DomainUpDown.cs: When ReadOnly is true, all the text entered by the
user should use a different handling, trying to use every pressed char
as a unique and only one prefix to compare against the items. Also,
refactor some input check code to avoid duplication.
Fixes #458607.
svn path=/trunk/mcs/; revision=129531
Rodrigo Kumpera [Tue, 17 Mar 2009 01:48:29 +0000 (01:48 -0000)]
2009-03-16 Rodrigo Kumpera <rkumpera@novell.com>
* resources-tests.md: New file with pecoff tests.
* Makefile: Add new tests.
* header-tests.md: Update some tests.
svn path=/trunk/mono/; revision=129519
Rodrigo Kumpera [Tue, 17 Mar 2009 01:48:28 +0000 (01:48 -0000)]
2009-03-16 Rodrigo Kumpera <rkumpera@novell.com>
* metadata-verify.c: Add minimal PECOFF resource verification.
svn path=/trunk/mono/; revision=129518
Rodrigo Kumpera [Tue, 17 Mar 2009 01:48:20 +0000 (01:48 -0000)]
2009-03-16 Rodrigo Kumpera <rkumpera@novell.com>
* metadata-verify.c: Be less restrictive with some coff fields.
svn path=/trunk/mono/; revision=129517
Rodrigo Kumpera [Tue, 17 Mar 2009 01:48:09 +0000 (01:48 -0000)]
2009-03-16 Rodrigo Kumpera <rkumpera@novell.com>
* verify.c (init_stack_with_value_at_exception_boundary): Init generic
params as boxed values on stack. Fixes #485706.
svn path=/trunk/mono/; revision=129516
Rodrigo Kumpera [Tue, 17 Mar 2009 01:48:00 +0000 (01:48 -0000)]
2009-03-16 Rodrigo Kumpera <rkumpera@novell.com>
* invalid_generic_generic_object_is_boxed.il: Regression test
for #485706.
svn path=/trunk/mono/; revision=129515
Rodrigo Kumpera [Tue, 17 Mar 2009 01:47:58 +0000 (01:47 -0000)]
2009-03-16 Rodrigo Kumpera <rkumpera@novell.com>
* mini.c (mini_method_compile): Print the method been compiled with
verbose level 1 instead of 3 as this helps a lot debugging JIT crashes
for people not familiar with the runtime.
svn path=/trunk/mono/; revision=129514
Zoltan Varga [Mon, 16 Mar 2009 23:19:32 +0000 (23:19 -0000)]
2009-03-17 Zoltan Varga <vargaz@gmail.com>
* mini-exceptions.c (get_generic_info_from_stack_frame): Avoid returning
a managed object which is later put into a GList. Return its class instead.
* mini.c (mono_allocate_stack_slots_full): Avoid sharing ref and non-ref
stack slots when using sgen.
svn path=/trunk/mono/; revision=129509
Ivan Zlatev [Mon, 16 Mar 2009 22:30:56 +0000 (22:30 -0000)]
2009-03-16 Ivan N. Zlatev <contact@i-nz.net>
* DataGridViewCell.cs: In OwningColumng Handle invalid column index
silently.
[Fixes bug #485278]
svn path=/trunk/mcs/; revision=129506
Ivan Zlatev [Mon, 16 Mar 2009 21:47:55 +0000 (21:47 -0000)]
2009-03-16 Ivan N. Zlatev <contact@i-nz.net>
* DataGridViewBand.cs: Update our State whenever a property changes.
* DataGridView.cs: Don't be so generous in reseting Displayed, because
it will spawn lots and lots of unneeded State changed events.
[Fixes bug #484989]
svn path=/trunk/mcs/; revision=129501
Ivan Zlatev [Mon, 16 Mar 2009 20:46:13 +0000 (20:46 -0000)]
2009-03-16 Ivan N. Zlatev <contact@i-nz.net>
* DataGridView.cs, DataGridViewRow.cs, DataGridViewColumn.cs:
Add support for invisible rows and columns.
[Fixes bug #484951]
svn path=/trunk/mcs/; revision=129496
Ivan Zlatev [Mon, 16 Mar 2009 19:16:17 +0000 (19:16 -0000)]
2009-03-16 Ivan N. Zlatev <contact@i-nz.net>
* DataGridViewCell.cs: Escape literal { in ToString.
* DataGridViewTextBoxCell.cs: Fix ToString.
[Fixes bug #484923]
svn path=/trunk/mcs/; revision=129494
Marek Habersack [Mon, 16 Mar 2009 18:54:17 +0000 (18:54 -0000)]
2009-03-16 Marek Habersack <mhabersack@novell.com>
* AspGenerator.cs:
TagParsed now better handles <script> tags. For both server and
client tags ProcessScript is called and the input text, in case of
client tags, is read verbatim to be processed when ProcessScript
is called to close the tag. At this point the verbatim text is
checked whether it contains server-side tags and/or expressions.
svn path=/trunk/mcs/; revision=129491
Raja R Harinath [Mon, 16 Mar 2009 18:41:24 +0000 (18:41 -0000)]
Reduce dependence of UriParser on Uri
* UriParser.cs (GetComponents): Don't refer to fields of Uri to
extract components. Use a pair of regexes instead on
Uri.OriginalString.
* Uri.cs (OriginalString): Make available as an internal property
in the NET_1_1 profile.
svn path=/trunk/mcs/; revision=129488
Marek Safar [Mon, 16 Mar 2009 18:20:22 +0000 (18:20 -0000)]
2009-03-16 Marek Safar <marek.safar@gmail.com>
* typemanager.cs, decl.cs, roottypes.cs, anonymous.cs, nullable.cs,
expression.cs, rootcontext.cs, namespace.cs, ecore.cs, class.cs,
delegate.cs, flowanalysis.cs, cs-parser.jay, driver.cs,
attribute.cs, codegen.cs: Changed RootTypes to be ModuleContainer.
svn path=/trunk/mcs/; revision=129485
Atsushi Eno [Mon, 16 Mar 2009 18:04:51 +0000 (18:04 -0000)]
2009-03-16 Atsushi Enomoto <atsushi@ximian.com>
* XmlParserContext.cs : .NET has weird nametable initialization.
Fixed bug #484519.
* XmlParserContextTests.cs : added test for bug #484519.
svn path=/trunk/mcs/; revision=129483
Atsushi Eno [Mon, 16 Mar 2009 17:27:32 +0000 (17:27 -0000)]
2009-03-16 Atsushi Enomoto <atsushi@ximian.com>
* XmlReader.cs : (ReadToFollowing) check LocalName, not Name.
Fixed bug #478506.
svn path=/trunk/mcs/; revision=129474
Carlos Alberto Cortez [Mon, 16 Mar 2009 17:22:26 +0000 (17:22 -0000)]
2009-03-16 Carlos Alberto Cortez <calberto.cortez@gmail.com>
* MenuAPI.cs: When navigating items using the keyboard properly handle
the case when no item is selected - this way we should try to select
the first or the last item depending on the direction, but no the
second or third one, etc.
svn path=/trunk/mcs/; revision=129472
Gonzalo Paniagua Javier [Mon, 16 Mar 2009 16:16:03 +0000 (16:16 -0000)]
windows stub fix
svn path=/trunk/mono/; revision=129466
Atsushi Eno [Mon, 16 Mar 2009 16:14:31 +0000 (16:14 -0000)]
2009-03-16 Atsushi Enomoto <atsushi@ximian.com>
* DTDRreader.cs : read up all DTD stream so that we don't have to
see bugs like #469317 many times.
svn path=/trunk/mcs/; revision=129465
Atsushi Eno [Mon, 16 Mar 2009 16:13:56 +0000 (16:13 -0000)]
2009-03-16 Atsushi Enomoto <atsushi@ximian.com>
* XmlSchemaValidator.cs : check identities for untyped attributes.
Attribute keyfield test must adjust depth, or it never matches.
Missing braces for IgnoreIdentity test.
svn path=/trunk/mcs/; revision=129464