mono.git
18 years ago2005-12-20 Sebastien Pouliot <sebastien@ximian.com>
Sebastien Pouliot [Tue, 20 Dec 2005 13:58:22 +0000 (13:58 -0000)]
2005-12-20  Sebastien Pouliot  <sebastien@ximian.com>

* List.cs: Applied Atsushi's patch for Sort (bug 76361) now that the
generic versions of Array.Sort are implemented.

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

18 years ago2005-12-20 Zoltan Varga <vargaz@gmail.com>
Zoltan Varga [Tue, 20 Dec 2005 12:57:52 +0000 (12:57 -0000)]
2005-12-20  Zoltan Varga  <vargaz@gmail.com>

* marshal.c (emit_struct_conv): Add a check for fields with the same
offset.

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

18 years ago2005-12-20 Senganal T <tsenganal@novell.com>
Senganal T [Tue, 20 Dec 2005 12:24:21 +0000 (12:24 -0000)]
2005-12-20 Senganal T <tsenganal@novell.com>

* Mono.Data.SqlExpressions/Aggregation.cs :
Modified the Eval and CalculateStatisticalFunction to add boundary checks.
Fixes #77025.
* Test/System.Data/DataColumnTest.cs : added testcase for #77025

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

18 years agoFix regression in Mono.C5.
Raja R Harinath [Tue, 20 Dec 2005 12:07:34 +0000 (12:07 -0000)]
Fix regression in Mono.C5.
* class.c (mono_class_create_generic): If 'klass' is an interface
set up the interface offsets.
(mono_class_is_assignable_from): Don't throw away generic arguments.

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

18 years ago* TypeTest.cs (IsAssignable): New. Test Type.IsAssignableFrom for generic types.
Raja R Harinath [Tue, 20 Dec 2005 12:00:49 +0000 (12:00 -0000)]
* TypeTest.cs (IsAssignable): New.  Test Type.IsAssignableFrom for generic types.

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

18 years ago* TypeTest.cs (FullNameGenerics): Add tests for AssemblyQualifiedName.
Raja R Harinath [Tue, 20 Dec 2005 11:35:30 +0000 (11:35 -0000)]
* TypeTest.cs (FullNameGenerics): Add tests for AssemblyQualifiedName.

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

18 years ago2005-12-20 Carlos Alberto Cortez <calberto.cortez@gmail.com>
Carlos Alberto Cortez [Tue, 20 Dec 2005 08:19:33 +0000 (08:19 -0000)]
2005-12-20  Carlos Alberto Cortez <calberto.cortez@gmail.com>

* Array.cs: Added the Sort<T> methods (generics).

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

18 years agoFix #77035.
Raja R Harinath [Tue, 20 Dec 2005 08:04:04 +0000 (08:04 -0000)]
Fix #77035.
* mcs/expression.cs (ComposedCast.GetSignatureForError): Define.
* errors/cs0628-3.cs: New test based on #77035.

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

18 years agoEnable
Raja R Harinath [Tue, 20 Dec 2005 08:00:56 +0000 (08:00 -0000)]
Enable

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

18 years agoFix LDAP with https support patch from Loren Bandiera
Miguel de Icaza [Tue, 20 Dec 2005 05:15:53 +0000 (05:15 -0000)]
Fix LDAP with https support patch from Loren Bandiera

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

18 years ago* InternalWindowManager.cs:
Jackson Harper [Tue, 20 Dec 2005 03:02:13 +0000 (03:02 -0000)]
* InternalWindowManager.cs:
        * MdiWindowManager.cs: Cleanup some coordinate system changes so
        moving windows works properly.

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

18 years ago2005-12-19 Peter Dennis Bartok <pbartok@novell.com>
Peter Dennis Bartok [Tue, 20 Dec 2005 02:24:29 +0000 (02:24 -0000)]
2005-12-19  Peter Dennis Bartok  <pbartok@novell.com>

