mono.git
16 years ago2007-08-19 Ivan N. Zlatev <contact@i-nz.net>
Ivan Zlatev [Sun, 19 Aug 2007 10:08:37 +0000 (10:08 -0000)]
2007-08-19  Ivan N. Zlatev  <contact@i-nz.net>

* TypeDescriptor.cs: GetProperties should return only the last type's
implementation of a property with a matching name in the base types.
        * TypeDescriptorTests.cs: test to verify the above.

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

16 years ago * TabControl.cs: Fix tab size when image height is less than text height.
Everaldo Canuto [Sun, 19 Aug 2007 09:55:30 +0000 (09:55 -0000)]
* TabControl.cs: Fix tab size when image height is less than text height.
Partially fixes #81837.

2007-08-18  Everaldo Canuto  <ecanuto@novell.com>

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

16 years ago * Form.cs: Add WS_EX_CONTROLPARENT to forms to make it selectable using
Everaldo Canuto [Sun, 19 Aug 2007 09:28:09 +0000 (09:28 -0000)]
* Form.cs: Add WS_EX_CONTROLPARENT to forms to make it selectable using
"alt + tab". It works only for Win32, for X11 theres no way to remove window
from taskbar and keep it on "alt_tab". Fixes #81722.

2007-08-18  Everaldo Canuto  <ecanuto@novell.com>

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

16 years agoOps, forgot to remove the Test category.
Ivan Zlatev [Sun, 19 Aug 2007 09:19:21 +0000 (09:19 -0000)]
Ops, forgot to remove the Test category.

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

16 years ago* GenericProvider.cs: keyMapping lazy initialization
Vladimir Krasnov [Sun, 19 Aug 2007 08:48:47 +0000 (08:48 -0000)]
* GenericProvider.cs: keyMapping lazy initialization

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

16 years ago2007-08-19 Ivan N. Zlatev <contact@i-nz.net>
Ivan Zlatev [Sun, 19 Aug 2007 08:24:16 +0000 (08:24 -0000)]
2007-08-19  Ivan N. Zlatev  <contact@i-nz.net>

        * ContextStack.cs: Update to 2.0.
        * ContextStackTest.cs: New unit tests for ContextStack.

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

16 years ago* IKeyMapper.cs: added GetValue to access the connection strings dictionary
Vladimir Krasnov [Sun, 19 Aug 2007 08:09:40 +0000 (08:09 -0000)]
* IKeyMapper.cs: added GetValue to access the connection strings dictionary
* GenericProvider.cs: optimized GetConnection method, used GetValue in case of jndi connection string

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

16 years ago* AbstractDataReader.cs: optimized IndexOf in Results proprty
Vladimir Krasnov [Sun, 19 Aug 2007 07:54:56 +0000 (07:54 -0000)]
* AbstractDataReader.cs: optimized IndexOf in Results proprty

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

16 years ago2007-08-18 Everaldo Canuto <ecanuto@novell.com>
Everaldo Canuto [Sun, 19 Aug 2007 06:57:58 +0000 (06:57 -0000)]
2007-08-18  Everaldo Canuto  <ecanuto@novell.com>

* X11Display.cs: Apply patch from Jurek Bartuszek to fix DrawReversibleFrame
and DrawReversibleLine, also apply same behavior to FillReversibleRectangle.
Fixes #80877 and #79418.

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

16 years ago * XplatUIX11.cs: Apply patch from Jurek Bartuszek to fix DrawReversibleFrame
Everaldo Canuto [Sun, 19 Aug 2007 06:57:17 +0000 (06:57 -0000)]
* XplatUIX11.cs: Apply patch from Jurek Bartuszek to fix DrawReversibleFrame
and DrawReversibleLine, also apply same behavior to FillReversibleRectangle.
Fixes #80877 and #79418.

2007-08-18  Everaldo Canuto  <ecanuto@novell.com>

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

16 years ago * MenuAPI.cs: Fix popup menu position when the size is larger than distance
Everaldo Canuto [Sun, 19 Aug 2007 03:39:03 +0000 (03:39 -0000)]
* MenuAPI.cs: Fix popup menu position when the size is larger than distance
between position and one of the screen borders. Fixes #82349.

2007-08-18  Everaldo Canuto  <ecanuto@novell.com>

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

16 years ago * MessageBox.cs: When there is no form that invoked the MessageBox, shows
Everaldo Canuto [Sun, 19 Aug 2007 03:07:47 +0000 (03:07 -0000)]
* MessageBox.cs: When there is no form that invoked the MessageBox, shows
the MessageBox in the taskbar. Fixes #82457.

2007-08-18  Everaldo Canuto  <ecanuto@novell.com>

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

16 years agoJust fix text position
Everaldo Canuto [Sun, 19 Aug 2007 02:53:35 +0000 (02:53 -0000)]
Just fix text position

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

16 years ago2007-08-18 Everaldo Canuto <ecanuto@novell.com>
Everaldo Canuto [Sun, 19 Aug 2007 02:51:36 +0000 (02:51 -0000)]
2007-08-18  Everaldo Canuto  <ecanuto@novell.com>

