mono.git
16 years ago* mcs/class/Mono.Mozilla/Mono.WebBrowser/DOM/IElement.cs,
Andreia Gaita [Wed, 7 May 2008 18:41:34 +0000 (18:41 -0000)]
* mcs/class/Mono.Mozilla/Mono.WebBrowser/DOM/IElement.cs,
  mcs/class/Mono.Mozilla/Mono.Mozilla/DOM/HTMLElement.cs,
  mcs/class/Mono.Mozilla/Mono.Mozilla/DOM/Element.cs,
  mcs/class/Managed.Windows.Forms/System.Windows.Forms/HtmlElement.cs:
  Implement TabIndex

2008-05-07  Andreia Gaita <avidigal@novell.com>

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

16 years ago2008-05-07 Zoltan Varga <vargaz@gmail.com>
Zoltan Varga [Wed, 7 May 2008 17:35:41 +0000 (17:35 -0000)]
2008-05-07  Zoltan Varga  <vargaz@gmail.com>

* mini.c (mini_get_method): Disable the check for open generic classes when
using generic sharing.

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

16 years ago2008-05-07 Martin Baulig <martin@ximian.com>
Martin Baulig [Wed, 7 May 2008 17:24:26 +0000 (17:24 -0000)]
2008-05-07  Martin Baulig  <martin@ximian.com>

* CSharpCodeCompiler.cs: Don't mess around with the
MONO_INSIDE_MDB environment variable, it may only be modified by
the debugger.

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

16 years ago2008-05-07 Dick Porter <dick@ximian.com>
Dick Porter [Wed, 7 May 2008 16:48:39 +0000 (16:48 -0000)]
2008-05-07  Dick Porter  <dick@ximian.com>

* io.c (FindNextFile): Handle symlinks correctly.  Fixes bug
385765.

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

16 years ago2008-05-07 Jonathan Pobst <monkey@jpobst.com>
Jonathan Pobst [Wed, 7 May 2008 16:44:50 +0000 (16:44 -0000)]
2008-05-07  Jonathan Pobst  <monkey@jpobst.com>

