mono.git
19 years ago2005-02-03 Zoltan Varga <vargaz@freemail.hu>
Zoltan Varga [Thu, 3 Feb 2005 20:22:21 +0000 (20:22 -0000)]
2005-02-03  Zoltan Varga  <vargaz@freemail.hu>

* class.c: Back out garbage in previous patch.

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

19 years ago2005-02-03 Zoltan Varga <vargaz@freemail.hu>
Zoltan Varga [Thu, 3 Feb 2005 20:20:36 +0000 (20:20 -0000)]
2005-02-03  Zoltan Varga  <vargaz@freemail.hu>

* class.c: Add missing setup_... calls.

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

19 years ago2005-02-03 Zoltan Varga <vargaz@freemail.hu>
Zoltan Varga [Thu, 3 Feb 2005 20:12:47 +0000 (20:12 -0000)]
2005-02-03  Zoltan Varga  <vargaz@freemail.hu>

* class-internals.h (MonoClass): Add 'has_cctor' flag.

* class-internals.h (MonoCachedClassInfo): New structure.

* class.c: Initialize properties and events fields of MonoClass lazily.

* class.c: Add infrastructure for lazily initializing the methods and
vtable fields of MonoClass. Not yet used.

* class.c (mono_class_get_finalizer): New helper function.

* class.c: Add infrastructure for loading some class related data from
an AOT file.

* object.c: Add infrastructure for initializing the vtable from data
in the AOT file.

* gc.c (run_finalize): Use mono_class_get_finalizer ().

* class.c loader.c object.c icall.c gc.c reflection.c: Call the
appropriate initialization function before accessing parts of the
MonoClass structure.

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

19 years ago2005-02-03 Zoltan Varga <vargaz@freemail.hu>
Zoltan Varga [Thu, 3 Feb 2005 19:34:32 +0000 (19:34 -0000)]
2005-02-03  Zoltan Varga  <vargaz@freemail.hu>

* monograph.c: Fix warnings.

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

19 years ago2005-02-03 Zoltan Varga <vargaz@freemail.hu>
Zoltan Varga [Thu, 3 Feb 2005 19:29:34 +0000 (19:29 -0000)]
2005-02-03  Zoltan Varga  <vargaz@freemail.hu>

* marshal.c: Fix warnings.

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

19 years ago2005-02-03 Jordi Mas i Hernandez <jordi@ximian.com>
Jordi Mas i Hernandez [Thu, 3 Feb 2005 16:45:15 +0000 (16:45 -0000)]
2005-02-03 Jordi Mas i Hernandez <jordi@ximian.com>

* Region.cs: revert Jackson's patch and fix this at libgdiplus level

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

19 years ago2005-02-03 Zoltan Varga <vargaz@freemail.hu>
Zoltan Varga [Thu, 3 Feb 2005 16:35:57 +0000 (16:35 -0000)]
2005-02-03  Zoltan Varga  <vargaz@freemail.hu>

* marshal.c (emit_marshal_array): Add missing 'break'. Fixes #72169.

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

19 years agoSD samples should not requiere SWF
Jordi Mas i Hernandez [Thu, 3 Feb 2005 16:34:55 +0000 (16:34 -0000)]
SD samples should not requiere SWF

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

19 years ago2005-02-03 Zoltan Varga <vargaz@freemail.hu>
Zoltan Varga [Thu, 3 Feb 2005 16:22:24 +0000 (16:22 -0000)]
2005-02-03  Zoltan Varga  <vargaz@freemail.hu>

* mono-debug-debugger.c (get_exception_message): Use
mono_class_get_method_from_name_flags ().

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

19 years ago2005-02-03 Zoltan Varga <vargaz@freemail.hu>
Zoltan Varga [Thu, 3 Feb 2005 15:33:54 +0000 (15:33 -0000)]
2005-02-03  Zoltan Varga  <vargaz@freemail.hu>

* mini.c (mono_method_to_ir): Initialize pointer type locals correctly.
Fixes #72148.

* iltests.il: Add new test.

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

19 years ago2005-02-03 Zoltan Varga <vargaz@freemail.hu>
Zoltan Varga [Thu, 3 Feb 2005 15:33:37 +0000 (15:33 -0000)]
2005-02-03  Zoltan Varga  <vargaz@freemail.hu>

* mini.c (mono_method_to_ir): Initialize pointer type locals correctly.
Fixes #72148.

* iltests.il: Add new test.

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

19 years agoThu Feb 3 15:22:55 CET 2005 Paolo Molaro <lupus@ximian.com>
Paolo Molaro [Thu, 3 Feb 2005 14:10:48 +0000 (14:10 -0000)]
Thu Feb 3 15:22:55 CET 2005 Paolo Molaro <lupus@ximian.com>

* Module.cs: removed the finalizer and the now unused Close() icall.

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

19 years agoThu Feb 3 15:15:25 CET 2005 Paolo Molaro <lupus@ximian.com>
Paolo Molaro [Thu, 3 Feb 2005 14:02:56 +0000 (14:02 -0000)]
Thu Feb 3 15:15:25 CET 2005 Paolo Molaro <lupus@ximian.com>

* String.cs: provide a managed memcpy and memset method
for use both in corlib and from the JIT. Implement
some methods with the managed helpers and remove some icalls.

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

