mono.git
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

18 years ago2005-12-15 Dick Porter <dick@ximian.com>
Dick Porter [Thu, 15 Dec 2005 18:02:07 +0000 (18:02 -0000)]
2005-12-15  Dick Porter  <dick@ximian.com>

        * processes.c (CreateProcess): The pipe-based cross-process
        exclusion technique was trying to write NULL buffers when appname
        was NULL (eg when coming from ShellExecuteEx,) which usually
        succeeded even though EFAULT was returned - but sometimes it
        failed.  This meant that the child process could block forever on
        the pipe read.  Replace it with the simpler shared handle
        semaphore protection used everywhere else.  This showed up with
        the test case in bug 76684.

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

18 years ago* corlib_test.dll.sources: Added ObjectManagerTest.cs in
Gert Driesen [Thu, 15 Dec 2005 17:53:24 +0000 (17:53 -0000)]
* corlib_test.dll.sources: Added ObjectManagerTest.cs in
System.Runtime.Serialization.
* ObjectManagerTest.cs: New test for bug #76931.

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

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

* dtd2rng.cs : mixed + empty should be text.

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

18 years ago2005-12-15 Atsushi Enomoto <atsushi@ximian.com>
Atsushi Eno [Thu, 15 Dec 2005 16:01:25 +0000 (16:01 -0000)]
2005-12-15  Atsushi Enomoto <atsushi@ximian.com>

* DTDObjectModel.cs : (CreateXsdParticle) element particle was
  missing occurence indicators.

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

18 years ago2005-12-15 Maverson Eduardo Schulze Rosa <maverson@gmail.com>
Alexandre Rocha Lima e Marcondes [Thu, 15 Dec 2005 15:51:49 +0000 (15:51 -0000)]
2005-12-15 Maverson Eduardo Schulze Rosa <maverson@gmail.com>
* test-mbas.pl: Parsing Test Files in order to find necessary
compilerOptions and generate the correct CompileCommand.

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

18 years agosave StringManager into AppDomain
Konstantin Triger [Thu, 15 Dec 2005 15:43:39 +0000 (15:43 -0000)]
save StringManager into AppDomain

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

18 years ago2005-12-15 Martin Baulig <martin@ximian.com>
Martin Baulig [Thu, 15 Dec 2005 15:39:31 +0000 (15:39 -0000)]
2005-12-15  Martin Baulig  <martin@ximian.com>

* ObjectManager.cs: When deserializing an object that has a
surrogate, actually check the return value of
ISerializationSurrogate.SetObjectData(); fixes #76931.

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

18 years ago2005-12-07 Jelmer Vernooij <jelmer@samba.org>
Alexandre Rocha Lima e Marcondes [Thu, 15 Dec 2005 15:14:08 +0000 (15:14 -0000)]
2005-12-07 Jelmer Vernooij <jelmer@samba.org>
        * Makefile: allow build of only mbas, without the need to built
the class library

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

18 years ago2005-12-15 Atsushi Enomoto <atsushi@ximian.com>
Atsushi Eno [Thu, 15 Dec 2005 14:43:15 +0000 (14:43 -0000)]
2005-12-15  Atsushi Enomoto  <atsushi@ximian.com>

* dtd2rng.cs, dtd2rng.exe.sources, Makefile, ChangeLog :
  new files.

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

18 years agoIn ilasm/tests:
Ankit Jain [Thu, 15 Dec 2005 14:41:59 +0000 (14:41 -0000)]
In ilasm/tests:
* assembly.il: New. Test for multiple .assembly declarations.
* err-assembly.il: New. Negative test for the same.

In ilasm/codegen:
* CodeGen.cs (CodeGen.SetAssemblyName): Multiple .assembly declarations with different
names are not allowed.

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

18 years ago2005-12-15 Atsushi Enomoto <atsushi@ximian.com>
Atsushi Eno [Thu, 15 Dec 2005 14:41:32 +0000 (14:41 -0000)]
2005-12-15  Atsushi Enomoto  <atsushi@ximian.com>

* dtd2xsd.cs : *.dtd file could be directly converted.

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

18 years ago2005-10-05 Atsushi Enomoto <atsushi@ximian.com>
Atsushi Eno [Thu, 15 Dec 2005 14:40:17 +0000 (14:40 -0000)]
2005-10-05  Atsushi Enomoto  <atsushi@ximian.com>

