mono.git
16 years ago2008-02-26 Zoltan Varga <vargaz@gmail.com>
Zoltan Varga [Tue, 26 Feb 2008 13:26:07 +0000 (13:26 -0000)]
2008-02-26  Zoltan Varga  <vargaz@gmail.com>

* Makefile.am: Use gmcs for compiling the regression tests.

* *.2.cs *.2.il: Rename to *.cs and *.il.

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

16 years ago2008-02-26 Zoltan Varga <vargaz@gmail.com>
Zoltan Varga [Tue, 26 Feb 2008 13:14:24 +0000 (13:14 -0000)]
2008-02-26  Zoltan Varga  <vargaz@gmail.com>

* reflection.c (mono_custom_attrs_from_builders): Assert instead of a crash if the
cattr is not finished yet.

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

16 years ago2008-02-26 Ivan N. Zlatev <contact@i-nz.net>
Ivan Zlatev [Tue, 26 Feb 2008 13:09:43 +0000 (13:09 -0000)]
2008-02-26  Ivan N. Zlatev  <contact@i-nz.net>

* ReflectionPropertyDescriptor.cs: Use Attribute.GetCustomAttributes
instead of PropertyInfo.GetCustomAttributes as the latter will not
retrieve inherited attributes.
[Fixes bug #322464]

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

16 years ago2008-02-26 Ivan N. Zlatev <contact@i-nz.net>
Ivan Zlatev [Tue, 26 Feb 2008 13:05:58 +0000 (13:05 -0000)]
2008-02-26  Ivan N. Zlatev  <contact@i-nz.net>

* Attribute.cs, MonoCustomAttrs: MS ignores the inherit param in
PropertyInfo's ICustomAttributeProvider implementation, but not
in the Attributes, so directly get the attributes from
MonoCustomAttrs instead of going throught the PropertyInfo's
ICustomAttributeProvider.
* AttributeTest.cs: Remove NotWorking as we pass those tests now.
* MonoProperty.cs: MS ignores the inherit parameter and defaults to false
for GetCustomAttributes.
[Fixes bugs #324472 and #322464]

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

16 years ago2008-02-26 Zoltan Varga <vargaz@gmail.com>
Zoltan Varga [Tue, 26 Feb 2008 13:01:39 +0000 (13:01 -0000)]
2008-02-26  Zoltan Varga  <vargaz@gmail.com>

* CILCompiler.cs: Implement StringIgnoreCase.

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

16 years agomerge r96615:96616
Igor Zelmanovich [Tue, 26 Feb 2008 10:40:44 +0000 (10:40 -0000)]
merge r96615:96616

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

16 years ago2008-02-26 Stephane Delcroix <sdelcroix@novell.com>
Stephane Delcroix [Tue, 26 Feb 2008 10:38:06 +0000 (10:38 -0000)]
2008-02-26  Stephane Delcroix  <sdelcroix@novell.com>

* Uri.cs: check IsHexEncoding on utf8 bytes, not on the string.
Fixes bnc #363320.

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

16 years ago2008-02-26 Marek Habersack <mhabersack@novell.com>
Marek Habersack [Tue, 26 Feb 2008 10:19:42 +0000 (10:19 -0000)]
2008-02-26  Marek Habersack  <mhabersack@novell.com>

* CSharpCodeCompiler.cs: CompilerResults.Output can now be set
internally.
2008-02-26  Marek Habersack  <mhabersack@novell.com>

* CompilerResults.cs: Output can be set internally.

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

16 years agoDon't add Date header in ASP.NET. Fixes bug #363404.
Kornél Pál [Tue, 26 Feb 2008 09:52:01 +0000 (09:52 -0000)]
Don't add Date header in ASP.NET. Fixes bug #363404.

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

16 years ago2008-02-26 Jb Evain <jbevain@novell.com>
Jb Evain [Tue, 26 Feb 2008 09:50:04 +0000 (09:50 -0000)]
2008-02-26  Jb Evain  <jbevain@novell.com>

* Mono.Cecil.Binary/ImageReader.cs:
Avoid throwing non desired exceptions.

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

16 years ago2008-02-26 Atsushi Enomoto <atsushi@ximian.com>
Atsushi Eno [Tue, 26 Feb 2008 07:48:39 +0000 (07:48 -0000)]
2008-02-26  Atsushi Enomoto  <atsushi@ximian.com>

* DateTime.cs : fix roundtrip regression in Sys.Xml.XmlConvertTests,
  patch by James Purcell (at #352210).

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

16 years ago2008-02-26 Atsushi Enomoto <atsushi@ximian.com>
Atsushi Eno [Tue, 26 Feb 2008 04:19:13 +0000 (04:19 -0000)]
2008-02-26  Atsushi Enomoto  <atsushi@ximian.com>

        * CSharpCodeCompiler.cs : build fix.
          CompilerResults.Output is read only.

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

16 years ago2008-02-25 Carlos Alberto Cortez <calberto.cortez@gmail.com>
Carlos Alberto Cortez [Tue, 26 Feb 2008 00:40:00 +0000 (00:40 -0000)]
2008-02-25  Carlos Alberto Cortez <calberto.cortez@gmail.com>

* Binding.cs: Actually implement 2.0 NullValue property. Also
when changing the formatting related properties, only update the state
if formatting_enabled is true (we don't mind otherwise).

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

16 years ago2008-02-26 Zoltan Varga <vargaz@gmail.com>
Zoltan Varga [Mon, 25 Feb 2008 23:21:43 +0000 (23:21 -0000)]
2008-02-26  Zoltan Varga  <vargaz@gmail.com>

* CILCompiler.cs: Implement grouping support.

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

16 years ago2008-02-26 Zoltan Varga <vargaz@gmail.com>
Zoltan Varga [Mon, 25 Feb 2008 22:35:58 +0000 (22:35 -0000)]
2008-02-26  Zoltan Varga  <vargaz@gmail.com>

* CILCompiler.cs: Implement character groups.

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

16 years ago2008-02-25 Rodrigo Kumpera <rkumpera@novell.com>
Rodrigo Kumpera [Mon, 25 Feb 2008 22:27:38 +0000 (22:27 -0000)]
2008-02-25 Rodrigo Kumpera  <rkumpera@novell.com>

* verify.c: Proper token validation for field, method and type.

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

16 years agowe pass those
Jb Evain [Mon, 25 Feb 2008 21:48:57 +0000 (21:48 -0000)]
we pass those

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

16 years ago2008-02-25 Jb Evain <jbevain@novell.com>
Jb Evain [Mon, 25 Feb 2008 21:48:31 +0000 (21:48 -0000)]
2008-02-25  Jb Evain  <jbevain@novell.com>

* NewExpression.cs (Emit): deal with value types construction.

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

16 years ago2008-02-25 Jb Evain <jbevain@novell.com>
Jb Evain [Mon, 25 Feb 2008 21:36:07 +0000 (21:36 -0000)]
2008-02-25  Jb Evain  <jbevain@novell.com>

* Expression.cs, NewExpression.cs: deal with the fact that value types
don't have a parameterless constructor.

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

16 years ago2008-02-25 Robert Jordan <robertj@gmx.net>
Robert Jordan [Mon, 25 Feb 2008 21:15:44 +0000 (21:15 -0000)]
2008-02-25  Robert Jordan  <robertj@gmx.net>

* Win32RegistryApi.cs (ToString): Don't emit the handle value
under NET_2_0.
See http://msdn2.microsoft.com/en-us/netframework/aa497241.aspx.

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

16 years ago**Fixes BNC#364432. Handle DBNull cases.
Veerapuram Varadhan [Mon, 25 Feb 2008 21:06:22 +0000 (21:06 -0000)]
**Fixes BNC#364432.  Handle DBNull cases.

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

16 years ago2008-02-25 Marek Habersack <mhabersack@novell.com>
Marek Habersack [Mon, 25 Feb 2008 20:55:20 +0000 (20:55 -0000)]
2008-02-25  Marek Habersack  <mhabersack@novell.com>

* HttpException.cs: fix a buglet with unfoldable hidden divs which
contain the full compiler output and the full source code.

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

16 years ago2008-02-25 Marek Habersack <mhabersack@novell.com>
Marek Habersack [Mon, 25 Feb 2008 20:53:41 +0000 (20:53 -0000)]
2008-02-25  Marek Habersack  <mhabersack@novell.com>

* CSharpCodeCompiler.cs: ignore standard output and report only
lines printed to stdandard error to the caller.

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

16 years ago2008-02-25 Jonathan Pobst <monkey@jpobst.com>
Jonathan Pobst [Mon, 25 Feb 2008 17:19:52 +0000 (17:19 -0000)]
2008-02-25  Jonathan Pobst  <monkey@jpobst.com>

* LabelPainter.cs: Take Padding into account when drawing
the label text.

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

16 years ago2008-02-25 Jonathan Pobst <monkey@jpobst.com>
Jonathan Pobst [Mon, 25 Feb 2008 16:32:02 +0000 (16:32 -0000)]
2008-02-25  Jonathan Pobst  <monkey@jpobst.com>

* ToolStrip.cs: Don't raise ItemClicked for disabled items.
[Fixes bug #364486]

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

16 years agoMap OdbcType.Time appropriately. Fixes BNC#364426.
Veerapuram Varadhan [Mon, 25 Feb 2008 16:22:36 +0000 (16:22 -0000)]
Map OdbcType.Time appropriately.  Fixes BNC#364426.

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

16 years agomerge r96567:96568
Igor Zelmanovich [Mon, 25 Feb 2008 16:17:32 +0000 (16:17 -0000)]
merge r96567:96568

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

16 years ago2008-02-25 Zoltan Varga <vargaz@gmail.com>
Zoltan Varga [Mon, 25 Feb 2008 16:07:35 +0000 (16:07 -0000)]
2008-02-25  Zoltan Varga  <vargaz@gmail.com>

* CILCompiler.cs: Implement lots of missing opcodes.

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

16 years agoupdate comment, the bugger is actually aspnet_merge
Jb Evain [Mon, 25 Feb 2008 15:05:47 +0000 (15:05 -0000)]
update comment, the bugger is actually aspnet_merge

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

16 years ago2008-02-25 Jb Evain <jbevain@novell.com>
Jb Evain [Mon, 25 Feb 2008 15:00:54 +0000 (15:00 -0000)]
2008-02-25  Jb Evain  <jbevain@novell.com>

* Mono.Cecil/ReflectionReader.cs:
Avoid throwing in case a constant
is of type object.

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

16 years ago2008-02-25 Ivan N. Zlatev <contact@i-nz.net>
Ivan Zlatev [Mon, 25 Feb 2008 14:49:35 +0000 (14:49 -0000)]
2008-02-25  Ivan N. Zlatev  <contact@i-nz.net>

* DateTimeEditor.cs: Set the calendar to the currently edited
date. Patch by Andy Hume. Code is contributed under
MIT/X11 license.
[Fixes #362749]

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

16 years ago2008-02-25 Igor Zelmanovich <igorz@mainsoft.com>
Igor Zelmanovich [Mon, 25 Feb 2008 14:44:54 +0000 (14:44 -0000)]
2008-02-25 Igor Zelmanovich <igorz@mainsoft.com>

* GridView.cs:
at Update and Delete use not read only coppies of dictionaries
in event argumens, that allows user to change them before corresponding
DataSource's method is called.

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

16 years ago2008-02-25 Ivan N. Zlatev <contact@i-nz.net>
Ivan Zlatev [Mon, 25 Feb 2008 14:34:32 +0000 (14:34 -0000)]
2008-02-25  Ivan N. Zlatev  <contact@i-nz.net>

* GridEntry.cs: Use the PropertyDescriptor.PropertyType instead
of GetType on the value as it uses reflection to
determine the type. This fixes the case where the new value is
null.
[Fixes #358332]

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

16 years agomark as non working for the time being
Jb Evain [Mon, 25 Feb 2008 14:15:33 +0000 (14:15 -0000)]
mark as non working for the time being

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

16 years agocomment out
Jb Evain [Mon, 25 Feb 2008 14:14:16 +0000 (14:14 -0000)]
comment out

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

16 years agomerge Call tests
Jb Evain [Mon, 25 Feb 2008 14:12:38 +0000 (14:12 -0000)]
merge Call tests

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

16 years ago2008-02-25 Rodrigo Kumpera <rkumpera@novell.com>
Rodrigo Kumpera [Mon, 25 Feb 2008 13:47:38 +0000 (13:47 -0000)]
2008-02-25 Rodrigo Kumpera  <rkumpera@novell.com>

* loader.c (field_from_memberref): Generate a loader error if the type is not found.

* loader.c (method_from_memberref): Generate type load error instead of method missing
if the type is not found.

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

16 years ago2008-02-25 Rodrigo Kumpera <rkumpera@novell.com>
Rodrigo Kumpera [Mon, 25 Feb 2008 13:29:02 +0000 (13:29 -0000)]
2008-02-25  Rodrigo Kumpera  <rkumpera@novell.com>

* call_missing_method.il
* call_missing_call.il
* ldfld_missing_class.il
* ldfld_missing_field.il: Test if the proper loader
error is raised in case of failure.

* Makefile.am: Added the previous tests.

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

16 years ago2008-02-25 Marek Habersack <mhabersack@novell.com>
Marek Habersack [Mon, 25 Feb 2008 13:26:48 +0000 (13:26 -0000)]
2008-02-25  Marek Habersack  <mhabersack@novell.com>

* HttpContext.cs: correctly set the timeout if the user has
specified a timeout which, when converted to milliseconds yields a
value larger than one allowed by Timer.Change. This can happen,
for instance, when HttpServerUtility.ScriptTimeout is set to
Int32.MaxValue. Previously, when something like that happened, the
value was converted to 0ms, giving an instantenous timer
expiration and, what follows, a request "timeout".

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

16 years ago2008-02-25 Ivan N. Zlatev <contact@i-nz.net>
Ivan Zlatev [Mon, 25 Feb 2008 12:49:52 +0000 (12:49 -0000)]
2008-02-25  Ivan N. Zlatev  <contact@i-nz.net>

* PropertyGridView.cs: Limit mousewheel scrolling to not scroll
past the view.

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

16 years ago2008-02-25 Marek Habersack <mhabersack@novell.com>
Marek Habersack [Mon, 25 Feb 2008 12:33:16 +0000 (12:33 -0000)]
2008-02-25  Marek Habersack  <mhabersack@novell.com>

* ControlBuilder.cs: correctly chain up to the parent builder when
looking for the naming container.
2008-02-25  Marek Habersack  <mhabersack@novell.com>

* TemplateControlCompiler.cs: GetContainerType now checks whether
the binding container returned from the builder implements
IDataItemContainer (for 2.0+ profiles) and looks for one more
property, Rows, if no Items property is found.

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

16 years agofixed bug 9959
Vladimir Krasnov [Mon, 25 Feb 2008 09:57:10 +0000 (09:57 -0000)]
fixed bug 9959

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

16 years ago2008-02-25 Marek Habersack <mhabersack@novell.com>
Marek Habersack [Mon, 25 Feb 2008 09:51:23 +0000 (09:51 -0000)]
2008-02-25  Marek Habersack  <mhabersack@novell.com>

* WebConfigurationManager.cs: hashtable can contain a key with a
null value, avoid adding duplicate keys in such cases.

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

16 years agoPerformance improvement for Stack, where it is popped until empty, and then pushed...
Roei Erez [Mon, 25 Feb 2008 08:29:15 +0000 (08:29 -0000)]
Performance improvement for Stack, where it is popped until empty, and then pushed again.

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

16 years agoFix #363791
Raja R Harinath [Mon, 25 Feb 2008 08:01:59 +0000 (08:01 -0000)]
Fix #363791

* mcs/enum.cs (EnumMember.Value): Only access 'value' if
ResolveValue says it's ok.
(EnumMember.DoResolveValue): Don't set prev_member.value.
(Enum.GetDefinition): Reverse arguments of Equals --
EnumMember.Value can return 'null'.
* errors/cs0152-3.cs: New testcase from #363791.

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

16 years ago* statement.cs (Switch.Error_AlreadyOccurs): Fix typo in name.
Raja R Harinath [Mon, 25 Feb 2008 08:01:31 +0000 (08:01 -0000)]
* statement.cs (Switch.Error_AlreadyOccurs): Fix typo in name.

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

16 years ago* gcs1644-10.cs: Remove spurious error message.
Raja R Harinath [Mon, 25 Feb 2008 08:01:12 +0000 (08:01 -0000)]
* gcs1644-10.cs: Remove spurious error message.

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

16 years ago2008-02-25 Atsushi Enomoto <atsushi@ximian.com>
Atsushi Eno [Mon, 25 Feb 2008 06:00:56 +0000 (06:00 -0000)]
2008-02-25  Atsushi Enomoto  <atsushi@ximian.com>

* DateTime.cs, DateTimeUtils.cs : make Kind value from parse result
  as dotnet-compatible. Patch by James Purcell, fixed bug #352210.

* DateTimeTest.cs : enable Bug3522210() and add new test for the bug,
  patch by James Purcell.

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

16 years agoUpdate
Miguel de Icaza [Sun, 24 Feb 2008 18:20:39 +0000 (18:20 -0000)]
Update

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

16 years ago2008-02-24 Luke Page <luke.a.page@gmail.com>
Luke Page [Sun, 24 Feb 2008 16:58:03 +0000 (16:58 -0000)]
2008-02-24  Luke Page  <luke.a.page@gmail.com>

* Line.cs, TextControl.cs: Implement offset x and y so that a
document doesn't have to begin  at (0,0) on the viewpoint.
* TextBox.cs, TextBoxBase.cs: RightToLeft switches the scroll
bars and switches the text alignment (and therefore is now
implemented for textbox). Fixes #321383.

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

16 years ago2008-02-24 Zoltan Varga <vargaz@gmail.com>
Zoltan Varga [Sun, 24 Feb 2008 13:26:35 +0000 (13:26 -0000)]
2008-02-24  Zoltan Varga  <vargaz@gmail.com>

* regalloc.h: Make the vassign array smaller.

* mini.c (mini_method_compile): Remove an unused field in cfg.

* mini-codegen.c: Add a bunch of micro optimizations.

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

16 years ago2008-02-24 Jb Evain <jbevain@novell.com>
Jb Evain [Sun, 24 Feb 2008 13:08:10 +0000 (13:08 -0000)]
2008-02-24  Jb Evain  <jbevain@novell.com>

* ExpressionTest.cs: test for Action compilation.

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

16 years ago2008-02-24 Jb Evain <jbevain@novell.com>
Jb Evain [Sun, 24 Feb 2008 13:07:38 +0000 (13:07 -0000)]
2008-02-24  Jb Evain  <jbevain@novell.com>

* LambdaExpression.cs, EmitContext.cs: make compilation
of delegate returning void work.

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

16 years ago2008-02-24 Jb Evain <jbevain@novell.com>
Jb Evain [Sun, 24 Feb 2008 13:06:33 +0000 (13:06 -0000)]
2008-02-24  Jb Evain  <jbevain@novell.com>

* MethodCallExpression.cs: emit call or callvirt depending
on the virtuality of the method.

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

16 years ago2008-02-24 Jb Evain <jbevain@novell.com>
Jb Evain [Sun, 24 Feb 2008 12:45:42 +0000 (12:45 -0000)]
2008-02-24  Jb Evain  <jbevain@novell.com>

* LambdaExpression.cs: properly format error message.

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

16 years ago2008-02-24 Jb Evain <jbevain@novell.com>
Jb Evain [Sun, 24 Feb 2008 12:08:23 +0000 (12:08 -0000)]
2008-02-24  Jb Evain  <jbevain@novell.com>

* ExecutionScope.cs: update API.

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

16 years agoreverted 96348
Vladimir Krasnov [Sun, 24 Feb 2008 10:48:32 +0000 (10:48 -0000)]
reverted 96348

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

16 years agoTARGET_J2EE:
Igor Zelmanovich [Sun, 24 Feb 2008 08:48:32 +0000 (08:48 -0000)]
TARGET_J2EE:
merge r96495:96497

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

16 years ago2008-02-23 Carlos Alberto Cortez <calberto.cortez@gmail.com>
Carlos Alberto Cortez [Sun, 24 Feb 2008 00:58:19 +0000 (00:58 -0000)]
2008-02-23  Carlos Alberto Cortez <calberto.cortez@gmail.com>

* BindingTest.cs: Update ctor test with 2.0 properties, and add new
tests for 2.0 FormattingEnabled and FormatString properties.

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

16 years ago2008-02-23 Carlos Alberto Cortez <calberto.cortez@gmail.com>
Carlos Alberto Cortez [Sun, 24 Feb 2008 00:55:37 +0000 (00:55 -0000)]
2008-02-23  Carlos Alberto Cortez <calberto.cortez@gmail.com>

* Binding.cs: Actually implement 2.0 FormatString and FormatInfo
properties. Also when changing FormattingEnabled update the control
property -as .Net does-.

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

16 years ago2008-02-23 Zoltan Varga <vargaz@gmail.com>
Zoltan Varga [Sat, 23 Feb 2008 21:15:05 +0000 (21:15 -0000)]
2008-02-23  Zoltan Varga  <vargaz@gmail.com>

* regalloc.h: Remove some unused fields.

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

16 years ago2008-02-23 Zoltan Varga <vargaz@gmail.com>
Zoltan Varga [Sat, 23 Feb 2008 15:43:27 +0000 (15:43 -0000)]
2008-02-23  Zoltan Varga  <vargaz@gmail.com>

* pinvoke3.cs: Add tests for missing MarshalAs directives when marshalling arrays.

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

16 years ago2008-02-23 Zoltan Varga <vargaz@gmail.com>
Zoltan Varga [Sat, 23 Feb 2008 15:42:27 +0000 (15:42 -0000)]
2008-02-23  Zoltan Varga  <vargaz@gmail.com>

* marshal.c (mono_marshal_emit_managed_wrapper): Avoid generating invalid IL if
some of the conversions caused the generation of a marshal directive exception.

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

16 years ago2008-02-23 Marek Safar <marek.safar@gmail.com>
Marek Safar [Sat, 23 Feb 2008 12:45:02 +0000 (12:45 -0000)]
2008-02-23  Marek Safar  <marek.safar@gmail.com>

* mkbundle.cs: Close resources correctly when something goes wrong.

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

16 years ago2008-02-22 Carlos Alberto Cortez <calberto.cortez@ŋmail.com>
Carlos Alberto Cortez [Sat, 23 Feb 2008 04:34:24 +0000 (04:34 -0000)]
2008-02-22  Carlos Alberto Cortez <calberto.cortez@ŋmail.com>

* ControlBindingsCollection.cs: Add the missing 2.0 Add overloads.
* Binding.cs: Add stubs for the overloads of the Add method in
CBCollection.

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

16 years ago2008-02-22 Carlos Alberto Cortez <calberto.cortez@gmail.com>
Carlos Alberto Cortez [Sat, 23 Feb 2008 00:43:36 +0000 (00:43 -0000)]
2008-02-22  Carlos Alberto Cortez <calberto.cortez@gmail.com>

* Binding.cs: PullData () returns a false value if we got an exception.
Also when validating the control and we get an error, instead of
setting the value of the previous one, cancel the event (tested in 1.1
and 2.0).

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

16 years ago2008-02-21 Rodrigo Kumpera <rkumpera@novell.com>
Rodrigo Kumpera [Fri, 22 Feb 2008 20:25:34 +0000 (20:25 -0000)]
2008-02-21 Rodrigo Kumpera  <rkumpera@novell.com>

verify.c: Report which exception should be thrown by the JIT.
Added a lot of FIXME notes.

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

16 years ago2008-02-22 Zoltan Varga <vargaz@gmail.com>
Zoltan Varga [Fri, 22 Feb 2008 17:14:33 +0000 (17:14 -0000)]
2008-02-22  Zoltan Varga  <vargaz@gmail.com>

* mini-amd64.c (mono_arch_patch_code): Fix a warning.

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

16 years ago2008-02-22 Zoltan Varga <vargaz@gmail.com>
Zoltan Varga [Fri, 22 Feb 2008 16:16:28 +0000 (16:16 -0000)]
2008-02-22  Zoltan Varga  <vargaz@gmail.com>

* ssa.c (mono_ssa_remove): Avoid declaring volatile variables dead.

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

16 years ago2008-02-22 Mark Probst <mark.probst@gmail.com>
Mark Probst [Fri, 22 Feb 2008 15:41:43 +0000 (15:41 -0000)]
2008-02-22  Mark Probst  <mark.probst@gmail.com>

* generic-sharing.c: Runtime generic context slots are not
instantiated on init anymore.  Instead, provide function to do the
instantiating on demand.

* class-internals.h: Added vtable to runtime generic context.
Macros for encoding direct and indirect slot offsets in one
guint32.

2008-02-22  Mark Probst  <mark.probst@gmail.com>

* mini.h: New trampoline type (RGCTX_LAZY_FETCH).

* mini-trampolines.c, tramp-amd64.c, tramp-x86.c: RGCTX lazy fetch
trampoline: Fetch an entry from the runtime generic context.  If
it's NULL, jump to the actual trampoline to fill the runtime
generic context.  Otherwise, return it.

* mini.c: Call the lazy fetch trampoline to get entries out of the
runtime generic context.

* tramp-ia64.c, tramp-arm.c, tramp-alpha.c, tramp-s390.c,
tramp-s390x.c, tramp-ppc.c, tramp-hppa.c, tramp-mips.c,
tramp-sparc.c: Stubs for the lazy fetch trampoline.

2008-02-22  Mark Probst  <mark.probst@gmail.com>

* generics-sharing.2.cs: New tests for the extensible runtime
generic context.

* recursive-generics.2.cs: Tests for recursive generic types.

* Makefile.am: Added recursive-generics.2.cs.

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

16 years ago2008-02-22 Jonathan Pobst <monkey@jpobst.com>
Jonathan Pobst [Fri, 22 Feb 2008 15:11:59 +0000 (15:11 -0000)]
2008-02-22  Jonathan Pobst  <monkey@jpobst.com>

* TreeView.cs: Make selected_node and highlighted_node internal.
* TreeNodeCollection.cs: Reset selected_node and highlighted_node
to null when Nodes.Clear is called.
[Fixes bug #363884]

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

16 years agoFixed tests to check produced results.
Marek Safar [Fri, 22 Feb 2008 14:55:23 +0000 (14:55 -0000)]
Fixed tests to check produced results.

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

16 years agoMore tests.
Marek Safar [Fri, 22 Feb 2008 14:32:37 +0000 (14:32 -0000)]
More tests.

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

16 years ago2008-02-22 Marek Safar <marek.safar@gmail.com>
Marek Safar [Fri, 22 Feb 2008 14:31:58 +0000 (14:31 -0000)]
2008-02-22  Marek Safar  <marek.safar@gmail.com>

* generic.cs, expression.cs: More ongoing work on expression trees.

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

16 years agoFri Feb 22 11:23:53 CET 2008 Paolo Molaro <lupus@ximian.com>
Paolo Molaro [Fri, 22 Feb 2008 09:39:36 +0000 (09:39 -0000)]
Fri Feb 22 11:23:53 CET 2008 Paolo Molaro <lupus@ximian.com>

* Thread.cs: implemented Begin/EndCriticalRegion.

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

16 years ago2008-02-22 Atsushi Enomoto <atsushi@ximian.com>
Atsushi Eno [Fri, 22 Feb 2008 03:54:18 +0000 (03:54 -0000)]
2008-02-22  Atsushi Enomoto  <atsushi@ximian.com>

* ProtocolReflector.cs : reverted previous change, which caused
  several regressions.

* TypeStubManager.cs : reverted 2007-12-11 change as it caused
  several regressions.

* ServiceDescriptionReflectorTest.cs : mark Bug345448() NotWorking.

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

16 years ago2008-02-21 Mark Probst <mark.probst@gmail.com>
Mark Probst [Thu, 21 Feb 2008 21:38:33 +0000 (21:38 -0000)]
2008-02-21  Mark Probst  <mark.probst@gmail.com>

* object.c, generic-sharing.c: Moved some generic sharing code
from object.c to generic-sharing.c.

* generic-sharing.c: Added support for extensible runtime generic
context.

* metadata-internals.h: Two new hash tables in MonoImage for
extensible runtime generic context support.

* domain.c: Unregister generic vtables upon domain unloading.

* image.c: Destroy new hash tables upon image unloading.

* metadata.c: Unregister generic subclasses upon image unloading.

* class-internals.h: New data structure for runtime generic
context template.  New fields in the runtime generic context for
extensible part.

* Makefile.am: Added generic-sharing.c.

2008-02-21  Mark Probst  <mark.probst@gmail.com>

* mini.c: Fetch data out of the extensible part of the runtime
generic context instead of calling a helper function.

* generic-sharing.c: Some functions moved into
metadata/generic-sharing.c.  Helper function for fetching other
types now checks and asserts against extensible rgctx (just for
debugging purposes - the helper function isn't called anymore
unless for debugging).

2008-02-21  Mark Probst  <mark.probst@gmail.com>

* generics-sharing.2.cs: Improved tests.

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

16 years ago2008-02-21 Marek Habersack <mhabersack@novell.com>
Marek Habersack [Thu, 21 Feb 2008 21:06:57 +0000 (21:06 -0000)]
2008-02-21  Marek Habersack  <mhabersack@novell.com>

* ControlBuilder.cs: introduced a new internal property -
MyNamingContainer used by the public properties
NamingContainerType and BindingContainerType. This simplifies the
code in the latter property, as the binding container type must
almost always be the same as the naming container type. The only
exception is when we're inside a content builder, in which case we
return the parent's BindingContainerType. Fixes bug #363665

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

16 years ago2008-02-21 Jonathan Pobst <monkey@jpobst.com>
Jonathan Pobst [Thu, 21 Feb 2008 20:12:32 +0000 (20:12 -0000)]
2008-02-21  Jonathan Pobst  <monkey@jpobst.com>

* FontDialog.cs: Ensure that when the Font is set in code,
all the gui pieces are updated accordingly.
[Fixes bug #361020]

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

16 years agoandalso, orelse compilation tests
Jb Evain [Thu, 21 Feb 2008 19:33:09 +0000 (19:33 -0000)]
andalso, orelse compilation tests

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

16 years ago2008-02-21 Jonathan Pobst <monkey@jpobst.com>
Jonathan Pobst [Thu, 21 Feb 2008 19:31:54 +0000 (19:31 -0000)]
2008-02-21  Jonathan Pobst  <monkey@jpobst.com>

* TextRenderer.cs: Respect proposed size for MeasureString.
* ThemeWin32Classics.cs: If our CheckBox/RadioButton isn't
autosize, use a proposed width to force wrapping for long text.
[Fixes bug #360981]

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

16 years ago2008-02-21 Marek Habersack <mhabersack@novell.com>
Marek Habersack [Thu, 21 Feb 2008 18:28:35 +0000 (18:28 -0000)]
2008-02-21  Marek Habersack  <mhabersack@novell.com>

* Configuration.cs: if the section being deserialized uses the
configSource attribute, call the section's DeserializeConfigSource
method.

* SectionInfo.cs: WriteData takes care of writing the section data
to the configSource file, if any.

* ConfigurationSection.cs: moved reading of the configSource
external data file to a separate internal method,
DeserializeConfigSource. Section's source config file path is now
used to find the configSource.
SerializeSection now doesn't write the section content to the
passed writer if configSource was used. Writing of the section
data is now done in SectionInfo.

* ConfigurationElement.cs: added a new method -
HasLocalModifications which returns true of any of the element
properties have been set locally on that element.

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

16 years ago2008-02-21 Jonathan Pobst <monkey@jpobst.com>
Jonathan Pobst [Thu, 21 Feb 2008 17:17:48 +0000 (17:17 -0000)]
2008-02-21  Jonathan Pobst  <monkey@jpobst.com>

* TreeView.cs: Factor in checkboxes = false and state images in
to HitTest.  [Fixes bug #363360]

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

16 years ago2008-02-21 Zoltan Varga <vargaz@gmail.com>
Zoltan Varga [Thu, 21 Feb 2008 17:17:47 +0000 (17:17 -0000)]
2008-02-21  Zoltan Varga  <vargaz@gmail.com>

* mini-arm.c (mono_arch_output_basic_block): Implement proper argument passing
for tail calls up to the point that the tests in iltests.exe run. Also add a
dummy CKFINITE implementation.
(mono_arch_emit_prolog): Avoid saving the method in the LMF since it is only
needed for trampoline LMF frames.

* exceptions-arm.c (mono_arch_find_jit_info): Only read lmf->method for
trampoline LMF frames.

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

16 years agofix line endings once in for all
Jb Evain [Thu, 21 Feb 2008 16:55:49 +0000 (16:55 -0000)]
fix line endings once in for all

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

16 years agofix test on .net + Mono's System.Core
Jb Evain [Thu, 21 Feb 2008 16:54:41 +0000 (16:54 -0000)]
fix test on .net + Mono's System.Core

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

16 years ago2008-02-21 Jb Evain <jbevain@novell.com>
Jb Evain [Thu, 21 Feb 2008 16:47:07 +0000 (16:47 -0000)]
2008-02-21  Jb Evain  <jbevain@novell.com>

* BinaryExpression.cs (EmitCoalesce): fix setup_null.

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

16 years agooops
Jb Evain [Thu, 21 Feb 2008 16:40:11 +0000 (16:40 -0000)]
oops

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

16 years agocleanup
Jb Evain [Thu, 21 Feb 2008 16:39:12 +0000 (16:39 -0000)]
cleanup

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

16 years agocygwin requires Unix line endings for shell scripts; Set eol-style to LF for mkinstal...
Kornél Pál [Thu, 21 Feb 2008 16:25:53 +0000 (16:25 -0000)]
cygwin requires Unix line endings for shell scripts; Set eol-style to LF for mkinstalldirs

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

16 years ago2008-02-21 Jonathan Pobst <monkey@jpobst.com>
Jonathan Pobst [Thu, 21 Feb 2008 15:36:12 +0000 (15:36 -0000)]
2008-02-21  Jonathan Pobst  <monkey@jpobst.com>

* ThemeWin32Classic.cs: Only look at the Date part of a DateTime
when drawing the selected range.
[Fixes bug #363648]

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

16 years ago2008-02-21 Jonathan Pobst <monkey@jpobst.com>
Jonathan Pobst [Thu, 21 Feb 2008 15:02:13 +0000 (15:02 -0000)]
2008-02-21  Jonathan Pobst  <monkey@jpobst.com>

* ToolStripContainer.cs: Add SupportsTransparentBackColor and
ResizeRedraw control styles.
[Fixes bug #363555]

2008-02-21  Jonathan Pobst  <monkey@jpobst.com>

* ToolStripContainerTests.cs: Add test for bug #363555.

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

16 years agoTARGET_J2EE:
Igor Zelmanovich [Thu, 21 Feb 2008 14:51:46 +0000 (14:51 -0000)]
TARGET_J2EE:
merge r96350:96351

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

16 years ago2008-02-21 Jb Evain <jbevain@novell.com>
Jb Evain [Thu, 21 Feb 2008 14:36:02 +0000 (14:36 -0000)]
2008-02-21  Jb Evain  <jbevain@novell.com>

* BinaryExpression.cs (Emit): fix the both_are_null case.

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

16 years ago2008-02-21 Rodrigo Kumpera <rkumpera@novell.com>
Rodrigo Kumpera [Thu, 21 Feb 2008 14:29:35 +0000 (14:29 -0000)]
2008-02-21  Rodrigo Kumpera  <rkumpera@novell.com>

* mini.c (inline_method): clean any pending loader error when inlining fail.
Otherwise loader errors in mono_method_to_ir leaks and cause spurious errors.

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

16 years agoAdded SqlProviders with default asp.net names
Vladimir Krasnov [Thu, 21 Feb 2008 14:25:20 +0000 (14:25 -0000)]
Added SqlProviders with default asp.net names

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

16 years ago2008-02-21 Rodrigo Kumpera <rkumpera@novell.com>
Rodrigo Kumpera [Thu, 21 Feb 2008 14:11:14 +0000 (14:11 -0000)]
2008-02-21  Rodrigo Kumpera  <rkumpera@novell.com>

* resolve_method_bug.2.il
* resolve_field_bug.2.il
* resolve_type_bug.2.il: Tests for #363450. They verify that
a loader error during System.Reflection.Module::Resolve* methods don't
leak and causes a spurious TypeLoadException somewhere else.

* Makefile.am: Added the previous tests.

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

16 years ago2008-02-21 Rodrigo Kumpera <rkumpera@novell.com>
Rodrigo Kumpera [Thu, 21 Feb 2008 14:01:27 +0000 (14:01 -0000)]
2008-02-21 Rodrigo Kumpera  <rkumpera@novell.com>

icall.c (ves_icall_System_Reflection_Module_ResolveTypeToken): If
there is a pending loader exception, raise it.

icall.c (ves_icall_System_Reflection_Module_ResolveMethodToken):
same.

icall.c (ves_icall_System_Reflection_Module_ResolveFieldToken):
same.

Fixes #363450.

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

16 years ago2008-02-21 Sebastien Pouliot <sebastien@ximian.com>
Sebastien Pouliot [Thu, 21 Feb 2008 13:55:49 +0000 (13:55 -0000)]
2008-02-21  Sebastien Pouliot  <sebastien@ximian.com>

* Rfc2898DeriveBytesTest.cs: Add test cases for consecutive calls to
GetBytes and compare the result to a single, larger, call. Converted
all exitsing tests to NUnit 2.2.

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

16 years agoRfc2898DeriveBytes.cs: Fix GetByte not to throw an exception if called several time...
Sebastien Pouliot [Thu, 21 Feb 2008 13:54:53 +0000 (13:54 -0000)]
Rfc2898DeriveBytes.cs: Fix GetByte not to throw an exception if called several time to get more data.

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