19 years agoListBox fixes
Jordi Mas i Hernandez [Thu, 3 Feb 2005 13:47:21 +0000 (13:47 -0000)]
ListBox fixes

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

19 years ago- Introduced static HandleData methods to allow class to be more
Peter Dennis Bartok [Thu, 3 Feb 2005 11:19:56 +0000 (11:19 -0000)]
- Introduced static HandleData methods to allow class to be more
  self-contained and track it's own HandleData objects
- Fixed up drivers to use new static HandleData methods

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

19 years ago2005-02-03 Sureshkumar T <tsureshkumar@novell.com>
Sureshkumar T [Thu, 3 Feb 2005 10:03:46 +0000 (10:03 -0000)]
2005-02-03  Sureshkumar T  <tsureshkumar@novell.com>

* ForeignKeyConstraintTest.cs: TestCtor5: ad-hoc fixes for mono.
ms.net does not allow fkc.Table. LAMESPEC.

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

19 years ago2005-02-03 Atsushi Enomoto <atsushi@ximian.com>
Atsushi Eno [Thu, 3 Feb 2005 09:55:41 +0000 (09:55 -0000)]
2005-02-03  Atsushi Enomoto  <atsushi@ximian.com>

* DataViewManagerTest.cs : (Ctor) okay, #7 is silly test.

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

19 years ago2005-02-03 Atsushi Enomoto <atsushi@ximian.com>
Atsushi Eno [Thu, 3 Feb 2005 09:47:23 +0000 (09:47 -0000)]
2005-02-03  Atsushi Enomoto  <atsushi@ximian.com>

* DataViewManager.cs: misuse of ReadStartElement(string).
* DataRowView.cs : removed some MonoTODO.

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

19 years agoModified project file to reflect new changes
Manjula GHM [Thu, 3 Feb 2005 09:44:19 +0000 (09:44 -0000)]
Modified project file to reflect new changes

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

19 years agoAdded Microsoft.VisualBasic project file
Manjula GHM [Thu, 3 Feb 2005 09:41:33 +0000 (09:41 -0000)]
Added Microsoft.VisualBasic project file

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

19 years ago2005-02-03 Sureshkumar T <tsureshkumar@novell.com>
Sureshkumar T [Thu, 3 Feb 2005 09:28:48 +0000 (09:28 -0000)]
2005-02-03  Sureshkumar T  <tsureshkumar@novell.com>

* SqlDateTime.cs : Parse : try with local culture first, then try
with invariant culture if it fails.

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

19 years agoModified Project and solution files to reflect new changes
Manjula GHM [Thu, 3 Feb 2005 09:26:45 +0000 (09:26 -0000)]
Modified Project and solution files to reflect new changes

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

19 years agoModified to reflect new changes
Manjula GHM [Thu, 3 Feb 2005 09:26:02 +0000 (09:26 -0000)]
Modified to reflect new changes

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

19 years agoModified to reflect new changes
Manjula GHM [Thu, 3 Feb 2005 09:25:18 +0000 (09:25 -0000)]
Modified to reflect new changes

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

19 years ago* Makefile (TEST_RESOURCES): New.
Raja R Harinath [Thu, 3 Feb 2005 06:01:34 +0000 (06:01 -0000)]
* Makefile (TEST_RESOURCES): New.
(EXTRA_DISTFILES): Distribute them.

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

19 years ago2005-02-03 Atsushi Enomoto <atsushi@ximian.com>
Atsushi Eno [Thu, 3 Feb 2005 04:28:24 +0000 (04:28 -0000)]
2005-02-03  Atsushi Enomoto <atsushi@ximian.com>

* ScriptCompilerInfo.cs : XsltCompileException->XsltException, just
  to make test pass.

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

19 years ago2005-02-03 Atsushi Enomoto <atsushi@ximian.com>
Atsushi Eno [Thu, 3 Feb 2005 03:03:46 +0000 (03:03 -0000)]
2005-02-03  Atsushi Enomoto  <atsushi@ximian.com>

* CSharpCodeCompiler.cs : On windows, use gmcs under 2.0 profile too.

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

19 years agopatch revering stupidity
Ben Maurer [Thu, 3 Feb 2005 02:11:31 +0000 (02:11 -0000)]
patch revering stupidity

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

19 years agoIn Test/System:
Ben Maurer [Thu, 3 Feb 2005 01:09:52 +0000 (01:09 -0000)]
In Test/System:
2005-02-02  Ben Maurer  <bmaurer@ximian.com>

* UriTest2.cs: Make this file use resources, not files. Helps with
distcheck.

In .:
2005-02-02  Ben Maurer  <bmaurer@ximian.com>

* Makefile: Embed the uri stuff as a resource.

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

19 years ago2005-02-02 Ben Maurer <bmaurer@ximian.com>
Ben Maurer [Wed, 2 Feb 2005 23:10:05 +0000 (23:10 -0000)]
2005-02-02  Ben Maurer  <bmaurer@ximian.com>
* reflection.c, appdomain.c: Replace a few manual searches that
Zoltan missed. (Paolo approved this part of my initial patch).

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

