mono.git
19 years ago2005-01-11 Zoltan Varga <vargaz@freemail.hu>
Zoltan Varga [Tue, 11 Jan 2005 21:00:14 +0000 (21:00 -0000)]
2005-01-11  Zoltan Varga  <vargaz@freemail.hu>

* threads.c (mono_thread_attach): Call DuplicateHandle on the thread handle on win32 to make
it a real thread handle.

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

19 years ago2005-01-11 Sebastien Pouliot <sebastien@ximian.com>
Sebastien Pouliot [Tue, 11 Jan 2005 20:28:39 +0000 (20:28 -0000)]
2005-01-11  Sebastien Pouliot  <sebastien@ximian.com>

* Hash.cs: Fix regression in 2.0 to load default (hash) evidences.

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

19 years agoUpdate to __Internal
Miguel de Icaza [Tue, 11 Jan 2005 20:06:01 +0000 (20:06 -0000)]
Update to __Internal

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

19 years ago2005-01-11 Sebastien Pouliot <sebastien@ximian.com>
Sebastien Pouliot [Tue, 11 Jan 2005 20:01:35 +0000 (20:01 -0000)]
2005-01-11  Sebastien Pouliot  <sebastien@ximian.com>

* PermissionSetAttribute.cs: Throw proper exception if XML cannot be
decoded. Actually load (not just creates) the XML permissions.

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

19 years ago2005-01-11 Sebastien Pouliot <sebastien@ximian.com>
Sebastien Pouliot [Tue, 11 Jan 2005 20:00:07 +0000 (20:00 -0000)]
2005-01-11  Sebastien Pouliot  <sebastien@ximian.com>

* PermissionSet.cs: Simplified GetHashCode as two exact copies may
have different hash codes (documented as such). This fix some unit
tests for 2.0.

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

19 years ago2005-01-11 Sebastien Pouliot <sebastien@ximian.com>
Sebastien Pouliot [Tue, 11 Jan 2005 19:58:23 +0000 (19:58 -0000)]
2005-01-11  Sebastien Pouliot  <sebastien@ximian.com>

* DSAManaged.cs: PublicOnly now reports false when a key hasn't yet
been generated.
* RSAManaged.cs: PublicOnly now reports false when a key hasn't yet
been generated.

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