* MessageBox.cs: Fix form size when icon is set and text height is bigger
than icon. Fixes #82468.

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

16 years ago2007-08-19 Marek Habersack <mhabersack@novell.com>
Marek Habersack [Sat, 18 Aug 2007 23:42:48 +0000 (23:42 -0000)]
2007-08-19  Marek Habersack  <mhabersack@novell.com>

            * webform.js: __doPostBack is a function defined in the self
            object, not this._form. Fixes bug #82478.

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

16 years ago2007-08-19 Juraj Skripsky <js@hotfeet.ch>
Juraj Skripsky [Sat, 18 Aug 2007 23:12:06 +0000 (23:12 -0000)]
2007-08-19  Juraj Skripsky <js@hotfeet.ch>

* GlobalAsaxCompiler.cs (ProcessObjects): Make string comparison
for scope case insensitive. Fixes bug #82479.

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

16 years ago2007-08-19 Marek Habersack <mhabersack@novell.com>
Marek Habersack [Sat, 18 Aug 2007 22:34:22 +0000 (22:34 -0000)]
2007-08-19  Marek Habersack  <mhabersack@novell.com>

            * Page.cs: make sure not to ever pass a null value as the value
            of the postCollection parameter to control's LoadPostData. The
            ProcessPostData's 'data' parameter is no longer passed to
            LoadPostData, instead we pass _requestValueCollection or an empty
            collection if it is null. The controls should always get all the
            request data, no matter if the 'data' parameter is null or
            not. Possible fix for bug #82477.

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

16 years ago2007-08-18 Marek Safar <marek.safar@gmail.com>
Marek Safar [Sat, 18 Aug 2007 21:48:21 +0000 (21:48 -0000)]
2007-08-18  Marek Safar  <marek.safar@gmail.com>

* expression.cs (Binary.is_unsigned): Handle unsafe types too.
(EmitArrayArgument): One routine for array arguments.
(ArrayCreation.MakeByteBlob): Fixed an array alignment.

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

16 years ago2007-08-18 Juraj Skripsky <js@hotfeet.ch>
Juraj Skripsky [Sat, 18 Aug 2007 20:53:02 +0000 (20:53 -0000)]
2007-08-18  Juraj Skripsky <js@hotfeet.ch>

* HttpRequest.cs (StripPath): Fix off-by-one error, make static.

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

16 years agouse 2.1 compatible Enum.Parse method
Jb Evain [Sat, 18 Aug 2007 10:20:58 +0000 (10:20 -0000)]
use 2.1 compatible Enum.Parse method

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

16 years ago* MasterPage.cs: Include relative URL of MasterPage in exception
Gert Driesen [Sat, 18 Aug 2007 07:43:59 +0000 (07:43 -0000)]
* MasterPage.cs: Include relative URL of MasterPage in exception
message.

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

16 years ago2007-08-15 Jb Evain <jbevain@novell.com>
Jb Evain [Sat, 18 Aug 2007 05:51:19 +0000 (05:51 -0000)]
2007-08-15  Jb Evain  <jbevain@novell.com>

* CodeGen/cecil.xml,
  Mono.Cecil.Cil/OpCodes.cs:
Fix bug spotted by Jesse Jones, ldelem.any has a
stack behavior pop of popref, popi.

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

16 years ago2007-08-18 Marek Habersack <mhabersack@novell.com>
Marek Habersack [Sat, 18 Aug 2007 02:06:34 +0000 (02:06 -0000)]
2007-08-18  Marek Habersack  <mhabersack@novell.com>

            * HttpRequest.cs: IE sends the full input file path when uploading
            a file via the upload input control. Detect the situation and
            strip the leading path. Fixes bug #82059.

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

16 years ago2007-08-18 Marek Habersack <mhabersack@novell.com>
Marek Habersack [Sat, 18 Aug 2007 01:34:40 +0000 (01:34 -0000)]
2007-08-18  Marek Habersack  <mhabersack@novell.com>

            * MasterPage.cs: if a ContentPlaceHolder ID is not found in the
            associated MasterPage, throw an exception. This is compatible with
            what MS.NET does. Fixes bug #82447.

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

16 years ago2007-08-18 Marek Habersack <mhabersack@novell.com>
Marek Habersack [Sat, 18 Aug 2007 00:35:09 +0000 (00:35 -0000)]
2007-08-18  Marek Habersack  <mhabersack@novell.com>

        * HttpServerUtility.cs: set the current context's path(s) to the
        Transfer/Execute target only to retrieve the new handler, and
        restore them immediately afterwards. It has a two-fold effect:
        first it avoids an extra round trip to the original page which
        called Transfer/Execute, second it makes FilePath etc. return
        information about the original page (that is the one which
called
        Transfer/Execute). Fixes bug #82439.

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