19 years ago * UnixFile.cs: Cope with changes in UnixStream.
Jonathan Pryor [Wed, 2 Feb 2005 22:41:55 +0000 (22:41 -0000)]
* UnixFile.cs: Cope with changes in UnixStream.
* UnixStream.cs: Change FileDescriptor property to Handle for consistency.
* StdioFileStream.cs: Change FileStream property to Handle for consistency.

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

19 years ago * Syscall.cs: Remove public sys_ methods. Some were public by mistake, and
Jonathan Pryor [Wed, 2 Feb 2005 22:35:41 +0000 (22:35 -0000)]
* Syscall.cs: Remove public sys_ methods.  Some were public by mistake, and
  others so that users could manually marshal strings if desired.  Manually
  marshaling strings shouldn't be necessary, though, so remove them too.

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

19 years ago2005-02-02 Zoltan Varga <vargaz@freemail.hu>
Zoltan Varga [Wed, 2 Feb 2005 22:25:25 +0000 (22:25 -0000)]
2005-02-02  Zoltan Varga  <vargaz@freemail.hu>

* X509CertificateCollectionTest.cs: Disable some tests which fail
on 2.0.

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

19 years agoempty region sample
Jordi Mas i Hernandez [Wed, 2 Feb 2005 20:33:57 +0000 (20:33 -0000)]
empty region sample

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

19 years ago2005-02-02 Zoltan Varga <vargaz@freemail.hu>
Zoltan Varga [Wed, 2 Feb 2005 19:48:05 +0000 (19:48 -0000)]
2005-02-02  Zoltan Varga  <vargaz@freemail.hu>

* GzipStreamTest.cs DeflateStreamTest.cs: Mark failing tests with
[Category("NotWorking")]

* ChangeLog: New file.

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

19 years agosvn path=/trunk/mcs/; revision=40003
Zoltan Varga [Wed, 2 Feb 2005 19:45:51 +0000 (19:45 -0000)]
svn path=/trunk/mcs/; revision=40003

19 years ago * Region.cs: The default region constructor creates and infinite
Jackson Harper [Wed, 2 Feb 2005 19:25:51 +0000 (19:25 -0000)]
* Region.cs: The default region constructor creates and infinite
region, not an empty one.

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

19 years ago2005-02-02 Sebastien Pouliot <sebastien@ximian.com>
Sebastien Pouliot [Wed, 2 Feb 2005 18:29:12 +0000 (18:29 -0000)]
2005-02-02  Sebastien Pouliot  <sebastien@ximian.com>

* cutcli.cs: New. SSL/TLS client that cut it's communication after
sending and/or receiving 'x' bytes from/to the server.
* ControlledNetworkStream.cs: A NetworkStream that can limit it's
read/write transfers.
* Makefile: Makefile for the new test tool.

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

19 years ago2005-02-02 Sebastien Pouliot <sebastien@ximian.com>
Sebastien Pouliot [Wed, 2 Feb 2005 18:25:16 +0000 (18:25 -0000)]
2005-02-02  Sebastien Pouliot  <sebastien@ximian.com>

* SslClientStream.cs: Throw exception when we receive a null record.
* RecordProtocol.cs: Added code to avoid blocking and endless loops
if the data is incomplete or missing - even in the case the server
side doesn't close the connection (see new cutcli tool).

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

19 years ago2005-02-02 Lluis Sanchez Gual <lluis@novell.com>
Lluis Sanchez [Wed, 2 Feb 2005 16:26:13 +0000 (16:26 -0000)]
2005-02-02  Lluis Sanchez Gual <lluis@novell.com>

* System.Web.dll.sources: Added some files to the build:
System.Web.UI.WebControls/CompositeControl.cs
System.Web.UI.WebControls/ControlPropertyNameConverter.cs

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

19 years ago2005-02-02 Lluis Sanchez Gual <lluis@novell.com>
Lluis Sanchez [Wed, 2 Feb 2005 16:25:31 +0000 (16:25 -0000)]
2005-02-02  Lluis Sanchez Gual  <lluis@novell.com>

* ControlPropertyNameConverter.cs: Added file.

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

19 years ago2005-02-02 Lluis Sanchez Gual <lluis@novell.com>
Lluis Sanchez [Wed, 2 Feb 2005 16:24:08 +0000 (16:24 -0000)]
2005-02-02  Lluis Sanchez Gual <lluis@novell.com>

