Eyal Alalouf [Sun, 14 Jan 2007 17:10:38 +0000 (17:10 -0000)]
Add portal support
svn path=/trunk/mcs/; revision=70988
Miguel de Icaza [Sun, 14 Jan 2007 16:50:21 +0000 (16:50 -0000)]
Fix message
svn path=/trunk/mcs/; revision=70987
Konstantin Triger [Sun, 14 Jan 2007 16:28:05 +0000 (16:28 -0000)]
wrap commandText with \[\] if needed
svn path=/trunk/mcs/; revision=70985
Ilya Kharmatsky [Sun, 14 Jan 2007 14:46:33 +0000 (14:46 -0000)]
Adding support for .net 2.0 property "BaseCompareValidator.CompareInvariantValues". The changes are also reflected in .net 1.1 implementations (the 2.0 related methods are defined
as 'internal' in this configuration)
svn path=/trunk/mcs/; revision=70983
Konstantin Triger [Sun, 14 Jan 2007 14:36:11 +0000 (14:36 -0000)]
fix typo: ParameterInfo.Position is 0-based
svn path=/trunk/mcs/; revision=70981
Marek Safar [Sun, 14 Jan 2007 14:31:14 +0000 (14:31 -0000)]
New tests.
svn path=/trunk/mcs/; revision=70980
Marek Safar [Sun, 14 Jan 2007 14:27:33 +0000 (14:27 -0000)]
New tests based on bug #80368
svn path=/trunk/mcs/; revision=70979
Marek Safar [Sun, 14 Jan 2007 14:26:26 +0000 (14:26 -0000)]
2007-01-14 Marek Safar <marek.safar@gmail.com>
A fix for bug #80368
* assign.cs (FieldInitializer): New class implements field
initializer statement.
* attribute.cs: Update after FieldMember rename.
* class.cs (PropertyBasedMember): New common class for property based
types.
(InterfaceMemberBase): New base class for all members which can be used as
an interface members.
(MethodCore): Moved really common code to InterfaceMemberBase.
(Method.Define): Equal and GetHasCode detection is relevant for methods
only.
(MethodData.Define): Don't assume that public event implements an
interface automatically.
(MethodData.DefineMethodBuilder): Issue an error even if only extern
modifier is used.
(MemberBase): Moved all interface speficic code to InterfaceMemberBase.
(FieldMember): Merged with FieldBase.
(EventProperty.AEventPropertyAccessor): New specialization to check whether
event extern modifier can be used.
(EventField.EventFieldAccessor): Moved event field specific code here.
(Event.AllowedModifiers): Even event can be extern.
(Event.FindOutBaseMethod): New override specific to events.
(Indexer.parameters): Reintroduce parameters because base class holds
only properties common data.
(Indexer.CheckForDuplications): Indexers are threated as methods so we
need do extra parameters check.
* const.cs: Update after FieldMember rename.
* decl.cs (MemberCache.FindBaseEvent): New method.
* doc.cs (GetMethodDocCommentName): Accept parameters as extra argument
to reflect that indexer is now derived from PropertyBased.
* ecore.cs (GetMemberType): Made public.
(EventExpr.ResolveMemberAccess): Use right event cache and checks for
obsolete event.
* flowanalysis.cs, statement.cs: Update after FieldMember rename.
* typemanager.cs (CSharpSignature): Correctly print event accessors.
(RegisterEvent): Removed.
(RegisterPrivateFieldOfEvent): Renamed to RegisterEventField.
(GetPrivateFieldOfEvent): Renamed to GetEventField.
svn path=/trunk/mcs/; revision=70978
Eyal Alalouf [Sun, 14 Jan 2007 11:49:10 +0000 (11:49 -0000)]
process relative URL to the image.
svn path=/trunk/mcs/; revision=70976
Konstantin Triger [Sun, 14 Jan 2007 10:31:51 +0000 (10:31 -0000)]
implemented ObjectDataSourceStatusEventArgs.AffectedRows propoerty
svn path=/trunk/mcs/; revision=70975
Konstantin Triger [Sun, 14 Jan 2007 09:49:06 +0000 (09:49 -0000)]
make the DbParameterCollection.IndexOf(string) case insensitive
svn path=/trunk/mcs/; revision=70973
Konstantin Triger [Sun, 14 Jan 2007 09:39:39 +0000 (09:39 -0000)]
typo: ParameterPrefix is prepended inside CreateDbParameter
svn path=/trunk/mcs/; revision=70971
Gert Driesen [Sat, 13 Jan 2007 22:47:43 +0000 (22:47 -0000)]
* Makefile: Added al to net_2_0_SUBDIRS.
* Makefile: Make profile-specific.
(CLEAN_FILES): Add 'al.exe' and 'al.exe.mdb'.
svn path=/trunk/mcs/; revision=70967
Gert Driesen [Sat, 13 Jan 2007 22:47:01 +0000 (22:47 -0000)]
* scripts/Makefile.am: Added 'al2'.
svn path=/trunk/mono/; revision=70966
Andreia Gaita [Sat, 13 Jan 2007 20:40:02 +0000 (20:40 -0000)]
* ControlTest.cs: Add test to check if Exception is raised when
adding a top level control (form) as a child control
2007-01-13 Andreia Gaita <avidigal@novell.com>
svn path=/trunk/mcs/; revision=70964
Miguel de Icaza [Sat, 13 Jan 2007 07:20:33 +0000 (07:20 -0000)]
Add tests
svn path=/trunk/mcs/; revision=70954
Miguel de Icaza [Sat, 13 Jan 2007 07:08:52 +0000 (07:08 -0000)]
Patch from Sridhar Kulkarni (full impl)
svn path=/trunk/mcs/; revision=70953
Miguel de Icaza [Sat, 13 Jan 2007 07:05:49 +0000 (07:05 -0000)]
i2007-01-13 Miguel de Icaza <miguel@novell.com>
* Add a few more missing helper classes.
svn path=/trunk/mcs/; revision=70952
Miguel de Icaza [Sat, 13 Jan 2007 05:04:50 +0000 (05:04 -0000)]
Revert the most useful warning message in the world
svn path=/trunk/mcs/; revision=70951
Miguel de Icaza [Sat, 13 Jan 2007 05:02:55 +0000 (05:02 -0000)]
Sorry, nothing to see here
svn path=/trunk/mcs/; revision=70950
Miguel de Icaza [Sat, 13 Jan 2007 04:32:15 +0000 (04:32 -0000)]
2006-12-19 Chris Toshok <toshok@ximian.com>
* System.Design.dll.sources: add DataSourceConverter.cs and
svn path=/trunk/mcs/; revision=70949
Miguel de Icaza [Sat, 13 Jan 2007 04:30:06 +0000 (04:30 -0000)]
2007-01-12 Miguel de Icaza <miguel@novell.com>
* DataObjectFieldAttribute.cs: Add new file.
2007-01-12 Miguel de Icaza <miguel@novell.com>
* Trace.cs: Add a number of 2.0 overloads.
svn path=/trunk/mcs/; revision=70948
Miguel de Icaza [Sat, 13 Jan 2007 04:10:01 +0000 (04:10 -0000)]
Fix thinko
svn path=/trunk/mcs/; revision=70947
Miguel de Icaza [Sat, 13 Jan 2007 04:03:12 +0000 (04:03 -0000)]
A couple of other no-op overrides
svn path=/trunk/mcs/; revision=70946
Miguel de Icaza [Sat, 13 Jan 2007 03:52:24 +0000 (03:52 -0000)]
2007-01-12 Miguel de Icaza <miguel@novell.com>
* DateTimeFormatInfo.cs: Add support for shortest day names.
Notice that there is no support in the runtime to actually load
this information from any place. So they are all english values.
svn path=/trunk/mcs/; revision=70945
Miguel de Icaza [Sat, 13 Jan 2007 03:06:33 +0000 (03:06 -0000)]
2007-01-12 Miguel de Icaza <miguel@novell.com>
* Control.cs: Remove comment, it provides no information about
what could be wrong.
svn path=/trunk/mcs/; revision=70944
Miguel de Icaza [Sat, 13 Jan 2007 03:00:31 +0000 (03:00 -0000)]
Few classes for some Telerik controls
svn path=/trunk/mcs/; revision=70943
Marek Sieradzki [Fri, 12 Jan 2007 22:28:52 +0000 (22:28 -0000)]
2007-01-12 Marek Sieradzki <marek.sieradzki@gmail.com>
* BuildPropertyGroup.cs: Don't trigger reevaluation just after a
change but just mark that it needs it.
* Project.cs: Reevaluate when it needs reevaluation and one of
Evaluated* properties is used.
svn path=/trunk/mcs/; revision=70940
Marek Sieradzki [Fri, 12 Jan 2007 22:26:14 +0000 (22:26 -0000)]
2007-01-12 Marek Sieradzki <marek.sieradzki@gmail.com>
* ProjectTest.cs, BuildPropertyGroupTest.cs: Enable more tests.
svn path=/trunk/mcs/; revision=70939
Gert Driesen [Fri, 12 Jan 2007 21:52:37 +0000 (21:52 -0000)]
* ControlStyleTest.cs: Added style test for LinkLabel with text, but
no links.
svn path=/trunk/mcs/; revision=70938
Gert Driesen [Fri, 12 Jan 2007 21:23:27 +0000 (21:23 -0000)]
* FocusTest.cs: Ignore tests that rely on Form.Show () synchronously
generating WM_ACTIVATE on unix.
* FormTest.cs: Same.
svn path=/trunk/mcs/; revision=70937
Sebastien Pouliot [Fri, 12 Jan 2007 19:30:42 +0000 (19:30 -0000)]
2007-01-12 Sebastien Pouliot <sebastien@ximian.com>
* AuthenticodeFormatter.cs: The ASN.1 structure must be padded to a
multiple of 8 bytes, else the signature is invalid - even if the hash
is correct!
svn path=/trunk/mcs/; revision=70936
Sebastien Pouliot [Fri, 12 Jan 2007 18:54:38 +0000 (18:54 -0000)]
ImageAttribute.cs: Reuse code in SetColorMatrix overloads.
svn path=/trunk/mcs/; revision=70935
Raja R Harinath [Fri, 12 Jan 2007 16:17:43 +0000 (16:17 -0000)]
In metadata:
Prepare to simplify GenericMethod handling.
* class-internals.h (mono_method_get_context): New accessor function.
* class.c, icall.c, loader.c, reflection.c, verify.c: Use accessor
rather than directly accessing '->context' field.
In mini:
* mini.c (mono_method_to_ir): Use new MonoGenericContext accessor.
svn path=/trunk/mono/; revision=70928
Sebastien Pouliot [Fri, 12 Jan 2007 15:06:20 +0000 (15:06 -0000)]
2007-01-12 Sebastien Pouliot <sebastien@ximian.com>
* TestBitmap.cs: Add test cases for FromHicon and roundtripping using
GetHbitmap and FromHbitmap.
* TestIcon.cs: Add test cases for all constructors. Add test cases for
saving icons (all sizes). Add test cases for roundtripping icons using
Handle and HICON.
svn path=/trunk/mcs/; revision=70922
Sebastien Pouliot [Fri, 12 Jan 2007 15:02:40 +0000 (15:02 -0000)]
2007-01-12 Sebastien Pouliot <sebastien@ximian.com>
* Graphics.cs: Change DrawIcon* methods to use the internal bitmap
we keep for the Icon. This is required to let HICON support work with
libgdiplus (and should be faster than creating a new bitmap each time)
* Icon.cs: Fix ctor exceptions. Select the correct icon when multiple
size are available (and do not match the requested size). Fix handle
support for work under UNIX (Win32 support still missing). Keep an
internal bitmap for the Icon to use for HICON support.
svn path=/trunk/mcs/; revision=70921
Atsushi Eno [Fri, 12 Jan 2007 14:35:05 +0000 (14:35 -0000)]
2007-01-12 Atsushi Enomoto <atsushi@ximian.com>
* SignedXml.cs : when there is an envelope document and no referenced
DataObject was found, then look for the target element from the
envelope.
* SignedXmlTest.cs : added DataReferenceToNonDataObject().
* xmldsig.cs : signature-big.xml also depends on the input document.
svn path=/trunk/mcs/; revision=70919
Raja R Harinath [Fri, 12 Jan 2007 13:11:28 +0000 (13:11 -0000)]
* class-internals.h (_MonoGenericParam.method): Move ...
(_MonoGenericContainer): ... here. Add into union with klass field.
* class.c, icall.c, loader.c, metadata.c, reflection.c: Update to changes.
svn path=/trunk/mono/; revision=70918
Atsushi Eno [Fri, 12 Jan 2007 12:22:39 +0000 (12:22 -0000)]
2007-01-12 Atsushi Enomoto <atsushi@ximian.com>
* DataObject.cs : don't clear attributes or children unnecessarily.
* DataObjectTest.cs : test to make sure to not clear attributes or
children unnecessarily.
svn path=/trunk/mcs/; revision=70916
Everaldo Canuto [Fri, 12 Jan 2007 11:19:23 +0000 (11:19 -0000)]
Fix source code identation
svn path=/trunk/mcs/; revision=70915
Everaldo Canuto [Fri, 12 Jan 2007 11:11:45 +0000 (11:11 -0000)]
Fix source code identation
svn path=/trunk/mcs/; revision=70914
Paolo Molaro [Fri, 12 Jan 2007 11:08:49 +0000 (11:08 -0000)]
Added.
svn path=/trunk/mono/; revision=70913
Paolo Molaro [Fri, 12 Jan 2007 10:59:57 +0000 (10:59 -0000)]
Fri Jan 12 11:58:52 CET 2007 Paolo Molaro <lupus@ximian.com>
* Makefile.am, class-internals.h, debug-helpers.c: consolidate
the wrapper type enum and reduce relocations.
svn path=/trunk/mono/; revision=70912
Atsushi Eno [Fri, 12 Jan 2007 10:51:17 +0000 (10:51 -0000)]
2007-01-12 Atsushi Enomoto <atsushi@ximian.com>
* SignedXml.cs : actually ComputeSignature() itself does not raise
silly exception. It always use CryptographicException.
Added another check; malformed reference object.
* SignedXmlTest.cs : fixed ComputeSignatureNoSigningKey() to not
expect silly exception. Added test for malformed reference.
svn path=/trunk/mcs/; revision=70911
Everaldo Canuto [Fri, 12 Jan 2007 10:49:13 +0000 (10:49 -0000)]
* Form.cs: When process WM_NCCALCSIZE message use ClienSize.Width
to calculate menu bar size. Fixes #80290.
2007-01-11 Everaldo Canuto <everaldo@simios.org>
svn path=/trunk/mcs/; revision=70910
Atsushi Eno [Fri, 12 Jan 2007 10:24:09 +0000 (10:24 -0000)]
2007-01-12 Atsushi Enomoto <atsushi@ximian.com>
* SignedXml.cs : ComputeSignature() should check empty key.
* SignedXmlTest.cs : added ComputeSignatureNoSigningKey().
svn path=/trunk/mcs/; revision=70909
Marek Sieradzki [Fri, 12 Jan 2007 09:59:34 +0000 (09:59 -0000)]
2007-01-12 Marek Sieradzki <marek.sieradzki@gmail.com>
* Target.cs: Throw an exception when <OnError> is not last element in
target.
* BuildPropertyGroup.cs (RemoveProperty): Remove from XML.
* TargetCollection.cs: If a target is already there replace it with
new target.
* BuildProperty.cs: Added XmlElement property.
svn path=/trunk/mcs/; revision=70908
Marek Sieradzki [Fri, 12 Jan 2007 09:56:48 +0000 (09:56 -0000)]
2007-01-12 Marek Sieradzki <marek.sieradzki@gmail.com>
* BuildItemTest.cs, BuildPropertyGroupTest.cs, TargetTest.cs,
TargetCollectionTest.cs, ProjectTest.cs: More tests.
svn path=/trunk/mcs/; revision=70907
Marek Sieradzki [Fri, 12 Jan 2007 09:55:43 +0000 (09:55 -0000)]
2007-01-12 Marek Sieradzki <marek.sieradzki@gmail.com>
* Build.cs: More tests.
svn path=/trunk/mcs/; revision=70906
Raja R Harinath [Fri, 12 Jan 2007 09:41:11 +0000 (09:41 -0000)]
* reflection.c (inflate_mono_method): Reuse method instantiation
from the generic method, if available.
svn path=/trunk/mono/; revision=70905
Marek Sieradzki [Fri, 12 Jan 2007 09:30:53 +0000 (09:30 -0000)]
2007-01-12 Marek Sieradzki <marek.sieradzki@gmail.com>\
* ImportCollection.cs: Don't add imports that are already added.
* BuildItemGroup.cs: MonoTODOs.
* ConditionParser.cs (ParseAndEvaluate): Throw an exception when
condition can't be evaluated to bool.
* BuildPropertyGroup.cs (Evaluate): Simplify.
svn path=/trunk/mcs/; revision=70904
Everaldo Canuto [Fri, 12 Jan 2007 08:08:44 +0000 (08:08 -0000)]
2007-01-11 Everaldo Canuto <everaldo@simios.org>
* ThemeWin32Classic.cs: Fix position of menuitem check mark.
svn path=/trunk/mcs/; revision=70901
Miguel de Icaza [Fri, 12 Jan 2007 00:56:10 +0000 (00:56 -0000)]
2007-01-11 Miguel de Icaza <miguel@novell.com>
* HttpListener2Test.cs: Put a bunch of verbs that would not be
allowed.
2007-01-11 Miguel de Icaza <miguel@novell.com>
* HttpListenerRequest.cs (SetRequestLine): Add validation for the
verbs.
svn path=/trunk/mcs/; revision=70894
Miguel de Icaza [Fri, 12 Jan 2007 00:17:10 +0000 (00:17 -0000)]
2007-01-11 Miguel de Icaza <miguel@novell.com>
* HttpListenerRequest.cs: Allow any verbs to go through, not only
the white list of verbs.
Fixes: 80504
svn path=/trunk/mcs/; revision=70893
Chris Toshok [Thu, 11 Jan 2007 23:50:21 +0000 (23:50 -0000)]
In System.Windows.Forms.X11Internal:
2007-01-11 Chris Toshok <toshok@ximian.com>
* X11Display.cs: don't send duplicate WM_ACTIVATE messages to the
initial form.
In System.Windows.Forms:
* XplatUIX11.cs: don't send duplicate WM_ACTIVATE messages to the
initial form.
2007-01-11 Chris Toshok <toshok@ximian.com>
svn path=/trunk/mcs/; revision=70892
Chris Toshok [Thu, 11 Jan 2007 23:24:31 +0000 (23:24 -0000)]
* LinkLabel.cs: make sure to call base.Select in our Select method
if it turns out we're going to be selected (i.e. if we have a link
that is going to receive focus). That way our container's
ActiveControl is updated properly.
2007-01-11 Chris Toshok <toshok@ximian.com>
svn path=/trunk/mcs/; revision=70891
Chris Toshok [Thu, 11 Jan 2007 23:15:12 +0000 (23:15 -0000)]
2007-01-11 Chris Toshok <toshok@ximian.com>
* LinkLabel.cs: turns out that LinkLabels are only Selectable if
they have 1 or more links. this fixes the crash gert reported.
svn path=/trunk/mcs/; revision=70890
Jonathan Chambers [Thu, 11 Jan 2007 21:26:54 +0000 (21:26 -0000)]
2007-01-11 Jonathan Chambers <joncham@gmail.com>
* marshal.c (emit_marshal_variant): Fix conv_arg
type in last commit, based on whether parameter is byref.
svn path=/trunk/mono/; revision=70884
Gert Driesen [Thu, 11 Jan 2007 20:16:02 +0000 (20:16 -0000)]
* CompareInfoTest.cs: Added test for checking valid CompareOptions for
GetSortKey.
svn path=/trunk/mcs/; revision=70883
Gert Driesen [Thu, 11 Jan 2007 20:14:01 +0000 (20:14 -0000)]
* DirectoryTest.cs: Fixed compiler warning by improving test.
svn path=/trunk/mcs/; revision=70882
Jonathan Chambers [Thu, 11 Jan 2007 20:06:20 +0000 (20:06 -0000)]
2007-01-11 Jonathan Chambers <joncham@gmail.com>
* marshal.c (emit_marshal_variant): Handle unmanaged->managed
marshalling.
(mono_marshal_emit_managed_wrapper): Convert byref arguments of type
MONO_TYPE_OBJECT back for VARIANT support.
svn path=/trunk/mono/; revision=70881
Jonathan Chambers [Thu, 11 Jan 2007 20:01:29 +0000 (20:01 -0000)]
2007-01-11 Jonathan Chambers <joncham@gmail.com>
* Marshal.cs: Implement Marshal.ReAllocCoTaskMem.
svn path=/trunk/mcs/; revision=70880
Jonathan Chambers [Thu, 11 Jan 2007 20:00:25 +0000 (20:00 -0000)]
2007-01-11 Jonathan Chambers <joncham@gmail.com>
* marshal.c, marshal.h, icall-def.h: Implement
Marshal.ReAllocCoTaskMem.
svn path=/trunk/mono/; revision=70879
Sebastien Pouliot [Thu, 11 Jan 2007 18:25:58 +0000 (18:25 -0000)]
2007-01-11 Sebastien Pouliot <sebastien@ximian.com>
* IconCodecTest.cs: New test case to check loading from an Icon then
create a Bitmap from the Image. Some properties are changed in the
process (e.g. palette, flags).
svn path=/trunk/mcs/; revision=70876
Sebastien Pouliot [Thu, 11 Jan 2007 18:24:16 +0000 (18:24 -0000)]
2007-01-11 Sebastien Pouliot <sebastien@ximian.com>
* GDIPlusTest.cs: Add test case for loading an icon and playing with
it's color palette.
* TestIcon.cs: Add test cases for different sizes of icons.
svn path=/trunk/mcs/; revision=70875
Sebastien Pouliot [Thu, 11 Jan 2007 18:22:43 +0000 (18:22 -0000)]
2007-01-11 Sebastien Pouliot <sebastien@ximian.com>
* Icon.cs: Fix .ctor(string) to load, when available, the 32x32 icon.
Remove TARGET_JVM from file (Mainsoft now use Icon2.jvm.cs). Use GDI+
to implement ToBitmap method (previous results were wrong).
svn path=/trunk/mcs/; revision=70874
Sebastien Pouliot [Thu, 11 Jan 2007 18:19:36 +0000 (18:19 -0000)]
Makefile: Add new test icons 16x16x16 and 32x32x16 to dist.
svn path=/trunk/mcs/; revision=70873
Sebastien Pouliot [Thu, 11 Jan 2007 18:15:49 +0000 (18:15 -0000)]
16x16 and 32x32, 16 colors icons
svn path=/trunk/mcs/; revision=70872
Paolo Molaro [Thu, 11 Jan 2007 18:01:09 +0000 (18:01 -0000)]
Thu Jan 11 19:00:03 CET 2007 Paolo Molaro <lupus@ximian.com>
* marshal.c: memory retention fixes: use the proper
image cache for runtime_invoke method lookups.
svn path=/trunk/mono/; revision=70870
Andreia Gaita [Thu, 11 Jan 2007 17:58:42 +0000 (17:58 -0000)]
* ContainerControl.cs: Remove ContainerSelected flag, not needed
anymore.
* Control.cs (Controls.Add): Check if control to be added to the collection
is a top level control, and throw an ArgumentException if it is.
Remove ContainerSelectedFlag, not needed anymore.
* XplaUIWin32.cs (SetTopMost): Add flag SWP_NOACTIVATE so that setting the
top most control doesn't activate the form. This fixes a problem in the
MessageBox, where the default button wouldn't get focus because the form
was activated before being Loaded - when the Owner is set, SetTopMost is
called, and it would activate it.
2007-01-11 Andreia Gaita <avidigal@novell.com>
svn path=/trunk/mcs/; revision=70869
Paolo Molaro [Thu, 11 Jan 2007 17:53:57 +0000 (17:53 -0000)]
Thu Jan 11 18:53:19 CET 2007 Paolo Molaro <lupus@ximian.com>
* mempool.c: added code to help debug mempool allocations.
svn path=/trunk/mono/; revision=70868
Noam Lampert [Thu, 11 Jan 2007 17:41:40 +0000 (17:41 -0000)]
merge r70675:70676
svn path=/trunk/mono/; revision=70867
Noam Lampert [Thu, 11 Jan 2007 17:35:55 +0000 (17:35 -0000)]
merge 70855:70856
svn path=/trunk/mcs/; revision=70866
Konstantin Triger [Thu, 11 Jan 2007 16:16:50 +0000 (16:16 -0000)]
* XmlDataSource.cs: refactored to use cached collection.
* SqlDataSource.cs: refactored to use cached collection;
don't throw exception on 'DefaultView'.
* ObjectDataSource.cs: refactored to use cached collection.
svn path=/trunk/mcs/; revision=70861
Konstantin Triger [Thu, 11 Jan 2007 14:13:17 +0000 (14:13 -0000)]
consider parameter names and DataObjectMethodAttribute during method resolution
svn path=/trunk/mcs/; revision=70859
Konstantin Triger [Thu, 11 Jan 2007 14:06:57 +0000 (14:06 -0000)]
Restore the test for !TARGET_JVM profile
svn path=/trunk/mcs/; revision=70858
Konstantin Triger [Thu, 11 Jan 2007 13:38:21 +0000 (13:38 -0000)]
fix typo
svn path=/trunk/mcs/; revision=70855
Dick Porter [Thu, 11 Jan 2007 13:31:42 +0000 (13:31 -0000)]
2007-01-11 Dick Porter <dick@ximian.com>
* SocketTest.cs:
* UdpClientTest.cs: Test 2.0 additions
svn path=/trunk/mcs/; revision=70854
Dick Porter [Thu, 11 Jan 2007 13:30:28 +0000 (13:30 -0000)]
2007-01-11 Dick Porter <dick@ximian.com>
* System.dll.sources: Add System.Net.Sockets/{IOControlCode,SocketInformation,SocketInformationOptions,TransmitFileOptions}.cs
2007-01-11 Dick Porter <dick@ximian.com>
* Win32Exception.cs: Add error 50 (ERROR_NOT_SUPPORTED)
2007-01-11 Dick Porter <dick@ximian.com>
* IOControlCode.cs:
* SocketInformation.cs:
* Socket.cs:
* UdpClient.cs: 2.0 profile updates, loosely based on a patch by
Sridhar Kulkarni.
* SocketInformationOptions.cs:
* TransmitFileOptions.cs: Implemented by Sridhar Kulkarni
(sridharkulkarni@gmail.com)
svn path=/trunk/mcs/; revision=70853
Dick Porter [Thu, 11 Jan 2007 13:28:29 +0000 (13:28 -0000)]
2007-01-11 Dick Porter <dick@ximian.com>
* socket-io.c (convert_sockopt_level_and_name): Add DontFragment
support (experimenting with faking it with IP_MTU_DISCOVER for
systems that don't have IP_DONTFRAGMENT.)
(ves_icall_System_Net_Sockets_Socket_Disconnect_internal): New
icall.
* icall-def.h: new System.Net.Sockets.Disconnect icall.
* socket-io.h: Add new fields to MonoSocketAsyncResult
corresponding to the new ones in Socket.cs.
2007-01-11 Dick Porter <dick@ximian.com>
* sockets.c (_wapi_connect): Don't do the SO_BROADCAST setting
here, do it in managed code instead.
(_wapi_getsockopt): SO_RCVTIMEO and SO_SNDTIMEO use struct
timeval, which has a microsecond field, not milliseconds.
(_wapi_setsockopt): ditto.
(_wapi_setsockopt): Halve the SO_SNDBUF and SO_RCVBUF values on
Linux, as the kernel doubles whatever we set.
(_wapi_socket): Save socket domain, type and protocol so it can be
duplicated later.
(socket_disconnect): Implement socket disconnect (closing the
socket, but keeping the file descriptor.)
(wapi_disconnectex): A basic implementation of DisconnectEx().
(wapi_transmitfile): A very basic implementation of
TransmitFile().
(WSAIoctl): Implement the SIO_GET_EXTENSION_FUNCTION_POINTER
ioctl.
* socket-private.h (struct _WapiHandle_socket): Record socket
domain, type and protocol info so it can be duplicated later.
* sockets.h (WSAID_DISCONNECTEX,WSAID_TRANSMITFILE): Structures
and defines needed to look up the DisconnectEx() and
TransmitFile() functions by GUID.
* error.c (errno_to_WSA): Change ETIMEDOUT mapping to
WSAETIMEDOUT; add EDESTADDRREQ.
* io-layer.h: Need mswsock.h on windows now.
2007-01-11 Dick Porter <dick@ximian.com>
* acconfig.h:
* configure.in: Check for IP_DONTFRAGMENT and IP_MTU_DISCOVER.
svn path=/trunk/mono/; revision=70852
Adar Wesley [Thu, 11 Jan 2007 12:09:27 +0000 (12:09 -0000)]
2007-01-11 Adar Wesley <adarw@mainsoft.com>
* MembershipProvider.cs: fixed EncryptPassword to use password buffer length
svn path=/trunk/mcs/; revision=70851
Raja R Harinath [Thu, 11 Jan 2007 11:52:18 +0000 (11:52 -0000)]
Fix #80249
* mcs/statement.cs (CollectionForeach.TryType): Prefer generic
GetEnumerator over non-generic variant. Fix code to follow comments.
* tests/gtest-302.cs: New test based on #80249.
svn path=/trunk/mcs/; revision=70850
Raja R Harinath [Thu, 11 Jan 2007 11:03:31 +0000 (11:03 -0000)]
Fix IronPython regression mentioned in #80249
* metadata.c (do_mono_metadata_parse_generic_class): Clear
'cached_context' field, since it may have been initialized as a
side-effect of metadata parsing.
svn path=/trunk/mono/; revision=70849
Paolo Molaro [Thu, 11 Jan 2007 10:17:16 +0000 (10:17 -0000)]
Thu Jan 11 11:16:42 CET 2007 Paolo Molaro <lupus@ximian.com>
* Makefile.am: distribute the mips sources.
svn path=/trunk/mono/; revision=70847
Vladimir Krasnov [Thu, 11 Jan 2007 09:57:25 +0000 (09:57 -0000)]
* SqlDataSourceView.cs: fixed OnUpdating, OnInserting call with SqlDataSourceCommandEventArgs
svn path=/trunk/mcs/; revision=70845
Raja R Harinath [Thu, 11 Jan 2007 09:46:00 +0000 (09:46 -0000)]
* class-internals.h (_MonoGenericClass.is_inflated): Remove.
(_MonoGenericClass.cached_class): Move here and rename from lone
remaining field of ...
(_MonoInflatedGenericClass): ... this. Remove.
* metadata.h, class.c, reflection.c, metadata.c, icall.c: Update to changes.
svn path=/trunk/mono/; revision=70844
Vladimir Krasnov [Thu, 11 Jan 2007 09:38:45 +0000 (09:38 -0000)]
* DerbyProfileProvider.cs: added schema version or existence checking on creating connection
* DerbyDBSchema.cs: added version table, refactored schema initialization
* DerbyMembershipProvider.cs,
* DerbyRoleProvider.cs: added schema version or existence checking on creating connection
svn path=/trunk/mcs/; revision=70842
Konstantin Triger [Thu, 11 Jan 2007 09:22:34 +0000 (09:22 -0000)]
use case unsensitive comparer for parameters collection
svn path=/trunk/mcs/; revision=70840
Adar Wesley [Thu, 11 Jan 2007 09:22:22 +0000 (09:22 -0000)]
2007-01-11 Adar Wesley <adarw@mainsoft.com>
* ApplicationHost.cs: fixed AppDomain initialization of physical
path to be in file system semantics
svn path=/trunk/mcs/; revision=70839
Raja R Harinath [Thu, 11 Jan 2007 09:13:35 +0000 (09:13 -0000)]
Fix mcs/tests/test-128.cs regression.
* reflection.c (encode_cattr_value) [MONO_TYPE_SZARRAY]: Revert
2007-01-10 change below.
[MONO_TYPE_OBJECT]: Recurse into array case.
svn path=/trunk/mono/; revision=70838
Jonathan Pobst [Thu, 11 Jan 2007 06:10:38 +0000 (06:10 -0000)]
2007-01-11 Jonathan Pobst <jpobst@novell.com>
* Button.cs: When clicked and setting the parent form's DialogResult,
use FindForm instead of Parent, since parent could be a container
control and not the Form. Fixes bug #80495.
svn path=/trunk/mcs/; revision=70833
Marek Habersack [Thu, 11 Jan 2007 03:20:44 +0000 (03:20 -0000)]
Added DbProviderFactories section in 2.0 machine.config
svn path=/trunk/mono/; revision=70830
Chris Toshok [Thu, 11 Jan 2007 02:21:16 +0000 (02:21 -0000)]
* Form.cs: move the call to SendControlFocus into the same
is_loaded check.
2007-01-10 Chris Toshok <toshok@ximian.com>
svn path=/trunk/mcs/; revision=70828
Chris Toshok [Thu, 11 Jan 2007 02:00:12 +0000 (02:00 -0000)]
* UpDownBase.cs (.ctor): remove the ActiveControl assignment here.
It breaks in the face of the new ActiveControl stuff, and should
be unnecessary.
* Form.cs (WndProc): in the WM_ACTIVATE case, we need to set the
activecontrol's focus if it's not already set, after we set
ActiveControl, but before we call OnActivated. Re-fixes #79667
after the previous focus/active control fixes regressed it.
* Control.cs: reindent some code.
2007-01-10 Chris Toshok <toshok@ximian.com>
svn path=/trunk/mcs/; revision=70827
Chris Toshok [Thu, 11 Jan 2007 00:12:23 +0000 (00:12 -0000)]
* Splitter.cs: clearing some outstanding changes from my tree.
Replace all accesses (not writes) to the internal dock_style field
with the Dock property.
2007-01-10 Chris Toshok <toshok@ximian.com>
svn path=/trunk/mcs/; revision=70824
Chris Toshok [Thu, 11 Jan 2007 00:10:49 +0000 (00:10 -0000)]
2007-01-10 Chris Toshok <toshok@ximian.com>
* Control.cs: make FireEnter, FireLeave, FireValidating, and
FireValidated virtual.
* Form.cs: override and don't chain up calls to FireEnter and
FireLeave.
svn path=/trunk/mcs/; revision=70823
Chris Toshok [Thu, 11 Jan 2007 00:09:21 +0000 (00:09 -0000)]
2007-01-10 Chris Toshok <toshok@ximian.com>
* FocusTest.cs: Disable a couple of tests that rely on the
focus/active control state being available directly after
form.Show() - doesn't work on X11, since form.Show shows the
window asynchronously. Also, add a large focus/enter/leave event
handling test andreia and I were using to correct problems in
ContainerControl.set_ActiveControl.
* FormTest.cs: add a test to show that even if OnActivate is
overriden and not chained up to the base class, ActiveControl is
still set. Unfortunately it doesn't work on the X11 backend
because Form.Show is necessarily an async operation.
* ApplicationTest.cs: don't show forms in the taskbar, and dispose
of them.
* ApplicationContextTest.cs: same.
svn path=/trunk/mcs/; revision=70822
Miguel de Icaza [Wed, 10 Jan 2007 23:30:52 +0000 (23:30 -0000)]
2007-01-10 Andy Hume <andyhume32@yahoo.co.uk>
* Fixes to a number of exception classes.
A project of mine uses #ctor(String,Exception) on
ObjectDisposedException, so I looked at adding that, and any
other similar constructors missing as per the class status report.
I also spotted inconsistent setting of HResult, and fixed
those too. For instance, ArgumentNullException sets HResult
only in three out of the four constuctors; not setting it in
the v2 (String,Exception) one -- and correctly not in the
Serialization constructor.
So, I fixed the remaining missing (String,Exception)
constructors in corlib (2 of), and fixed the Hresult setting
in all exceptions there (4 of).
The remaining Exception constructor omission listed was
InvalidCastException.ctor(System.String, System.Int32). MSDN says:
"This constructor supplies an HRESULT value that is
accessible to inheritors of the InvalidCastException class,
via the protected HResult property of the Exception class."
I added that method too, setting the HResult property from
the Int32 argument.
svn path=/trunk/mcs/; revision=70821
Sebastien Pouliot [Wed, 10 Jan 2007 21:22:18 +0000 (21:22 -0000)]
2007-01-10 Sebastien Pouliot <sebastien@ximian.com>
* IconCodecTest.cs: Add test cases for 48x48, 64x64 and 96x96 icons.
Fix test cases for 16x16 and 32x32 icons. Add test cases for 256
colors and monochrome icons. Remove NotWorking from most tests.
svn path=/trunk/mcs/; revision=70815
Sebastien Pouliot [Wed, 10 Jan 2007 20:36:48 +0000 (20:36 -0000)]
fix typo
svn path=/trunk/mcs/; revision=70812