* ListBox.cs: Respect ScrollAlwaysVisible and HorizontalScrollbar
properties, even when there are no items.
[Fixes bug #387611]

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

16 years ago2008-05-07 Marek Habersack <mhabersack@novell.com>
Marek Habersack [Wed, 7 May 2008 16:19:05 +0000 (16:19 -0000)]
2008-05-07  Marek Habersack  <mhabersack@novell.com>

* RolePrincipal.cs: fix:
- Reloading the roles cache from the provider when expired
- Update issue & expiry date for expired tickets
- Incrementing the cookie expiry date
- Obey Roles.MaxCachedResults
  Fixes bug #385877. Patch from Ivan Hamilton
<ivan@chimerical.com.au>, thanks!

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

16 years ago2008-05-07 Zoltan Varga <vargaz@gmail.com>
Zoltan Varga [Wed, 7 May 2008 15:59:38 +0000 (15:59 -0000)]
2008-05-07  Zoltan Varga  <vargaz@gmail.com>

* generics.cs: Add a test #387034.

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

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

* object.c (mono_object_get_virtual_method): Inflate the resulting method if
needed. Fixes #387034.

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

16 years agoFixed test-643.cs
Marek Safar [Wed, 7 May 2008 15:44:56 +0000 (15:44 -0000)]
Fixed test-643.cs

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

16 years agofixlet for the last commit
Marek Habersack [Wed, 7 May 2008 14:54:32 +0000 (14:54 -0000)]
fixlet for the last commit

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

16 years ago2008-05-07 Marek Habersack <mhabersack@novell.com>
Marek Habersack [Wed, 7 May 2008 14:48:46 +0000 (14:48 -0000)]
2008-05-07  Marek Habersack  <mhabersack@novell.com>

* TemplateParser.cs: added a stack of include directories, to
properly resolve file relative paths when the #include file=""
directive is used. Fixes bug #324536

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

* AspGenerator.cs: push the include file directory to the parser
include directory stack and pop it after parsing the include, so
that the relative file paths are resolved correctly. Fixes bug
#324536

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

16 years agoIn System:
Robert Jordan [Wed, 7 May 2008 14:00:30 +0000 (14:00 -0000)]
In System:
2008-05-07  Robert Jordan  <robertj@gmx.net>

* RuntimeFieldHandle.cs, RuntimeTypeHandle.cs, RuntimeMethodHandle.cs:
Don't try to serialize uninitialized handles. Fixes #386641.

In .:
2008-05-07  Robert Jordan  <robertj@gmx.net>

* corlib_test.dll.sources: Add System/Runtime*HandleTest.cs

In Test/System:
2008-05-07  Robert Jordan  <robertj@gmx.net>

* Runtime*Handle.cs: Add serialization tests.

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

16 years ago2008-05-07 Zoltan Varga <vargaz@gmail.com>
Zoltan Varga [Wed, 7 May 2008 13:48:00 +0000 (13:48 -0000)]
2008-05-07  Zoltan Varga  <vargaz@gmail.com>

* mini.c (mini_get_method): Check whenever the method class is an open generic
type, and return NULL in that case, causing a verification error. Fixes
#384123.

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

16 years ago2008-05-07 Zoltan Varga <vargaz@gmail.com>
Zoltan Varga [Wed, 7 May 2008 13:46:25 +0000 (13:46 -0000)]
2008-05-07  Zoltan Varga  <vargaz@gmail.com>

* class.c (mono_class_inflate_generic_type): Avoid a crash if context is NULL.

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

16 years ago2008-05-07 Marek Habersack <mhabersack@novell.com>
Marek Habersack [Wed, 7 May 2008 13:46:13 +0000 (13:46 -0000)]
2008-05-07  Marek Habersack  <mhabersack@novell.com>

* RoleManagerSection.cs: use type converter when creating the
cookieTimeout property in the static constructor. Fixes bug
#387526. Patch fromIvan Hamilton <ivan@chimerical.com.au>, thanks!

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

16 years agotest fix
Marek Safar [Wed, 7 May 2008 13:06:38 +0000 (13:06 -0000)]
test fix

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

16 years agocorlib.dll.sources: Remove System.IO/Check[Argument|Permission].cs
Sebastien Pouliot [Wed, 7 May 2008 12:06:07 +0000 (12:06 -0000)]
corlib.dll.sources: Remove System.IO/Check[Argument|Permission].cs

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

16 years ago2008-05-07 Sebastien Pouliot <sebastien@ximian.com>
Sebastien Pouliot [Wed, 7 May 2008 12:05:42 +0000 (12:05 -0000)]
2008-05-07  Sebastien Pouliot  <sebastien@ximian.com>

* CheckArgument.cs: Removed. Lots of unused code. The two methods
used are now inlined into Path.cs
* CheckPermission.cs: Removed. Lots of unused code.
* Path.cs: Inlined two checks.
[Found using Gendarme]

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

16 years agoSHA384Managed.cs: Fix compiler warning and use the new local variable introduced...
Sebastien Pouliot [Wed, 7 May 2008 12:02:06 +0000 (12:02 -0000)]
SHA384Managed.cs: Fix compiler warning and use the new local variable introduced previously.

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

16 years ago2008-05-07 Marek Habersack <mhabersack@novell.com>
Marek Habersack [Wed, 7 May 2008 11:51:39 +0000 (11:51 -0000)]
2008-05-07  Marek Habersack  <mhabersack@novell.com>

* ChangeLog: added and moved entries from ../ChaneLog to here.

* Makefile (RESOURCE_FILES): partially revert r102022 - always use
the 3.5.0.0 script library. Fixes bug #384580

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

16 years ago2008-05-07 Sebastien Pouliot <sebastien@ximian.com>
Sebastien Pouliot [Wed, 7 May 2008 11:50:27 +0000 (11:50 -0000)]
2008-05-07  Sebastien Pouliot  <sebastien@ximian.com>

* AssemblyInfo.cs: Change InternalsVisibleTo on Mono.Moonlight to
a key we control.

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

16 years ago2008-05-07 Sebastien Pouliot <sebastien@ximian.com>
Sebastien Pouliot [Wed, 7 May 2008 11:50:00 +0000 (11:50 -0000)]
2008-05-07  Sebastien Pouliot  <sebastien@ximian.com>

* AssemblyInfo.cs: Change InternalsVisibleTo on Mono.Moonlight to
a key we control.

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

16 years ago2008-05-07 Sebastien Pouliot <sebastien@ximian.com>
Sebastien Pouliot [Wed, 7 May 2008 11:48:49 +0000 (11:48 -0000)]
2008-05-07  Sebastien Pouliot  <sebastien@ximian.com>

* data/net_[1_1|2_0]/machine.config: Add entry to remap the public
key used by Silverlight 2.0 platform assemblies. Needed in both
profiles since SN uses 1.0.

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

16 years ago2008-05-07 Ivan N. Zlatev <contact@i-nz.net>
Ivan Zlatev [Wed, 7 May 2008 11:44:56 +0000 (11:44 -0000)]
2008-05-07  Ivan N. Zlatev  <contact@i-nz.net>

* NativeWindow.cs: Add support for multiple handles per window.
* NativeWindows.cs, LibSupport.cs, Control.cs, XplatUIX11GTK.cs,
XplatUIX11.cs, X11Display.cs: Do not access NativeWindow.windows_collection
directly - use FromHandle instead.
[Fixes bug #374660]

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

16 years agoNew test.
Marek Safar [Wed, 7 May 2008 10:41:39 +0000 (10:41 -0000)]
New test.

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

16 years ago2008-05-07 Marek Safar <marek.safar@gmail.com>
Marek Safar [Wed, 7 May 2008 10:40:30 +0000 (10:40 -0000)]
2008-05-07  Marek Safar  <marek.safar@gmail.com>

* anonymous.cs, codegen.cs, convert.cs, ecore.cs: Removed uber ugly TempEc
hack. Fixes #387502.

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

16 years ago2008-05-07 Robert Jordan <robertj@gmx.net>
Robert Jordan [Wed, 7 May 2008 09:41:34 +0000 (09:41 -0000)]
2008-05-07  Robert Jordan  <robertj@gmx.net>

* Makefile.am: don't pull libeglib.a twice. Fixes #387491.

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

16 years agoNew test.
Marek Safar [Wed, 7 May 2008 09:17:17 +0000 (09:17 -0000)]
New test.

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

16 years agoBe careful when fixing this file
Marek Safar [Wed, 7 May 2008 09:04:31 +0000 (09:04 -0000)]
Be careful when fixing this file

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

16 years ago2008-05-07 Atsushi Enomoto <atsushi@ximian.com>
Atsushi Eno [Wed, 7 May 2008 08:34:57 +0000 (08:34 -0000)]
2008-05-07  Atsushi Enomoto  <atsushi@ximian.com>

* XmlReader.cs : force CloseInput to every XmlReader that is created
  from url (I mean, every internal XmlReader instance).

* XmlFilterReader.cs : clone settings so that it does not depend on
  inconsistent settings after creation. Fixed bug #385638.

* XmlReaderCommonTests.cs : added test for bug #385638.

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

16 years agoisolate unsupported flow using TARGET_JVM compilation flag.
Roei Erez [Wed, 7 May 2008 07:46:48 +0000 (07:46 -0000)]
isolate unsupported flow using TARGET_JVM compilation flag.

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

16 years agoRemove debugging message
Miguel de Icaza [Wed, 7 May 2008 05:23:56 +0000 (05:23 -0000)]
Remove debugging message

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

16 years ago* mcs/class/Mono.Mozilla/Mono.WebBrowser/DOM/IElement.cs,
Andreia Gaita [Wed, 7 May 2008 03:36:03 +0000 (03:36 -0000)]
* mcs/class/Mono.Mozilla/Mono.WebBrowser/DOM/IElement.cs,
  mcs/class/Mono.Mozilla/Mono.Mozilla/DOM/HTMLElement.cs,
  mcs/class/Mono.Mozilla/Mono.Mozilla/DOM/Element.cs,
  mcs/class/Managed.Windows.Forms/System.Windows.Forms/HtmlElement.cs:
  Implement InnerHTML setter

2008-05-07  Andreia Gaita <avidigal@novell.com>

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

16 years ago2008-05-06 Miguel de Icaza <miguel@novell.com>
Miguel de Icaza [Wed, 7 May 2008 03:31:39 +0000 (03:31 -0000)]
2008-05-06  Miguel de Icaza  <miguel@novell.com>

* assembly.c (mono_assembly_load_reference): Prevent crash while
disassembling Silverlight 2.0 executables while we still do not
have GACed libraries.

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

16 years ago* mcs/class/Mono.Mozilla/Mono.WebBrowser/DOM/IDocument.cs,
Andreia Gaita [Wed, 7 May 2008 03:31:10 +0000 (03:31 -0000)]
* mcs/class/Mono.Mozilla/Mono.WebBrowser/DOM/IDocument.cs,
  mcs/class/Mono.Mozilla/Mono.Mozilla/DOM/Document.cs,
  mcs/class/Mono.Mozilla/Mono.Mozilla/DOM/Window.cs: Helper to
  retrieve the window of a document
* mcs/class/Managed.Windows.Forms/System.Windows.Forms/HtmlDocument.cs:
  Implement Focused

2008-05-07  Andreia Gaita <avidigal@novell.com>

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

16 years ago * BindingSourceTest.cs: New tests for ApplySort and RemoveSort methods.
Carlos Alberto Cortez [Wed, 7 May 2008 02:53:19 +0000 (02:53 -0000)]
* BindingSourceTest.cs: New tests for ApplySort and RemoveSort methods.

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

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

16 years ago * BindingSource.cs: Minor fixes to the the ApplySort and Remove sort
Carlos Alberto Cortez [Wed, 7 May 2008 02:52:04 +0000 (02:52 -0000)]
* BindingSource.cs: Minor fixes to the the ApplySort and Remove sort
methods, as well as add messages to the exceptions.

2006-05-06  Carlos Alberto Cortez <calberto.cortez@gmail.com>

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

16 years agoImprove debugging message to track down the method that is actually missing
Miguel de Icaza [Wed, 7 May 2008 01:06:34 +0000 (01:06 -0000)]
Improve debugging message to track down the method that is actually missing

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

16 years ago * BindingSourceTest.cs: Activate a pair of tests.
Carlos Alberto Cortez [Tue, 6 May 2008 23:16:37 +0000 (23:16 -0000)]
* BindingSourceTest.cs: Activate a pair of tests.

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

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

16 years ago * BindingSource.cs: Setting DataSource should only reset DataMember if
Carlos Alberto Cortez [Tue, 6 May 2008 23:15:20 +0000 (23:15 -0000)]
* BindingSource.cs: Setting DataSource should only reset DataMember if
the previous value was null (make pass a not working test).

2006-05-06  Carlos Alberto Cortez <calberto.cortez@gmail.com>

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

16 years ago2008-05-07 Marek Habersack <mhabersack@novell.com>
Marek Habersack [Tue, 6 May 2008 23:05:10 +0000 (23:05 -0000)]
2008-05-07  Marek Habersack  <mhabersack@novell.com>

* HttpRequest.cs: StripPath should handle UNC paths too. Fixes bug
#385870. Patch from Ivan Hamilton <ivan@chimerical.com.au>,
thanks!

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

16 years ago * BindingSOurceTest.cs: New assertion for
Carlos Alberto Cortez [Tue, 6 May 2008 22:39:20 +0000 (22:39 -0000)]
* BindingSOurceTest.cs: New assertion for
ISupportInitializeNotification test.

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

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

16 years ago2006-05-06 Carlos Alberto Cortez <calberto.cortez@gmail.com>
Carlos Alberto Cortez [Tue, 6 May 2008 22:38:36 +0000 (22:38 -0000)]
2006-05-06  Carlos Alberto Cortez <calberto.cortez@gmail.com>

* BindingSource.cs: When EndInit call is postponed and is called until
DataSource.EndInit is called, remove the handler for data source.

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

16 years ago2008-05-07 Zoltan Varga <vargaz@gmail.com>
Zoltan Varga [Tue, 6 May 2008 22:29:00 +0000 (22:29 -0000)]
2008-05-07  Zoltan Varga  <vargaz@gmail.com>

* reflection.c: Special case generic type definitions as well. Fixes #383444.

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

16 years ago2008-05-06 Marek Safar <marek.safar@gmail.com>
Marek Safar [Tue, 6 May 2008 21:48:31 +0000 (21:48 -0000)]
2008-05-06  Marek Safar  <marek.safar@gmail.com>

* IntPtr.cs (eplicit long, GetObjectData): Use ToInt64.

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

16 years ago2008-05-06 Marek Safar <marek.safar@gmail.com>
Marek Safar [Tue, 6 May 2008 21:38:34 +0000 (21:38 -0000)]
2008-05-06  Marek Safar  <marek.safar@gmail.com>

* IntPtr.cs (eplicit long): Uses ToInt64.

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

16 years ago2008-05-06 Zoltan Varga <vargaz@gmail.com>
Zoltan Varga [Tue, 6 May 2008 21:35:49 +0000 (21:35 -0000)]
2008-05-06  Zoltan Varga  <vargaz@gmail.com>

* icall.c (ves_icall_System_Reflection_Module_ResolveTypeToken): Fix handling
of the dynamic case. Fixes #387404.

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

16 years ago2008-05-06 Rodrigo Kumpera <rkumpera@novell.com>
Rodrigo Kumpera [Tue, 6 May 2008 21:15:39 +0000 (21:15 -0000)]
2008-05-06 Rodrigo Kumpera  <rkumpera@novell.com>

*verify.c (mono_verifier_is_class_full_trust): If under
verify_all and the verifier mode was not set, only
gac and corlib types are fulltrust. This makes --verify-all
usable to detect unverifiable code, which is the expected
use case.

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

16 years ago2008-05-06 Rodrigo Kumpera <rkumpera@novell.com>
Rodrigo Kumpera [Tue, 6 May 2008 21:12:45 +0000 (21:12 -0000)]
2008-05-06  Rodrigo Kumpera  <rkumpera@novell.com>

* driver.c (mono_main): Revert r102623. The right
thing to do is to enable the verifier under verifiable
unless a --security flag was passed.

We need this non-trivial behavior for --verify-all otherwise
mcs-compileall won't be able to use it. As it needs everything to
be verified under validil.

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

16 years ago2008-05-06 Rodrigo Kumpera <rkumpera@novell.com>
Rodrigo Kumpera [Tue, 6 May 2008 20:32:55 +0000 (20:32 -0000)]
2008-05-06 Rodrigo Kumpera  <rkumpera@novell.com>

* verify.h: Ops, commited the header with debug
enabled.

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

16 years ago2008-05-06 Rodrigo Kumpera <rkumpera@novell.com>
Rodrigo Kumpera [Tue, 6 May 2008 20:31:23 +0000 (20:31 -0000)]
2008-05-06 Rodrigo Kumpera  <rkumpera@novell.com>

* verify.c (merge_stack): Use the new value on unverifiable
stack merges.

* verify.c (verify_type_compatibility_full): Comparison
of nullable types can't use mono_class_is_assignable_from.

* verify.c, verify.h: Added MONO_VERIFY_REPORT_ALL_ERRORS
that makes all verification errors be reported.

* pedump.c: Pass MONO_VERIFY_REPORT_ALL_ERRORS to
mono_method_verify.

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

16 years ago * valid_nullable_store.il: New test to ensure
Rodrigo Kumpera [Tue, 6 May 2008 20:30:41 +0000 (20:30 -0000)]
* valid_nullable_store.il: New test to ensure
that nullables are properly compared.

2008-05-02 Rodrigo Kumpera <rkumpera@novell.com>

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

16 years agoforgot license
Robert Jordan [Tue, 6 May 2008 20:02:10 +0000 (20:02 -0000)]
forgot license

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

16 years agoIn metadata:
Robert Jordan [Tue, 6 May 2008 19:45:47 +0000 (19:45 -0000)]
In metadata:
2008-05-05  Robert Jordan  <robertj@gmx.net>

* marshal.c (mono_marshal_get_thunk_invoke_wrapper):
support for value types. See #386415.

* object.c: comments.

In tests:
2008-05-05  Robert Jordan  <robertj@gmx.net>

* libtest.c, thunks.cs: reworked to match the new struct
handling.

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

16 years ago2008-05-06 Martin Baulig <martin@ximian.com>
Martin Baulig [Tue, 6 May 2008 19:06:42 +0000 (19:06 -0000)]
2008-05-06  Martin Baulig  <martin@ximian.com>

* class.cs (Constructor.Emit): Fix the logic whether to emit
symbol information.

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

16 years ago2008-05-06 Martin Baulig <martin@ximian.com>
Martin Baulig [Tue, 6 May 2008 18:41:24 +0000 (18:41 -0000)]
2008-05-06  Martin Baulig  <martin@ximian.com>

Fix #383749.

* debug-mini.c (mono_debugger_thread_created): Add proper locking.
(mono_debugger_thread_cleanup): Likewise.
(mono_debugger_extended_notification): Likewise.

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

16 years ago2008-05-06 Rodrigo Kumpera <rkumpera@novell.com>
Rodrigo Kumpera [Tue, 6 May 2008 18:20:54 +0000 (18:20 -0000)]
2008-05-06  Rodrigo Kumpera  <rkumpera@novell.com>

* bug-382986.cs. bug-382986-lib.cs: Regression test for
bug #382986.

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

16 years ago2008-05-06 Jonathan Pobst <monkey@jpobst.com>
Jonathan Pobst [Tue, 6 May 2008 17:35:18 +0000 (17:35 -0000)]
2008-05-06  Jonathan Pobst  <monkey@jpobst.com>

* ToolStripManager.cs: Don't use IsAlive, race condition, etc. etc.

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

16 years ago2008-05-06 Jonathan Pobst <monkey@jpobst.com>
Jonathan Pobst [Tue, 6 May 2008 17:10:12 +0000 (17:10 -0000)]
2008-05-06  Jonathan Pobst  <monkey@jpobst.com>

* ToolStripManager.cs: Store references to toolstrips as
weak references so they do not prevent forms from getting collected.
[Fixes bug #386483]

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

16 years ago2008-05-06 Jonathan Pobst <monkey@jpobst.com>
Jonathan Pobst [Tue, 6 May 2008 16:32:44 +0000 (16:32 -0000)]
2008-05-06  Jonathan Pobst  <monkey@jpobst.com>

* TrackBar.cs: We can't set ResizeRedraw because it isn't set
on .Net.  So do the same thing in WndProc.

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

16 years ago2008-05-06 Rodrigo Kumpera <rkumpera@novell.com>
Rodrigo Kumpera [Tue, 6 May 2008 16:06:30 +0000 (16:06 -0000)]
2008-05-06  Rodrigo Kumpera  <rkumpera@novell.com>

* mini.c (mono_method_to_ir): Verify visibility of call related opcodes
against both inflated and non-inflated methods. We need to check against the
generic definition for cases where the instantiated method is not visible.
We need to check against the inflated types for cases where the instantiation
changes any super type. This fixes #382986.

Note that this doesn't need to be applied to other parts of mono_method_to_ir
that check for visibiliy as generic params only appears as the type subject
of tokens on call opcodes. Field manipulation and ldftn must always
target an exact type.

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

16 years agoreformat
Jb Evain [Tue, 6 May 2008 15:57:15 +0000 (15:57 -0000)]
reformat

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

16 years agoQueryable.cs (Average, GroupBy, Union): fix signatures to match MS API.
Sasha Kogan [Tue, 6 May 2008 15:45:01 +0000 (15:45 -0000)]
Queryable.cs (Average, GroupBy, Union): fix signatures to match MS API.

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

16 years agocredits, again
Jb Evain [Tue, 6 May 2008 15:36:25 +0000 (15:36 -0000)]
credits, again

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

16 years ago2008-05-06 Jb Evain <jbevain@novell.com>
Jb Evain [Tue, 6 May 2008 15:35:05 +0000 (15:35 -0000)]
2008-05-06  Jb Evain  <jbevain@novell.com>

* Mono.Cecil.Signatures/CustomMod.cs:
Introduce a EmptyCustomMod static field.
* Mono.Cecil/ReflectionWriter.cs
* Mono.Cecil.Signatures/SignatureReader.cs:
Use EmptyCustomMod instead of instanciating
empty arrays of CustomMod.

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

16 years agocredits
Jb Evain [Tue, 6 May 2008 15:16:33 +0000 (15:16 -0000)]
credits

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

16 years ago2008-05-06 Jb Evain <jbevain@novell.com>
Jb Evain [Tue, 6 May 2008 15:15:39 +0000 (15:15 -0000)]
2008-05-06  Jb Evain  <jbevain@novell.com>

* Mono.Cecil.Metadata/MetadataRowReader.cs
* Mono.Cecil.Metadata/MetadataRowWriter.cs:
Cache row counters delegates.

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

16 years ago2008-05-06 Rodrigo Kumpera <rkumpera@novell.com>
Rodrigo Kumpera [Tue, 6 May 2008 15:15:06 +0000 (15:15 -0000)]
2008-05-06  Rodrigo Kumpera  <rkumpera@novell.com>

* driver.c (mono_main): Using --verify-all enables the verifier under validil mode
if no related --security flag is passed.

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

16 years ago2008-05-06 Jonathan Pobst <monkey@jpobst.com>
Jonathan Pobst [Tue, 6 May 2008 15:02:57 +0000 (15:02 -0000)]
2008-05-06  Jonathan Pobst  <monkey@jpobst.com>

* TrackBar.cs: Commit patch from Andy Hume that corrects
the clickable areas to better match .Net.
[Fixes bug #387074]

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

16 years ago2008-05-06 Jonathan Pobst <monkey@jpobst.com>
Jonathan Pobst [Tue, 6 May 2008 14:59:07 +0000 (14:59 -0000)]
2008-05-06  Jonathan Pobst  <monkey@jpobst.com>

* TrackBar.cs: Commit patch from Andy Hume that adds the
ResizeRedraw control flag so the track bar repaints itself
when it is resized.  [Fixes bug #387072]

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

16 years ago2008-05-06 Jonathan Pobst <monkey@jpobst.com>
Jonathan Pobst [Tue, 6 May 2008 14:55:40 +0000 (14:55 -0000)]
2008-05-06  Jonathan Pobst  <monkey@jpobst.com>

* TrackBar.cs: Commit patch from Andy Hume that adds better
support for keyboard navigation when the TrackBar is vertical.
[Fixes bug #387071]

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

16 years agoBe ready for future regressions
Marek Safar [Tue, 6 May 2008 14:13:24 +0000 (14:13 -0000)]
Be ready for future regressions

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

16 years agoFix #385503
Raja R Harinath [Tue, 6 May 2008 12:15:03 +0000 (12:15 -0000)]
Fix #385503

* iterators.cs (Iterator.CurrentBlock.DoEmit): Don't emit
InvalidOperationException when the iterator is before the start or
after the end.

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

16 years agotest-643 fails on amd64
Raja R Harinath [Tue, 6 May 2008 12:14:44 +0000 (12:14 -0000)]
test-643 fails on amd64

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

16 years agoadd test for Marek's crasher
Jb Evain [Tue, 6 May 2008 11:34:26 +0000 (11:34 -0000)]
add test for Marek's crasher

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

16 years agoTest correct ?? nullable type result.
Marek Safar [Tue, 6 May 2008 11:27:40 +0000 (11:27 -0000)]
Test correct ?? nullable type result.

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

16 years ago2008-05-06 Marek Safar <marek.safar@gmail.com>
Marek Safar [Tue, 6 May 2008 11:23:48 +0000 (11:23 -0000)]
2008-05-06  Marek Safar  <marek.safar@gmail.com>

* nullable.cs (NullCoalescingOperator): Result is underlying type of left,
when left is nullable type.

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

16 years agoNew test.
Marek Safar [Tue, 6 May 2008 10:12:33 +0000 (10:12 -0000)]
New test.

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

16 years ago2008-05-06 Jb Evain <jbevain@novell.com>
Jb Evain [Tue, 6 May 2008 09:26:54 +0000 (09:26 -0000)]
2008-05-06  Jb Evain  <jbevain@novell.com>

* Mono.Cecil/TypeDefinition.cs
* Mono.Cecil/MethodDefinition.cs
* Mono.Cecil/DefaultImporter.cs
* Mono.Cecil/ReflectionHelper.cs:
Restore the generic context values instead of blindly
overriding them. Based on a patch by Dzintars Avots.

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

16 years ago2008-05-06 Jb Evain <jbevain@novell.com>
Jb Evain [Tue, 6 May 2008 09:19:36 +0000 (09:19 -0000)]
2008-05-06  Jb Evain  <jbevain@novell.com>

* Mono.Cecil/MarshalSpec.cs (CloneInto): add new method
to clone MarshalSpec into a new container.

* Mono.Cecil/ParameterDefinition.cs (Clone):
* Mono.Cecil/FieldDefinition.cs (Clone):
Use the new MarshalSpec.CloneInto method.
Based on a patch by Dzintars Avots <davots@coverity.com>.

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

16 years ago2008-05-06 Marek Safar <marek.safar@gmail.com>
Marek Safar [Tue, 6 May 2008 09:06:32 +0000 (09:06 -0000)]
2008-05-06  Marek Safar  <marek.safar@gmail.com>

A fix for bug #386628
* expression.cs (LocalVariableReference): Continue in resolving when
variable is not assigned.

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

16 years agoadd patch author
Jb Evain [Tue, 6 May 2008 08:58:57 +0000 (08:58 -0000)]
add patch author

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

16 years ago2008-05-06 Jb Evain <jbevain@novell.com>
Jb Evain [Tue, 6 May 2008 08:57:39 +0000 (08:57 -0000)]
2008-05-06  Jb Evain  <jbevain@novell.com>

* Mono.Cecil/MethodDefinition.cs (Clone): fix cloning of
return types when they don't have a parameter.

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

16 years agooops
Jb Evain [Tue, 6 May 2008 08:40:59 +0000 (08:40 -0000)]
oops

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

16 years ago2008-05-06 Jb Evain <jbevain@novell.com>
Jb Evain [Tue, 6 May 2008 08:38:11 +0000 (08:38 -0000)]
2008-05-06  Jb Evain  <jbevain@novell.com>

* Mono.Cecil.Cil/CodeWriter.cs (ComputeMaxStack): compute max
stack more precisely. Based on a patch by Daniel Grunwald,
Contains code from Cecil.FlowAnalysis.

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

16 years ago2008-05-06 Jb Evain <jbevain@novell.com>
Jb Evain [Tue, 6 May 2008 08:20:35 +0000 (08:20 -0000)]
2008-05-06  Jb Evain  <jbevain@novell.com>

* Mono.Cecil.Cil/MethodBody.cs (Clone): make sure the
instruction linked list is properly constructed.

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

16 years agocleol
Jb Evain [Tue, 6 May 2008 08:18:47 +0000 (08:18 -0000)]
cleol

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

16 years ago2008-05-06 Carlos Alberto Cortez <calberto.cortez@gmail.com>
Carlos Alberto Cortez [Tue, 6 May 2008 06:56:16 +0000 (06:56 -0000)]
2008-05-06  Carlos Alberto Cortez <calberto.cortez@gmail.com>

* BindingSource.cs: New tests for ISupportInitializeNotification
property.

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

16 years ago2008-05-06 Carlos Alberto Cortez <calberto.cortez@gmail.com>
Carlos Alberto Cortez [Tue, 6 May 2008 06:53:12 +0000 (06:53 -0000)]
2008-05-06  Carlos Alberto Cortez <calberto.cortez@gmail.com>

* BindingSource.cs: Implement ISupportInitializeNotification support.

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

16 years ago2008-05-05 Gonzalo Paniagua Javier <gonzalo.mono@gmail.com>
Gonzalo Paniagua Javier [Tue, 6 May 2008 01:33:03 +0000 (01:33 -0000)]
2008-05-05  Gonzalo Paniagua Javier <gonzalo.mono@gmail.com>

* Tds.cs: a numeric column with no decimal digits and a precision <= 80
is translated into a long.

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

16 years ago2008-05-05 Gonzalo Paniagua Javier <gonzalo.mono@gmail.com>
Gonzalo Paniagua Javier [Tue, 6 May 2008 01:29:56 +0000 (01:29 -0000)]
2008-05-05  Gonzalo Paniagua Javier <gonzalo.mono@gmail.com>

* ConfigurationElement.cs: don't fail when a mandatory property is a
configuration element itself.

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

16 years ago2008-05-06 Marek Habersack <mhabersack@novell.com>
Marek Habersack [Tue, 6 May 2008 00:19:57 +0000 (00:19 -0000)]
2008-05-06  Marek Habersack  <mhabersack@novell.com>

* MimeTypes.cs: mime type keys might not exist in the dictionary,
in the 2.0 profile. Patch from Rolf Kvinge <rkvinge@novell.com>
and Jean-Baptiste Evain <jbevain@novell.com>, thanks! Fixes bug
#386008

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

16 years ago2008-05-06 George Giolfan <georgegiolfan@yahoo.com>
George Giolfan [Tue, 6 May 2008 00:03:46 +0000 (00:03 -0000)]
2008-05-06  George Giolfan  <georgegiolfan@yahoo.com>

* ThemeVisualStyles.cs: Added support for ToolBar.

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

16 years ago2008-05-06 George Giolfan <georgegiolfan@yahoo.com>
George Giolfan [Mon, 5 May 2008 23:59:48 +0000 (23:59 -0000)]
2008-05-06  George Giolfan  <georgegiolfan@yahoo.com>

* ToolBar.cs: Made the Vertical property internal.

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

16 years ago2008-05-06 Marek Habersack <mhabersack@novell.com>
Marek Habersack [Mon, 5 May 2008 23:38:47 +0000 (23:38 -0000)]
2008-05-06  Marek Habersack  <mhabersack@novell.com>

* Calendar.cs: do not create dateInfo in the constructor - culture
might be not set yet at this point. Fixes bug #323566
Added a private property, DateInfo, which creates the dateInfo
when requested.

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

* TemplateControlCompiler.cs: compatibility - added the
__stringResource static field to the generated class and a call to
SetStringResourcePointer to the FrameworkInitialize method.

* PageCompiler.cs: __fileDependencies should also be defined in
the 1.x profile.
Page properties assigned in the page directive should be set
inside BuildControlTree in the 2.0 profile.

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

16 years ago2008-05-05 Sebastien Pouliot <sebastien@ximian.com>
Sebastien Pouliot [Mon, 5 May 2008 22:51:12 +0000 (22:51 -0000)]
2008-05-05  Sebastien Pouliot  <sebastien@ximian.com>

* BulletedList.cs: Avoid calling ToString on a string.
* ButtonField.cs: Throw, not just create, the exceptions.
* HyperLinkField.cs: Throw, not just create, the exceptions.
* ImageField.cs: Throw, not just create, the exception. Avoid calling
ToString on a string.
* ListControl.cs: Avoid calling ToString on a string.
[All issues were found using Gendarme]

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

16 years ago2008-04-05 Carlos Alberto Cortez <calberto.cortez@gmail.com>
Carlos Alberto Cortez [Mon, 5 May 2008 21:48:20 +0000 (21:48 -0000)]
2008-04-05  Carlos Alberto Cortez <calberto.cortez@gmail.com>

* serial.c (set_attributes): When setting parity to Even,
besides removing the PARODD bit, add the PARENB bit to actually
use even parity.
Patch by Leszek Ciesielski.
Fixes #365248.

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

16 years agoNew test, fixed too agressive optimization
Marek Safar [Mon, 5 May 2008 17:45:56 +0000 (17:45 -0000)]
New test, fixed too agressive optimization

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

16 years ago2008-05-05 Marek Safar <marek.safar@gmail.com>
Marek Safar [Mon, 5 May 2008 17:44:38 +0000 (17:44 -0000)]
2008-05-05  Marek Safar  <marek.safar@gmail.com>

* nullable.cs, statement.cs (Unwrap): Store non-variable expression in all
nullable operations.

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

16 years ago2008-05-05 George Giolfan <georgegiolfan@yahoo.com>
George Giolfan [Mon, 5 May 2008 17:38:42 +0000 (17:38 -0000)]
2008-05-05  George Giolfan  <georgegiolfan@yahoo.com>

* ThemeVisualStyles.cs: Added support for TrackBar.

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