* Button.cs, MonthChangedEventArgs.cs, FontInfo.cs, Xml.cs, Style.cs,
CookieParameter.cs, HyperLinkColumn.cs, Table.cs,
RegularExpressionValidator.cs, WizardNavigationEventArgs.cs,
ServerValidateEventArgs.cs, Menu.cs, DataControlField.cs,
DataGridPagerStyle.cs, Label.cs, CheckBox.cs, ListItem.cs,
RadioButton.cs, TableStyle.cs, ListControl.cs, Image.cs,
BaseCompareValidator.cs, FontUnit.cs, DataListCommandEventArgs.cs,
IButtonControl.cs, BaseDataList.cs, DataList.cs, BulletedList.cs,
RangeValidator.cs, DataBoundControl.cs, ControlParameter.cs,
RepeaterItemEventArgs.cs, SqlDataSource.cs, BaseValidator.cs,
CustomValidator.cs, MenuItem.cs, SessionParameter.cs, TextBox.cs,
QueryStringParameter.cs, Content.cs, ContentPlaceHolder.cs,
CheckBoxList.cs, RepeaterCommandEventArgs.cs, RadioButtonList.cs,
RequiredFieldValidator.cs, AdRotator.cs, DataListItemEventArgs.cs,
DataGridSortCommandEventArgs.cs, Repeater.cs,
MenuItemTemplateContainer.cs, HyperLink.cs, SqlDataSourceView.cs,
XmlDataSource.cs, MultiView.cs, DataGridCommandEventArgs.cs,
Panel.cs, CompositeControl.cs, DataGrid.cs, ButtonColumn.cs,
CompareValidator.cs, HierarchicalDataBoundControl.cs,
EditCommandColumn.cs, Calendar.cs, SiteMapDataSource.cs,
ListBox.cs, TableCell.cs, ObjectDataSourceSelectingEventArgs.cs,
ObjectDataSourceMethodEventArgs.cs,DataGridPageChangedEventArgs.cs,
WebControl.cs, BaseDataBoundControl.cs, FormParameter.cs,
ValidationSummary.cs, View.cs, ImageButton.cs, TableRow.cs,
LinkButton.cs, DataGridColumn.cs, Parameter.cs, TableItemStyle.cs,
AdCreatedEventArgs.cs:

General 2.0 API fixes: missing attributes, incorrect inheritance,
missing sealed keywords, wrong signatures, etc.

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

19 years ago2005-02-02 Lluis Sanchez Gual <lluis@novell.com>
Lluis Sanchez [Wed, 2 Feb 2005 16:22:40 +0000 (16:22 -0000)]
2005-02-02  Lluis Sanchez Gual <lluis@novell.com>

* ParseChildrenAttribute.cs: Set the correct default value for the
childType property.

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

19 years ago2005-02-02 Lluis Sanchez Gual <lluis@novell.com>
Lluis Sanchez [Wed, 2 Feb 2005 16:22:24 +0000 (16:22 -0000)]
2005-02-02  Lluis Sanchez Gual <lluis@novell.com>

* ProcessModelInfo.cs: Fixed warning.

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

19 years agoWed Feb 2 16:53:59 CET 2005 Paolo Molaro <lupus@ximian.com>
Paolo Molaro [Wed, 2 Feb 2005 15:39:54 +0000 (15:39 -0000)]
Wed Feb 2 16:53:59 CET 2005 Paolo Molaro <lupus@ximian.com>

* mini.c: fix typo.

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

19 years ago2005-02-02 Sureshkumar T <tsureshkumar@novell.com>
Sureshkumar T [Wed, 2 Feb 2005 15:39:00 +0000 (15:39 -0000)]
2005-02-02  Sureshkumar T  <tsureshkumar@novell.com>
    Ankit Jain     <radical@corewars.org>

* DataColumn.cs: throw exception if the column is part of a
relationship, when chaning the data type. Added methods
"GetParentRelation ()" and "GetChildRelation ()" get the relation
which contains the current column
* DataRelation.cs: Added method "Contains (DataColumn)" to check
whether the relation contains the given column.

fixes nunit failure: DataRelationTest.InvalidConstraintException2.

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

19 years agoWed Feb 2 16:37:13 CET 2005 Paolo Molaro <lupus@ximian.com>
Paolo Molaro [Wed, 2 Feb 2005 15:24:49 +0000 (15:24 -0000)]
Wed Feb 2 16:37:13 CET 2005 Paolo Molaro <lupus@ximian.com>

* mini.c: setup the statistical profiler in the thread attach
callback to cope with the new single thread code.

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

19 years agoWed Feb 2 16:32:08 CET 2005 Paolo Molaro <lupus@ximian.com>
Paolo Molaro [Wed, 2 Feb 2005 15:18:33 +0000 (15:18 -0000)]
Wed Feb 2 16:32:08 CET 2005 Paolo Molaro <lupus@ximian.com>

* profiler.c: disable recording statistical events at report time.

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

19 years agoWed Feb 2 15:43:58 CET 2005 Paolo Molaro <lupus@ximian.com>
Paolo Molaro [Wed, 2 Feb 2005 14:30:41 +0000 (14:30 -0000)]
Wed Feb 2 15:43:58 CET 2005 Paolo Molaro <lupus@ximian.com>

* mini-ppc.c: ensure we have enough room for the profiler
calls (fixed bug#72084).

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

19 years agoIn Test/System.Data:
Sureshkumar T [Wed, 2 Feb 2005 14:22:36 +0000 (14:22 -0000)]
In Test/System.Data:
2005-02-02  Sureshkumar T  <tsureshkumar@novell.com>

* DataTableTest.cs: ClearReset (): added valid error messages.

In System.Data:
* DataColumnCollection.cs: implemented todo item "check for
constraints" when removing columns from table.
* DataRowCollection.cs: Clear (): don't have to throw child key
constraint exception when the child table does not have any
rows. safe to remove parent rows.
* UniqueConstraint.cs: added method "Contains (DataColumn)" to
check whether a column is part of UniqueConstraint.
* ForeignKeyConstraint.cs: added method "Contains (DataColumn,
lookInParent)" to check whether a column is part of foreignkey.