19 years ago2005-01-11 Sebastien Pouliot <sebastien@ximian.com>
Sebastien Pouliot [Tue, 11 Jan 2005 19:56:12 +0000 (19:56 -0000)]
2005-01-11  Sebastien Pouliot  <sebastien@ximian.com>
* DSACryptoServiceProvider.cs: Import|ExportCspBlob throws
NotImplementedException (CryptoConvert class doesn't support DSA yet).
* RSACryptoServiceProvider.cs: SignHash/VerifyHash defaults to SHA-1
in 2.0. VerifyHash throw appropriate exception when no OID is
specified (1.0/1.1). Import|ExportCspBlob implemented using the
CryptoConvert class.
* RSAOAEPKeyExchangeDeformatter.cs: Throw exception if no key is
specified.
* RSAOAEPKeyExchangeFormatter.cs: Throw exception if no key is
specified.
* RSAPKCS1KeyExchangeFormatter.cs: Throw exception if no key is
specified.
* SymmetricAlgorithm.cs: More strict IV length checks on 2.0.

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

19 years ago2005-01-11 Sebastien Pouliot <sebastien@ximian.com>
Sebastien Pouliot [Tue, 11 Jan 2005 19:43:46 +0000 (19:43 -0000)]
2005-01-11  Sebastien Pouliot  <sebastien@ximian.com>

* AppDomain.cs: Removed Activate and ActivateNewProcess methods. They
have been removed from 2.0.

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

19 years ago2005-01-11 Sebastien Pouliot <sebastien@ximian.com>
Sebastien Pouliot [Tue, 11 Jan 2005 19:42:44 +0000 (19:42 -0000)]
2005-01-11  Sebastien Pouliot  <sebastien@ximian.com>
* DSACryptoServiceProviderTest.cs: Fixed VerifySignatureWithoutKey to
ensure that Mono didn't create the key before starting verification.
* RSACryptoServiceProviderTest.cs: Added tests for PublicOnly in the
constructor tests and for VerifyHash with a null OID.
* RSAPKCS1SignatureFormatterTest.cs: Fixed signatures values for
SHA256, SHA384 and SHA512 for NET_2_0 profile. The older signatures
(working only in Mono) can't be used because 2.0 use new OID for those
hash algorithms. Note that this still only works with Mono in 2.0!

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

19 years ago2005-01-11 Sebastien Pouliot <sebastien@ximian.com>
Sebastien Pouliot [Tue, 11 Jan 2005 19:31:44 +0000 (19:31 -0000)]
2005-01-11  Sebastien Pouliot  <sebastien@ximian.com>

* AppDomainTest.cs: Removed tests for Activate and ActivateNewProcess
as the methods have been removed from fx 2.0.

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

19 years ago2005-01-11 Atsushi Enomoto <atsushi@ximian.com>
Atsushi Eno [Tue, 11 Jan 2005 18:31:14 +0000 (18:31 -0000)]
2005-01-11  Atsushi Enomoto <atsushi@ximian.com>

* XmlSchema.cs : Write() should handle carefully output
  namespace/prefix mapping.

* XmlSchemaTests.cs : added TestWriteNamespaces2 ().

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

19 years ago2005-01-11 Zoltan Varga <vargaz@freemail.hu>
Zoltan Varga [Tue, 11 Jan 2005 17:45:15 +0000 (17:45 -0000)]
2005-01-11  Zoltan Varga  <vargaz@freemail.hu>

* thread6.cs: Add test for rethrowing abort exceptions.

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

19 years ago2005-01-11 Zoltan Varga <vargaz@freemail.hu>
Zoltan Varga [Tue, 11 Jan 2005 17:44:11 +0000 (17:44 -0000)]
2005-01-11  Zoltan Varga  <vargaz@freemail.hu>

* mini-exceptions.c exceptions-ppc.c aot.c: Cope with MonoJitInfo
changes.

* mini.h: Bump AOT version.

* mini.h (MonoCompile): Change exvar to a hash table.

* mini.c: Allocate a separate exvar for each handler block.

* mini.c: Get rid of the computation of filter_lengths, its not needed.

* mini.c inssel.brg: Change OP_THROW_OR_NULL to compare the current
ex var with the pending exception and only throw if the two are equal.
Fixes #68552.

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

19 years ago2005-01-11 Zoltan Varga <vargaz@freemail.hu>
Zoltan Varga [Tue, 11 Jan 2005 17:35:30 +0000 (17:35 -0000)]
2005-01-11  Zoltan Varga  <vargaz@freemail.hu>

* domain-internals.h: Move exvar_offset from MonoJitInfo to
MonoJitExceptionInfo, since each catch clause needs its own variable.

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

19 years ago2005-01-11 Zoltan Varga <vargaz@freemail.hu>
Zoltan Varga [Tue, 11 Jan 2005 17:32:18 +0000 (17:32 -0000)]
2005-01-11  Zoltan Varga  <vargaz@freemail.hu>

* exceptions.cs: Add tests for rethrow and nested catch clauses.

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

19 years ago2005-01-11 Zoltan Varga <vargaz@freemail.hu>
Zoltan Varga [Tue, 11 Jan 2005 16:54:11 +0000 (16:54 -0000)]
2005-01-11  Zoltan Varga  <vargaz@freemail.hu>

* mini-x86.c: Fix warnings.

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

19 years ago2005-01-11 Zoltan Varga <vargaz@freemail.hu>
Zoltan Varga [Tue, 11 Jan 2005 16:49:44 +0000 (16:49 -0000)]
2005-01-11  Zoltan Varga  <vargaz@freemail.hu>

* Makefile.am (common_sources): Move mini-exceptions.c here as it is
used by all the ports now.

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

19 years ago2005-01-11 Zoltan Varga <vargaz@freemail.hu>
Zoltan Varga [Tue, 11 Jan 2005 16:46:31 +0000 (16:46 -0000)]
2005-01-11  Zoltan Varga  <vargaz@freemail.hu>

* aot.c: Add write-symbols and save-temps options.

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

19 years ago2005-01-11 Dick Porter <dick@ximian.com>
Dick Porter [Tue, 11 Jan 2005 16:39:38 +0000 (16:39 -0000)]
2005-01-11  Dick Porter  <dick@ximian.com>

        * image.c (mono_pe_file_open): New variant on mono_image_open()
        that does not set up the CLI metadata; used for FileVersionInfo so
        it can get the data for windows binaries too.

        * process.c (process_read_string_block): Don't read off the end
        of the StringTable block.

        These both fix bug 70766.

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

19 years ago2004-01-11 Atsushi Enomoto <atsushi@ximian.com>
Atsushi Eno [Tue, 11 Jan 2005 16:19:25 +0000 (16:19 -0000)]
2004-01-11  Atsushi Enomoto  <atsushi@ximian.com>

* DataSet.cs,
  CustomDataClassGenerator.cs :
  In DataSet class, IXmlSerializable.GetSchema() returns null.
  In strongly-typed class, it returns schema.

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

19 years ago2005-01-11 Atsushi Enomoto <atsushi@ximian.com>
Atsushi Eno [Tue, 11 Jan 2005 16:04:50 +0000 (16:04 -0000)]
2005-01-11  Atsushi Enomoto <atsushi@ximian.com>

* XmlDataDocumentTest2.cs : Added re-Load()ing test.
  Added TypedDataDocument().

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

19 years ago2005-01-11 Atsushi Enomoto <atsushi@ximian.com>
Atsushi Eno [Tue, 11 Jan 2005 16:00:05 +0000 (16:00 -0000)]
2005-01-11  Atsushi Enomoto <atsushi@ximian.com>

* XmlTextWriter.cs : WriteComment() was outputting extraneous EOL.

* XmlTextWriterTests.cs : added Indent2() to test WriteComment EOL.

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

19 years agoCleanup examples (removed extra thread execution).
Paolo Molaro [Tue, 11 Jan 2005 14:58:27 +0000 (14:58 -0000)]
Cleanup examples (removed extra thread execution).

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

19 years agoClarify doc.
Paolo Molaro [Tue, 11 Jan 2005 14:42:08 +0000 (14:42 -0000)]
Clarify doc.

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

19 years ago2005-01-11 Anirban Bhattacharjee <banirban@novell.com>
Anirban Bhattacharjee [Tue, 11 Jan 2005 14:34:13 +0000 (14:34 -0000)]
2005-01-11 Anirban Bhattacharjee <banirban@novell.com>
        * statement.cs: A trivial correction in yesterday's check-in

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

19 years agoTue Jan 11 15:26:00 CET 2005 Paolo Molaro <lupus@ximian.comt>
Paolo Molaro [Tue, 11 Jan 2005 14:19:09 +0000 (14:19 -0000)]
Tue Jan 11 15:26:00 CET 2005 Paolo Molaro <lupus@ximian.comt>

* gc.c: set some fields to NULL at GC cleanup time.
* threads.c: if we quit the main thread, call exit ().

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

19 years ago2005-01-11 Zoltan Varga <vargaz@freemail.hu>
Zoltan Varga [Tue, 11 Jan 2005 13:52:36 +0000 (13:52 -0000)]
2005-01-11  Zoltan Varga  <vargaz@freemail.hu>

* Boolean.cs Char.cs Single.cs Double.cs: Implement IComparable<T> in
NET 2.0.

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

19 years agoImprove standard-compliance of simple name and member access
Raja R Harinath [Tue, 11 Jan 2005 13:51:16 +0000 (13:51 -0000)]
Improve standard-compliance of simple name and member access
resolution.  Fixes bugs #52697, #57200, #67520, #69519.
* ecore.cs (FullNamedExpression): New abstract base class
for Namespaces and TypeExpressions.
(ResolveFlags.SimpleName): Remove.
(SimpleName): Remove support for dotted names.
(SimpleName.ResolveAsTypeStep): Simplify.  Now just a wrapper to
DeclSpace.FindType and DeclSpace.LookupType.
(SimpleName.DoSimpleNameResolve): Remove support for dotted names.
(Expression.ExprClassName): Make member function.
* expression.cs (MemberAccess.ResolveAsTypeStep): Support LHS being
a namespace.  Remove creation of dotted "SimpleName"s.
(MemberAccess.DoResolve): Likewise.
* decl.cs (DeclSpace.Cache): Make private.
(DeclSpace.LookupInterfaceOrClass): Return a FullNamedExpression.
(DeclSpace.FindType): Update.
(DeclSpace.LookupType): Move here from RootContext.  Return a
FullNamedExpression.
* namespace.cs (Namespace): Derive from FullNamedExpression
so that it can be part of expression resolution.
(Namespace.Lookup): Return an FullNamedExpression.
(NamespaceEntry.LookupAlias): Lookup aliases only in current
namespace.
* rootcontext.cs (NamespaceLookup): Remove.
(LookupType): Move to DeclSpace.
* attribute.cs (CheckAttributeType): Update.
* doc.cs (FindDocumentedType): Remove allowAlias argument.
(FindDocumentedTypeNonArray): Likewise.

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

19 years ago * TreeView.cs: When setting the hbar/vbar/grip position use
Jackson Harper [Tue, 11 Jan 2005 13:49:46 +0000 (13:49 -0000)]
* TreeView.cs: When setting the hbar/vbar/grip position use
SetBounds so that perform layout is only called once. Also suspend
and resume layout so layout is only done once for all controls.
- Removed some debug fluff
* SizeGrip.cs: Call base implmentation in overriding methods.
- When visibility is changed the drawing buffers are killed so we
need to redraw.

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

19 years ago* test-334.cs: New test for #69519.
Raja R Harinath [Tue, 11 Jan 2005 13:49:17 +0000 (13:49 -0000)]
* test-334.cs: New test for #69519.

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

19 years ago2005-01-11 Sebastien Pouliot <sebastien@ximian.com>
Sebastien Pouliot [Tue, 11 Jan 2005 13:16:45 +0000 (13:16 -0000)]
2005-01-11  Sebastien Pouliot  <sebastien@ximian.com>

* X509Certificate.cs: Fixed NullReferenceException when asking for
data that wasn't a proper X.509 certificate.

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

19 years ago2005-01-11 Sebastien Pouliot <sebastien@ximian.com>
Sebastien Pouliot [Tue, 11 Jan 2005 13:16:19 +0000 (13:16 -0000)]
2005-01-11  Sebastien Pouliot  <sebastien@ximian.com>

* SymmetricTransform.cs: Added support for ANSI X9.23 padding and
ISO 10126 padding modes (applies to all symmetric block ciphers).

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

19 years ago2005-01-11 Dick Porter <dick@ximian.com>
Dick Porter [Tue, 11 Jan 2005 13:13:47 +0000 (13:13 -0000)]
2005-01-11  Dick Porter  <dick@ximian.com>

        * error.c (errno_to_WSA): Add EADDRNOTAVAIL error code
        translation.

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

19 years ago * TreeView.cs: Calculate the open node count while drawing. This
Jackson Harper [Tue, 11 Jan 2005 13:12:27 +0000 (13:12 -0000)]
* TreeView.cs: Calculate the open node count while drawing. This
saves us an entire tree traversal for every paint operation. Use
a member var for the open node count so less vars are passed around.

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

19 years ago* Makefile (all-local): Add CS0118-2-lib.dll.
Raja R Harinath [Tue, 11 Jan 2005 13:11:53 +0000 (13:11 -0000)]
* Makefile (all-local): Add CS0118-2-lib.dll.
(run-mcs-tests, runt-generics-tests): Don't pipe through tee.  It
loses exit code of do-tests.pl.
* do-tests.pl (PROFILELOG): New.  Copy all output to this file too.
* cs0234-2.cs: Bug #52697.
* cs0234-3.cs: Bug #57200.
* cs0118-2.cs, CS0118-2-lib.cs: Bug #67520.
* cs0538-2.cs: Remove bogus test.

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

19 years agoFix cs0509.cs, cs1632.cs.
Raja R Harinath [Tue, 11 Jan 2005 13:09:33 +0000 (13:09 -0000)]
Fix cs0509.cs, cs1632.cs.
* class.cs (TypeContainer.GetNormalBases): Don't assume !IsClass
is the same as IsInterface.
(TypeContainer.GetClassBases): Likewise.
* statement.cs (LabeledStatement.ig): New field.
(LabeledStatement.LabelTarget): Save ILGenerator which created the
label.
(LabeledStatement.DoEmit): Check that the label was created with
the same ILGenerator.

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

19 years ago2005-01-11 Sebastien Pouliot <sebastien@ximian.com>
Sebastien Pouliot [Tue, 11 Jan 2005 13:00:12 +0000 (13:00 -0000)]
2005-01-11  Sebastien Pouliot  <sebastien@ximian.com>

* CryptoConfig.cs: Added support to create RIPEMD160 and the new HMAC
algorithms (HMACMD5, HMACRIPEMD160, HMACSHA256, HMACSHA384 and
HMACSHA512). This fix the unit tests failures in Mono.Security.dll in
the NET_2_0 profile.

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

19 years ago2005-01-11 Sebastien Pouliot <sebastien@ximian.com>
Sebastien Pouliot [Tue, 11 Jan 2005 12:57:11 +0000 (12:57 -0000)]
2005-01-11  Sebastien Pouliot  <sebastien@ximian.com>

* CryptoConfigTest.cs: Added new RIPEMD160 hash algorithm and new HMAC
algorithms (HMACMD5, HMACRIPEMD160, HMACSHA256, HMACSHA384 and
HMACSHA512) to the tests.

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

19 years ago* MonthCalendar.cs:
John BouAntoun [Tue, 11 Jan 2005 11:26:38 +0000 (11:26 -0000)]
* MonthCalendar.cs:
- fixed selection to use mousemove, not mouse polling on timer
* ThemeWin32Classic.cs
- removed redundant unused variable "no_more_content"

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

19 years ago- Fixed DoEvents to not block
Peter Dennis Bartok [Tue, 11 Jan 2005 10:46:19 +0000 (10:46 -0000)]
- Fixed DoEvents to not block

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

19 years ago- Switched XplatUIWin32 to Unicode. Fixes #71147
Peter Dennis Bartok [Tue, 11 Jan 2005 09:57:36 +0000 (09:57 -0000)]
- Switched XplatUIWin32 to Unicode. Fixes #71147
- Added generation of TextChanged event to TextBoxBase

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

19 years ago2005-01-11 Atsushi Enomoto <atsushi@ximian.com>
Atsushi Eno [Tue, 11 Jan 2005 07:37:05 +0000 (07:37 -0000)]
2005-01-11  Atsushi Enomoto <atsushi@ximian.com>

* NewMonoXSD.cs : by default, dataset namespace is not "Schemas" but
  empty.

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

19 years ago2004-01-11 Atsushi Enomoto <atsushi@ximian.com>
Atsushi Eno [Tue, 11 Jan 2005 06:26:13 +0000 (06:26 -0000)]
2004-01-11  Atsushi Enomoto <atsushi@ximian.com>

* XmlReaderCommonTests.cs :
  Oops, ReadAttributeValue() was not reverted. Now marked as NotDotNet.

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

19 years ago2004-01-11 Atsushi Enomoto <atsushi@ximian.com>
Atsushi Eno [Tue, 11 Jan 2005 06:15:18 +0000 (06:15 -0000)]
2004-01-11  Atsushi Enomoto <atsushi@ximian.com>

* XmlReaderCommonTests.cs : reverted r38601. It is MS XmlTextReader
  that is buggy on attribute value's Prefix and NamespaceURI.

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

19 years agoAdded new files
Manjula GHM [Tue, 11 Jan 2005 04:45:06 +0000 (04:45 -0000)]
Added new files

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

19 years agoAdded new files
Manjula GHM [Tue, 11 Jan 2005 04:44:37 +0000 (04:44 -0000)]
Added new files

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

19 years agoUpdate man page
Miguel de Icaza [Tue, 11 Jan 2005 02:07:36 +0000 (02:07 -0000)]
Update man page

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

19 years ago2005-01-10 Sebastien Pouliot <sebastien@ximian.com>
Sebastien Pouliot [Tue, 11 Jan 2005 01:18:39 +0000 (01:18 -0000)]
2005-01-10  Sebastien Pouliot  <sebastien@ximian.com>

* CryptoConfig.cs: Change the OID for SHA-2 algorithms to match 2.0
and added new OID for asymmetric and symmetric algorithms.
* CspKeyContainerInfo.cs: Added CryptoKeySecurity property. This will
always return null until we support access control for key containers.
* CspParameters.cs: Added new constructors and propertys for access
control and password (2.0).
* DSASignatureDeformatter.cs: Throw ArgumentNullException in NET_2_0
if a null key is specified.
* DSASignatureFormatter.cs: Throw ArgumentNullException in NET_2_0 if
a null key is specified.
* HashAlgorithm.cs: Fix the reported exceptions for output buffers.
* HMAC.cs: Change the .Clear (which calls Dispose) to a .Initialize.
* MACTripleDES.cs: Removed unrequired private field _padding.
* PasswordDeriveBytes.cs: Added 4 new constructors where the password
is a byte[] (as it seems MS won't be using SecureString for this).
* RIPEMD160Managed.cs: Removed overriden Dispose method to match 2.0.
Clear buffers when initializing (e.g. re-using the hash instance).
* Rfc2898DeriveBytes.cs: Added a new constructor where the password
is a byte[] (as it seems MS won't be using SecureString for this).
* RSAPKCS1SignatureDeformatter.cs: Throw ArgumentNullException in
NET_2_0 if a null key is specified.
* RSAPKCS1SignatureFormatter.cs: Throw ArgumentNullException in
NET_2_0 if a null key is specified.
* ToBase64Transform.cs: Fix the reported exceptions for output buffers.

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

19 years agoAdd System.Security.AccessControl.CryptoKeySecurity to the build.
Sebastien Pouliot [Tue, 11 Jan 2005 01:13:24 +0000 (01:13 -0000)]
Add System.Security.AccessControl.CryptoKeySecurity to the build.

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

19 years ago2005-01-10 Sebastien Pouliot <sebastien@ximian.com>
Sebastien Pouliot [Tue, 11 Jan 2005 01:11:21 +0000 (01:11 -0000)]
2005-01-10  Sebastien Pouliot  <sebastien@ximian.com>

* CryptoKeySecurity.cs: Class declaration to complete CspParameters
and CspKeyContainerInfo in System.Security.Cryptography.

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

19 years ago2005-01-10 Sebastien Pouliot <sebastien@ximian.com>
Sebastien Pouliot [Tue, 11 Jan 2005 01:09:36 +0000 (01:09 -0000)]
2005-01-10  Sebastien Pouliot  <sebastien@ximian.com>

* Hash.cs: Fix exception reporting for new methods in 2.0.
* Publisher.cs: Fixed unit tests failures under 2.0 (some exceptions
were changed).
* PublisherMembershipCondition.cs: Fixed unit tests failures under 2.0
(some exceptions were changed).

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

19 years agoimplement toString
César Natarén [Tue, 11 Jan 2005 01:09:24 +0000 (01:09 -0000)]
implement toString

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

19 years ago2005-01-10 Sebastien Pouliot <sebastien@ximian.com>
Sebastien Pouliot [Tue, 11 Jan 2005 01:07:14 +0000 (01:07 -0000)]
2005-01-10  Sebastien Pouliot  <sebastien@ximian.com>

* HostSecurityManager.cs: Fix signature as DetermineApplicationTrust
doesn't return a boolean anymore.
* SecurityElement.cs: The attributes and children elements are not
indented in 2.0. This fix many unit tests that do string compares.
* PermissionSetCollection.cs: We can't trust all IList implementations
to throw the ArgumentOutOfRangeException - so we better do it here.

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

19 years ago2005-01-10 Cesar Lopez Nataren <cesar@ciencias.unam.mx>
César Natarén [Tue, 11 Jan 2005 01:06:48 +0000 (01:06 -0000)]
2005-01-10  Cesar Lopez Nataren  <cesar@ciencias.unam.mx>

* BooleanPrototype.cs: update to assert_type.
* SemanticAnalizer.cs: move BooleanPrototype.AssertType here, rename it to assert_type.

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

19 years ago2005-01-10 Sebastien Pouliot <sebastien@ximian.com>
Sebastien Pouliot [Tue, 11 Jan 2005 01:04:16 +0000 (01:04 -0000)]
2005-01-10  Sebastien Pouliot  <sebastien@ximian.com>

* X509Certificate.cs: Fixed NullReferenceException when asking for
data that wasn't a proper X.509 certificate.

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

19 years ago2005-01-10 Sebastien Pouliot <sebastien@ximian.com>
Sebastien Pouliot [Tue, 11 Jan 2005 01:02:46 +0000 (01:02 -0000)]
2005-01-10  Sebastien Pouliot  <sebastien@ximian.com>

* MACAlgorithm.cs: Added support for different padding modes (required
in 2.0).
* SymmetricTransform.cs: Added support for ANSI X9.23 padding and
ISO 10126 padding modes (applies to all symmetric block ciphers).

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

19 years agoimplement CreateInstance
César Natarén [Tue, 11 Jan 2005 00:51:48 +0000 (00:51 -0000)]
implement CreateInstance

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

19 years ago2005-01-11 Zoltan Varga <vargaz@freemail.hu>
Zoltan Varga [Mon, 10 Jan 2005 23:52:43 +0000 (23:52 -0000)]
2005-01-11  Zoltan Varga  <vargaz@freemail.hu>

* threads.c (interruption_request_apc): Decore APC callbacks with CALLBACK under win32.

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

19 years ago * TreeView.cs: Try not to draw outside the clipping rectangle on
Jackson Harper [Mon, 10 Jan 2005 22:57:10 +0000 (22:57 -0000)]
* TreeView.cs: Try not to draw outside the clipping rectangle on
each node element.

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

19 years ago2005-01-10 Gonzalo Paniagua Javier <gonzalo@ximian.com>
Gonzalo Paniagua Javier [Mon, 10 Jan 2005 22:44:15 +0000 (22:44 -0000)]
2005-01-10 Gonzalo Paniagua Javier <gonzalo@ximian.com>

* RegexBugs.cs: tests for bug #69065.

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

19 years agokeyboard navigation, item navigation, bug fixes
Jordi Mas i Hernandez [Mon, 10 Jan 2005 22:40:26 +0000 (22:40 -0000)]
keyboard navigation, item navigation, bug fixes

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

19 years ago2005-01-10 Gonzalo Paniagua Javier <gonzalo@ximian.com>
Gonzalo Paniagua Javier [Mon, 10 Jan 2005 22:35:06 +0000 (22:35 -0000)]
2005-01-10 Gonzalo Paniagua Javier <gonzalo@ximian.com>

* quicksearch.cs: handle IgnoreCase when getting the shift distance.
Fixes bug #69065. Patch by mei@work.email.ne.jp.

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

19 years ago2005-01-10 Zoltan Varga <vargaz@freemail.hu>
Zoltan Varga [Mon, 10 Jan 2005 21:59:04 +0000 (21:59 -0000)]
2005-01-10  Zoltan Varga  <vargaz@freemail.hu>

* mini-x86.c: Add support for returning structs in registers from pinvoke functions on WIN32.

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

19 years ago- Fix atomic ops on s390
Neale Ferguson [Mon, 10 Jan 2005 21:13:14 +0000 (21:13 -0000)]
- Fix atomic ops on s390
- Implement OP_ATOMIC_xxx operations on s390
- Standardize exception handling on s390 with other platforms
- Enable out of line bblock support
- Check vtable slot belongs to domain when building trampoline

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

19 years ago2005-01-10 Juraj Skripsky <juraj@hotfeet.ch>
Juraj Skripsky [Mon, 10 Jan 2005 20:19:58 +0000 (20:19 -0000)]
2005-01-10 Juraj Skripsky <juraj@hotfeet.ch>
* RepeatInfo.cs: fixed bug #68927 (DataList with RepeatLayout='Flow'
generates invalid html).

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

19 years ago * TreeView.cs:
Jackson Harper [Mon, 10 Jan 2005 20:07:38 +0000 (20:07 -0000)]
* TreeView.cs:
- Implement fast scrolling. Now only the newly
exposed nodes are drawn and the old image is moved using the
XplatUI::ScrollWindow method.
- Factor in height of nodes when calculating whether or not the
node is in the clipping rect.

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

19 years ago Committed wrong file before.
Jackson Harper [Mon, 10 Jan 2005 20:04:27 +0000 (20:04 -0000)]
Committed wrong file before.

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

19 years ago2005-01-10 Gonzalo Paniagua Javier <gonzalo@ximian.com>
Gonzalo Paniagua Javier [Mon, 10 Jan 2005 19:50:21 +0000 (19:50 -0000)]
2005-01-10 Gonzalo Paniagua Javier <gonzalo@ximian.com>

* System.Text/StringBuilder.cs: throw if the new size is greater than
the maximum capacity for the StringBuilder. Patch by luke@octerbar.net.
Fixes bug #62422.

* Test/System.Text/StringBuilderTest.cs: patch to test for capacity
being exceeded.

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

19 years ago * TreeView.cs: Implement fast scrolling. Now only the newly
Jackson Harper [Mon, 10 Jan 2005 19:42:49 +0000 (19:42 -0000)]
* TreeView.cs: Implement fast scrolling. Now only the newly
exposed nodes are drawn and the old image is moved using the
XplatUI::ScrollWindow method.

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

19 years agoMon Jan 10 20:30:19 CET 2005 Paolo Molaro <lupus@ximian.com>
Paolo Molaro [Mon, 10 Jan 2005 19:23:27 +0000 (19:23 -0000)]
Mon Jan 10 20:30:19 CET 2005 Paolo Molaro <lupus@ximian.com>

* atomic.h: fix some functions on ppc (tests/interlocked.cs).

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

19 years ago * PermissionSetCollectionTest.cs: Added tests for to see if alternates
Sebastien Pouliot [Mon, 10 Jan 2005 18:50:34 +0000 (18:50 -0000)]
* PermissionSetCollectionTest.cs: Added tests for to see if alternates
IList implementation (e.g. non-ArrayList) are supported as this
affects where we must check for exceptions.

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

19 years ago * TreeNodeCollection.cs: Refresh the tree when a new node is added.
Jackson Harper [Mon, 10 Jan 2005 18:41:31 +0000 (18:41 -0000)]
* TreeNodeCollection.cs: Refresh the tree when a new node is added.

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

19 years agoMoved and integrated the exiting threads.
Paolo Molaro [Mon, 10 Jan 2005 17:57:50 +0000 (17:57 -0000)]
Moved and integrated the exiting threads.

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

19 years agoMon Jan 10 18:53:05 CET 2005 Paolo Molaro <lupus@ximian.com>
Paolo Molaro [Mon, 10 Jan 2005 17:49:06 +0000 (17:49 -0000)]
Mon Jan 10 18:53:05 CET 2005 Paolo Molaro <lupus@ximian.com>

* driver.c: we don't run the Main() code in a subthread anymore.

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

19 years agoMon Jan 10 18:47:28 CET 2005 Paolo Molaro <lupus@ximian.com>
Paolo Molaro [Mon, 10 Jan 2005 17:40:39 +0000 (17:40 -0000)]
Mon Jan 10 18:47:28 CET 2005 Paolo Molaro <lupus@ximian.com>

* threads.h, threads.c, object.c: added accessor and settor for
main_thread. Handle it specially when exiting from it: wait
for other foreground threads to exit.

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

19 years ago2005-01-10 Dick Porter <dick@ximian.com>
Dick Porter [Mon, 10 Jan 2005 17:05:22 +0000 (17:05 -0000)]
2005-01-10  Dick Porter  <dick@ximian.com>

        * misc.c (_wapi_calc_timeout): Guard against overflow when
        calculating timeouts.  This makes waiting with a large
        (Int32.MaxValue) timeout not return immediately.

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

19 years agoMon Jan 10 17:54:16 CET 2005 Paolo Molaro <lupus@ximian.com>
Paolo Molaro [Mon, 10 Jan 2005 16:48:34 +0000 (16:48 -0000)]
Mon Jan 10 17:54:16 CET 2005 Paolo Molaro <lupus@ximian.com>

* mini.c: added experimental rtc support in the statistical
profiler: if the user has the permission, more accurate statistics
are gathered. Run with: MONO_RTC=4096 mono --profiler=default:stat ....
The MONO_RTC value must be restricted to what the linux rtc allows:
power of two from 64 to 8192 Hz.

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

19 years agoAdded check for linux/rtc.h.
Paolo Molaro [Mon, 10 Jan 2005 16:44:36 +0000 (16:44 -0000)]
Added check for linux/rtc.h.

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

19 years ago2005-01-10 Lluis Sanchez Gual <lluis@ximian.com>
Lluis Sanchez [Mon, 10 Jan 2005 16:03:43 +0000 (16:03 -0000)]
2005-01-10  Lluis Sanchez Gual  <lluis@ximian.com>

* BinaryCommon.cs: IntPtr is not a primitive type in the serialization
world. This fixes bug #70757.

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

19 years ago2005-01-10 Sebastien Pouliot <sebastien@ximian.com>
Sebastien Pouliot [Mon, 10 Jan 2005 15:31:38 +0000 (15:31 -0000)]
2005-01-10  Sebastien Pouliot  <sebastien@ximian.com>

* SecurityElementTest.cs: Add new tests for 2.0 methods. Adapted
existing tests to deal with the fact that 2.0 doesn't indent the XML
attributes and child elements.

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

19 years ago2005-01-10 Sebastien Pouliot <sebastien@ximian.com>
Sebastien Pouliot [Mon, 10 Jan 2005 15:29:46 +0000 (15:29 -0000)]
2005-01-10  Sebastien Pouliot  <sebastien@ximian.com>
* TimeZoneTest.cs: Ignore (don't fail) test if the current time zone
isn't part of the test suite.

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

19 years ago2005-01-10 Lluis Sanchez Gual <lluis@novell.com>
Lluis Sanchez [Mon, 10 Jan 2005 15:26:21 +0000 (15:26 -0000)]
2005-01-10  Lluis Sanchez Gual <lluis@novell.com>

* System.Web.dll.sources: Added new files:
System.Web.UI.WebControls/MenuItemTemplateContainer.cs
System.Web.UI.WebControls/SubMenuStyle.cs
* Makefile: Added those files to the build.

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

19 years ago2005-01-10 Lluis Sanchez Gual <lluis@novell.com>
Lluis Sanchez [Mon, 10 Jan 2005 15:25:57 +0000 (15:25 -0000)]
2005-01-10  Lluis Sanchez Gual <lluis@novell.com>

* arrow_up.gif, arrow_down.gif: Added menu resources.

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

19 years ago2005-01-10 Lluis Sanchez Gual <lluis@novell.com>
Lluis Sanchez [Mon, 10 Jan 2005 15:24:18 +0000 (15:24 -0000)]
2005-01-10  Lluis Sanchez Gual <lluis@novell.com>

* TemplateControlCompiler.cs: Get the container type from the
template (if it was defined using TemplateContainerAttribute.

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

19 years ago2005-01-10 Lluis Sanchez Gual <lluis@novell.com>
Lluis Sanchez [Mon, 10 Jan 2005 15:23:49 +0000 (15:23 -0000)]
2005-01-10  Lluis Sanchez Gual <lluis@novell.com>

* Menu.cs: Implemented most of missing properties. Added support for
item templates. Implemented menu scrolling.
* MenuItemBinding.cs: Implemented most of missing properties.
* MenuItem.cs: Implemented most of missing properties.
* Menu.js: Implemented scrolling and menu reposition into screen.
* MenuItemTemplateContainer.cs: Implemented.
* SubMenuStyle.cs: Implemented.

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

19 years ago2005-01-10 Lluis Sanchez Gual <lluis@novell.com>
Lluis Sanchez [Mon, 10 Jan 2005 15:21:19 +0000 (15:21 -0000)]
2005-01-10  Lluis Sanchez Gual <lluis@novell.com>

* TemplateBuilder.cs: Added a special constructor that takes an
attribute provider as parameter. The container type for the template
may be defined in a TemplateContainerAttribute.
* ControlBuilder.cs: Create the TemplateBuilder using that special
constructor.
* TemplateContainerAttribute.cs: Added 2.0 property and ctor.

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

19 years ago2005-01-10 Lluis Sanchez Gual <lluis@novell.com>
Lluis Sanchez [Mon, 10 Jan 2005 15:20:40 +0000 (15:20 -0000)]
2005-01-10  Lluis Sanchez Gual <lluis@novell.com>

* AssemblyInfo.cs: More resources.

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

19 years ago2005-01-10 Lluis Sanchez Gual <lluis@novell.com>
Lluis Sanchez [Mon, 10 Jan 2005 14:49:07 +0000 (14:49 -0000)]
2005-01-10  Lluis Sanchez Gual <lluis@novell.com>

* System.dll.sources: Added new file:
System.ComponentModel/BindingDirection.cs

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

19 years ago2005-01-10 LLuis Sanchez Gual <lluis@novell.com>
Lluis Sanchez [Mon, 10 Jan 2005 14:48:17 +0000 (14:48 -0000)]
2005-01-10  LLuis Sanchez Gual  <lluis@novell.com>

* BindingDirection.cs: New enum.

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

19 years ago2005-01-10 Sebastien Pouliot <sebastien@ximian.com>
Sebastien Pouliot [Mon, 10 Jan 2005 13:56:20 +0000 (13:56 -0000)]
2005-01-10  Sebastien Pouliot  <sebastien@ximian.com>

* PolicyLevelTest.cs: Removed [Ignore] from tests as they now execute
properly on 2.0. For 1.x the tests are added to the NotDotNet category.

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

19 years ago2005-01-10 Sebastien Pouliot <sebastien@ximian.com>
Sebastien Pouliot [Mon, 10 Jan 2005 13:35:36 +0000 (13:35 -0000)]
2005-01-10  Sebastien Pouliot  <sebastien@ximian.com>

* CryptoStreamTest.cs, DSACryptoServiceProviderTest.cs,
HashAlgorithmTest.cs, PKCS1MaskGenerationMethodTest.cs,
RSAPKCS1KeyExchangeFormatterTest.cs, ToBase64TransformTest.cs:
Use [Category ("NotDotNet")] for tests failing only on the MS runtime
(so they are now executed on Mono).

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

19 years ago2005-01-10 Zoltan Varga <vargaz@freemail.hu>
Zoltan Varga [Mon, 10 Jan 2005 13:17:27 +0000 (13:17 -0000)]
2005-01-10  Zoltan Varga  <vargaz@freemail.hu>

* mini-x86.c (mono_arch_emit_exceptions): Fix #71121.

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

19 years ago2005-01-10 Anirban Bhattacharjee <banirban@novell.com>
Anirban Bhattacharjee [Mon, 10 Jan 2005 13:12:04 +0000 (13:12 -0000)]
2005-01-10 Anirban Bhattacharjee <banirban@novell.com>
        * mb-parser.jay:
        * class.cs:
        * statement.cs:
        * rootcontext.cs:
        * mb-tokenizer.cs:
        * decl.cs:
        * expression.cs:
        * attribute.cs:
        * enum.cs:
        * codegen.cs:
                Removed warnings from all the above files which were showing up during make

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

19 years ago2005-01-10 Anirban Bhattacharjee <banirban@novell.com>
Anirban Bhattacharjee [Mon, 10 Jan 2005 13:04:06 +0000 (13:04 -0000)]
2005-01-10 Anirban Bhattacharjee <banirban@novell.com>
        * mb-parser.jay: Check for the overloaded property

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

19 years ago2005-01-10 Anirban Bhattacharjee <banirban@novell.com>
Anirban Bhattacharjee [Mon, 10 Jan 2005 12:59:03 +0000 (12:59 -0000)]
2005-01-10 Anirban Bhattacharjee <banirban@novell.com>
        * class.cs: A better check provided before adding a property to TypeContaineri

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

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

* ApplicationIdentity.cs: Throw ArgumentNullException if name is null.
Add default culture (neutral) to the name when none is specified.
* AppDomain.cs: Changed IsDefaultAppDomain (2.0). Is seems that we
can't trust Id ?

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

19 years agoAdd a Makefile to run the tests and make the tests actually useful.
Paolo Molaro [Mon, 10 Jan 2005 12:20:37 +0000 (12:20 -0000)]
Add a Makefile to run the tests and make the tests actually useful.
Added comments on tests that currently fail or that fail when
running the code in the main() thread.

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

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

* ApplicationIdentityTest.cs: Changed NullReferenceException for
ArgumentNullException (fixed in Dec CTP) and added test for cultures
in the application indentity.

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

19 years ago2005-01-10 Sureshkumar T <tsureshkumar@novell.com>
Sureshkumar T [Mon, 10 Jan 2005 11:43:46 +0000 (11:43 -0000)]
2005-01-10  Sureshkumar T  <tsureshkumar@novell.com>

* OdbcDataReader.cs: Connection has to be closed only after
Statement handle is freed. fixes bug #70048.

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

19 years agoMon Jan 10 12:06:18 CET 2005 Paolo Molaro <lupus@ximian.com>
Paolo Molaro [Mon, 10 Jan 2005 10:58:18 +0000 (10:58 -0000)]
Mon Jan 10 12:06:18 CET 2005 Paolo Molaro <lupus@ximian.com>

* process.c, verify.c: remove some bloat.

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