* Control.cs:
  - Removed call to InitLayout() from SetBoundsCore(); doc says
    it's only called when a control is added to a container
  - Split InitLayout logic, moved to separate UpdateDistances() method
    since we need to perform those calculations more often than just
    when adding the control to a container. (Needed to fix #77022)
  - Now calling UpdateDistances() from UpdateBounds() (fixes #77022)
  - Reduced the OnBindingContextChanged events count, don't send them
    unless the control is created, we still aren't totally matching
    MS, but I can't quite figure out some of their rules

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

18 years ago2005-12-19 Peter Dennis Bartok <pbartok@novell.com>
Peter Dennis Bartok [Tue, 20 Dec 2005 02:21:40 +0000 (02:21 -0000)]
2005-12-19  Peter Dennis Bartok  <pbartok@novell.com>

* Graphics.cs (Flush): Make sure nativeObject is not null

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

18 years ago * ThemeClearlooks.cs: Corrected distance between ProgressBar
Alexander Olk [Mon, 19 Dec 2005 21:33:58 +0000 (21:33 -0000)]
* ThemeClearlooks.cs: Corrected distance between ProgressBar
  stripes

2005-12-18  Alexander Olk  <alex.olk@googlemail.com>

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

18 years ago* Mono.Cairo/Makefile: Fix EXTRA_DIST to include samples in
Wade Berrier [Mon, 19 Dec 2005 20:48:03 +0000 (20:48 -0000)]
* Mono.Cairo/Makefile: Fix EXTRA_DIST to include samples in
make dist tarball

Fix #76138

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

18 years ago2005-12-19 Peter Dennis Bartok <pbartok@novell.com>
Peter Dennis Bartok [Mon, 19 Dec 2005 20:30:34 +0000 (20:30 -0000)]
2005-12-19  Peter Dennis Bartok  <pbartok@novell.com>

* Mono.Cairo/Format.cs: Removed fixme, added names in .Net format
* Mono.Cairo/Surface.cs: Removed fixme, added static method
  FromBitmap() to allow creating a surface from a bitmap
* Mono.Cairo/Pattern.cs: Removed fixme to not tempt anyone to change
  the name down the road

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

18 years ago2005-12-18 Alexander Olk <alex.olk@googlemail.com>
Alexander Olk [Mon, 19 Dec 2005 19:55:26 +0000 (19:55 -0000)]
2005-12-18  Alexander Olk  <alex.olk@googlemail.com>

* ThemeClearlooks.cs:
  - Updated ProgressBar drawing
  - Corrected drawing of ScrollBars and scroll buttons
  - Some temporary fixes for minor pixel artefacts

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

18 years ago2005-12-19 Sebastien Pouliot <sebastien@ximian.com>
Sebastien Pouliot [Mon, 19 Dec 2005 19:33:40 +0000 (19:33 -0000)]
2005-12-19  Sebastien Pouliot  <sebastien@ximian.com>

* Dictionary.cs: Added [Serializable] attribute to both inner
Enumerator struct in Key and Value inner collection classes.
* EqualityComparer.cs: Added missing IEqualityComparer interface.
* List.cs: Added [Serializable] attribute to both inner Enumerator
struct.

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

18 years ago2005-12-19 Zoltan Varga <vargaz@gmail.com>
Zoltan Varga [Mon, 19 Dec 2005 19:26:51 +0000 (19:26 -0000)]
2005-12-19  Zoltan Varga  <vargaz@gmail.com>

* monoburg.c (create_term): Fix warning.

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

18 years ago2005-12-19 Sebastien Pouliot <sebastien@ximian.com>
Sebastien Pouliot [Mon, 19 Dec 2005 17:16:57 +0000 (17:16 -0000)]
2005-12-19  Sebastien Pouliot  <sebastien@ximian.com>

* Dictionary.cs: Fixed ICollection.CopyTo to use DictionaryEntry. Fixed
Key and Value CopyTo not to throw exception if the dictionary is empty
(fix bug #77019).

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

18 years ago * DictionaryTest.cs: Added test cases for CopyTo, including a test for
Sebastien Pouliot [Mon, 19 Dec 2005 17:16:52 +0000 (17:16 -0000)]
* DictionaryTest.cs: Added test cases for CopyTo, including a test for
DictionaryEntry.
* ListTest.cs: Added test case for #77019 when copying from an empty
dictionary.

2005-12-19  Sebastien Pouliot  <sebastien@ximian.com>

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

18 years agoRemoved debugging CWL that shows during normal execution.
Sebastien Pouliot [Mon, 19 Dec 2005 16:08:36 +0000 (16:08 -0000)]
Removed debugging CWL that shows during normal execution.

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

18 years agoArrayTest.cs: Added test cases for a binary search with an empty list (bug #77030...
Sebastien Pouliot [Mon, 19 Dec 2005 16:03:19 +0000 (16:03 -0000)]
ArrayTest.cs: Added test cases for a binary search with an empty list (bug #77030). Fixed other test cases so they execute without failures under MS 2.0. Removed test cases for API changes in 2.0 final.

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

18 years ago2005-12-19 Sebastien Pouliot <sebastien@ximian.com>
Sebastien Pouliot [Mon, 19 Dec 2005 16:01:17 +0000 (16:01 -0000)]
2005-12-19  Sebastien Pouliot  <sebastien@ximian.com>

* ArrayListTest.cs: Added test cases for a binary search with an empty
list (bug #77030). Fixed other test cases so they execute without
failures under MS 2.0.

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

18 years ago2005-12-19 Sebastien Pouliot <sebastien@ximian.com>
Sebastien Pouliot [Mon, 19 Dec 2005 15:59:45 +0000 (15:59 -0000)]
2005-12-19  Sebastien Pouliot  <sebastien@ximian.com>

* ListTest.cs: Added test case for a binary search with an empty list
(bug #77030). Removed IsReadOnly test case as this isn't part of the
public API anymore.

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

18 years ago2005-12-19 Sebastien Pouliot <sebastien@ximian.com>
Sebastien Pouliot [Mon, 19 Dec 2005 15:57:59 +0000 (15:57 -0000)]
2005-12-19  Sebastien Pouliot  <sebastien@ximian.com>

* Collection.cs: IsReadOnly property isn't public in 2.0 final.
* ReadOnlyCollection.cs: Fixed API to match 2.0 final.

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

18 years ago2005-12-19 Sebastien Pouliot <sebastien@ximian.com>
Sebastien Pouliot [Mon, 19 Dec 2005 15:56:10 +0000 (15:56 -0000)]
2005-12-19  Sebastien Pouliot  <sebastien@ximian.com>

* List.cs: Fix exception reporting to match MS behaviour (2.0 final).

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

18 years ago2005-12-19 Sebastien Pouliot <sebastien@ximian.com>
Sebastien Pouliot [Mon, 19 Dec 2005 15:55:19 +0000 (15:55 -0000)]
2005-12-19  Sebastien Pouliot  <sebastien@ximian.com>

* ArrayList.cs: Fix default capacity under 2.0 (and unit tests under
MS 2.0).

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

18 years agoArray.cs: Fixed BinarySearch when the array is empty (#77030). Added some null check...
Sebastien Pouliot [Mon, 19 Dec 2005 15:54:00 +0000 (15:54 -0000)]
Array.cs: Fixed BinarySearch when the array is empty (#77030). Added some null check which throws ArgumentNullException under 2.0.

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

18 years ago2005-12-19 Zoltan Varga <vargaz@gmail.com>
Zoltan Varga [Mon, 19 Dec 2005 14:19:38 +0000 (14:19 -0000)]
2005-12-19  Zoltan Varga  <vargaz@gmail.com>

* basic-float.cs: Add float<->long conversion tests.

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

18 years ago* icall.c (ves_icall_System_MonoType_getFullName): Return NULL for
Raja R Harinath [Mon, 19 Dec 2005 10:15:40 +0000 (10:15 -0000)]
* icall.c (ves_icall_System_MonoType_getFullName): Return NULL for
type parameters.

Fix regression on Type.FullName and Type.AssemblyQualifiedName

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

18 years ago** merged revision 54585 from mcs
Raja R Harinath [Mon, 19 Dec 2005 10:13:56 +0000 (10:13 -0000)]
** merged revision 54585 from mcs

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

18 years agomerge -r 54593:54594
Konstantin Triger [Mon, 19 Dec 2005 09:27:43 +0000 (09:27 -0000)]
merge -r 54593:54594

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

18 years agoAdded MonoTODO attributes.
Boris Kirzner [Mon, 19 Dec 2005 08:31:35 +0000 (08:31 -0000)]
Added MonoTODO attributes.

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

18 years ago2005-12-19 Daniel Morgan <danielmorgan@verizon.net>
Daniel Morgan [Mon, 19 Dec 2005 04:57:55 +0000 (04:57 -0000)]
2005-12-19  Daniel Morgan <danielmorgan@verizon.net>

* System.Data.OracleClient/OracleConnectionPoolManager.cs
* System.Data.OracleClient/OracleConnectionPool.cs
* System.Data.OracleClient/OracleConnection.cs: for connection pooling, need to
dispose of any connection pools properly otherwise a SEGSIGV may happen trying
to detach from the server during finalization at exit of app

* System.Data.OracleClient/OracleDataReader.cs: need to make sure statement and command
exists during dispose because they are set to null when closed

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

18 years ago2005-12-18 Carlos Alberto Cortez <calberto.cortez@gmail.com>
Carlos Alberto Cortez [Mon, 19 Dec 2005 03:39:35 +0000 (03:39 -0000)]
2005-12-18  Carlos Alberto Cortez <calberto.cortez@gmail.com>

* test-externalias-09.cs: New test for #76995

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

18 years ago2005-12-18 Carlos Alberto Cortez <calberto.cortez@gmail.com>
Carlos Alberto Cortez [Mon, 19 Dec 2005 03:34:32 +0000 (03:34 -0000)]
2005-12-18 Carlos Alberto Cortez <calberto.cortez@gmail.com>

Fix #76995

* namespace.cs (NamespaceEntry): Add extern_aliases as a
ListDictionary, to contain the ExternAliasEntry entries (in
addition to the NamespaceEntry.aliases hashtable). This field is
shared between the original entry and its doppelganger (bodyless
copy of it).
(NamespaceEntry.UsingExternalAlias): Add the extern alias entry to
extern_aliases field.
(NamespaceEntry.Lookup): Move the IsImplicit check after the
lookup in extern_aliases.

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

18 years ago2005-12-18 Peter Dennis Bartok <pbartok@novell.com>
Peter Dennis Bartok [Sun, 18 Dec 2005 23:59:45 +0000 (23:59 -0000)]
2005-12-18  Peter Dennis Bartok  <pbartok@novell.com>

* Control.cs:
  - Reworked Controls.Add(), Controls.Remove() and set_Parent() to
    cause events to be sent in the same order as MS does.
  - Added ChangeParent() method to trigger various OnXXXChanged events
    that need to be fired when a parent changes (This is a reworking
    of the patch from r54254, with the X11 errors fixed)
  - Removed SuspendLayout()/ResumeLayout() calls from Controls.Clear()
    since on MS we get OnLayoutChanged events when calling Clear()
  - Changed Enabled property to consider parent state as well, if a
    parent is not enabled, the control will not be either
  - Changed Parent property to simply call Controls.Add() since that
    now does all the work required, this way we avoid code duplication
  - Threw in a few OnBindingsContextChanged calls to try and match
    when MS sends them. We seem to send a few too many, though.
  - Added call to CreateControl when adding the control to a parent.
    We were never calling CreateControl. Still needs some work, in
    some places we treat HandleCreated and ControlCreated as equal,
    which is wrong
  - Removed obsolete commented out code from UpdateZOrder()

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

18 years ago2005-12-18 Alexander Olk <alex.olk@googlemail.com>
Alexander Olk [Sun, 18 Dec 2005 16:00:30 +0000 (16:00 -0000)]
2005-12-18  Alexander Olk  <alex.olk@googlemail.com>

* ThemeClearlooks.cs: Updated TrackBar drawing.

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

18 years ago* TypeTest.cs (FullNameGenerics): Identify individual assertions.
Raja R Harinath [Sun, 18 Dec 2005 12:33:36 +0000 (12:33 -0000)]
* TypeTest.cs (FullNameGenerics): Identify individual assertions.

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

18 years agofixing exception messages
Konstantin Triger [Sun, 18 Dec 2005 10:55:04 +0000 (10:55 -0000)]
fixing exception messages

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

18 years agoQuote '[]' properly.
Raja R Harinath [Sun, 18 Dec 2005 09:18:41 +0000 (09:18 -0000)]
Quote '[]' properly.

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

18 years ago* configure.in (config.make): Don't blindly copy over $INSTALL,
Raja R Harinath [Sun, 18 Dec 2005 03:37:32 +0000 (03:37 -0000)]
* configure.in (config.make): Don't blindly copy over $INSTALL,
since it can be relative to the mono tree.  Use the same trick as
ac_INSTALL, but against an absolute path.

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

18 years ago2005-12-17 Dick Porter <dick@ximian.com>
Dick Porter [Sat, 17 Dec 2005 18:17:58 +0000 (18:17 -0000)]
2005-12-17  Dick Porter  <dick@ximian.com>

        * ThreadStartException.cs:
        * EventWaitHandle.cs:
        * EventResetMode.cs:
        * AbandonedMutexException.cs: New for 2.0 profile

        * ThreadState.cs:
        * Interlocked.cs:
        * RegisteredWaitHandle.cs:
        * Monitor.cs:
        * ThreadPriority.cs:
        * Mutex.cs:
        * ManualResetEvent.cs:
        * AutoResetEvent.cs: Updated for 2.0 profile

2005-12-17  Dick Porter  <dick@ximian.com>

        * EventWaitHandleRights.cs: New for 2.0 profile

        * MutexSecurity.cs:
        * EventWaitHandleSecurity.cs:
        * CommonObjectSecurity.cs:
        * NativeObjectSecurity.cs:
        * ObjectSecurity.cs: New partial stub for 2.0 profile

2005-12-17  Dick Porter  <dick@ximian.com>

        * corlib.dll.sources: Added in System.Security.AccessControl:
        CommonObjectSecurity.cs, EventWaitHandleRights.cs,
        EventWaitHandleSecurity.cs, ObjectSecurity.cs, MutexSecurity.cs,
        NativeObjectSecurity.cs.  Added in System.Threading:
        AbandonedMutexException.cs, EventResetMode.cs, EventWaitHandle.cs,
        ThreadStartException.cs

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

18 years ago2005-12-17 Cesar Lopez Nataren <cnataren@novell.com>
César Natarén [Sat, 17 Dec 2005 17:31:39 +0000 (17:31 -0000)]
2005-12-17  Cesar Lopez Nataren  <cnataren@novell.com>

* mjs-most.fail: Erase js1_3/inherit/proto_6.js,
js1_3/inherit/proto_7.js, js1_3/inherit/proto_8.js,
ecma/FunctionObjects/15.3.4-1.js, ecma_2/Exceptions/global-001.js,
ecma_2/Statements/dowhile-006.js,
ecma/ObjectObjects/15.2.3.1-2.js, js1_4/Regress/function-003.js as
they fail no more.

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

18 years ago * FileDialog.cs: Patch for #76901 by Atsushi Enomoto
Alexander Olk [Sat, 17 Dec 2005 12:11:14 +0000 (12:11 -0000)]
* FileDialog.cs: Patch for #76901 by Atsushi Enomoto

2005-12-17  Alexander Olk  <alex.olk@googlemail.com>

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

18 years ago2005-12-17 Alexander Olk <alex.olk@googlemail.com>
Alexander Olk [Sat, 17 Dec 2005 11:50:31 +0000 (11:50 -0000)]
2005-12-17  Alexander Olk  <alex.olk@googlemail.com>

* FileDialog.cs: Add the Help button and the open readonly
  checkbox only if needed

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

18 years ago2005-12-16 Cesar Lopez Nataren <cnataren@novell.com>
César Natarén [Sat, 17 Dec 2005 04:57:48 +0000 (04:57 -0000)]
2005-12-16  Cesar Lopez Nataren  <cnataren@novell.com>

* mjs-most-tests: Enable ecma/Expressions/11.13.1.js and
ecma/TypeConversion/9.3.1-3.js.

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

18 years agoCommented out AC_DISABLE_FAST_INSTALL
Wade Berrier [Sat, 17 Dec 2005 02:57:41 +0000 (02:57 -0000)]
Commented out AC_DISABLE_FAST_INSTALL

monodis wouldn't link correctly otherwise unless an existing
libmono was found from previous installation.
I ran into issues because the previous installation wasn't providing a symbol I needed

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

18 years ago2005-12-16 John Luke <john.luke@gmail.com>
John Luke [Sat, 17 Dec 2005 00:27:14 +0000 (00:27 -0000)]
2005-12-16  John Luke  <john.luke@gmail.com>

        * Mono.Cairo/FontOptions.cs: fix bug with
        fontOptions == null, check parameter to Merge
        against null
        * Mono.Cairo/Glyph.cs: add setters to properties

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

18 years ago* RichTextBox.cs: Expand statement to help out gmcs and fix the
Jackson Harper [Fri, 16 Dec 2005 23:08:20 +0000 (23:08 -0000)]
* RichTextBox.cs: Expand statement to help out gmcs and fix the
        2.0 build.

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

18 years ago2005-12-16 Sebastien Pouliot <sebastien@ximian.com>
Sebastien Pouliot [Fri, 16 Dec 2005 22:42:34 +0000 (22:42 -0000)]
2005-12-16  Sebastien Pouliot  <sebastien@ximian.com>

* StackTrace.cs: Added, if avilable, the filename/lineno debug
information in ToString() like it's done on the 2.0 framework (i.e.
Mono will display it for all profile, MS only in 2.0). Fix bug #75932.

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

18 years ago2005-12-16 Cesar Lopez Nataren <cnataren@novell.com>
César Natarén [Fri, 16 Dec 2005 22:39:00 +0000 (22:39 -0000)]
2005-12-16  Cesar Lopez Nataren  <cnataren@novell.com>

* mjs-most-tests: Enable ecma_2/Statements/dowhile-003.js.

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

18 years ago* mini-s390.c: Fix LOCALLOC processing.
Neale Ferguson [Fri, 16 Dec 2005 22:26:45 +0000 (22:26 -0000)]
* mini-s390.c: Fix LOCALLOC processing.

* tramp-s390.c (s390_magic_trampoline): Fix base calculation.

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

18 years ago* TreeNodeCollection.cs: Some fixes to prevent null refs. Patch by
Jackson Harper [Fri, 16 Dec 2005 22:24:37 +0000 (22:24 -0000)]
* TreeNodeCollection.cs: Some fixes to prevent null refs. Patch by
        Dieter Bremes.

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

18 years ago* Control.cs: Make sure we have an active menu before trying to
Jackson Harper [Fri, 16 Dec 2005 21:31:43 +0000 (21:31 -0000)]
* Control.cs: Make sure we have an active menu before trying to
        process commands on it. Prevents menu-less forms from crashing
        when Alt is pressed.

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

18 years agoInternalWindowManager.cs: Don't translate tool windows screen
Jackson Harper [Fri, 16 Dec 2005 21:20:47 +0000 (21:20 -0000)]
InternalWindowManager.cs: Don't translate tool windows screen
        coordinates. This fixes windows 'bouncing' around when being
moved.

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

18 years agos/Graphics/Context
John Luke [Fri, 16 Dec 2005 20:43:58 +0000 (20:43 -0000)]
s/Graphics/Context

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

18 years agos/Graphics/Context
John Luke [Fri, 16 Dec 2005 20:41:52 +0000 (20:41 -0000)]
s/Graphics/Context

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

18 years agos/Graphics/Context
John Luke [Fri, 16 Dec 2005 20:41:17 +0000 (20:41 -0000)]
s/Graphics/Context

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

18 years agos/Graphics/Context
John Luke [Fri, 16 Dec 2005 20:40:02 +0000 (20:40 -0000)]
s/Graphics/Context

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

18 years ago2005-12-16 John Luke <john.luke@gmail.com>
John Luke [Fri, 16 Dec 2005 20:36:22 +0000 (20:36 -0000)]
2005-12-16  John Luke  <john.luke@gmail.com>

        * Mono.Cairo/Cairo.cs: organize and add missing API
        split out enums and structs
        * Mono.Cairo/*.cs: add enums and structs as seperate files
        implement ==, !=, Equals, and GetHashCode for the structs
        move public fields to properties

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

18 years ago2005-12-16 Sebastien Pouliot <sebastien@ximian.com>
Sebastien Pouliot [Fri, 16 Dec 2005 20:00:43 +0000 (20:00 -0000)]
2005-12-16  Sebastien Pouliot  <sebastien@ximian.com>

* X509Chain.cs: Fix chain building. Patch from Vincent Cote-Roy.

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

18 years ago2005-12-16 John Luke <john.luke@gmail.com>
John Luke [Fri, 16 Dec 2005 19:43:36 +0000 (19:43 -0000)]
2005-12-16  John Luke  <john.luke@gmail.com>

        * Mono.Cairo/Cairo.cs:
        * Mono.Cairo/Context.cs:
        * Mono.Cairo/Pattern.cs:
        * Mono.Cairo/Surface.cs: add MarkDirty and Flush,
        mark Surface.Pointer obsolete in favor of Handle

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

18 years ago2005-12-16 John Luke <john.luke@gmail.com>
John Luke [Fri, 16 Dec 2005 19:30:38 +0000 (19:30 -0000)]
2005-12-16  John Luke  <john.luke@gmail.com>

        * Mono.Cairo.dll.sources:
        * Mono.Cairo/Rectangle.cs: add
        * Mono.Cairo/Cairo.cs: mark fill_extents and stroke extents
        with out modifiers
        * Mono.Cairo/Context.cs: FillExtents, and StrokeExtents return
        a Rectangle (actually 2 points), remove previously unusable
        versions, add an overload to Rectangle that takes a Rectangle

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

18 years ago2005-12-15 Peter Dennis Bartok <pbartok@novell.com>
Peter Dennis Bartok [Fri, 16 Dec 2005 19:16:31 +0000 (19:16 -0000)]
2005-12-15  Peter Dennis Bartok  <pbartok@novell.com>

* TextBoxBase.cs:
  - MaxLength now treats 2^31-1 equal to unlimited length (this is
    not quite MS compatible, MS uses that number only for single line
    and 2^32-1 for multi-line, but I figure it won't hurt keeping
    the limit at 2GB)
  - Now enforcing the MaxLength limit when entering characters
  - Added argument to internal Paste() method to track if it's called
    from programatically or via keyboard, since keyboard driven pastes
    need to enforce max-length
  - Added logic to Paste to only paste as many chars as MaxLength
    allows
* RichTextBox.cs: Updated to use new obey argument for internal Paste()
* TextControl.cs:
  - Added Length property to return number of characters in document
  - Added private CharCount property which only tracks actual chars
    in the document (no linefeeds) and fires event when CharCount
    changes
  - Added tracking of character count to all methods that alter it
  - Added LengthChanged event to allow applications to subscribe
    to any changes to the document

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

18 years ago* XmlTextWriterTests.cs: Fixed some tests that caught exception to
Gert Driesen [Fri, 16 Dec 2005 17:04:28 +0000 (17:04 -0000)]
* XmlTextWriterTests.cs: Fixed some tests that caught exception to
become useful. Added few tests that fail on Mono.

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

18 years ago2005-12-16 Chris Toshok <toshok@ximian.com>
Chris Toshok [Fri, 16 Dec 2005 16:30:33 +0000 (16:30 -0000)]
2005-12-16  Chris Toshok  <toshok@ximian.com>

* ConfigurationLockCollection.cs (Add): only add the name if it's
not already there.
(IsReadOnly): always return false for the time being, in the
non-exceptional case.

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

18 years ago2005-12-16 Chris Toshok <toshok@ximian.com>
Chris Toshok [Fri, 16 Dec 2005 16:29:22 +0000 (16:29 -0000)]
2005-12-16  Chris Toshok  <toshok@ximian.com>

* System.Configuration/ConfigurationLockCollectionTest.cs
(DuplicateAdd, IsReadOnly): new tests.

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

18 years ago* XmlTextWriterTests.cs: No longer derive from deprecated Assertion
Gert Driesen [Fri, 16 Dec 2005 14:06:42 +0000 (14:06 -0000)]
* XmlTextWriterTests.cs: No longer derive from deprecated Assertion
class. Added WriteDocType tests.
* XmlWriterTests.cs: No longer derive from deprecated Assertion class.

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

18 years ago** merged revision 54529 from mcs
Raja R Harinath [Fri, 16 Dec 2005 11:38:54 +0000 (11:38 -0000)]
** merged revision 54529 from mcs

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

18 years agoFix #77006.
Raja R Harinath [Fri, 16 Dec 2005 11:33:18 +0000 (11:33 -0000)]
Fix #77006.
* mcs/class.cs (TypeContainer.Mark_HasEquals): New.
(TypeContainer.Mark_HasGetHashCode): New.
(ClassPart): Override them.
(MethodCore.CheckBase): Use them instead of referring to Parent.Methods.
* tests/test-479.cs: New test from #77006.
* errors/cs0659-2.cs: New test based on #77006.

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

18 years agoIn ilasm/tests:
Ankit Jain [Fri, 16 Dec 2005 11:12:06 +0000 (11:12 -0000)]
In ilasm/tests:
2005-12-16  Ankit Jain  <jankit@novell.com>

Tests for fields with same name but different types.
* field-dup1.il, field-dup-gen2.il: Positive tests.
* err-field-dup1.il, err-field-dup2.il, err-field-dup3.il,
err-field-dup4.il, err-field-dup5.il, err-field-dup6-gen.il,
err-field-dup7-gen.il: Negative tests.
* one.cs, two.cs, oneg.cs: Required for use by above test cases.

In ilasm/codegen:
2005-12-16  Ankit Jain  <jankit@novell.com>

Use tuple of (field name, type_name) for fielddef hashtable in TypeDef.cs and
CodeGen.cs
* FieldDef.cs (FieldDef.Type): New.
* TypeDef.cs (TypeDef.ResolveField): Add 'type_name' param.
* CodeGen.cs (CodeGen.ResolveField): Add 'type_name' param.
* FieldRef.cs (FieldRef.Resolve): Update usage of .ResolveField .
* GlobalFieldRef (GlobalFieldRef.Resolve): Likewise.
* ExternTable.cs (IScope.FullName): New. Returns full name including and enclosing class
or assembly/module name.
(ExternRef.FullName):
(ExternModule.FullName):
(ExternAssembly.FullName): Implement new IScope.FullName .
* ExternTypeRef.cs (ExternTypeRef.Clone): Clone SigMod also.
(ExternTypeRef.FullName): Update to return full name including enclosing type or assembly
or module name.
(ExternTypeRef.Name): Update to return only full_name with modifiers (array/pointers etc).
(ExternTypeRef.GetReflectedType): Use Name instead of FullName as only type name is required here.
* GenericTypeRef.cs (GenericTypeRef.FullName): Return proper fullname of the form (!0 or !!0).
* GenericTypeInst.cs (GenericTypeInst.ctor): Change param 'full_name' to 'name'. 'full_name' is
constructed here using the type parameter list.
Update code to use name instead of full_name.

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

18 years ago** merged revisions 54522, 54525 from mcs, with the following additional
Raja R Harinath [Fri, 16 Dec 2005 10:47:35 +0000 (10:47 -0000)]
** merged revisions 54522, 54525 from mcs, with the following additional
   changes:

* gmcs/generic.cs (GenericMethod.DefineMembers): Update to changes.
(TypeParameter.TypeParameter): Change type of 'parent' argument to DeclSpace.

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

18 years ago** merged revisions 54091-54321 from mcs
Raja R Harinath [Fri, 16 Dec 2005 10:16:54 +0000 (10:16 -0000)]
** merged revisions 54091-54321 from mcs

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

18 years agoFix #77008.
Raja R Harinath [Fri, 16 Dec 2005 09:25:48 +0000 (09:25 -0000)]
Fix #77008.
* mcs/enum.cs (EnumMember.EnumMember): Pass the parent_enum as the
'parent' argument to the base constructor.
* tests/test-478.cs: New test case from #77008.

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

18 years ago2005-12-16 Atsushi Enomoto <atsushi@ximian.com>
Atsushi Eno [Fri, 16 Dec 2005 08:31:59 +0000 (08:31 -0000)]
2005-12-16  Atsushi Enomoto <atsushi@ximian.com>

* RelaxngPattern.cs : RelaxngData and RelaxngValue was writing QName
  instead of NCName for type attribute (wrong).

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

18 years ago2005-12-16 Atsushi Enomoto <atsushi@ximian.com>
Atsushi Eno [Fri, 16 Dec 2005 08:09:37 +0000 (08:09 -0000)]
2005-12-16  Atsushi Enomoto <atsushi@ximian.com>

* RncWriter.cs : it needs another namespace resolver for datatypes.

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

18 years agoRemove all mention of TypeContainer from decl.cs.
Raja R Harinath [Fri, 16 Dec 2005 08:05:03 +0000 (08:05 -0000)]
Remove all mention of TypeContainer from decl.cs.
* decl.cs (MemberCore.Parent): Change into a DeclSpace.
(MemberCore.MemberCore): Change type of 'parent' argument to DeclSpace.
(DeclSpace.DeclSpace): Likewise.
(DeclSpace.DefineMembers): Remove unused argument.
* cs-parser.jay (pop_current_class): Update to changes.  Simplify
debugging check -- we don't care if the debug code throws an
InvalidCastException instead of an InternalErrorException.
* class.cs (TypeContainer.DefineMembers): Update to changes.
(TypeContainer.DoDefineMembers): Likewise.
(TypeContainer.GetMethods): Likewise.
(PropertyMember.Define): Likewise.
(MemberBase.Parent): New property that forwards to
MemberCore.Parent, but ensures that we get a TypeContainer.
* rootcontext.cs (RootContext.PopulateCoreType): Update to changes.
(RootContext.PopulateTypes): Likewise.  Remove special case code
for !RootContext.StdLib: DefineMembers is idempotent.

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

18 years ago2005-12-16 Atsushi Enomoto <atsushi@ximian.com>
Atsushi Eno [Fri, 16 Dec 2005 07:24:29 +0000 (07:24 -0000)]
2005-12-16  Atsushi Enomoto <atsushi@ximian.com>

* RncWriter.cs : actually no need to change signature; use
  GetNamespacesInScope().

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

18 years ago2005-12-16 Atsushi Enomoto <atsushi@ximian.com>
Atsushi Eno [Fri, 16 Dec 2005 07:20:34 +0000 (07:20 -0000)]
2005-12-16  Atsushi Enomoto <atsushi@ximian.com>

* RncWriter.cs : use XmlNamespaceManager for NSResolver even in NET_2_0.

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

18 years agoFix typo
Raja R Harinath [Fri, 16 Dec 2005 07:12:59 +0000 (07:12 -0000)]
Fix typo

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

18 years ago2005-12-16 Atsushi Enomoto <atsushi@ximian.com>
Atsushi Eno [Fri, 16 Dec 2005 05:40:17 +0000 (05:40 -0000)]
2005-12-16  Atsushi Enomoto <atsushi@ximian.com>

* RncWriter.cs : another escapement is required.

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

18 years ago2005-12-16 Atsushi Enomoto <atsushi@ximian.com>
Atsushi Eno [Fri, 16 Dec 2005 05:36:21 +0000 (05:36 -0000)]
2005-12-16  Atsushi Enomoto <atsushi@ximian.com>

* RncWriter.cs : oops, missing keyword escapement.

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

18 years ago2005-12-15 Chris Toshok <toshok@ximian.com>
Chris Toshok [Fri, 16 Dec 2005 04:41:38 +0000 (04:41 -0000)]
2005-12-15  Chris Toshok  <toshok@ximian.com>

* ConfigurationElement.cs (LockAllAttributesExcept): implement.
(LockAllElementsExcept): implement.
(DeserializeElement): handle the built-in attributes (lock* for
the time being).

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

18 years ago2005-12-15 Chris Toshok <toshok@ximian.com>
Chris Toshok [Fri, 16 Dec 2005 04:39:01 +0000 (04:39 -0000)]
2005-12-15  Chris Toshok  <toshok@ximian.com>

* ConfigurationLockCollection.cs (..ctor): don't call Populate.
(Populate): nuke.
(CheckName): make sure the passes in name is valid for this type
of lock collection.
(Add): call CheckName, and set is_modified to true.
(Clear): set is_modified.
(IsReadOnly): add plausable implementation, including exception in
the case where the name isn't found.
(Remove): set is_modified.
(SetFromList): implement.
(get_AttributeList): implement.
(set_IsModified): add internal setter so we can clear the modified
flag.

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

18 years agoadd test for invalid attribute name in lockAllAttributesExcept attribute
Chris Toshok [Fri, 16 Dec 2005 04:36:10 +0000 (04:36 -0000)]
add test for invalid attribute name in lockAllAttributesExcept attribute

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

18 years ago2005-12-16 Atsushi Enomoto <atsushi@ximian.com>
Atsushi Eno [Fri, 16 Dec 2005 03:10:46 +0000 (03:10 -0000)]
2005-12-16  Atsushi Enomoto <atsushi@ximian.com>

* RncWriter.cs : no xsi in grammar, please.

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

18 years ago2005-12-16 Atsushi Enomoto <atsushi@ximian.com>
Atsushi Eno [Fri, 16 Dec 2005 03:02:50 +0000 (03:02 -0000)]
2005-12-16  Atsushi Enomoto <atsushi@ximian.com>

* RncWriter.cs : added WriteNamespaces() to handle namespace output
  by itself.

* RelaxngPattern.cs : in WriteCompact(), use WriteNamespace() to
  let RncWriter handle namespace output by itself.

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

18 years ago2005-12-16 Atsushi Enomoto <atsushi@ximian.com>
Atsushi Eno [Fri, 16 Dec 2005 02:46:06 +0000 (02:46 -0000)]
2005-12-16  Atsushi Enomoto  <atsushi@ximian.com>

* dtd2rng.cs : datatypeLibrary remapping. Compact syntax output.
  Datatype library remapping is required.

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

18 years ago2005-12-15 Cesar Lopez Nataren <cnataren@novell.com>
César Natarén [Fri, 16 Dec 2005 00:34:13 +0000 (00:34 -0000)]
2005-12-15  Cesar Lopez Nataren  <cnataren@novell.com>

* mjs-most.tests: Enable js1_3/inherit/proto_11.js and
js1_3/inherit/proto_12.js.

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

18 years ago2005-12-15 Cesar Lopez Nataren <cnataren@novell.com>
César Natarén [Fri, 16 Dec 2005 00:33:23 +0000 (00:33 -0000)]
2005-12-15  Cesar Lopez Nataren  <cnataren@novell.com>

* Parser.cs: Use the new assign ctr and Init method.
* expression.cs (Assign): Modify the number of ctr and added the Init method.
* BinaryOp.cs: Add setter for left.

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

18 years agooops, don't commit these
Chris Toshok [Thu, 15 Dec 2005 21:54:05 +0000 (21:54 -0000)]
oops, don't commit these

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

18 years agobunch of new tests, mostly centering around the lock* attributes
Chris Toshok [Thu, 15 Dec 2005 21:53:50 +0000 (21:53 -0000)]
bunch of new tests, mostly centering around the lock* attributes

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

18 years ago2005-12-15 Zoltan Varga <vargaz@gmail.com>
Zoltan Varga [Thu, 15 Dec 2005 21:48:09 +0000 (21:48 -0000)]
2005-12-15  Zoltan Varga  <vargaz@gmail.com>

* cpblkTest.il: Fix storage of addresses into int32 variables.

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

18 years ago2005-12-15 Cesar Lopez Nataren <cnataren@novell.com>
César Natarén [Thu, 15 Dec 2005 20:14:44 +0000 (20:14 -0000)]
2005-12-15  Cesar Lopez Nataren  <cnataren@novell.com>

* mjs-most.tests: Enable ecma/Date/15.9.1.1-2.js.

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

18 years ago2005-12-15 Cesar Lopez Nataren <cnataren@novell.com>
César Natarén [Thu, 15 Dec 2005 20:12:17 +0000 (20:12 -0000)]
2005-12-15  Cesar Lopez Nataren  <cnataren@novell.com>

* Statement.cs (For.Emit): Take into account what relational
operator is in place.

* expression.cs (Assign.Emit): Emit box in the op= cases.

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

18 years ago2005-12-15 Zoltan Varga <vargaz@gmail.com>
Zoltan Varga [Thu, 15 Dec 2005 19:50:34 +0000 (19:50 -0000)]
2005-12-15  Zoltan Varga  <vargaz@gmail.com>

* iltests.il: Add tests for some opcodes not covered by the other
tests.

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

18 years ago2005-12-15 Peter Dennis Bartok <pbartok@novell.com>
Peter Dennis Bartok [Thu, 15 Dec 2005 19:04:15 +0000 (19:04 -0000)]
2005-12-15  Peter Dennis Bartok  <pbartok@novell.com>

        * TextBox.cs:
          - Removed local password_char field (moved to TextBoxBase)
          - Now setting the document's password var when password is
            set
        * TextBoxBase.cs:
          - Added password_char field (needed here so MultiLine can
            access it)
          - Added logic to MultiLine property setter to set the document's
            variable when password display is allowed
          - Removed debug code and made some debug code conditional
        * TextControl.cs:
          - Added RecalculatePasswordLine() method to handle special password
            char only lines
          - Added PasswordChar property, also added related tracking vars
          - Draw() method now uses local text var for grabbing text to draw,
            this var is set to line.text unless we're doing password display,
            then it is set to the pre-generated all-password-chars line
          - Added calling RecalculatePasswordLine() method for password
            lines

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

18 years ago* test-array.il: Oops, contained two copies of the test case.
Ankit Jain [Thu, 15 Dec 2005 18:15:57 +0000 (18:15 -0000)]
* test-array.il: Oops, contained two copies of the test case.

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