fixes nunit failure: DataTableTest.ClearTest ()

2005-02-02  Sureshkumar T  <tsureshkumar@novell.com>

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

19 years ago * StdioFileStream.cs: Fix Length property to actually return the size of the
Jonathan Pryor [Wed, 2 Feb 2005 14:00:25 +0000 (14:00 -0000)]
  * StdioFileStream.cs: Fix Length property to actually return the size of the
    file, not the # of bytes from the current position to EOF.  Oops.

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

19 years agomore ComboBox and ListBox enhanments
Jordi Mas i Hernandez [Wed, 2 Feb 2005 13:11:01 +0000 (13:11 -0000)]
more ComboBox and ListBox enhanments

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

19 years agoWed Feb 2 14:14:00 CET 2005 Paolo Molaro <lupus@ximian.com>
Paolo Molaro [Wed, 2 Feb 2005 13:02:10 +0000 (13:02 -0000)]
Wed Feb 2 14:14:00 CET 2005 Paolo Molaro <lupus@ximian.com>

* icall.c: patch from Geoff Norton <gnorton@customerdna.com>
to byteswap arrays of enum values, too (bug #72080).

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

19 years agoOoooops.
Martin Baulig [Wed, 2 Feb 2005 12:16:22 +0000 (12:16 -0000)]
Ooooops.

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

19 years ago2005-02-02 Zoltan Varga <vargaz@freemail.hu>
Zoltan Varga [Wed, 2 Feb 2005 12:13:54 +0000 (12:13 -0000)]
2005-02-02  Zoltan Varga  <vargaz@freemail.hu>

* appdomain.c (set_domain_search_path): Allow this to be called if
domain->setup is not yet set.

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

19 years ago2005-02-02 Martin Baulig <martin@ximian.com>
Martin Baulig [Wed, 2 Feb 2005 12:11:18 +0000 (12:11 -0000)]
2005-02-02  Martin Baulig  <martin@ximian.com>

* delegate.cs (Delegate.DefineType): Report an internal error if
TypeManager.multicast_delegate_type is null.  See bug #72015 for
details.

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

19 years ago2005-02-02 Martin Baulig <martin@ximian.com>
Martin Baulig [Wed, 2 Feb 2005 12:10:15 +0000 (12:10 -0000)]
2005-02-02  Martin Baulig  <martin@ximian.com>

* delegate.cs (Delegate.DefineType): Report an internal error if
TypeManager.multicast_delegate_type is null.  See bug #72015 for
details.

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

19 years ago2005-02-02 Sureshkumar T <tsureshkumar@novell.com>
Sureshkumar T [Wed, 2 Feb 2005 11:42:13 +0000 (11:42 -0000)]
2005-02-02  Sureshkumar T  <tsureshkumar@novell.com>

* ForeignKeyConstraint.cs: validating columns: move checking
"tables are of same dataset" before "checking column types".

fixes nunit failure: ForeignKeyConstraint.CtorExceptions.

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

19 years ago2005-02-02 Sureshkumar T <tsureshkumar@novell.com>
Sureshkumar T [Wed, 2 Feb 2005 11:10:48 +0000 (11:10 -0000)]
2005-02-02  Sureshkumar T  <tsureshkumar@novell.com>

* TdsConnectionParameters.cs: added a method Reset to initialize
parameters again.

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

19 years ago2005-02-02 Atsushi Enomoto <atsushi@ximian.com>
Atsushi Eno [Wed, 2 Feb 2005 11:09:18 +0000 (11:09 -0000)]
2005-02-02  Atsushi Enomoto  <atsushi@ximian.com>

* DataViewManager.cs : let's just use StringWriter instead of
  XmlTextWriter (to avoid empty tag string mismatch annoyance.)
* DataView.cs : implemented BeginInit() and EndInit(). Don't update
  rows during init phase until EndInit() is invoked. During init phase,
  just hold properties such as Sort that affects on rows.

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

19 years ago2005-02-02 Zoltan Varga <vargaz@freemail.hu>
Zoltan Varga [Wed, 2 Feb 2005 10:49:49 +0000 (10:49 -0000)]
2005-02-02  Zoltan Varga  <vargaz@freemail.hu>

* loader.c (mono_method_get_index): New helper function.

* loader.c reflection.c: Use mono_method_get_index ().

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

19 years ago2005-02-02 Sureshkumar T <tsureshkumar@novell.com>
Sureshkumar T [Wed, 2 Feb 2005 10:42:30 +0000 (10:42 -0000)]
2005-02-02  Sureshkumar T  <tsureshkumar@novell.com>

* SqlConnection.cs:
- Database: return db name from database if connection open,
otherwise take from connection string.
- Set default values for parameters in the constructor itself.
- Dangling else problem with Close method.
- reset values of parms (TdsConnectionParameters) rather setting
to null.
- set disposed to false in Open method
- finally call base.Dispose in Dispose (bool)

Fixes nunit regressions SqlConnectionTest:DefaultConnectionValues
and SqlConnectionTest:DatabaseSynonyms.

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

19 years agoIn System.Data.ProviderBase:
Sureshkumar T [Wed, 2 Feb 2005 10:36:06 +0000 (10:36 -0000)]
In System.Data.ProviderBase:
2005-02-02  Sureshkumar T  <tsureshkumar@novell.com>

* DbConnectionBase.cs: Implement Dispose Pattern

In System.Data.Common:
2005-02-02  Sureshkumar T  <tsureshkumar@novell.com>

* DbConnection.cs: Implement Dispose pattern.

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

19 years ago2005-02-02 Zoltan Varga <vargaz@freemail.hu>
Zoltan Varga [Wed, 2 Feb 2005 10:19:01 +0000 (10:19 -0000)]
2005-02-02  Zoltan Varga  <vargaz@freemail.hu>

* aot.c: Get rid of the MonoAotMethod structure and the hashtable holding
it.

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

19 years agoFix a crasher in a variant of #31984.
Raja R Harinath [Wed, 2 Feb 2005 10:04:44 +0000 (10:04 -0000)]
Fix a crasher in a variant of #31984.
* mcs/const.cs (Constant.CheckBase): New override that defers the
new-or-override check in case the base type hasn't been populated yet.
(Constant.Define): Ensure the new-or-override check is performed.
* tests/test-341.cs: Update to reflect fix of compiler crash.
* errors/cs0108-12.cs: New test.  Ensure that cs0108 handling occurs when
a constant is defined ahead of time due to forward references.

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

19 years ago2005-02-02 Zoltan Varga <vargaz@freemail.hu>
Zoltan Varga [Wed, 2 Feb 2005 09:49:36 +0000 (09:49 -0000)]
2005-02-02  Zoltan Varga  <vargaz@freemail.hu>

* class.c (mono_class_get_method_from_name_flags): New helper method.

* debug-helpers.h debug-helpers.c (mono_find_method_by_name): Remove
this.

* class.c (mono_class_get_cctor): New helper method.

* string-icalls.c object.c class.c marshal.c reflection.c: Use
mono_class_get_method () to look up methods.

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

19 years ago2005-02-02 Atsushi Enomoto <atsushi@ximian.com>
Atsushi Eno [Wed, 2 Feb 2005 09:21:48 +0000 (09:21 -0000)]
2005-02-02  Atsushi Enomoto  <atsushi@ximian.com>

* System.Data_test.dll.sources : added DataViewManagerTest.cs.

* DataViewManagerTest.cs : new file.

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

19 years ago2005-02-02 Atsushi Enomoto <atsushi@ximian.com>
Atsushi Eno [Wed, 2 Feb 2005 08:52:58 +0000 (08:52 -0000)]
2005-02-02  Atsushi Enomoto  <atsushi@ximian.com>

* DataTableCollection.cs : (RemoveAt) just use IndexOutOfRangeException.

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

19 years ago2005-02-02 Atsushi Enomoto <atsushi@ximian.com>
Atsushi Eno [Wed, 2 Feb 2005 08:42:44 +0000 (08:42 -0000)]
2005-02-02  Atsushi Enomoto  <atsushi@ximian.com>

* DataView.cs : DataRowView.EndEdit() raises ItemMoved event.
  set_Table clears Sort and RowFilter.

* DataViewTest.cs : Enable ComplexEventSequence1().
  - Right now don't test ApplyDefaultSort event.
  - Also row order between identical values depends on implementation.

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

19 years ago2005-02-02 Atsushi Enomoto <atsushi@ximian.com>
Atsushi Eno [Wed, 2 Feb 2005 08:12:32 +0000 (08:12 -0000)]
2005-02-02  Atsushi Enomoto  <atsushi@ximian.com>

* DataView.cs :
  - Clear() should clear AddNew cache.
  - Open() invokes Reset().
  - ConstraintCollectionChanged() itself does not invoke OnListChanged().
  - Reset() does not Open, Close and Update Index.
  - UpdateIndex() can be invoked even if it has no table.
  - Reset event is invoked always after actual query to table.
  - set_Table should raise PropertyDescriptorChanged event.

* DataViewTest.cs : added practical event handling tests (though
  NotWorking since it is still not complete).

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

19 years ago* library.make (run-test-lib): Use $(LOCAL_TEST_HARNESS_FLAGS).
Raja R Harinath [Wed, 2 Feb 2005 06:02:48 +0000 (06:02 -0000)]
* library.make (run-test-lib): Use $(LOCAL_TEST_HARNESS_FLAGS).
(run-test-ondotnet-lib): Use $(LOCAL_TEST_HARNESS_ONDOTNET_FLAGS).

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

19 years agoSmall correction in the Test case file : 'ImpConversionDatetoStringA.vb'
Satya Sudha K [Wed, 2 Feb 2005 04:45:46 +0000 (04:45 -0000)]
Small correction in the Test case file : 'ImpConversionDatetoStringA.vb'
by Sudharsan V
Corrected the date and copyright in other files

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

19 years ago2005-02-02 Atsushi Enomoto <atsushi@ximian.com>
Atsushi Eno [Wed, 2 Feb 2005 03:32:13 +0000 (03:32 -0000)]
2005-02-02  Atsushi Enomoto  <atsushi@ximian.com>

* DataView.cs : ColumnCollectionChanged() is the event invoker (i.e.
  when overriden, no column change events are fired).

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

19 years ago2005-02-02 Atsushi Enomoto <atsushi@ximian.com>
Atsushi Eno [Wed, 2 Feb 2005 02:06:04 +0000 (02:06 -0000)]
2005-02-02  Atsushi Enomoto  <atsushi@ximian.com>

* DataView.cs : CancelEditRowView() and DeleteRowView() was incorrectly
  checking target tables. They also should raise events if required.

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

19 years ago * ThemeWin32Classic.cs: quick fix to comboboxbutton pushed painting
John BouAntoun [Wed, 2 Feb 2005 02:03:08 +0000 (02:03 -0000)]
 * ThemeWin32Classic.cs: quick fix to comboboxbutton pushed painting

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

19 years ago2005-02-02 Atsushi Enomoto <atsushi@ximian.com>
Atsushi Eno [Wed, 2 Feb 2005 01:57:02 +0000 (01:57 -0000)]
2005-02-02  Atsushi Enomoto  <atsushi@ximian.com>

* DataView.cs : simplify code with UnsortedList.

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

19 years ago2005-02-01 Duncan Mak <duncan@ximian.com>
Duncan Mak [Tue, 1 Feb 2005 23:33:30 +0000 (23:33 -0000)]
2005-02-01  Duncan Mak  <duncan@ximian.com>

* const.cs (LookupConstantValue): Check that `ce' is not null
before calling GetValue ().

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

19 years agoPatch from Ben S. Stahlhood II (bstahlhood@gmail.com)
Miguel de Icaza [Tue, 1 Feb 2005 23:04:19 +0000 (23:04 -0000)]
Patch from Ben S. Stahlhood II (bstahlhood@gmail.com)

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

19 years ago2005-02-01 Gonzalo Paniagua Javier <gonzalo@ximian.com>
Gonzalo Paniagua Javier [Tue, 1 Feb 2005 22:28:18 +0000 (22:28 -0000)]
2005-02-01 Gonzalo Paniagua Javier <gonzalo@ximian.com>

* TraceContext.cs: writing a message without any other argument is not
a warniing. Fixes bug #72017.

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

19 years ago2005-02-01 Gonzalo Paniagua Javier <gonzalo@ximian.com>
Gonzalo Paniagua Javier [Tue, 1 Feb 2005 22:20:49 +0000 (22:20 -0000)]
2005-02-01 Gonzalo Paniagua Javier <gonzalo@ximian.com>

* FormsAuthenticationModule.cs: allow accessing other files in the
directory where the login page is. Fixes bug #71871.

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

19 years ago2005-02-01 Atsushi Enomoto <atsushi@ximian.com>
Atsushi Eno [Tue, 1 Feb 2005 21:09:00 +0000 (21:09 -0000)]
2005-02-01  Atsushi Enomoto  <atsushi@ximian.com>

* DataView.cs : Mostly reimplemented.
  - UpdateIndex() is invoked only when it is required (results in
    significant performance improvement).
  - Use SortedList and wrapper OptionalSortedList which switches
    between SortedList (with Sort) and UnsortedList (without Sort).
  - DataView itself now contains two collections for rowviews:
    Table rows based pool and AddNew() based cache. Consider those
    two collections in every members.
  - Reset() does not clear rows. Just invokes UpdateIndex().
  - Hook RowDeleting, ColumnChanging and ColumnChanged events in table
    which is required to handle state changes.
  - Reimplemented Find() and FindRows() because of internal changes.

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

19 years ago * driver.c: Re-enabled SSAPRE (this time for real).
Massimiliano Mantione [Tue, 1 Feb 2005 21:00:35 +0000 (21:00 -0000)]
* driver.c: Re-enabled SSAPRE (this time for real).

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

19 years ago2005-02-01 Atsushi Enomoto <atsushi@ximian.com>
Atsushi Eno [Tue, 1 Feb 2005 20:49:15 +0000 (20:49 -0000)]
2005-02-01  Atsushi Enomoto  <atsushi@ximian.com>

* DataTable.cs : Fixed row comparer. Even if every of the sort target
  columns are identical for two rows, they should not be regarded as
  the same unless they are Object.ReferenceEquals.

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

19 years ago * driver.c: Re-enabled SSAPRE.
Massimiliano Mantione [Tue, 1 Feb 2005 20:38:12 +0000 (20:38 -0000)]
* driver.c: Re-enabled SSAPRE.

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

19 years ago * ssapre.c: Fixed an issue with down safety (this allows IronPython
Massimiliano Mantione [Tue, 1 Feb 2005 20:36:20 +0000 (20:36 -0000)]
* ssapre.c: Fixed an issue with down safety (this allows IronPython
to succesfully execute parrotbench).
* ssapre.h: Likewise.

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

19 years ago * ssa.c: In mono_ssa_rename_vars, forced the creation of a new SSA
Massimiliano Mantione [Tue, 1 Feb 2005 20:34:04 +0000 (20:34 -0000)]
* ssa.c: In mono_ssa_rename_vars, forced the creation of a new SSA
variable for stores to method arguments (fixes a SSAPRE issue).

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

19 years agofixes serveral comboboxes issues
Jordi Mas i Hernandez [Tue, 1 Feb 2005 19:46:54 +0000 (19:46 -0000)]
fixes serveral comboboxes issues

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

19 years ago2005-02-01 Atsushi Enomoto <atsushi@ximian.com>
Atsushi Eno [Tue, 1 Feb 2005 18:42:42 +0000 (18:42 -0000)]
2005-02-01  Atsushi Enomoto  <atsushi@ximian.com>

* DataTableTest.cs : added RowChanging event test.
* DataViewTest.cs : make sure to clear event args.

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

19 years ago2005-02-01 Atsushi Enomoto <atsushi@ximian.com>
Atsushi Eno [Tue, 1 Feb 2005 18:32:18 +0000 (18:32 -0000)]
2005-02-01  Atsushi Enomoto  <atsushi@ximian.com>

* DataRowCollection.cs : on adding a row, should raise
  ChangingDataRow() as well as ChangedDataRow().

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

19 years ago2005-02-01 Zoltan Varga <vargaz@freemail.hu>
Zoltan Varga [Tue, 1 Feb 2005 16:40:19 +0000 (16:40 -0000)]
2005-02-01  Zoltan Varga  <vargaz@freemail.hu>

* library.make (run-test-lib): Exclude InetAccess tests.

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

19 years ago2005-02-01 Zoltan Varga <vargaz@freemail.hu>
Zoltan Varga [Tue, 1 Feb 2005 16:38:26 +0000 (16:38 -0000)]
2005-02-01  Zoltan Varga  <vargaz@freemail.hu>

* HttpWebRequestTest.cs ServicePointManagerTest.cs ServicePointTest.cs:
Mark some tests with [Caregory ("InetAccess")].

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

19 years ago2005-02-01 Zoltan Varga <vargaz@freemail.hu>
Zoltan Varga [Tue, 1 Feb 2005 16:36:47 +0000 (16:36 -0000)]
2005-02-01  Zoltan Varga  <vargaz@freemail.hu>

* SocketTest.cs: Mark some tests with [Category ("InetAccess")].

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

19 years ago* UnixUserTest.cs (UnixUserTest.ReentrantConstructors): Don't
Raja R Harinath [Tue, 1 Feb 2005 15:10:02 +0000 (15:10 -0000)]
* UnixUserTest.cs (UnixUserTest.ReentrantConstructors): Don't
assume userid<->username mapping is a bijection.
(UnixUserTest.NonReentrantSyscalls): Likewise.

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

19 years agofixes 71946 and 71950 and other issues
Jordi Mas i Hernandez [Tue, 1 Feb 2005 15:09:15 +0000 (15:09 -0000)]
fixes 71946 and 71950 and other issues

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

19 years agoTue Feb 1 15:52:26 CET 2005 Paolo Molaro <lupus@ximian.com>
Paolo Molaro [Tue, 1 Feb 2005 14:41:26 +0000 (14:41 -0000)]
Tue Feb 1 15:52:26 CET 2005 Paolo Molaro <lupus@ximian.com>

* mini.c: handle value types in dup, fixes gen-112.cs.

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

19 years ago2005-02-30 Sebastien Pouliot <sebastien@ximian.com>
Sebastien Pouliot [Tue, 1 Feb 2005 13:28:44 +0000 (13:28 -0000)]
2005-02-30  Sebastien Pouliot  <sebastien@ximian.com>

* library.make: Exclude CAS category from run-test-ondotnet.

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

19 years ago* Makefile (EXTRA_DISTFILES): Distribute the resource files too.
Raja R Harinath [Tue, 1 Feb 2005 13:25:55 +0000 (13:25 -0000)]
* Makefile (EXTRA_DISTFILES): Distribute the resource files too.

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

19 years ago* get.c (get_method_core): Use mono_method_signature (mh), not mh->signature.
Raja R Harinath [Tue, 1 Feb 2005 12:14:35 +0000 (12:14 -0000)]
* get.c (get_method_core): Use mono_method_signature (mh), not mh->signature.

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

19 years agoFix test-334.cs (#69519).
Raja R Harinath [Tue, 1 Feb 2005 11:57:25 +0000 (11:57 -0000)]
Fix test-334.cs (#69519).
* cs-parser.jay (using_alias_directive): Pass in an expression to
NamespaceEntry.UsingAlias.
(using_namespace_directive): Pass in an expression to NamespaceEntry.Using.
(namespace_name): Don't flatten to a string.
* namespace.cs (NamespaceEntry.AliasEntry): Store an expression.
(NamespaceEntry.AliasEntry.Resolve): Lookup using ResolveAsTypeStep.
(NamespaceEntry.UsingEntry): Likewise.
(NamespaceEntry.Using,NamespaceEntry.UsingAlias): Update to changes.
(NamespaceEntry.LookupForUsing): Remove.
(NamespaceEntry.LookupNamespaceOrType): Add support for dotted names.
(NamespaceEntry.Lookup): Remove support for dotted names.

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

19 years agoTue Feb 1 11:45:19 CET 2005 Paolo Molaro <lupus@ximian.com>
Paolo Molaro [Tue, 1 Feb 2005 10:32:46 +0000 (10:32 -0000)]
Tue Feb 1 11:45:19 CET 2005 Paolo Molaro <lupus@ximian.com>

* mini-ppc.c, cpu-g4.md, tramp-ppc.c: use a slower code
sequence for calls in dynamic methods to avoid thunks.

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