16 years ago* System.Windows.Forms/ThemeWin32Classic.cs: A FixedToolWindow has
Rolf Bjarne Kvinge [Fri, 17 Aug 2007 23:42:43 +0000 (23:42 -0000)]
* System.Windows.Forms/ThemeWin32Classic.cs: A FixedToolWindow has
  border size 3.
* System.Windows.Forms/InternalWindowManager.cs: Change HandleCalcSize
  to return a boolean value if handled or not. Implement
  WM_NCCALCSIZE for WParam == 0 as well. Refactored HandleNCCalcSize
  somewhat to avoid code duplication.
* System.Windows.Forms/Form.cs: Add is_clientsize_set, set in
  set_ClientSize, used by FormBorderStyle to decide if we're
  calculating a new size from the client size or not. CreateParams:
  Don't fake tool windows, only the X11 backend manages toolwindows
  manually.
* Test/System.Windows.Forms/FormTest.cs: Added test for bug 82358.

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

16 years agoCommented no-go test before holiday to make sure to not break the build process.
Federico Di Gregorio [Fri, 17 Aug 2007 22:32:36 +0000 (22:32 -0000)]
Commented no-go test before holiday to make sure to not break the build process.

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

16 years ago2007-08-17 Jonathan Pobst <monkey@jpobst.com>
Jonathan Pobst [Fri, 17 Aug 2007 21:45:17 +0000 (21:45 -0000)]
2007-08-17  Jonathan Pobst  <monkey@jpobst.com>

* Form.cs: Only reset is_visible if !IsDisposed to prevent an
ObjectDisposedException.

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

16 years ago2007-08-17 Jonathan Pobst <monkey@jpobst.com>
Jonathan Pobst [Fri, 17 Aug 2007 21:24:27 +0000 (21:24 -0000)]
2007-08-17  Jonathan Pobst  <monkey@jpobst.com>

* FormTest.cs: Add test for bug #82470.

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

16 years ago2007-08-17 Jonathan Pobst <monkey@jpobst.com>
Jonathan Pobst [Fri, 17 Aug 2007 21:13:56 +0000 (21:13 -0000)]
2007-08-17  Jonathan Pobst  <monkey@jpobst.com>

