mono.git
15 years agosvn path=/trunk/mcs/; revision=104772
Noam Lampert [Tue, 3 Jun 2008 17:19:54 +0000 (17:19 -0000)]
svn path=/trunk/mcs/; revision=104772

15 years ago2008-06-03 Zoltan Varga <vargaz@gmail.com>
Zoltan Varga [Tue, 3 Jun 2008 16:13:01 +0000 (16:13 -0000)]
2008-06-03  Zoltan Varga  <vargaz@gmail.com>

* tramp-arm.c (mono_arch_create_trampoline_code): Check for thread
interruption. Fix some warnings.

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

15 years agowe pass those tests
Jb Evain [Tue, 3 Jun 2008 15:52:38 +0000 (15:52 -0000)]
we pass those tests

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

15 years ago2008-06-03 Jonathan Pobst <monkey@jpobst.com>
Jonathan Pobst [Tue, 3 Jun 2008 15:32:57 +0000 (15:32 -0000)]
2008-06-03  Jonathan Pobst  <monkey@jpobst.com>

* DefaultLayout.cs: It appears that TableLayoutPanels are immune to
AutoSizeMode and always ShrinkAndGrow.  [Fixes bug #396433]

2008-06-03  Jonathan Pobst  <monkey@jpobst.com>

* TableLayoutTest.cs Add another test for bug #396433.

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

15 years ago2008-06-03 Zoltan Varga <vargaz@gmail.com>
Zoltan Varga [Tue, 3 Jun 2008 15:17:32 +0000 (15:17 -0000)]
2008-06-03  Zoltan Varga  <vargaz@gmail.com>

* tramp-*.c (mono_arch_create_trampoline_code): Call the _force_ variant of
interruption_checkpoint.

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

15 years ago2008-06-03 Rodrigo Kumpera <rkumpera@novell.com>
Rodrigo Kumpera [Tue, 3 Jun 2008 15:06:01 +0000 (15:06 -0000)]
2008-06-03 Rodrigo Kumpera  <rkumpera@novell.com>

* reflection.c (fieldbuilder_to_mono_class_field): Use mono_metadata_type_dup
instead of g_memdup.

* reflection.c (typebuilder_setup_fields): Same.

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

15 years ago2008-06-03 Ivan N. Zlatev <contact@i-nz.net>
Ivan Zlatev [Tue, 3 Jun 2008 15:01:22 +0000 (15:01 -0000)]
2008-06-03  Ivan N. Zlatev  <contact@i-nz.net>

* RichTextBox.cs: GetPositionFromCharIndex should return the
visual position of the character relative to the viewport.
[Fixes part of bug #396664]

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

15 years ago2008-06-03 Sebastien Pouliot <sebastien@ximian.com>
Sebastien Pouliot [Tue, 3 Jun 2008 14:50:54 +0000 (14:50 -0000)]
2008-06-03  Sebastien Pouliot  <sebastien@ximian.com>

* X509Certificate.cs: Accept text before the PEM certificate itself.
[Fix bug #396486]

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

15 years ago2008-06-02 Jonathan Pobst <monkey@jpobst.com>
Jonathan Pobst [Tue, 3 Jun 2008 14:49:21 +0000 (14:49 -0000)]
2008-06-02  Jonathan Pobst  <monkey@jpobst.com>

* TimerTest.cs: Disable test that fails a bunch on buildbots.

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

15 years ago2008-06-03 Sebastien Pouliot <sebastien@ximian.com>
Sebastien Pouliot [Tue, 3 Jun 2008 14:35:49 +0000 (14:35 -0000)]
2008-06-03  Sebastien Pouliot  <sebastien@ximian.com>

* X509Certificate.cs: Accept text before the PEM certificate itself.
[Fix bug #396486]

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

15 years ago2008-06-03 Sebastien Pouliot <sebastien@ximian.com>
Sebastien Pouliot [Tue, 3 Jun 2008 13:18:46 +0000 (13:18 -0000)]
2008-06-03  Sebastien Pouliot  <sebastien@ximian.com>

* X509Certificate2.cs: Allow PrivateKey property to be set to null.
[Fix bug #396620]

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

15 years ago2008-06-03 Zoltan Varga <vargaz@gmail.com>
Zoltan Varga [Tue, 3 Jun 2008 13:14:22 +0000 (13:14 -0000)]
2008-06-03  Zoltan Varga  <vargaz@gmail.com>

* decimal.c (rescale128): Optimize this function a bit more.

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

15 years agocomment out tests due to gmcs bug
Jb Evain [Tue, 3 Jun 2008 13:02:53 +0000 (13:02 -0000)]
comment out tests due to gmcs bug

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

15 years agotests for not lifted/lifted/lifted to null user defined binary operators
Jb Evain [Tue, 3 Jun 2008 13:00:40 +0000 (13:00 -0000)]
tests for not lifted/lifted/lifted to null user defined binary operators

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

15 years ago2008-06-03 Atsushi Enomoto <atsushi@ximian.com>
Atsushi Eno [Tue, 3 Jun 2008 12:58:30 +0000 (12:58 -0000)]
2008-06-03  Atsushi Enomoto  <atsushi@ximian.com>

* XslVariable.cs : In XslGeneralVariable.Evaluate(), always wrap
  custom XPathNodeIterator with XsltContext so that the iterator
  can resolve variables. Fixed bug #316238.

* XslTransformTests.cs : added test for bug #316238.

* 316238-1.xsl, 316238-2.xsl : new test files.

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

15 years agoIntegrate nunit tests with GH build bot
Noam Lampert [Tue, 3 Jun 2008 12:56:48 +0000 (12:56 -0000)]
Integrate nunit tests with GH build bot

svn path=/branches/mainsoft/gh3.0preview1/mcs/; revision=104747

15 years ago2008-06-03 Atsushi Enomoto <atsushi@ximian.com>
Atsushi Eno [Tue, 3 Jun 2008 11:41:34 +0000 (11:41 -0000)]
2008-06-03  Atsushi Enomoto <atsushi@ximian.com>

* Expression.cs : help diagnose variable resolution failure.

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

15 years ago2008-06-03 Atsushi Enomoto <atsushi@ximian.com>
Atsushi Eno [Tue, 3 Jun 2008 11:28:53 +0000 (11:28 -0000)]
2008-06-03  Atsushi Enomoto  <atsushi@ximian.com>

* XslTransform.cs : add pretty simple printing debugger.

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

15 years ago2008-06-03 Atsushi Enomoto <atsushi@ximian.com>
Atsushi Eno [Tue, 3 Jun 2008 11:28:01 +0000 (11:28 -0000)]
2008-06-03  Atsushi Enomoto  <atsushi@ximian.com>

* XsltDebuggerWrapper.cs : allow public methods in debugger instance.

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

15 years ago2008-06-03 Ivan N. Zlatev <contact@i-nz.net>
Ivan Zlatev [Tue, 3 Jun 2008 11:21:22 +0000 (11:21 -0000)]
2008-06-03  Ivan N. Zlatev  <contact@i-nz.net>

* GridEntry.cs: Make HasCustomEditor check for EditStyle != None
and not just for the existance of an UITypeEditor. In some cases
there is an editor associated just to do PaintValue, but which
doesn't actually support editing.
[Fixes bug #396632]

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

15 years agoTue Jun 3 13:07:03 CEST 2008 Paolo Molaro <lupus@ximian.com>
Paolo Molaro [Tue, 3 Jun 2008 11:08:03 +0000 (11:08 -0000)]
Tue Jun 3 13:07:03 CEST 2008 Paolo Molaro <lupus@ximian.com>

* jit.h, mini.h, trace.c, driver.c: introduce an API to enable tracing
from embedding applications.

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

15 years ago2008-06-03 Ivan N. Zlatev <contact@i-nz.net>
Ivan Zlatev [Tue, 3 Jun 2008 11:04:33 +0000 (11:04 -0000)]
2008-06-03  Ivan N. Zlatev  <contact@i-nz.net>

* FontNameEditor.cs: PaintEventArgs.Value is string containing
the font name and not a Font.
Based on a patch by Andy Hume  <andyhume32@yahoo.co.uk>
[Fixes bug #396631]

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

15 years agoRemoved MonoTODO fixed by miguel
Marek Safar [Tue, 3 Jun 2008 08:33:55 +0000 (08:33 -0000)]
Removed MonoTODO fixed by miguel

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

15 years ago * ComboBox.cs: page_size as well as vscrollbar.LargeChange should be 1
Carlos Alberto Cortez [Tue, 3 Jun 2008 06:26:51 +0000 (06:26 -0000)]
* ComboBox.cs: page_size as well as vscrollbar.LargeChange should be 1
if needed, instead of 0 - this should help us in the corner case where
we have more than one item but we are only partially showing 1 item.
Fixes part of #374713.

2008-05-02  Carlos Alberto Cortez <calberto.cortez@gmail.com>

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

15 years ago2008-06-03 Rodrigo Kumpera <rkumpera@novell.com>
Rodrigo Kumpera [Tue, 3 Jun 2008 02:26:06 +0000 (02:26 -0000)]
2008-06-03 Rodrigo Kumpera  <rkumpera@novell.com>

* metadata.c (free_generic_class): Release some memory from
SRE generic classes.

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

15 years ago2008-06-03 Rodrigo Kumpera <rkumpera@novell.com>
Rodrigo Kumpera [Tue, 3 Jun 2008 01:01:37 +0000 (01:01 -0000)]
2008-06-03 Rodrigo Kumpera  <rkumpera@novell.com>

* reflection.c (mono_image_get_generic_field_token): No reference
to name is kept, free it.

* reflection.c (mono_reflection_generic_class_initialize): Free
more memory of the inflated field.

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

15 years ago2008-05-02 Carlos Alberto Cortez <calberto.cortez@gmail.com>
Carlos Alberto Cortez [Mon, 2 Jun 2008 23:25:35 +0000 (23:25 -0000)]
2008-05-02  Carlos Alberto Cortez <calberto.cortez@gmail.com>

* XplatUiX11.cs: When scrolling and detecting the obscured areas in a
control, return immediately if the any parent control's handle hasn't
been created or isn't visible, as well as avoiding creating the parent
Form if the handle hasn't been previously created.
Fixes tests.

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

15 years ago2008-06-03 Zoltan Varga <vargaz@gmail.com>
Zoltan Varga [Mon, 2 Jun 2008 22:58:57 +0000 (22:58 -0000)]
2008-06-03  Zoltan Varga  <vargaz@gmail.com>

* decimal.c (mono_decimalDiv): Moved equality checks here from managed
code.

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

15 years ago2008-06-03 Zoltan Varga <vargaz@gmail.com>
Zoltan Varga [Mon, 2 Jun 2008 22:56:35 +0000 (22:56 -0000)]
2008-06-03  Zoltan Varga  <vargaz@gmail.com>

* Decimal.cs (Divide): Move expensive equality checks to unmanaged code.

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

15 years ago2008-06-02 Miguel de Icaza <miguel@novell.com>
Miguel de Icaza [Mon, 2 Jun 2008 22:46:31 +0000 (22:46 -0000)]
2008-06-02  Miguel de Icaza  <miguel@novell.com>

* HttpRuntime.cs: Thanks to Christian Hergert for finding this
one.

Do not throw NIEX on IsOnUNCShare, instead compute the value.

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

15 years ago2008-06-02 Rodrigo Kumpera <rkumpera@novell.com>
Rodrigo Kumpera [Mon, 2 Jun 2008 22:34:38 +0000 (22:34 -0000)]
2008-06-02 Rodrigo Kumpera  <rkumpera@novell.com>

* reflection.c (mono_dynamic_image_free): Release memory used by
MonoDynamicImage::array_methods elements.

* reflection.c (assembly_add_win32_resources): Release memory after
encoding.

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

15 years ago2008-06-02 Jonathan Pobst <monkey@jpobst.com>
Jonathan Pobst [Mon, 2 Jun 2008 22:22:40 +0000 (22:22 -0000)]
2008-06-02  Jonathan Pobst  <monkey@jpobst.com>

* TableLayoutPanel.cs: Use border sizes when calculating the
panel's preferred size.  [Fixes part of bug #396433]

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

* TableLayout.cs: Fix a c&p error so we correctly calculate row
border heights.  [Fixes part of bug #396433]

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

* TableLayoutTest.cs Add test for bug #396433.

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

15 years ago2008-06-02 Zoltan Varga <vargaz@gmail.com>
Zoltan Varga [Mon, 2 Jun 2008 21:53:32 +0000 (21:53 -0000)]
2008-06-02  Zoltan Varga  <vargaz@gmail.com>

* decimal.c (log2_32): Use an optimized version for this function too.

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

15 years ago2008-06-02 Zoltan Varga <vargaz@gmail.com>
Zoltan Varga [Mon, 2 Jun 2008 21:39:23 +0000 (21:39 -0000)]
2008-06-02  Zoltan Varga  <vargaz@gmail.com>

* decimal.c (log2_64): Fix this on 32 bit machines.

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

15 years ago2008-06-02 Rodrigo Kumpera <rkumpera@novell.com>
Rodrigo Kumpera [Mon, 2 Jun 2008 21:22:25 +0000 (21:22 -0000)]
2008-06-02 Rodrigo Kumpera  <rkumpera@novell.com>

* class.c (mono_dup_array_type): Implement allocation using a mempool.

* class.c (mono_metadata_signature_deep_dup): Same.

* metadata.c (mono_metadata_signature_dup_full): Added, allow dup'ng with
a mempool.

* metadata.c (mono_metadata_signature_dup): Delegate to the _full version.

* metadata.c (mono_metadata_type_dup): Remove asserts and FIXME.

* metadata-internals.h: Added mono_metadata_signature_dup_full.

* class-internals.h: Update signatures to take a MonoMemPool.

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

15 years ago2008-06-02 Ivan N. Zlatev <contact@i-nz.net>
Ivan Zlatev [Mon, 2 Jun 2008 21:14:02 +0000 (21:14 -0000)]
2008-06-02  Ivan N. Zlatev  <contact@i-nz.net>

* ChangeLog: Fix wrong bug number.

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

15 years ago2008-06-02 Ivan N. Zlatev <contact@i-nz.net>
Ivan Zlatev [Mon, 2 Jun 2008 21:10:05 +0000 (21:10 -0000)]
2008-06-02  Ivan N. Zlatev  <contact@i-nz.net>

* SplitContainer.cs:
 - Fix SplitterDistance to update only if needed.
 - Make it force min and max validation.
 - Handle properly mouse moves outside the resizeable area.
[Fixes bug #338966]

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

15 years ago* mcs/class/Managed.Windows.Forms/Test/System.Windows.Forms/TextBoxTest.cs:
Andreia Gaita [Mon, 2 Jun 2008 20:14:56 +0000 (20:14 -0000)]
* mcs/class/Managed.Windows.Forms/Test/System.Windows.Forms/TextBoxTest.cs:
  Fix endif

2008-06-02  Andreia Gaita <avidigal@novell.com>

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

15 years ago* mcs/class/Mono.WebBrowser/tools/xpidl2cs/xpidl2cs.pl: Add mapping:
Andreia Gaita [Mon, 2 Jun 2008 19:50:18 +0000 (19:50 -0000)]
* mcs/class/Mono.WebBrowser/tools/xpidl2cs/xpidl2cs.pl: Add mapping:
  nsIIDPtr[] to IntPtr, nsCID and nsCIDPtr to Guid. Add support for
  mapping array types

2008-06-02  Andreia Gaita <avidigal@novell.com>

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

15 years ago* mcs/class/Managed.Windows.Forms/build-csproj2k5,
Andreia Gaita [Mon, 2 Jun 2008 19:50:01 +0000 (19:50 -0000)]
* mcs/class/Managed.Windows.Forms/build-csproj2k5,
  mcs/class/Managed.Windows.Forms/SWF2k5.csproj: Add missing
  preprocessor symbol.
* mcs/class/Managed.Windows.Forms/SWF2k5.sln: Make 2.0 the default
  profile for the solution.

2008-06-02  Andreia Gaita <avidigal@novell.com>

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

15 years ago2008-06-02 Andreia Gaita <avidigal@novell.com>
Andreia Gaita [Mon, 2 Jun 2008 19:49:07 +0000 (19:49 -0000)]
2008-06-02  Andreia Gaita <avidigal@novell.com>

* mcs/class/Managed.Windows.Forms/System.Windows.Forms/WebBrowserBase.cs:
  Implement support for ScriptErrorsSuppressed (which also suppresses
  all popup dialogs). Throw NotSupported exceptions for activex
  getters/setters.
* mcs/class/Managed.Windows.Forms/System.Windows.Forms/WebBrowser.cs:
  Implement DocumentStream, DocumentType, IsBusy, IsOffline,
  ReadyState, ScriptErrorsSuppressed, ScrollbarsEnabled, StatusText,
  Version, GoSearch
* mcs/class/Managed.Windows.Forms/System.Windows.Forms/HtmlDocument.cs:
  Add DocType support
* mcs/class/Mono.WebBrowser/Mono.WebBrowser.dll.sources,
  mcs/class/Mono.WebBrowser/Mono.WebBrowser2K5.csproj: Added new
  classes/interfaces
* mcs/class/Mono.WebBrowser/Mono.WebBrowser/DOM/IMediaList.cs: Added
  (Stylesheet.Media support)
* mcs/class/Mono.WebBrowser/Mono.WebBrowser/DOM/IDocument.cs: Added
  Doctype, Implementation, Stylesheets
* mcs/class/Mono.WebBrowser/Mono.WebBrowser/DOM/IDocumentType.cs,
  mcs/class/Mono.WebBrowser/Mono.Mozilla/DOM/DocumentType.cs: Added
  (Document.DocumentType support)
* mcs/class/Mono.WebBrowser/Mono.WebBrowser/DOM/IStylesheetList.cs,
  mcs/class/Mono.WebBrowser/Mono.Mozilla/DOM/StylesheetList.cs,
  mcs/class/Mono.WebBrowser/Mono.Mozilla/interfaces/nsIDOMHTMLStyleElement.cs,
  mcs/class/Mono.WebBrowser/Mono.Mozilla/interfaces/nsIDOMDocumentStyle.cs,
  mcs/class/Mono.WebBrowser/Mono.Mozilla/interfaces/nsIDOMStyleSheetList.cs:
  Added (Document.Stylesheets support)
* mcs/class/Mono.WebBrowser/Mono.WebBrowser/DOM/IDOMImplementation.cs,
  mcs/class/Mono.WebBrowser/Mono.Mozilla/DOM/DOMImplementation.cs:
  Added (Document.Implementation support)
* mcs/class/Mono.WebBrowser/Mono.WebBrowser/DOM/INamedNodeMap.cs,
  mcs/class/Mono.WebBrowser/Mono.Mozilla/DOM/NamedNodeMap.cs: Added
  (Node collection for named node access - DocumentType.Entities,
  DocumentType.Notations)
* mcs/class/Mono.WebBrowser/Mono.WebBrowser/DOM/IStylesheet.cs,
  mcs/class/Mono.WebBrowser/Mono.Mozilla/DOM/Stylesheet.cs: Added
  (StylesheetList.Item support)
* mcs/class/Mono.WebBrowser/Mono.WebBrowser/Exception.cs: Added error
  code for Preferences service
* mcs/class/Mono.WebBrowser/Mono.WebBrowser/IWebBrowser.cs,
  mcs/class/Mono.WebBrowser/Mono.Mozilla/WebBrowser.cs: Add Offline,
  ScrollbarsEnabled
* mcs/class/Mono.WebBrowser/Mono.Mozilla/DOM/Document.cs: This class
  wraps both dom Document and HTMLDocument, so assume that the object
  is a Document (which HTMLDocument inherits from), and cast
  appropriately when calling properties or methods that are from the
  child class. Add DocType, Implementation, Stylesheets acessors
* mcs/class/Mono.WebBrowser/Mono.Mozilla/interfaces/nsIPrefBranch.cs,
  mcs/class/Mono.WebBrowser/Mono.Mozilla/interfaces/nsIPrefService.cs:
  Added (browser preferences support)
* mcs/class/Mono.WebBrowser/Mono.Mozilla/interfaces/nsIClassInfo.cs:
  Added (interface querying support)
* mcs/class/Mono.WebBrowser/Assembly/AssemblyInfo.cs: Version bump

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

15 years ago2008-06-02 Andy Hume <andyhume32@yahoo.co.uk>
Ivan Zlatev [Mon, 2 Jun 2008 18:24:34 +0000 (18:24 -0000)]
2008-06-02  Andy Hume  <andyhume32@yahoo.co.uk>

* TextBox.cs: Implement TextBoxAutoCompleteSourceConverter.
* TextBoxTest.cs: Test for TextBoxAutoCompleteSourceConverter.
[Fixes bug 396124]

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

15 years ago2008-06-02 Dick Porter <dick@ximian.com>
Dick Porter [Mon, 2 Jun 2008 18:15:48 +0000 (18:15 -0000)]
2008-06-02  Dick Porter  <dick@ximian.com>

* Win32Exception.cs: Turn W32ErrorMessage into an icall so it can
use the FormatMessage API.  Fixes bug 321827.

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

15 years ago2008-06-02 Dick Porter <dick@ximian.com>
Dick Porter [Mon, 2 Jun 2008 18:14:50 +0000 (18:14 -0000)]
2008-06-02  Dick Porter  <dick@ximian.com>

* icall.c (ves_icall_System_ComponentModel_Win32Exception_W32ErrorMessage):
* icall-def.h: Add
System.ComponentModel.Win32Exception.W32ErrorMessage, using the
FormatMessage API to get the error text.  Fixes bug 321827.

2008-06-02  Dick Porter  <dick@ximian.com>

* wapi.h:
* Makefile.am:
* messages.h:
* messages.c: Implement FormatMessage, fixes bug 321827.

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

15 years ago2008-06-02 Ivan N. Zlatev <contact@i-nz.net>
Ivan Zlatev [Mon, 2 Jun 2008 17:37:04 +0000 (17:37 -0000)]
2008-06-02  Ivan N. Zlatev  <contact@i-nz.net>

* GridEntry.cs: Pass the ITypeDescriptorContext everywhere.

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

15 years ago2008-06-02 Ivan N. Zlatev <contact@i-nz.net>
Ivan Zlatev [Mon, 2 Jun 2008 17:30:21 +0000 (17:30 -0000)]
2008-06-02  Ivan N. Zlatev  <contact@i-nz.net>

* MemberDescriptor.cs, PropertyDescriptor.cs,
ReflectionPropertyDescriptor.cs: Implement FillAttributes.
* MemberDescriptor.cs:
 - Attributes should be checked for duplicates based on their
 TypeId and not Type.
 - For duplicate attributes the last one added has higher precedence.
* ReflectionPropertyDescriptor.cs: Use the property type supplied
in the ctor instead of using reflection, because this won't work if
there are more then one property with the same name.

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

15 years ago2008-06-02 Ivan N. Zlatev <contact@i-nz.net>
Ivan Zlatev [Mon, 2 Jun 2008 17:29:12 +0000 (17:29 -0000)]
2008-06-02  Ivan N. Zlatev  <contact@i-nz.net>

* MonoType.cs, Binder.cs, MonoGenericClass.cs: For property reflection
we should strictly match the return type if available.
* TypeTest.cs: Add tests to verify strict return type matching of
property reflection.

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

15 years ago2008-06-02 Zoltan Varga <vargaz@gmail.com>
Zoltan Varga [Mon, 2 Jun 2008 16:40:31 +0000 (16:40 -0000)]
2008-06-02  Zoltan Varga  <vargaz@gmail.com>

* decimal.c: Add some micro optimizations to make decimal operations faster.

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

15 years ago2008-06-02 Jonathan Pobst <monkey@jpobst.com>
Jonathan Pobst [Mon, 2 Jun 2008 16:13:46 +0000 (16:13 -0000)]
2008-06-02  Jonathan Pobst  <monkey@jpobst.com>

* TableLayoutPanel.cs: When calculating preferred size, use the
actual number of columns and rows, not what the user set them to.
[Fixes bug #396141]

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

* TableLayoutTest.cs Add test for bug #396141.

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

15 years agonew test
Jb Evain [Mon, 2 Jun 2008 15:59:55 +0000 (15:59 -0000)]
new test

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

15 years agonew tests
Jb Evain [Mon, 2 Jun 2008 15:47:41 +0000 (15:47 -0000)]
new tests

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

15 years ago2008-06-02 Bill Holmes <billholmes54@gmail.com>
Bill Holmes [Mon, 2 Jun 2008 15:39:04 +0000 (15:39 -0000)]
2008-06-02  Bill Holmes  <billholmes54@gmail.com>
* mono.sln, libtest.vcproj:  Adding libtest to the VS solution.
  libtest is needed for the marshaling tests.

Contributed under MIT/X11 license.

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

15 years agouncomment tests now that gmcs is fixed
Jb Evain [Mon, 2 Jun 2008 15:22:24 +0000 (15:22 -0000)]
uncomment tests now that gmcs is fixed

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

15 years agoadd fixme
Jb Evain [Mon, 2 Jun 2008 15:17:43 +0000 (15:17 -0000)]
add fixme

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

15 years ago2008-06-02 William Holmes <billholmes54@gmail.com>
Bill Holmes [Mon, 2 Jun 2008 15:07:44 +0000 (15:07 -0000)]
2008-06-02  William Holmes  <billholmes54@gmail.com>

* mini-amd64.c :  Correcting some of the issues for Winx64 dealing with
  reserving 32 bytes on the stack when making calls.

Contributed under MIT/X11 license.

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

15 years ago2008-06-02 Bill Holmes <billholmes54@gmail.com>
Bill Holmes [Mon, 2 Jun 2008 15:03:10 +0000 (15:03 -0000)]
2008-06-02  Bill Holmes  <billholmes54@gmail.com>
* libtest.c:  Changes to make libtest.c ready to be compiled in
  Visual Studio.  The STDCALL statements had to be moved and I added
  declspec(dllexport) statements to all methods.

Contributed under MIT/X11 license.

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

15 years ago2008-06-02 Bill Holmes <billholmes54@gmail.com>
Bill Holmes [Mon, 2 Jun 2008 14:58:35 +0000 (14:58 -0000)]
2008-06-02  Bill Holmes  <billholmes54@gmail.com>
* monodiet.vcproj, libgc.vcproj, test_eglib.vcproj,
  eglib.vcproj, teste.vcproj, genmdesc.vcproj, monoburg.vcproj,
  monograph.vcproj, pedump.vcproj, test-metadata.vcproj,
  libmono.vcproj, mono.sln, mono.vcproj, monodis.vcproj,test-invoke.vcproj
  Changes to the Visual Studio projects to unify the output directories
  for each project and configuration.

Contributed under MIT/X11 license.

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

15 years ago2008-06-02 George Giolfan <georgegiolfan@yahoo.com>
George Giolfan [Mon, 2 Jun 2008 14:17:28 +0000 (14:17 -0000)]
2008-06-02  George Giolfan <georgegiolfan@yahoo.com>

* Form.cs: Enabled managed handling of tool window MDI children. Fixes bug
394311.

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

15 years agoNew test.
Marek Safar [Mon, 2 Jun 2008 11:18:30 +0000 (11:18 -0000)]
New test.

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

15 years ago2008-06-02 Atsushi Enomoto <atsushi@ximian.com>
Marek Safar [Mon, 2 Jun 2008 11:17:57 +0000 (11:17 -0000)]
2008-06-02  Atsushi Enomoto  <atsushi@ximian.com>
Marek Safar  <marek.safar@gmail.com>

A fix for bug #395542
* cs-parser.jay: The trailing comma is allowed in anonymous type member
declaration.

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

15 years agoNew test.
Marek Safar [Mon, 2 Jun 2008 10:57:44 +0000 (10:57 -0000)]
New test.

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

15 years agoNew test.
Marek Safar [Mon, 2 Jun 2008 10:57:31 +0000 (10:57 -0000)]
New test.

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

15 years ago2008-06-02 Marek Safar <marek.safar@gmail.com>
Marek Safar [Mon, 2 Jun 2008 10:57:20 +0000 (10:57 -0000)]
2008-06-02  Marek Safar  <marek.safar@gmail.com>

A fix for bug #395287
* class.cs, modifiers.cs: Automatic properties method base modifiers checks.

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

15 years ago2008-06-01 Carlos Alberto Cortez <calberto.cortez@gmail.com>
Carlos Alberto Cortez [Mon, 2 Jun 2008 02:00:28 +0000 (02:00 -0000)]
2008-06-01  Carlos Alberto Cortez <calberto.cortez@gmail.com>

* XplatUIX11.cs: When detecting areas obscured in a control by other
toplevel windows while scrolling, return if the control hasn't a
container form.
Fixes some tests.

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

15 years ago2008-06-02 Atsushi Enomoto <atsushi@ximian.com>
Atsushi Eno [Mon, 2 Jun 2008 01:23:30 +0000 (01:23 -0000)]
2008-06-02  Atsushi Enomoto  <atsushi@ximian.com>

* ResolveAssemblyReferenceTest.cs: marked some failing tests as
  [Ignore]. They will never be successful when mono is not
  "installed".

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

15 years ago2008-06-02 Atsushi Enomoto <atsushi@ximian.com>
Atsushi Eno [Mon, 2 Jun 2008 01:20:41 +0000 (01:20 -0000)]
2008-06-02  Atsushi Enomoto  <atsushi@ximian.com>

* AssemblyResolver.cs : do not crash when there is no mono installed.

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

15 years ago2008-05-01 Carlos Alberto Cortez <calberto.cortez@gmail.com>
Carlos Alberto Cortez [Sun, 1 Jun 2008 23:51:34 +0000 (23:51 -0000)]
2008-05-01  Carlos Alberto Cortez <calberto.cortez@gmail.com>

* XplatUIX11.cs: Properly detect the visible area of a control being
scrolled (obscured by other winforms controls and any X toplevel
windows), to mark as invalid the requested area to be scrolled that
isn't visible and thus can't be copied.
Fixes #324513.

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

15 years agoFix bug #367114.
Ankit Jain [Sun, 1 Jun 2008 23:06:37 +0000 (23:06 -0000)]
Fix bug #367114.

In class/PEAPI:
Fix bug #367114.
* Code.cs (TryBlock.ResolveCatchBlocks): New.
(CILInstructions.AddTryBlock): Resolve the catch blocks with the new
method.
(Catch..ctor): Add new .ctor to allow exceptions of any type.
(Catch.ResolveType): New. Add the exception type to the metadata.

In ilasm/codegen:
Fix bug #367114.
* CatchBlock.cs: Allow exception to be of any type (BaseTypeRef) and not
just a class (BaseClassRef).

In ilasm/parser:
Part of fix for bug #367114.
* ILParser.jay (seh_clause): Allow exception to be of any type and not
just class.

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

15 years ago2008-06-01 Juraj Skripsky <js@hotfeet.ch>
Juraj Skripsky [Sun, 1 Jun 2008 17:57:48 +0000 (17:57 -0000)]
2008-06-01  Juraj Skripsky  <js@hotfeet.ch>

* StringBuilder.cs (ToString): Use String.SubstringUnchecked instead
of String.Substring, as the former is guaranteed to create a new
string object. Fixes bug #395904.

* String.cs (Substring): Blocking bug #395904 has been fixed,
re-enable optimization.

* StringTest.cs (Substring2): Blocking bug #395904 has been fixed,
re-enable test.

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

15 years agoIn ilasm/codegen:
Ankit Jain [Sun, 1 Jun 2008 16:17:31 +0000 (16:17 -0000)]
In ilasm/codegen:

Fix bug #364580.
* MethodDef.cs (CreateSignature): Add new @include_optional and
@call_conv param. Make private.
(CreateVarargSignature): Likewise.
(CreateSignature): Add new static method for vararg and other methods.
(GetVarargSig): Add new @full_signature param to uniquely identify
vararg methods.

* CodeGen.cs (ResolveVarargMethod): This now takes two signatures - one
with only the required params and the other with the optional ones, to
correctly resolve global vararg methods.

* BaseTypeRef.cs:
* GenericTypeInst.cs:
* GlobalMethodRef.cs:
* PrimitiveTypeRef.cs:
* TypeDef.cs: Track api changes.

In ilasm/parser:

* ILParser.jay: Track api changes.

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

15 years ago2008-06-01 Zoltan Varga <vargaz@gmail.com>
Zoltan Varga [Sun, 1 Jun 2008 16:13:24 +0000 (16:13 -0000)]
2008-06-01  Zoltan Varga  <vargaz@gmail.com>

* mini-arm.c (mono_arch_output_basic_block): Merge some small fixes from
the linear IL branch.

* driver.c: Print out more information for --version on arm.

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

15 years ago2008-06-01 Rodrigo Kumpera <rkumpera@novell.com>
Rodrigo Kumpera [Sun, 1 Jun 2008 13:08:37 +0000 (13:08 -0000)]
2008-06-01 Rodrigo Kumpera  <rkumpera@novell.com>

* reflection.c (method_encode_clauses): Take a mempool
as parameter and use it to allocate the clause array.

* reflection.c (mono_image_get_field_on_inst_token): Free
the inflated type after encoding it.

* reflection.c (mono_dynamic_image_free): Free each element
of MonoDynamicImage::gen_params.

* reflection.c (reflection_methodbuilder_to_mono_method):
Allocate the generic param array from the mempool.
Allocate signature params from the mempool.

* reflection.c (mono_reflection_generic_class_initialize):
Free inflated fields after been used.

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

15 years ago2008-05-24 Andreas Nahr <ClassDevelopment@A-SoftTech.com>
Andreas N [Sun, 1 Jun 2008 10:13:22 +0000 (10:13 -0000)]
2008-05-24  Andreas Nahr <ClassDevelopment@A-SoftTech.com>

* StringTest.cs: Comment out a test that currently fails by checking for
an obsolete parameter name in an exception (that doesn't even match the existing one)

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

15 years ago2008-06-01 Andreas Nahr <ClassDevelopment@A-SoftTech.com>
Andreas N [Sun, 1 Jun 2008 09:12:21 +0000 (09:12 -0000)]
2008-06-01  Andreas Nahr <ClassDevelopment@A-SoftTech.com>

* String.cs: Replace Split IndexOf

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

15 years agoA message update
Marek Safar [Sat, 31 May 2008 18:49:44 +0000 (18:49 -0000)]
A message update

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

15 years agoNew test.
Marek Safar [Sat, 31 May 2008 18:49:27 +0000 (18:49 -0000)]
New test.

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

15 years ago2008-05-31 Marek Safar <marek.safar@gmail.com>
Marek Safar [Sat, 31 May 2008 18:47:43 +0000 (18:47 -0000)]
2008-05-31  Marek Safar  <marek.safar@gmail.com>

A fix for bug #395845
* class.cs, nullable.cs: User unary operator is allowed to have nullable and
non-nullable parameter type.

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

15 years ago2008-05-31 Andreas Faerber <andreas.faerber@web.de>
Andreas Färber [Sat, 31 May 2008 13:59:32 +0000 (13:59 -0000)]
2008-05-31  Andreas Faerber  <andreas.faerber@web.de>

* configure.in (big-arrays): Output fix.
  Display "no" in absence of --enable-big-arrays.

This commit is licensed under the MIT X11 license.

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

15 years agoBigInteger.cs: Don't instantiate a new BigInteger after multiplying - it's not needed.
Alan McGovern [Sat, 31 May 2008 13:39:48 +0000 (13:39 -0000)]
BigInteger.cs: Don't instantiate a new BigInteger after multiplying - it's not needed.

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

15 years ago2008-05-31 Marek Safar <marek.safar@gmail.com>
Marek Safar [Sat, 31 May 2008 09:18:07 +0000 (09:18 -0000)]
2008-05-31  Marek Safar  <marek.safar@gmail.com>

* class.cs: Handle contructor initializer as a statement in top-level block.

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

15 years ago2008-05-30 Sebastien Pouliot <sebastien@ximian.com>
Sebastien Pouliot [Sat, 31 May 2008 02:02:58 +0000 (02:02 -0000)]
2008-05-30  Sebastien Pouliot  <sebastien@ximian.com>

* RSACryptoServiceProvider.cs: Remove MonoTODO that were fixed a
while ago. Provide better MonoTODO messages for the next version
of MoMA.
* RijndaelManagedTransform.cs: Provide better MonoTODO messages
for the next version of MoMA.

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

15 years ago2008-05-30 Sebastien Pouliot <sebastien@ximian.com>
Sebastien Pouliot [Sat, 31 May 2008 02:01:32 +0000 (02:01 -0000)]
2008-05-30  Sebastien Pouliot  <sebastien@ximian.com>

* IdentityReferenceCollection.cs: Remove MonoTODO and throw NIE.

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

15 years ago2008-05-30 Sebastien Pouliot <sebastien@ximian.com>
Sebastien Pouliot [Sat, 31 May 2008 02:01:11 +0000 (02:01 -0000)]
2008-05-30  Sebastien Pouliot  <sebastien@ximian.com>

* ApplicationSecurityManager.cs: Provide better MonoTODO messages
for the next version of MoMA.

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

15 years ago2008-05-30 Sebastien Pouliot <sebastien@ximian.com>
Sebastien Pouliot [Sat, 31 May 2008 02:00:56 +0000 (02:00 -0000)]
2008-05-30  Sebastien Pouliot  <sebastien@ximian.com>

* CodeAccessPermission.cs,
* PermissionSet.cs,
* SecurityManager.cs: Provide better MonoTODO messages for the
next version of MoMA.

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

15 years ago2008-05-30 Rodrigo Kumpera <rkumpera@novell.com>
Rodrigo Kumpera [Sat, 31 May 2008 01:52:49 +0000 (01:52 -0000)]
2008-05-30 Rodrigo Kumpera  <rkumpera@novell.com>

* icall.c: Reapply the memory leak fixes as they no
longer make mono crash.

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

15 years ago * ListBox.cs: Compute the precise amount to vertically scroll when
Carlos Alberto Cortez [Sat, 31 May 2008 00:44:18 +0000 (00:44 -0000)]
* ListBox.cs: Compute the precise amount to vertically scroll when
using DrawMode.OwnerDrawVariable.
Patch by jkeymer (j.keymer@gmx.net).

2008-05-30  Carlos Alberto Cortez <calberto.cortez@gmail.com>

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

15 years ago2008-05-30 Rodrigo Kumpera <rkumpera@novell.com>
Rodrigo Kumpera [Sat, 31 May 2008 00:32:45 +0000 (00:32 -0000)]
2008-05-30 Rodrigo Kumpera  <rkumpera@novell.com>

* reflection.c (mono_type_get_object): Don't store the suplied
MonoType with type_hash. A caller which pass a type that
was mono_metadata_type_dup'ed cannot free it reliably, as type_hash
might end with a pointer to freed memory.
The solution is to use byval_arg or this_arg from the associated
MonoClass of the supplied type.

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

15 years ago2008-05-30 Marek Habersack <mhabersack@novell.com>
Marek Habersack [Fri, 30 May 2008 23:23:26 +0000 (23:23 -0000)]
2008-05-30  Marek Habersack  <mhabersack@novell.com>

* Constraint.cs: do not use synthetized event accessors (to avoid
locks).

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

15 years ago2008-05-30 Marek Habersack <mhabersack@novell.com>
Marek Habersack [Fri, 30 May 2008 22:20:14 +0000 (22:20 -0000)]
2008-05-30  Marek Habersack  <mhabersack@novell.com>

* BaseDataBoundControl.cs, ChangePassword.cs, CustomValidator.cs,
DataControlFieldCollection.cs, DataControlField.cs,
PasswordRecovery.cs, PagerSettings.cs: do not use synthetized
event accessors (to avoid locks).

2008-05-30  Marek Habersack  <mhabersack@novell.com>

* AnonymousIdentificationModule.cs, FormsAuthenticationModule.cs,
DefaultAuthenticationModule.cs, MembershipProvider.cs,
WindowsAuthenticationModule.cs, PassportAuthenticationModule.cs,
RoleManagerModule.cs: do not use synthetized event accessors (to
avoid locks).

2008-05-30  Marek Habersack  <mhabersack@novell.com>

* HttpApplication.cs, HttpCachePolicy.cs, SiteMapProvider.cs,
TraceContext.cs: do not use synthetized event accessors (to avoid
locks).

2008-05-30  Marek Habersack  <mhabersack@novell.com>

* SessionStateModule.cs: do not use synthetized event accessors
(to avoid locks).

2008-05-30  Marek Habersack  <mhabersack@novell.com>

* ProfileModule.cs: do not use synthetized event accessors (to
avoid locks).

2008-05-30  Marek Habersack  <mhabersack@novell.com>

* SessionStateModule.cs: do not use synthetized event accessors
(to avoid locks).

2008-05-30  Marek Habersack  <mhabersack@novell.com>

* DataBindingCollection.cs, ExpressionBindingCollection.cs: do not
use synthetized event accessors (to avoid locks).

2008-05-30  Marek Habersack  <mhabersack@novell.com>

* ClientBuildManager.cs: do not use synthetized event accessors
(to avoid locks).

2008-05-30  Marek Habersack  <mhabersack@novell.com>

* CacheDependency.cs: do not use synthetized event accessors (to
avoid locks).

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

15 years ago2008-05-30 Carlos Alberto Cortez <calberto.cortez@gmail.com>
Carlos Alberto Cortez [Fri, 30 May 2008 22:17:55 +0000 (22:17 -0000)]
2008-05-30  Carlos Alberto Cortez <calberto.cortez@gmail.com>

* ComboBox.cs: Use ListBox-like scrollbar values In ComboListBox
to avoid setting an invalid value for the verticall scrollbar
when navigating items. And, duh, also remove my silly debug messages
from previous commits.
Fixes #374713.

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

15 years ago2008-05-30 Ivan N. Zlatev <contact@i-nz.net>
Ivan Zlatev [Fri, 30 May 2008 21:38:06 +0000 (21:38 -0000)]
2008-05-30  Ivan N. Zlatev  <contact@i-nz.net>

* ControlBindingsConverter.cs: Fix 1.1 build.

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

15 years ago2008-05-30 Ivan N. Zlatev <contact@i-nz.net>
Ivan Zlatev [Fri, 30 May 2008 20:44:50 +0000 (20:44 -0000)]
2008-05-30  Ivan N. Zlatev  <contact@i-nz.net>

* ControlBindingsConverter.cs: Implementated just enough to avoid
the circular dependency in the MWF PropertyGrid.

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

15 years ago2008-05-30 Ivan N. Zlatev <contact@i-nz.net>
Ivan Zlatev [Fri, 30 May 2008 20:01:14 +0000 (20:01 -0000)]
2008-05-30  Ivan N. Zlatev  <contact@i-nz.net>

* FlatButtonAppearance.cs: Make FlatButtonAppearanceConverter exandable and
make it MS compatible.

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

15 years ago2008-05-30 Ivan N. Zlatev <contact@i-nz.net>
Ivan Zlatev [Fri, 30 May 2008 19:59:11 +0000 (19:59 -0000)]
2008-05-30  Ivan N. Zlatev  <contact@i-nz.net>

* PropertyGrid.cs, PropertyGridView.cs, GridEntry.cs:
 - Allow the editing of entries even if their parent is read-only.
 - Do not render expandable properties read-only.
 - Refactor expansion checks form PropertyGrid into PropertyGrid.

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

15 years ago2008-05-30 Zoltan Varga <vargaz@gmail.com>
Zoltan Varga [Fri, 30 May 2008 16:58:58 +0000 (16:58 -0000)]
2008-05-30  Zoltan Varga  <vargaz@gmail.com>

* mini-amd64.c (mono_arch_emit_prolog): Increase max_offset when processing
bb_exit instead, since out of line bblocks might not actually be emitted
out-of-line.

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

15 years ago2008-05-30 Zoltan Varga <vargaz@gmail.com>
Zoltan Varga [Fri, 30 May 2008 16:40:35 +0000 (16:40 -0000)]
2008-05-30  Zoltan Varga  <vargaz@gmail.com>

* mini-amd64.c (mono_arch_emit_prolog): Increase bb->max_offset by the
maximum epilog size for out of line bblocks if tracing is enabled.

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

15 years ago2008-05-30 Marek Safar <marek.safar@gmail.com>
Marek Safar [Fri, 30 May 2008 15:54:03 +0000 (15:54 -0000)]
2008-05-30  Marek Safar  <marek.safar@gmail.com>

* attribute.cs: Don't mix old and new corlib types when emitting corlib
security attributes.

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

15 years agoon-going work on user defined unary expressions
Jb Evain [Fri, 30 May 2008 14:48:48 +0000 (14:48 -0000)]
on-going work on user defined unary expressions

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

15 years agocomplete tests
Jb Evain [Fri, 30 May 2008 14:46:49 +0000 (14:46 -0000)]
complete tests

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

15 years agocomplete test
Jb Evain [Fri, 30 May 2008 14:28:33 +0000 (14:28 -0000)]
complete test

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