* System.Configuration.dll.sources: added
  IntegerValidatorAttribute.cs, IntegerValidator.cs,
  LongValidator.cs and LongValidatorAttribute.cs.

* IntegerValidatorAttribute.cs, IntegerValidator.cs,
  LongValidator.cs, LongValidatorAttribute.cs : new files.

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

18 years ago2005-12-15 Sebastien Pouliot <sebastien@ximian.com>
Sebastien Pouliot [Thu, 15 Dec 2005 14:29:54 +0000 (14:29 -0000)]
2005-12-15  Sebastien Pouliot  <sebastien@ximian.com>

* DirectoryInfoTest.cs: Added test cases for #76191 and #76903.
* PathTest.cs: Added test cases for #76191, the possible modification
of InvalidPathChars and the new 2.0 methods.

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

18 years ago2005-12-15 Sebastien Pouliot <sebastien@ximian.com>
Sebastien Pouliot [Thu, 15 Dec 2005 14:29:34 +0000 (14:29 -0000)]
2005-12-15  Sebastien Pouliot  <sebastien@ximian.com>

* DirectoryInfo.cs: Fixed #76903 where the Name property wasn't
correct in some cases. Added special case for Windows drives. Reduced
temporary allocations in Get* methods (removed ArrayList). Added some
new 2.0 methods (partial).
* MonoIO.cs: Removed InvalidPathChars icall as the return value is
different from 1.x and 2.0. The values are now defined in Path.cs.
* Path.cs: Fixed #76191 so that GetFullPath on a Windows drive returns
the current directory (if it's on the specified drive). Fixed 2.0 API
changes (e.g. static class).
* SearchOption.cs: Added missing [Serializable] (2.0).

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

18 years ago* mini-s390.c: Fix ADDCC/SBB bug reveealed by test_0_ulong_regress; Correct register...
Neale Ferguson [Thu, 15 Dec 2005 14:27:58 +0000 (14:27 -0000)]
* mini-s390.c: Fix ADDCC/SBB bug reveealed by test_0_ulong_regress; Correct register loading for Tail processing; Correct trace output.

* inssel-s390.brg: Reimplement LSUB_OVF due to s390 implementation of signed math.

* cpu-s390.md: Correct size of jmp instruction.

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

18 years ago* metadata.c (do_mono_metadata_parse_generic_class): Don't pass the current
Raja R Harinath [Thu, 15 Dec 2005 14:22:17 +0000 (14:22 -0000)]
* metadata.c (do_mono_metadata_parse_generic_class): Don't pass the current
generic context when parsing the type being instantiated: it
cannot use it, anyway.

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

18 years agofix index updates
Konstantin Triger [Thu, 15 Dec 2005 14:17:30 +0000 (14:17 -0000)]
fix index updates

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

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

* DoubleTest.cs: Added test cases for parsing hexadecimal strings.
* SingleTest.cs: Added test cases for parsing hexadecimal strings.

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

18 years ago2005-12-15 Sebastien Pouliot <sebastien@ximian.com>
Sebastien Pouliot [Thu, 15 Dec 2005 14:08:53 +0000 (14:08 -0000)]
2005-12-15  Sebastien Pouliot  <sebastien@ximian.com>

* DateTime.cs: Added MonoTODO to ctor accepting a Calandar instance.
* Double.cs: Under 2.0 throw a ArgumentException when parsing with
 NumberStyles.AllowHexSpecifier. Partial fix for #72221. Added the
second, simpler, TryParse method (2.0).
* Single.cs: Added the TryParse methods for 2.0.

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

18 years ago2005-12-15 Sebastien Pouliot <sebastien@ximian.com>
Sebastien Pouliot [Thu, 15 Dec 2005 13:47:02 +0000 (13:47 -0000)]
2005-12-15  Sebastien Pouliot  <sebastien@ximian.com>

* RijndaelTest.cs: Add test cases for cycling key sizes and block
sizes.
* SymmetricAlgorithm2Test.cs: Added test case for re-setting the
BlockSize. Keeping the same value *doesn't* change the current IV
(while doing the same on the KeySize *does* change the key).

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

18 years agoSymmetricAlgorithm.cs: Changing (not setting) BlockSize must re-generate a new IV...
Sebastien Pouliot [Thu, 15 Dec 2005 13:46:37 +0000 (13:46 -0000)]
SymmetricAlgorithm.cs: Changing (not setting) BlockSize must re-generate a new IV (so the properties are kept valid). Note that changing or setting (same value) the KeySize always re-generate a key.

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

18 years ago* metadata.c (mono_metadata_parse_method_signature_full): Remove a dead store.
Raja R Harinath [Thu, 15 Dec 2005 13:13:11 +0000 (13:13 -0000)]
* metadata.c (mono_metadata_parse_method_signature_full): Remove a dead store.
* loader.c (method_from_memberref): Don't inflate a signature if
it doesn't contain any type parameters.

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

18 years ago* generic.cs (TypeManager.IsGeneric): Remove unused method.
Raja R Harinath [Thu, 15 Dec 2005 12:56:01 +0000 (12:56 -0000)]
* generic.cs (TypeManager.IsGeneric): Remove unused method.

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

18 years ago* typemanager.cs (TypeManager.GetFullName): Rewrite to handle nested types.
Raja R Harinath [Thu, 15 Dec 2005 11:42:40 +0000 (11:42 -0000)]
* typemanager.cs (TypeManager.GetFullName): Rewrite to handle nested types.

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

18 years ago* System/Type.cs (IsGenericType): Make virtual.
Raja R Harinath [Thu, 15 Dec 2005 11:30:45 +0000 (11:30 -0000)]
* System/Type.cs (IsGenericType): Make virtual.
* System.Reflection.Emit/TypeBuilder.cs (IsGenericType): Implement override.
* Test/System.Reflection.Emit/TypeBuilderTest.cs (GenericType): Add a minimal
testcase for generic type builders.

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

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

* class.c (mono_class_setup_vtable): Call mono_reflection_get_dynamic_overrides () to get the overrides in dynamic assemblies.

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

18 years agoallow null string in WriteCData
Konstantin Triger [Thu, 15 Dec 2005 10:18:32 +0000 (10:18 -0000)]
allow null string in WriteCData

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

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

        * Hwnd.cs:
          - Added Reparented property to allow tracking of Window Manager
            reparenting actions (which affect X/Y calculations of toplevel
            windows)
          - Made ToString() print window handles in hex
        * XplatUIX11.cs:
          - AddConfigureNotify(): Now uses reparented state off Hwnd to
            determine if X/Y needs offsetting
          - AddConfigureNotify(): Fixed offset calculations
          - Now adds ReparentNotify messages into the queue
          - Now processes ReparentNotify messages and causes a
            WM_WINDOWPOSCHANGED message to be sent upstream if a window
            is reparented (as most likely it's X/Y coordinates are changed
            due to that)

These fixes will fix the 'random' window repositioning of toplevel windows
when setting one of the properties that affect size or location (Left, Top,
Size, Location, Bounds, etc.) Thanks to Eric Butler for a testapp that
showed this problem.

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

18 years agomore System.Net.Configuration 2.0 work
Chris Toshok [Thu, 15 Dec 2005 00:52:10 +0000 (00:52 -0000)]
more System.Net.Configuration 2.0 work

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

18 years ago2005-12-14 Chris Toshok <toshok@ximian.com>
Chris Toshok [Thu, 15 Dec 2005 00:51:25 +0000 (00:51 -0000)]
2005-12-14  Chris Toshok  <toshok@ximian.com>

* MailSettingsSectionGroup.cs, PerformanceCountersElement.cs,
SmtpNetworkElement.cs, SmtpSection.cs,
SmtpSpecifiedPickupDirectoryElement.cs, WebProxyScriptElement.cs:
add missing 2.0 configuration classes.

* AuthenticationModulesSection.cs, BypassElementCollection.cs,
HttpCachePolicyElement.cs, NetSectionGroup.cs,
ServicePointManagerElement.cs, SettingsSection.cs,
SocketElement.cs, WebRequestModuleElementCollection.cs,
WebRequestModuleElement.cs, WebRequestModulesSection.cs: more 2.0
config cleanup work.

* MailSettingsSection.cs, SmtpElement.cs,
UriParserElementCollection.cs, UriParserElement.cs,
UriParserSection.cs: remove these 2.0 classes as they aren't there
anymore.

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

18 years ago2005-12-14 Chris Toshok <toshok@ximian.com>
Chris Toshok [Thu, 15 Dec 2005 00:46:43 +0000 (00:46 -0000)]
2005-12-14  Chris Toshok  <toshok@ximian.com>

* SmtpDeliveryMethod.cs: new enum.

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

18 years agoAdd missing EXTRA_DISTFILES
Wade Berrier [Thu, 15 Dec 2005 00:41:18 +0000 (00:41 -0000)]
Add missing EXTRA_DISTFILES

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

18 years agoAdded EXTRA_DISTFILES to fix make dist build
Wade Berrier [Thu, 15 Dec 2005 00:07:59 +0000 (00:07 -0000)]
Added EXTRA_DISTFILES to fix make dist build

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

18 years agoOooops.
Martin Baulig [Wed, 14 Dec 2005 22:32:05 +0000 (22:32 -0000)]
Oooops.

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

18 years agoNew test.
Martin Baulig [Wed, 14 Dec 2005 22:13:01 +0000 (22:13 -0000)]
New test.

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

18 years ago2005-12-14 Martin Baulig <martin@ximian.com>
Martin Baulig [Wed, 14 Dec 2005 22:11:26 +0000 (22:11 -0000)]
2005-12-14  Martin Baulig  <martin@ximian.com>

* typemanager.cs (TypeManager.GetFullName): Make this public;
`Type.Fullname' now never returns null.

* class.cs (Method.Define): Use TypeManager.GetFullName() for
explicit interface implementations; we're now using the same
naming convention than csc does.

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

18 years ago2005-12-14 Martin Baulig <martin@ximian.com>
Martin Baulig [Wed, 14 Dec 2005 22:09:19 +0000 (22:09 -0000)]
2005-12-14  Martin Baulig  <martin@ximian.com>

* class.c
(mono_type_get_name_recurse): Don't return null for type
parameters and open generic classes.
(mono_class_setup_methods): Don't exclude generic instances.
(mono_get_unique_iid): Use different IDs for different
instantiations of the same generic type.
(mono_class_setup_vtable): Only use setup_generic_vtable() for
open generic instances; create a normal vtable for closed generic
instances.
(mono_class_setup_vtable_general): We're now also called for
closed generic instances.

* reflection.c
(mono_reflection_bind_generic_parameters): Correctly use
mono_metadata_lookup_generic_inst() everywhere.

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

18 years ago * XplatUIX11.cs: Tool windows still need to respek focus.
Jackson Harper [Wed, 14 Dec 2005 21:59:28 +0000 (21:59 -0000)]
* XplatUIX11.cs: Tool windows still need to respek focus.

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

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

* marshal2.cs: Remove test which can fail on 64 bit archs.

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

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

        * Control.cs: Undid 54254 (causing XConfigure errors) so we can
          have a working release

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

18 years agoAdd System.Security.AccessControl.AccessControlSections enum and DirectorySecurity...
Sebastien Pouliot [Wed, 14 Dec 2005 19:02:26 +0000 (19:02 -0000)]
Add System.Security.AccessControl.AccessControlSections enum and DirectorySecurity class to 2.0 build as they are required for new methods in System.IO.DirectoryInfo

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

18 years ago2005-12-14 Sebastien Pouliot <sebastien@ximian.com>
Sebastien Pouliot [Wed, 14 Dec 2005 19:00:31 +0000 (19:00 -0000)]
2005-12-14  Sebastien Pouliot  <sebastien@ximian.com>

* AccessControlSections.cs: New (2.0). Enum required for DirectoryInfo
* DirectorySecurity.cs: New (2.0). Partial stub for DirectoryInfo

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

18 years agoThe test actually goes here
Miguel de Icaza [Wed, 14 Dec 2005 18:49:13 +0000 (18:49 -0000)]
The test actually goes here

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

18 years agooops
Miguel de Icaza [Wed, 14 Dec 2005 18:48:57 +0000 (18:48 -0000)]
oops

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

18 years agoBump version for tag
Wade Berrier [Wed, 14 Dec 2005 18:40:29 +0000 (18:40 -0000)]
Bump version for tag

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

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

* object.c (mono_class_create_runtime_vtable): Call
mono_class_setup_vtable ().

* reflection.c (mono_reflection_get_dynamic_overrides): New helper
function.
(ensure_runtime_vtable): Initialize the generic vtable lazily. Fixes
#76959.

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

18 years ago2005-12-14 Zoltan Varga <vargaz@gmail.com>
Zoltan Varga [Wed, 14 Dec 2005 17:51:31 +0000 (17:51 -0000)]
2005-12-14  Zoltan Varga  <vargaz@gmail.com>

* object.c (mono_class_create_runtime_vtable): Call
mono_class_setup_vtable ().

* reflection.c (mono_reflection_get_dynamic_overrides): New helper
function.
(ensure_runtime_vtable): Initialize the generic vtable lazily. Fixes
#76959.

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

18 years ago2005-12-14 Miguel de Icaza <miguel@novell.com>
Miguel de Icaza [Wed, 14 Dec 2005 16:20:44 +0000 (16:20 -0000)]
2005-12-14  Miguel de Icaza  <miguel@novell.com>

* convert.cs (ExplicitConversionCore): Check the return value from
ExplicitConversionCore which can return null on failure.  Fixes #76914

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

18 years ago2005-12-14 Miguel de Icaza <miguel@novell.com>
Miguel de Icaza [Wed, 14 Dec 2005 16:20:37 +0000 (16:20 -0000)]
2005-12-14  Miguel de Icaza  <miguel@novell.com>

* convert.cs (ExplicitConversionCore): Check the return value from
ExplicitConversionCore which can return null on failure.  Fixes #76914

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

18 years agoNew test, for bug 76914
Miguel de Icaza [Wed, 14 Dec 2005 16:19:29 +0000 (16:19 -0000)]
New test, for bug 76914

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

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

* XPathNavigator.cs : Added MonoTODO to CreateAttributes(). Removed
  MonoTODO from ReadSubtree().

* XPathNavigatorReaderTests.cs : Actually AttributesAndNamespaces()
  does not work under MS.NET.

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

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

* XPathNavigatorReader.cs : oh, so it used to compile under 1.x.

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

18 years ago2005-12-14 Atsushi Enomoto <atsushi@ximian.com>
Atsushi Eno [Wed, 14 Dec 2005 15:59:23 +0000 (15:59 -0000)]
2005-12-14  Atsushi Enomoto <atsushi@ximian.com>

* XPathNavigatorReader.cs : several fixes.
  - Unless ReadState is Interactive, all name stuff should return "".
  - Refactored Read() to work fine when input navigator is Root.
  - Fixed all MoveTo*Attribute() methods match with other XmlReaders.
  - Namespace nodes were not handled fine in MoveTo*Attribute().

* XPathNavigatorReaderTests.cs : new file for testing ReadSubtree()
  and all dependent members.

* System.Xml_test.dll.sources: Added XPathNavigatorReaderTests.cs.

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

18 years agoPatch by D. Moonfire that fixes several issues with 2.0 page attributes.
Gonzalo Paniagua Javier [Wed, 14 Dec 2005 15:49:16 +0000 (15:49 -0000)]
Patch by D. Moonfire that fixes several issues with 2.0 page attributes.

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

18 years ago2005-12-14 Gonzalo Paniagua Javier <gonzalo@ximian.com>
Gonzalo Paniagua Javier [Wed, 14 Dec 2005 15:48:23 +0000 (15:48 -0000)]
2005-12-14 Gonzalo Paniagua Javier <gonzalo@ximian.com>

* DropDownListTest.cs: test for html-encoding of the text.

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

18 years agomove reqPath into the try/catch too
Gonzalo Paniagua Javier [Wed, 14 Dec 2005 15:28:43 +0000 (15:28 -0000)]
move reqPath into the try/catch too

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

18 years agoFileLoadExceptionCas.cs, FileNotFoundExceptionCas.cs: MS fixed this in 2.0 final...
Sebastien Pouliot [Wed, 14 Dec 2005 14:17:57 +0000 (14:17 -0000)]
FileLoadExceptionCas.cs, FileNotFoundExceptionCas.cs: MS fixed this in 2.0 final (#71861).

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

18 years agoBadImageFormatExceptionCas.cs: MS fixed this in 2.0 final (#71861).
Sebastien Pouliot [Wed, 14 Dec 2005 14:14:05 +0000 (14:14 -0000)]
BadImageFormatExceptionCas.cs: MS fixed this in 2.0 final (#71861).

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