* Form.cs: Reset is_visible back to true after OnLoad.  Setting this
in OnLoad should not have any effect.  [Fixes bug #82470]

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

16 years ago2007-08-17 Jonathan Pobst <monkey@jpobst.com>
Jonathan Pobst [Fri, 17 Aug 2007 20:50:28 +0000 (20:50 -0000)]
2007-08-17  Jonathan Pobst  <monkey@jpobst.com>

* ToolTip.cs: Add a hack to ToolTipWindow so it will still size and
paint for controls that create their own ToolTipWindow instead of
going through ToolTip.

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

16 years ago2007-08-17 Jonathan Pobst <monkey@jpobst.com>
Jonathan Pobst [Fri, 17 Aug 2007 20:35:25 +0000 (20:35 -0000)]
2007-08-17  Jonathan Pobst  <monkey@jpobst.com>

* ToolTip.cs: Make Hide internal instead of public to match MS API.

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

16 years agouse 2.1 compatible parse method
Jb Evain [Fri, 17 Aug 2007 20:34:55 +0000 (20:34 -0000)]
use 2.1 compatible parse method

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

16 years agoImplemented another 6 Expression methods.
Federico Di Gregorio [Fri, 17 Aug 2007 20:22:05 +0000 (20:22 -0000)]
Implemented another 6 Expression methods.

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

16 years ago* FieldInfoTest.cs: Enabled test for bug #82465.
Gert Driesen [Fri, 17 Aug 2007 19:50:52 +0000 (19:50 -0000)]
* FieldInfoTest.cs: Enabled test for bug #82465.

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

16 years ago2007-08-17 Carlos Alberto Cortez <calberto.cortez@gmail.com>
Carlos Alberto Cortez [Fri, 17 Aug 2007 19:33:18 +0000 (19:33 -0000)]
2007-08-17  Carlos Alberto Cortez <calberto.cortez@gmail.com>

* ListViewGroupCollection.cs: Use generic List instead of an
ArrayList, since this collection is 2.0 only.

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

16 years ago2007-08-17 Jeffrey Stedfast <fejj@novell.com>
Jeffrey Stedfast [Fri, 17 Aug 2007 18:35:22 +0000 (18:35 -0000)]
2007-08-17  Jeffrey Stedfast  <fejj@novell.com>

* ToolTip.cs (Hide): Made public to make the build work (should
this not be public?).

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

16 years ago2007-08-17 Jeffrey Stedfast <fejj@novell.com>
Jeffrey Stedfast [Fri, 17 Aug 2007 18:30:23 +0000 (18:30 -0000)]
2007-08-17  Jeffrey Stedfast  <fejj@novell.com>

* RTF.cs (GetChar): Fixed c to be int instead of char (since we
can't compare char to -1).

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

16 years ago2007-08-17 Jonathan Pobst <monkey@jpobst.com>
Jonathan Pobst [Fri, 17 Aug 2007 17:48:18 +0000 (17:48 -0000)]
2007-08-17  Jonathan Pobst  <monkey@jpobst.com>

* ToolBar.cs, ToolStrip.cs, TreeView.cs: Use a ToolTip instead of a
ToolTipWindow.
* ToolTip.cs: Add an internal Visible property to facilitate transition.

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

16 years ago2007-08-17 Mark Probst <mark.probst@gmail.com>
Mark Probst [Fri, 17 Aug 2007 17:45:57 +0000 (17:45 -0000)]
2007-08-17  Mark Probst  <mark.probst@gmail.com>

* domain.c, threads.c, class-internals.h, domain-internals.h: New
reader-lock-free jit_info_table.

2007-08-17  Mark Probst  <mark.probst@gmail.com>

* mini.c: MonoJitInfo's are freed hazardously now.  Statistics for
the new jit_info_table.

* driver.c: Test code for the new jit_info_table (enabled by the
define MONO_JIT_INFO_TABLE_TEST).

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

16 years ago2007-08-17 Jonathan Pobst <monkey@jpobst.com>
Jonathan Pobst [Fri, 17 Aug 2007 16:57:40 +0000 (16:57 -0000)]
2007-08-17  Jonathan Pobst  <monkey@jpobst.com>

* DrawToolTipEventArgs.cs, DrawToolTipEventHandler.cs, PopupEventArgs.cs,
PopupEventHandler.cs: Make these internal for 1.1.
* ThemeClearlooks.cs, ThemeWin32Classic.cs: Use TextRenderer, and modify to not
use ToolTipWindow internals.
* ToolTip.cs: Add 2.0 modal Show methods.  Had to move a lot of stuff around to
support this.  A lot of stuff in the ToolTipWindow got moved to the ToolTip.

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

16 years ago* ModuleTest.cs: Enabled tests on 2.0 profile since bug #82459 is
Gert Driesen [Fri, 17 Aug 2007 16:05:45 +0000 (16:05 -0000)]
* ModuleTest.cs: Enabled tests on 2.0 profile since bug #82459 is
fixed.

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

16 years ago2007-08-17 Zoltan Varga <vargaz@gmail.com>
Zoltan Varga [Fri, 17 Aug 2007 15:53:32 +0000 (15:53 -0000)]
2007-08-17  Zoltan Varga  <vargaz@gmail.com>

* metadata.c (mono_type_to_unmanaged): Handle MONO_NATIVE_CUSTOM.

* marshal.c (mono_marshal_type_size): Ditto. Fixes #82465 and #82466.

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

16 years ago2007-08-17 Zoltan Varga <vargaz@gmail.com>
Zoltan Varga [Fri, 17 Aug 2007 15:20:22 +0000 (15:20 -0000)]
2007-08-17  Zoltan Varga  <vargaz@gmail.com>

* object-internals.h (MonoException): Add missing _data member.

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

16 years ago2007-08-17 Zoltan Varga <vargaz@gmail.com>
Zoltan Varga [Fri, 17 Aug 2007 15:19:13 +0000 (15:19 -0000)]
2007-08-17  Zoltan Varga  <vargaz@gmail.com>

* Exception.cs: Make 1.0 and 2.0 object layout the same since this class is seen
by the runtime. Fixes #82459.

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

16 years agoNew test.
Marek Safar [Fri, 17 Aug 2007 15:15:03 +0000 (15:15 -0000)]
New test.

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

16 years agoAdd more tests.
Marek Safar [Fri, 17 Aug 2007 15:06:18 +0000 (15:06 -0000)]
Add more tests.

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

16 years ago2007-08-17 Marek Safar <marek.safar@gmail.com>
Marek Safar [Fri, 17 Aug 2007 15:05:05 +0000 (15:05 -0000)]
2007-08-17  Marek Safar  <marek.safar@gmail.com>

* cs-tokenizer.cs (GetKeyword): Handle from keyword in a different way.

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

16 years ago* System.Windows.Forms/X11Dnd.cs: Add a null check.
Rolf Bjarne Kvinge [Fri, 17 Aug 2007 14:52:01 +0000 (14:52 -0000)]
* System.Windows.Forms/X11Dnd.cs: Add a null check.

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

16 years ago2007-08-17 Sebastien Pouliot <sebastien@ximian.com>
Sebastien Pouliot [Fri, 17 Aug 2007 14:26:40 +0000 (14:26 -0000)]
2007-08-17  Sebastien Pouliot  <sebastien@ximian.com>

* CryptoStream.cs: Write cannot depend on buffer.Length (fix #82428)

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

16 years ago* System.Windows.Forms/X11Dnd.cs: MwfWindow: Try to load the control
Rolf Bjarne Kvinge [Fri, 17 Aug 2007 14:16:48 +0000 (14:16 -0000)]
* System.Windows.Forms/X11Dnd.cs: MwfWindow: Try to load the control
  directly from the handle if nothing else succeeds. Fixes #82453.

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

16 years agoImplemented RightShift and LeftShift.
Federico Di Gregorio [Fri, 17 Aug 2007 14:12:08 +0000 (14:12 -0000)]
Implemented RightShift and LeftShift.

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

16 years ago* System.Windows.Forms/XplatUIWin32.cs: PaintEventStart: validate the
Rolf Bjarne Kvinge [Fri, 17 Aug 2007 13:30:22 +0000 (13:30 -0000)]
* System.Windows.Forms/XplatUIWin32.cs: PaintEventStart: validate the
  entire source client rectangle if we're painting to another window
  than the one the paint message was generated on. Simplify the code
  somewhat, which makes PaintEventEnd also simpler.

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

16 years ago* System.Windows.Forms/Control.cs: When changing parent of a form, let
Rolf Bjarne Kvinge [Fri, 17 Aug 2007 13:28:15 +0000 (13:28 -0000)]
* System.Windows.Forms/Control.cs: When changing parent of a form, let
  the form decide whether XplatUI.SetParent should be called or not.
* System.Windows.Forms/Form.cs: ChangingParent: only call
  XplatUI.SetParent if we're not recreating the handle. If the new
  parent's handle isn't created, don't recreate our handle, just
  destroy it. CreateParams: Check if the parent's handle is created
  before fetching it.

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

16 years agoFix the build :-(
Massimiliano Mantione [Fri, 17 Aug 2007 13:20:52 +0000 (13:20 -0000)]
Fix the build :-(

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

16 years agoNew errors + tiny update ;-)
Marek Safar [Fri, 17 Aug 2007 13:11:30 +0000 (13:11 -0000)]
New errors + tiny update ;-)

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

16 years ago2007-08-17 Marek Safar <marek.safar@gmail.com>
Marek Safar [Fri, 17 Aug 2007 13:10:29 +0000 (13:10 -0000)]
2007-08-17  Marek Safar  <marek.safar@gmail.com>

* linq.cs: MethodGroupExpr update.

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

16 years ago2007-08-17 Marek Safar <marek.safar@gmail.com>
Marek Safar [Fri, 17 Aug 2007 13:09:23 +0000 (13:09 -0000)]
2007-08-17  Marek Safar  <marek.safar@gmail.com>

* anonymous.cs: MemberLookupFinal update.

* class.cs (ConstructorInitializer): Is expression based.

* delegate.cs: MethodGroupExpr update.

* ecore.cs  (Error_MemberLookupFailed): Improved to report better error
messages.
(Error_MemberLookupFailed): Customizable error override.
(MethodGroupExpr): Keep queried type for later usage.
(MethodGroupExpr.OverloadResolve): Catch errors related to overload
resolve.

* expression.cs: Error_MemberLookupFailed refactoring.
(New.DoResolve): Resolve as much as possible.
(ElementInitializer.Error_MemberLookupFailed): Object initializer
customization for invalid member types.

* statement.cs: MethodGroupExpr update.

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

16 years ago * loader.c (find_method, find_method_in_class): Fixed bug #81466,
Massimiliano Mantione [Fri, 17 Aug 2007 12:31:13 +0000 (12:31 -0000)]
* loader.c (find_method, find_method_in_class): Fixed bug #81466,
checking that only methods with matching qname or fqname are picked
from implemented interfaces.

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

16 years ago2007-08-17 Marek Habersack <mhabersack@novell.com>
Marek Habersack [Fri, 17 Aug 2007 12:06:22 +0000 (12:06 -0000)]
2007-08-17  Marek Habersack  <mhabersack@novell.com>

* CacheDependency.cs: use DependencyChanged as a list of events.
OnChanged now calls OnDependencyChanged, to notify
AggregateCacheDependency that it has changed. Fixes bug #82419.

2007-08-17  Marek Habersack  <mhabersack@novell.com>

* AggregateCacheDependencyTest.cs: dependency expiration
notification works correctly now.

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

16 years ago* AttributeTest.cs: Added test for IsDefined, GetCustomAttribute
Gert Driesen [Fri, 17 Aug 2007 12:05:15 +0000 (12:05 -0000)]
* AttributeTest.cs: Added test for IsDefined, GetCustomAttribute
and GetCustomAttributes. Added tests for bug #81797. Remove use of
deprecated Assertion class, code formatting.
* ParameterInfoTest.cs: Minor code formatting change.
* FieldInfoTest.cs: Added test for GetCustomAttributes. Modified test
for pseudo customattributes to work on 1.0 profile too.

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

16 years ago* System.Windows.Forms.X11Internal/X11Display.cs,
Rolf Bjarne Kvinge [Fri, 17 Aug 2007 09:14:00 +0000 (09:14 -0000)]
* System.Windows.Forms.X11Internal/X11Display.cs,
  System.Windows.Forms.X11Internal/X11Hwnd.cs,
  System.Windows.Forms.X11Internal/XplatUIX11-new.cs,
  System.Windows.Forms/XplatUI.cs,
  System.Windows.Forms/XplatUIDriver.cs,
  System.Windows.Forms/XplatUIOSX.cs: Update PaintEventStart/End to
  take a Message argument.
* System.Windows.Forms/Control.cs, System.Windows.Forms/Form.cs,
  System.Windows.Forms/InternalWindowManager.cs,
  System.Windows.Forms/MainMenu.cs,
  System.Windows.Forms/MdiClient.cs: Update calls to
  PaintEventStart/End to take a Message argument.
* System.Windows.Forms/XplatUIWin32.cs,
  System.Windows.Forms/XplatUIX11.cs: Update PaintEventStart/End to
  take a Message argument, and handle the case where we don't paint
  to the window for which the paint message was generated.

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

16 years agoIn System.Reflection.Emit:
Rolf Bjarne Kvinge [Fri, 17 Aug 2007 09:12:13 +0000 (09:12 -0000)]
In System.Reflection.Emit:
2007-08-17  Rolf Bjarne Kvinge  <RKvinge@novell.com>

* ILGenerator.cs: Change BeginCatchBlock to end the current filter block if called with a null exceptionType. Added ILExceptionBlock.FILTER_START to be able to track if we're in a filter block or not. Renamed PatchLastClauseStart to PatchFilterClause to match better what it does, and make it update the handler's type to FILTER. Fixes #81431.

In Test/System.Reflection.Emit:
2007-08-17  Rolf Bjarne Kvinge  <RKvinge@novell.com>

* ILGeneratorTest.cs: Added FilterAndCatchBlock (bug #81431), InvalidFilterBlock1, ValidFilterBlock1, ValidFilterBlock2.

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

16 years ago* System.Windows.Forms/XplatUIWin32.cs: Don't call Win32GetLastError
Rolf Bjarne Kvinge [Fri, 17 Aug 2007 07:01:04 +0000 (07:01 -0000)]
* System.Windows.Forms/XplatUIWin32.cs: Don't call Win32GetLastError
  directly, use Marshal.GetLastWin32Error. Plug nasty memory leak in
  PaintEventStart/End, we were creating a DC we weren't releasing.

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

16 years ago2007-08-17 Carlos Alberto Cortez <calberto.cortez@gmail.com>
Carlos Alberto Cortez [Fri, 17 Aug 2007 06:37:23 +0000 (06:37 -0000)]
2007-08-17  Carlos Alberto Cortez <calberto.cortez@gmail.com>

* ListView.cs: Add Groups support in Details view. Also have a small
method to do the layout of the group header. Don't use a separate
method to do the groups calculation in Icons view, since our methods
are now a little simpler.
* ListViewGroup.cs: Use the more accurate `HeaderBounds' name than
`Bounds'.
* ThemeWin32Classic.cs: Likewise.

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

16 years agoTypeAs now ok.
Federico Di Gregorio [Fri, 17 Aug 2007 00:23:38 +0000 (00:23 -0000)]
TypeAs now ok.

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

16 years agoTypeIs now ok.
Federico Di Gregorio [Fri, 17 Aug 2007 00:15:09 +0000 (00:15 -0000)]
TypeIs now ok.

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

16 years agoImplemented Subtract and SubtractChecked.
Federico Di Gregorio [Thu, 16 Aug 2007 23:28:53 +0000 (23:28 -0000)]
Implemented Subtract and SubtractChecked.

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

16 years ago2007-08-17 Michael Hutchinson <m.j.hutchinson@gmail.com>
Michael Hutchinson [Thu, 16 Aug 2007 23:27:14 +0000 (23:27 -0000)]
2007-08-17  Michael Hutchinson <m.j.hutchinson@gmail.com>

* Enumerable.cs: Fix Aggregate's counting code, and make it more
  efficient.

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

16 years agoImplemented Or and OrElse.
Federico Di Gregorio [Thu, 16 Aug 2007 23:03:15 +0000 (23:03 -0000)]
Implemented Or and OrElse.

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

16 years agoImplemented Call (except generics), Divide, Modulo, Multiply, MultiplyChecked.
Federico Di Gregorio [Thu, 16 Aug 2007 22:46:32 +0000 (22:46 -0000)]
Implemented Call (except generics), Divide, Modulo, Multiply, MultiplyChecked.

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

16 years ago2007-08-16 Rodrigo Kumpera <rkumpera@novell.com>
Rodrigo Kumpera [Thu, 16 Aug 2007 22:39:38 +0000 (22:39 -0000)]
2007-08-16  Rodrigo Kumpera  <rkumpera@novell.com>

* verify.c (do_newarr):added, do type verification of
newarr ops, push the right value on the eval stack.
* verify.c (mono_method_verify): use do_newarr

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

16 years ago2007-08-16 Rodrigo Kumpera <rkumpera@novell.com>
Rodrigo Kumpera [Thu, 16 Aug 2007 22:37:29 +0000 (22:37 -0000)]
2007-08-16 Rodrigo Kumpera <rkumpera@novell.com>

* make_newarr_test.sh (added):  Generate newarr related tests.
* make_tests.sh: Addes tests for newarr.

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

16 years ago2007-08-16 Jonathan Pobst <monkey@jpobst.com>
Jonathan Pobst [Thu, 16 Aug 2007 20:17:34 +0000 (20:17 -0000)]
2007-08-16  Jonathan Pobst  <monkey@jpobst.com>

* Application.cs: Add FilterMessage method and rework our message loop
logic to use it.

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

16 years ago* MonoCustomAttrs.cs: In IsDefined, throw ArgumentNullException if
Gert Driesen [Thu, 16 Aug 2007 20:11:53 +0000 (20:11 -0000)]
* MonoCustomAttrs.cs: In IsDefined, throw ArgumentNullException if
attributeType is null to avoid a SIGSEGV (and match MS). Only partial
fix for bug #82431 on 1.0 profile; it fully fixes the problem for the
1.0 profile, but more changes (in the runtime) are required for the
2.0 profile. Added a FIXME explaining the problem.
* TypeTest.cs: Improved test for GetCustomAttributes, and avoid
dependency on order of attributes. Split IsDefined test and improved
part for bug #82431.
* AssemblyTest.cs: Added IsDefined test with null value for
attributeType argument.
* ModuleTest.cs: Same. Remove use of deprecated Assertion class, code
formatting and fixed line endings.
* ParameterInfoTest.cs: Same. Remove use of deprecated Assertion class
and code formatting.
* MethodInfoTest.cs: Same.
* EventInfoTest.cs: Same. Code formatting.
* FieldInfoTest.cs: Same. Code formatting.
* PropertyInfoTest.cs: Same. Improved coverage of GetAccessors.
Improved tests for GetCustomAttributes. Code formatting.
* TypeBuilderTest.cs: Added IsDefined test with null value for
attributeType argument.

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

16 years ago2007-08-16 Jonathan Pobst <monkey@jpobst.com>
Jonathan Pobst [Thu, 16 Aug 2007 19:44:11 +0000 (19:44 -0000)]
2007-08-16  Jonathan Pobst  <monkey@jpobst.com>

* Application.cs: Add some methods and stub a few methods that are
pretty much never used.

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

16 years ago2007-08-16 Rodrigo Kumpera <rkumpera@novell.com>
Rodrigo Kumpera [Thu, 16 Aug 2007 19:24:07 +0000 (19:24 -0000)]
2007-08-16  Rodrigo Kumpera  <rkumpera@novell.com>

* verify.c (do_ldobj_value, do_unbox_value and do_box_value):
factored the common code into get_boxable_mono_type, which
is now using mono_type_get_full, this fixed byref related tests.

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

16 years ago2007-08-16 Jb Evain <jbevain@novell.com>
Jb Evain [Thu, 16 Aug 2007 18:51:03 +0000 (18:51 -0000)]
2007-08-16  Jb Evain  <jbevain@novell.com>

* Makefile: re-install in the GAC the tuned assemblies.

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

16 years ago2007-08-16 Jb Evain <jbevain@novell.com>
Jb Evain [Thu, 16 Aug 2007 17:56:11 +0000 (17:56 -0000)]
2007-08-16  Jb Evain  <jbevain@novell.com>

* Mono.Linker/Driver.cs
  Mono.Linker/LinkContext.cs:
Add a way to specify parameters to the context.

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

16 years ago2007-08-16 Rodrigo Kumpera <rkumpera@novell.com>
Rodrigo Kumpera [Thu, 16 Aug 2007 17:23:41 +0000 (17:23 -0000)]
2007-08-16  Rodrigo Kumpera  <rkumpera@novell.com>

* ldtoken_with_byref_typespec.2.il: Test for (in pseudo c#) "typeof (int&)" expression
* Makefile.am: ldtoken_with_byref_typespec.2.il

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

16 years ago2007-08-16 Rodrigo Kumpera <rkumpera@novell.com>
Rodrigo Kumpera [Thu, 16 Aug 2007 17:20:35 +0000 (17:20 -0000)]
2007-08-16  Rodrigo Kumpera  <rkumpera@novell.com>

* class.c: added mono_type_get_full, this function has the same
behavior of mono_class_get_full but the returned MonoType has
all metadata of the associated token in case of a typespec token.
* class.c: added mono_type_retrieve_from_typespec, used by
mono_type_get_full to retrieve the token type.
* class.c (mono_class_create_from_typespec): changed to use
mono_type_retrieve_from_typespec.
* class.c (mono_ldtoken): changed to use mono_type_get_full
for MONO_TOKEN_TYPE_(DEF|REF|SPEC).
* class-internals.h: exported mono_type_get_full for internal use.

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

16 years agoNew test.
Marek Safar [Thu, 16 Aug 2007 13:36:50 +0000 (13:36 -0000)]
New test.

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

16 years ago2007-08-16 Marek Safar <marek.safar@gmail.com>
Marek Safar [Thu, 16 Aug 2007 13:36:32 +0000 (13:36 -0000)]
2007-08-16  Marek Safar  <marek.safar@gmail.com>

* modifier.cs (Check): Check all modifiers and not only accessibility
ones.

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

16 years ago2007-08-16 Jb Evain <jbevain@novell.com>
Jb Evain [Thu, 16 Aug 2007 13:28:37 +0000 (13:28 -0000)]
2007-08-16  Jb Evain  <jbevain@novell.com>

* domain.c (supported_runtimes): add entry for
the 'moonlight' runtime version.

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

16 years ago2007-08-16 Sebastien Pouliot <sebastien@ximian.com>
Sebastien Pouliot [Thu, 16 Aug 2007 12:20:55 +0000 (12:20 -0000)]
2007-08-16  Sebastien Pouliot  <sebastien@ximian.com>

* RecordProtocol.cs, SslStreamBase.cs: Ensure nothing (even the same
thread) can confuse the record decoding code. Fix bug #82145 (LDAP)
which uses several thread over a single SslClientStream instance.

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

16 years agoNew test.
Marek Safar [Thu, 16 Aug 2007 12:10:49 +0000 (12:10 -0000)]
New test.

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

16 years ago2007-08-16 Marek Safar <marek.safar@gmail.com>
Marek Safar [Thu, 16 Aug 2007 12:09:53 +0000 (12:09 -0000)]
2007-08-16  Marek Safar  <marek.safar@gmail.com>

* ecore.cs (Expression.Error_ValueCannotBeConverted): Report always a
type and not an expression.

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

16 years agoonly reference 2.0 stuff to compile smcs.exe
Jb Evain [Thu, 16 Aug 2007 12:02:16 +0000 (12:02 -0000)]
only reference 2.0 stuff to compile smcs.exe

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

16 years agoprotect completely assembly builder
Jb Evain [Thu, 16 Aug 2007 11:44:21 +0000 (11:44 -0000)]
protect completely assembly builder

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

16 years agoAdd new test
Marek Safar [Thu, 16 Aug 2007 11:42:49 +0000 (11:42 -0000)]
Add new test

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

16 years ago2007-08-16 Marek Safar <marek.safar@gmail.com>
Marek Safar [Thu, 16 Aug 2007 11:42:08 +0000 (11:42 -0000)]
2007-08-16  Marek Safar  <marek.safar@gmail.com>

* statement.cs (Catch.Clone): Type and variable can be null.

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

16 years agoChangeLog
Marek Safar [Thu, 16 Aug 2007 10:36:34 +0000 (10:36 -0000)]
ChangeLog

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

16 years agoA test for bug #81979
Marek Safar [Thu, 16 Aug 2007 10:35:33 +0000 (10:35 -0000)]
A test for bug #81979

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

16 years ago2007-08-16 Marek Safar <marek.safar@gmail.com>
Marek Safar [Thu, 16 Aug 2007 10:34:46 +0000 (10:34 -0000)]
2007-08-16  Marek Safar  <marek.safar@gmail.com>

A fix for bug #81979
* assign.cs (Assign.Emit): Prepare arguments for string concatenation.
I am really not sure whether this is the best fix.

* expression.cs (VariableReference.EmitAssign): Do prepare_load test
only once.

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

16 years agoFix Java compilation
Noam Lampert [Thu, 16 Aug 2007 06:14:24 +0000 (06:14 -0000)]
Fix Java compilation

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

16 years ago * verify.c (mono_method_verify): small typo sliped in.
Rodrigo Kumpera [Thu, 16 Aug 2007 02:43:54 +0000 (02:43 -0000)]
* verify.c (mono_method_verify): small typo sliped in.

2007-08-15  Rodrigo Kumpera  <rkumpera@novell.com>

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

16 years ago * verify.c (do_unbox_value): added, do type verification of
Rodrigo Kumpera [Wed, 15 Aug 2007 22:26:16 +0000 (22:26 -0000)]
* verify.c (do_unbox_value): added, do type verification of
unboxing ops
* verify.c (mono_method_verify): use do_unbox_value

2007-08-15  Rodrigo Kumpera  <rkumpera@novell.com>

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

16 years ago2007-08-15 Rodrigo Kumpera <rkumpera@novell.com>
Rodrigo Kumpera [Wed, 15 Aug 2007 22:25:17 +0000 (22:25 -0000)]
2007-08-15  Rodrigo Kumpera  <rkumpera@novell.com>

* verify.c (dump_stack_value): fixed typo, was printing string
instead of object on stack.
* verify.c (do_box_value): moved the byref check up as it leads
to invalid code and should be done earlier.
* verify.c: improved error messages for and ldobj

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

16 years ago2007-08-15 Rodrigo Kumpera <rkumpera@novell.com>
Rodrigo Kumpera [Wed, 15 Aug 2007 21:45:35 +0000 (21:45 -0000)]
2007-08-15 Rodrigo Kumpera <rkumpera@novell.com>
* make_unbox_test.sh (added):  Generate unbox related tests.
* make_tests.sh: Addes tests for unbox.

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

16 years agomost useful check-in *ever*
Jb Evain [Wed, 15 Aug 2007 19:59:49 +0000 (19:59 -0000)]
most useful check-in *ever*

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