Zoltan Varga [Wed, 11 Feb 2004 13:41:33 +0000 (13:41 -0000)]
2004-02-11 Zoltan Varga <vargaz@freemail.hu>
* reflection.h (MonoReflectionMethodAux): Add 'param_cattr' field.
* reflection.c (mono_custom_attrs_from_param): Add support for dynamic
types.
* reflection.c (reflection_methodbuilder_to_mono_method): Save
custom attributes to the method_aux struct. Also fix array indexes etc.
* loader.c (mono_method_get_param_names): Make dynamic case work again.
svn path=/trunk/mono/; revision=22969
Lluis Sanchez [Wed, 11 Feb 2004 11:27:23 +0000 (11:27 -0000)]
* MapCodeGenerator.cs: Changed some methods to make them easier to reuse.
* TypeTranslator.cs: NMTOKENS, ENTITIES and IDREFS must be mapped to
string, not string[].
* XmlCodeExporter.cs: AddMappingMetadata(): improved attribute generation
for array parameters. In general, improved generation of schema Form
property.
* XmlMemberMapping.cs: Added Form property.
* XmlReflectionImporter.cs: Types that inherit from other types cannot be
simple types. Added a check for this.
* XmlSchemaExporter.cs: several fixes: better generation of IsMixed and
Form. The key used to determine if a map has been already generated must
include the XmlType, since there can be two xml types with the same CLR
type and namespace (for example, they may differ in the Form property).
* XmlSchemaImporter.cs: When getting the TypeData for a schema element,
also return the corresponding map. There can be two maps that have the
same TypeData, so given a TypeData is not always possible to get the
correct corresponding map (for example two arrays that only differ in the
Form of the item).
* XmlTypeMapping.cs: Added method to set if a map can represent a simple
type or not.
svn path=/trunk/mcs/; revision=22968
Atsushi Eno [Wed, 11 Feb 2004 03:53:40 +0000 (03:53 -0000)]
oops, commited incomplete log.
svn path=/trunk/mcs/; revision=22967
Atsushi Eno [Wed, 11 Feb 2004 03:50:03 +0000 (03:50 -0000)]
2004-02-11 Atsushi Enomoto <atsushi@ximian.com>
* XmlTextWriter.cs, XmlTextWriterOpenElement.cs.
svn path=/trunk/mcs/; revision=22966
Francisco Figueiredo Jr. [Tue, 10 Feb 2004 23:58:54 +0000 (23:58 -0000)]
2004-02-10 Francisco Figueiredo Jr. <fxjrlists@yahoo.com.br>
* NpgsqlTypes/NpgsqlTypesHelper.cs: Added support for datetime and time datatypes with timezone data. Thanks Sami Kuhmonen (sami@iqs.fi).
svn path=/trunk/mcs/; revision=22965
Francisco Figueiredo Jr. [Tue, 10 Feb 2004 23:54:46 +0000 (23:54 -0000)]
2004-02-10 Francisco Figueiredo Jr. <fxjrlists@yahoo.com.br>
* Added support for datetime and time datatypes with timezone data. Thanks Sami Kuhmonen (sami@iqs.fi).
svn path=/trunk/mcs/; revision=22964
Tim Coleman [Tue, 10 Feb 2004 22:56:35 +0000 (22:56 -0000)]
2004-02-10 Tim Coleman <tim@timcoleman.com>
* System.Security.dll.sources: Add new
System.Security.Cryptography.Xml classes.
svn path=/trunk/mcs/; revision=22963
Tim Coleman [Tue, 10 Feb 2004 22:55:52 +0000 (22:55 -0000)]
2004-02-10 Tim Coleman <tim@timcoleman.com>
* DataReference.cs EncryptedKey.cs EncryptedXml.cs
* KeyInfoEncryptedKey.cs KeyReference.cs ReferenceList.cs
* X509IssuerSerial.cs XmlDecryptionTransform.cs:
Add new classes for Xml Encryption in 1.2
* CipherData.cs CipherReference.cs EncryptedData.cs
* EncryptedReference.cs EncryptionMethod.cs EncryptionProperty.cs :
Change NamespaceURI reference to EncryptedXml class.
Make compliant with 1.2
* XmlEncryption.cs:
Add new entity names.
svn path=/trunk/mcs/; revision=22962
Jackson Harper [Tue, 10 Feb 2004 22:52:03 +0000 (22:52 -0000)]
* TemplateParser.cs: Use full path if the assembly is in the
private bin directory. Patch by Gonzalo Paniagua Javier.
svn path=/trunk/mcs/; revision=22961
Jackson Harper [Tue, 10 Feb 2004 22:39:49 +0000 (22:39 -0000)]
* AspTokenizer.cs: Collect discarded characters that might be used
in client side scripts. Patch by Liyu Liu.
* AspParser.cs: Add discarded characters. Patch by Liyu Liu.
svn path=/trunk/mcs/; revision=22960
Jackson Harper [Tue, 10 Feb 2004 21:12:06 +0000 (21:12 -0000)]
* Uri.cs: Preserve the trailing / if there is one when reducing
paths.
svn path=/trunk/mcs/; revision=22959
Jackson Harper [Tue, 10 Feb 2004 20:10:19 +0000 (20:10 -0000)]
* BaseCompiler.cs: Use the TempDirectory for compilation. Fixes
bug #54117.
svn path=/trunk/mcs/; revision=22955
Jackson Harper [Tue, 10 Feb 2004 20:03:45 +0000 (20:03 -0000)]
* VBCodeCompiler.cs: Use the temp files collection for
creating temp files.
svn path=/trunk/mcs/; revision=22954
Jackson Harper [Tue, 10 Feb 2004 20:02:08 +0000 (20:02 -0000)]
* CSharpCodeCompiler.cs: Use the temp files collection for
creating temp files.
svn path=/trunk/mcs/; revision=22953
Jackson Harper [Tue, 10 Feb 2004 19:59:54 +0000 (19:59 -0000)]
* CompilerParameters.cs: TempFiles should never return
null.
svn path=/trunk/mcs/; revision=22952
Carlos Guzmán Álvarez [Tue, 10 Feb 2004 19:41:47 +0000 (19:41 -0000)]
2004-02-10 Carlos Guzm��n ��lvarez <carlosga@telefonica.net>
* Mono.Security.Cryptography/PKCS1.cs:
- Added little change for allow the class to be used with
hash implementations that doesn't have an oid like the MD5SHA1 hash.
svn path=/trunk/mcs/; revision=22951
Zoltan Varga [Tue, 10 Feb 2004 18:47:11 +0000 (18:47 -0000)]
2004-02-10 Zoltan Varga <vargaz@freemail.hu>
* Makefile.am: Remove the SHELL=bash setting since some people do not seem to
have bash.
svn path=/trunk/mono/; revision=22948
Paolo Molaro [Tue, 10 Feb 2004 15:44:33 +0000 (15:44 -0000)]
Tue Feb 10 17:03:04 CET 2004 Paolo Molaro <lupus@ximian.com>
* icall.c, loader.c: icall cleanup: we save quite a bit of memory
(both static and runtime) and reduce startup time.
svn path=/trunk/mono/; revision=22946
Zoltan Varga [Tue, 10 Feb 2004 14:48:04 +0000 (14:48 -0000)]
2004-02-10 Zoltan Varga <vargaz@freemail.hu>
* iltests.il: Add test for non-empty stack before switch instruction.
svn path=/trunk/mono/; revision=22945
Gonzalo Paniagua Javier [Tue, 10 Feb 2004 14:47:34 +0000 (14:47 -0000)]
2004-02-10 Gonzalo Paniagua Javier <gonzalo@ximian.com>
* ChunkStream.cs:
* WebConnection.cs: fixed bug that caused ChunkStream to return 0 on
Read if it have not yet received any byte of the body but is expecting
a body.
svn path=/trunk/mcs/; revision=22944
Zoltan Varga [Tue, 10 Feb 2004 13:34:58 +0000 (13:34 -0000)]
2004-02-10 Zoltan Varga <vargaz@freemail.hu>
* marshal.c (mono_marshal_get_native_wrapper): Throw an exception on
AsAny marshalling conversion instead of crashing.
* marshal.c: Fix warnings.
svn path=/trunk/mono/; revision=22943
Carlos Guzmán Álvarez [Tue, 10 Feb 2004 11:54:50 +0000 (11:54 -0000)]
Throw exception if the Private Key is null
svn path=/trunk/mcs/; revision=22942
Zoltan Varga [Tue, 10 Feb 2004 11:04:03 +0000 (11:04 -0000)]
2004-02-10 Zoltan Varga <vargaz@freemail.hu>
* AppDomain.cs (Load): Check that assemblyRef.Name is not empty, to
avoid an assert in the runtime.
svn path=/trunk/mcs/; revision=22941
Carlos Guzmán Álvarez [Tue, 10 Feb 2004 10:18:15 +0000 (10:18 -0000)]
Ssl Server class without implementation ( methods signatures only ). Matches MS .NET 1.2 documentation
svn path=/trunk/mcs/; revision=22940
Jordi Mas i Hernandez [Tue, 10 Feb 2004 09:02:53 +0000 (09:02 -0000)]
drawstring methods fixes
svn path=/trunk/mcs/; revision=22939
Marek Safar [Tue, 10 Feb 2004 08:56:09 +0000 (08:56 -0000)]
2004-02-10 Marek Safar <marek.safar@seznam.cz>
* cs0111-2.cs: Fixed error message.
cs0111-5.cs,
cs0528-2.cs: New error tests.
svn path=/trunk/mcs/; revision=22938
Atsushi Eno [Tue, 10 Feb 2004 08:33:28 +0000 (08:33 -0000)]
2004-02-10 Atsushi Enomoto <atsushi@ximian.com>
* XmlNode.cs : ChildNodes should not create XmlNodeListChildren
every time. This fix heavily improved performance.
svn path=/trunk/mcs/; revision=22937
Atsushi Eno [Tue, 10 Feb 2004 06:05:26 +0000 (06:05 -0000)]
2004-02-10 Atsushi Enomoto <atsushi@ximian.com>
* XsltCompiledContext.cs :
replaced EnumeratorIterator with ListIterator
svn path=/trunk/mcs/; revision=22935
Atsushi Eno [Tue, 10 Feb 2004 06:04:28 +0000 (06:04 -0000)]
2004-02-10 Atsushi Enomoto <atsushi@ximian.com>
* Iterator.cs : Added overriden Count properties for some iterators
(this fixes the half of #50678).
Added ListIterator class (which can reduce GetEnumerator()).
In some places we can omit clone for Current property, so added
some check logic (It has no effect as yet).
* Expression.cs, DefaultContext.cs :
use ListIterator instead of EnumeratorIterator.
svn path=/trunk/mcs/; revision=22934
Atsushi Eno [Tue, 10 Feb 2004 05:41:09 +0000 (05:41 -0000)]
2004-02-10 Atsushi Enomoto <atsushi@ximian.com>
* XmlAttributeCollection.cs : set owner element as parent on removal
events (though they are not "parent" in infoset or dom context)
* XmlElement.cs : Don't remove attributes twice (raises extraneous
removal events).
* XmlNamespaceManager.cs, XmlNodeChangedEventArgs :
Added NET_1_2 members.
svn path=/trunk/mcs/; revision=22933
Jackson Harper [Mon, 9 Feb 2004 22:23:02 +0000 (22:23 -0000)]
* ExpiresBucket.cs: Remove duplicate code. Fixes bug #54031.
svn path=/trunk/mcs/; revision=22927
Sebastien Pouliot [Mon, 9 Feb 2004 22:12:45 +0000 (22:12 -0000)]
2004-02-09 Sebastien Pouliot <sebastien@ximian.com>
* Mono.Security_test.dll.sources Added Mono.Math BigInteger unit test
to the build (as they cannot be executed with corlib).
svn path=/trunk/mcs/; revision=22926
Jackson Harper [Mon, 9 Feb 2004 22:09:13 +0000 (22:09 -0000)]
* System.Web.dll.sources: Remove System.Web.Caching.Watcher from
build. We are now using FileSystemWatcher.
svn path=/trunk/mcs/; revision=22925
Jackson Harper [Mon, 9 Feb 2004 22:00:05 +0000 (22:00 -0000)]
* Cache.cs: Close entries that are removed.
* CacheDependency.cs: Use FileSystemWatcher instead of custom
Watcher for file dependencies.
* OutputCacheModule.cs: Make the varyby objects dependent on the
cached page.
svn path=/trunk/mcs/; revision=22924
Jackson Harper [Mon, 9 Feb 2004 21:54:26 +0000 (21:54 -0000)]
* Page.cs: Set cacheability for server side caching.
svn path=/trunk/mcs/; revision=22923
Sebastien Pouliot [Mon, 9 Feb 2004 21:47:09 +0000 (21:47 -0000)]
2004-02-09 Sebastien Pouliot <sebastien@ximian.com>
* BigInteger.cs: Added INSIDE_CORLIB to define ModulusRing as
internal. Without this the unit tests for Mono.Math (now in
Mono.Security assembly) wont compile (see bugzilla #44845).
svn path=/trunk/mcs/; revision=22922
Martin Baulig [Mon, 9 Feb 2004 21:33:02 +0000 (21:33 -0000)]
Reflect latest runtime changes.
svn path=/trunk/mcs/; revision=22921
Martin Baulig [Mon, 9 Feb 2004 21:32:29 +0000 (21:32 -0000)]
2004-02-09 Martin Baulig <martin@ximian.com>
* class.h (MonoGenericMethod): Added `MonoMethod *declaring'.
* reflection.h (MonoReflectionInflatedMethod): Removed the
`declaring' field, it's now in the unmanaged MonoGenericMethod.
* reflection.c (method_encode_methodspec): Removed the `method'
argument; we get it from `gmethod->declaring'.
(inflated_method_get_object): Removed the `declaring' argument.
svn path=/trunk/mono/; revision=22920
Martin Baulig [Mon, 9 Feb 2004 21:06:05 +0000 (21:06 -0000)]
2004-02-09 Martin Baulig <martin@ximian.com>
* class.h (MonoGenericMethod): New type.
(MonoGenericInst): Remove `mtype_argc', `mtype_argv' and
`generic_method'.
* metadata.h (MonoMethodHeader): Replaced the `geninst' field with
a `MonoGenericMethod *gen_method' one.
* class.c (mono_class_inflate_generic_type): Take an additional
`MonoGenericMethod * argument. This is only non-NULL if we're
inflating types for a generic method.
(mono_class_inflate_generic_signature): Renamed to
inflate_generic_signature() and made static; take a
`MonoGenericMethod *' argument instead of a `MonoGenericInst *'.
(inflate_generic_header): Take a `MonoGenericMethod *' argument
instead of a `MonoGenericInst *' one.
(mono_class_inflate_generic_method): Likewise.
* reflection.c (encode_generic_method_sig): Take a
`MonoGenericMethod *' argument instead of a `MonoGenericInst *'.
(method_encode_methodspec): Likewise.
(inflated_method_get_object): Likewise.
* reflection.h (MonoReflectionGenericInst): Replaced the `ginst'
field with a `MonoGenericMethod *gmethod' one.
svn path=/trunk/mono/; revision=22919
Sebastien Pouliot [Mon, 9 Feb 2004 20:54:45 +0000 (20:54 -0000)]
2004-02-09 Sebastien Pouliot <sebastien@ximian.com>
* ArithmeticBigTest.cs:
* BigIntegerSetTest.cs:
* BitwiseTest.cs:
* GcdBigTest.cs:
* ModInverseBigTest.cs:
* ModRingTest.cs:
* PrimeGenerationTest.cs:
* PrimeTestingTest.cs:
* SearchGeneratorTest.cs:
New. Copied from corlib (where they cannot be executed because BigInteger is internal).
svn path=/trunk/mcs/; revision=22918
Carlos Guzmán Álvarez [Mon, 9 Feb 2004 20:32:02 +0000 (20:32 -0000)]
Updated Changelog (Removed old file- TlsSessionState.cs)
svn path=/trunk/mcs/; revision=22917
Carlos Guzmán Álvarez [Mon, 9 Feb 2004 20:27:47 +0000 (20:27 -0000)]
Removed old file
svn path=/trunk/mcs/; revision=22916
Sebastien Pouliot [Mon, 9 Feb 2004 20:23:44 +0000 (20:23 -0000)]
2004-02-09 Sebastien Pouliot <sebastien@ximian.com>
* SymmetricAlgorithm.cs: Reintroduced the patch from 2003-08-24 to fix
IV length exception for stream ciphers (e.g. RC4). I overwrote it by
accident some time ago :(
svn path=/trunk/mcs/; revision=22915
Sebastien Pouliot [Mon, 9 Feb 2004 19:44:09 +0000 (19:44 -0000)]
2004-02-09 Sebastien Pouliot <sebastien@ximian.com>
* Makefile: Added /unsafe to compile BigInteger. Hopefully this will
only be temporary.
* Mono.Security.dll.sources: Added Mono.Math.* and PKCS1 and
RSAManaged copies (from corlib) to support TLS.
svn path=/trunk/mcs/; revision=22914
Sebastien Pouliot [Mon, 9 Feb 2004 19:37:16 +0000 (19:37 -0000)]
2004-02-09 Sebastien Pouliot <sebastien@ximian.com>
* NextPrimeFinder.cs: New. Copied from corlib. Required for PKCS1 and
RSAManaged (which are required for TLS).
* PrimeGeneratorBase.cs: New. Copied from corlib. Required for PKCS1
and RSAManaged (which are required for TLS).
* SequentialSearchPrimeGeneratorBase.cs: New. Copied from corlib.
Required for PKCS1 and RSAManaged (which are required for TLS).
svn path=/trunk/mcs/; revision=22913
Sebastien Pouliot [Mon, 9 Feb 2004 19:36:24 +0000 (19:36 -0000)]
2004-02-09 Sebastien Pouliot <sebastien@ximian.com>
* ConfidenceFactor.cs: New. Copied from corlib. Required for PKCS1 and
RSAManaged (which are required for TLS).
* PrimalityTests.cs: New. Copied from corlib. Required for PKCS1 and
RSAManaged (which are required for TLS).
svn path=/trunk/mcs/; revision=22912
Sebastien Pouliot [Mon, 9 Feb 2004 19:35:26 +0000 (19:35 -0000)]
2004-02-09 Sebastien Pouliot <sebastien@ximian.com>
* BigInteger.cs: New. Copied from corlib. Required for PKCS1 and
RSAManaged (which are required for TLS).
svn path=/trunk/mcs/; revision=22911
Sebastien Pouliot [Mon, 9 Feb 2004 19:33:47 +0000 (19:33 -0000)]
2004-02-09 Sebastien Pouliot <sebastien@ximian.com>
* PKCS1.cs: New. Copied from corlib. Required for RSAManaged.
* RSAManaged.cs: New. Copied from corlib. Required for TLS - some
parts (MD5SHA1) cannot work with the default RSACryptoServiceProvider.
svn path=/trunk/mcs/; revision=22910
Carlos Guzmán Álvarez [Mon, 9 Feb 2004 19:27:48 +0000 (19:27 -0000)]
2004-02-09 Carlos Guzm��n ��lvarez <carlosga@telefonica.net>
* Changed the license header to all the sources files
to remove accents.
* Mono.Security.Protocol.Tls/SslClientStream.cs:
- Try to improve record reading.
* Mono.Security.Protocol.Tls.Handshake.Client/TlsClientCertificate.cs:
- Send always the first certificate.
* Mono.Security.Protocol.Tls.Handshake.Client/TlsServerKeyExchange.cs:
- Added changes for correct verification of the signed data sent
by the server.
* Mono.Security.Protocol.Tls/RSASslSignatureFormatter.cs:
- Create RSA as an RSAManaged instance.
* Mono.Security.Protocol.Tls/RSASslSignatureFormatter.cs:
* Mono.Security.Protocol.Tls/RSASslSignatureDeformatter.cs:
- Changed key field to be of RSA type.
* Mono.Security.Protocol.Tls/RSASslSignatureFormatter.cs:
* Mono.Security.Protocol.Tls/RSASslSignatureDeformatter.cs:
- Added new classes for implement in the future RSA-SSL signatures.
* Changed #region names in all source files.
* Mono.Security.Protocol.Handshake.Client/TlsServerCertificate.cs:
- Fixed message (but not working yet - we need RSA signing
capabilitites with MD5SHA1 hash).
* Mono.Security.Protocol.Handshake.Client/TlsServerCertificate.cs:
- Retrict certificate validation to the first validation.
( real validation needs to be made using a chain )
- Improved domain validation by making a IP checking between
the target host IP and the certificate domain IP.
- Fixed error list handling on certificate validation.
* Mono.Security.Protocol.Tls/SslClientStream.cs:
- Added new exceptions.
svn path=/trunk/mcs/; revision=22909
Carlos Guzmán Álvarez [Mon, 9 Feb 2004 19:27:21 +0000 (19:27 -0000)]
Added new TLS source files definitions
svn path=/trunk/mcs/; revision=22908
Carlos Guzmán Álvarez [Mon, 9 Feb 2004 19:21:41 +0000 (19:21 -0000)]
2004-02-09 Carlos Guzm��n ��lvarez <carlosga@telefonica.net>
* Changed the license header to all the sources files
to remove accents.
* Mono.Security.Protocol.Tls/SslClientStream.cs:
- Try to improve record reading.
* Mono.Security.Protocol.Tls.Handshake.Client/TlsClientCertificate.cs:
- Send always the first certificate.
* Mono.Security.Protocol.Tls.Handshake.Client/TlsServerKeyExchange.cs:
- Added changes for correct verification of the signed data sent
by the server.
* Mono.Security.Protocol.Tls/RSASslSignatureFormatter.cs:
- Create RSA as an RSAManaged instance.
* Mono.Security.Protocol.Tls/RSASslSignatureFormatter.cs:
* Mono.Security.Protocol.Tls/RSASslSignatureDeformatter.cs:
- Changed key field to be of RSA type.
* Mono.Security.Protocol.Tls/RSASslSignatureFormatter.cs:
* Mono.Security.Protocol.Tls/RSASslSignatureDeformatter.cs:
- Added new classes for implement in the future RSA-SSL signatures.
* Changed #region names in all source files.
* Mono.Security.Protocol.Handshake.Client/TlsServerCertificate.cs:
- Fixed message (but not working yet - we need RSA signing
capabilitites with MD5SHA1 hash).
* Mono.Security.Protocol.Handshake.Client/TlsServerCertificate.cs:
- Retrict certificate validation to the first validation.
( real validation needs to be made using a chain )
- Improved domain validation by making a IP checking between
the target host IP and the certificate domain IP.
- Fixed error list handling on certificate validation.
* Mono.Security.Protocol.Tls/SslClientStream.cs:
- Added new exceptions.
svn path=/trunk/mcs/; revision=22907
Zoltan Varga [Mon, 9 Feb 2004 18:33:36 +0000 (18:33 -0000)]
2004-02-09 Zoltan Varga <vargaz@freemail.hu>
* Thread.cs: Add fields added to unmanaged MonoThread here as well.
Fixes random errors caused by memory corruption.
svn path=/trunk/mcs/; revision=22906
Sebastien Pouliot [Mon, 9 Feb 2004 18:19:37 +0000 (18:19 -0000)]
2004-02-09 Sebastien Pouliot <sebastien@ximian.com>
* PolicyLevelTest.cs: Ignored test Reset as the functionality isn't
yet present in Mono.
* UrlMembershipConditionTest.cs: Ignored the site related test as the
functionality isn't yet present in Mono.
* UrlTest.cs: Ignored the site related test as the functionality isn't
yet present in Mono.
svn path=/trunk/mcs/; revision=22905
Tim Coleman [Mon, 9 Feb 2004 18:05:54 +0000 (18:05 -0000)]
2004-02-09 Joerg Rosenkranz <joergr@voelcker.com>
* System.Data.OracleClient/OracleLob.cs:
Changed Erase() to call Erase(offset, amount)
using zero based offset.
svn path=/trunk/mcs/; revision=22904
Lluis Sanchez [Mon, 9 Feb 2004 16:06:44 +0000 (16:06 -0000)]
* WebServiceHandler.cs: inheritance from WebService is not mandatory.
svn path=/trunk/mcs/; revision=22903
Lluis Sanchez [Mon, 9 Feb 2004 15:38:30 +0000 (15:38 -0000)]
* TypeTranslator.cs, XmlCustomFormatter.cs: Added support for the
normalizedString schema type.
svn path=/trunk/mcs/; revision=22902
Gonzalo Paniagua Javier [Mon, 9 Feb 2004 15:22:09 +0000 (15:22 -0000)]
2004-02-09 Gonzalo Paniagua Javier <gonzalo@ximian.com>
* WebConfigurationSettings.cs: fix Web.config search for caseo
insensitive filesystems.
svn path=/trunk/mcs/; revision=22901
Gonzalo Paniagua Javier [Mon, 9 Feb 2004 15:17:56 +0000 (15:17 -0000)]
2004-02-09 Gonzalo Paniagua Javier <gonzalo@ximian.com>
* System.Web/HttpApplication.cs: ApplicationState is inited by the
factory so, return that value in the property. when we use the context
Session, cache it in the instance field.
* System.Web/HttpApplicationFactory.cs: fixed target Type for the
event when hooking application and module events. Initialize application
and session scope objects. Fixes non-aplication events hook up.
* System.Web/HttpStaticObjectsCollection.cs: added StaticItem and delay
the creation of the objects until they are requested.
* System.Web.SessionState/SessionInProcHandler.cs:
* System.Web.SessionState/SessionSQLServerHandler.cs:
* System.Web.SessionState/SessionStateServerHandler.cs: when creating
the HttpSessionStateObjets, use the session objects that we know about
in HttpApplicationFactory.
Fixes bug #53387.
svn path=/trunk/mcs/; revision=22900
Sebastien Pouliot [Mon, 9 Feb 2004 14:23:56 +0000 (14:23 -0000)]
2004-02-09 Sebastien Pouliot <sebastien@ximian.com>
* DSACryptoServiceProvider.cs: Fixed support for key pair persistence.
It now requires (like MS) to call Clear to delete an existing
container. PersistKeyInCsp default value also changes if a
CspParameters is supplied (or not) to the constructor.
* RSACryptoServiceProvider.cs: Same fixes as DSA.
svn path=/trunk/mcs/; revision=22899
Sebastien Pouliot [Mon, 9 Feb 2004 14:20:15 +0000 (14:20 -0000)]
2004-02-09 Sebastien Pouliot <sebastien@ximian.com>
* DSACryptoServiceProvider.cs: Added new unit tests for key pair
persistence.
* RSACryptoServiceProvider.cs: Added new unit tests for key pair
persistence.
svn path=/trunk/mcs/; revision=22898
Gonzalo Paniagua Javier [Mon, 9 Feb 2004 10:36:07 +0000 (10:36 -0000)]
stylized
svn path=/trunk/mcs/; revision=22897
Marek Safar [Mon, 9 Feb 2004 08:38:27 +0000 (08:38 -0000)]
2004-02-09 Marek Safar <marek.safar@seznam.cz>
* decl.cs (GetSignatureForError): New virtual method to get full name
for error messages.
* attribute.cs (IAttributeSupport): New interface for attribute setting.
Now it is possible to rewrite ApplyAttributes method to be less if/else.
* interface.cs : All InterfaceXXX classes are now derived from MemberCore.
Duplicated members and code in these classes has been removed.
Better encapsulation in these classes.
svn path=/trunk/mcs/; revision=22896
Bernie Solomon [Mon, 9 Feb 2004 04:58:36 +0000 (04:58 -0000)]
2004-02-08 Bernie Solomon <bernard@ugsolutions.com>
* class.h (mono_class_has_parent): add parens to expansion
so you can ! this.
svn path=/trunk/mono/; revision=22895
Jackson Harper [Sun, 8 Feb 2004 21:27:42 +0000 (21:27 -0000)]
flush
svn path=/trunk/mcs/; revision=22894
Jackson Harper [Sun, 8 Feb 2004 21:19:45 +0000 (21:19 -0000)]
* Uri.cs: IsLoopback has different behavoir then
IPAddress::IsLoopback. It will only return true for ipv4 addresses
if they are 127.0.0.1, localhost, or loopback.
svn path=/trunk/mcs/; revision=22893
Martin Baulig [Sun, 8 Feb 2004 21:07:53 +0000 (21:07 -0000)]
2004-02-08 Martin Baulig <martin@ximian.com>
* image.h (MonoImage): Removed `generics_cache'.
* class.c (mono_class_from_generic): Take a `MonoGenericInst *'
instead of a `MonoType *' argument; removed the `inflate_methods'
argument. Don't inflate methods here.
* loader.c (find_method): If it's a generic instance, call
mono_class_init() on the `sclass->generic_inst->generic_type'.
* metadata.c (mono_type_size): Make this work on uninitialized
generic instances; call it on the `ginst->generic_type's class.
* reflection.c (mono_reflection_bind_generic_parameters): Call
mono_class_from_generic() to create the `ginst->klass'.
svn path=/trunk/mono/; revision=22892
Atsushi Eno [Sun, 8 Feb 2004 20:27:04 +0000 (20:27 -0000)]
2004-02-08 Atsushi Enomoto <atsushi@ximian.com>
* DTDObjectModel.cs : Limit external entity reference from DTD by 256.
foreach elimination. DTDParameterEntityDeclaration should set Root.
Compute attribute default value without raising an error.
(for non-error reporting reader)
* DTDReader.cs : Fixes for the above fixes. foreach elimination.
* DTDValidatingReader.cs, NameTable.cs, XmlAttribute.cs,
XmlAttributeCollection.cs, XmlChar.cs, XmlConstruct.cs,
XmlDocumentFragment.cs, XmlDocumentNavigator.cs, XmlElement.cs,
XmlEntityReference.cs, XmlNamedNodeMap.cs, XmlNode.cs,
XmlText.cs : foreach elimination.
* XmlDocument.cs, XmlSignificantWhitespace.cs, XmlWhitespace.cs :
foreach elimination. Removed unnecesary methods.
* XmlTextReader.cs : code format refactory. Optimized some methods.
foreach elimination. Replaced Stack with string array.
Replaced StringBuilder with char array. Removed unnecessary methods.
svn path=/trunk/mcs/; revision=22891
Atsushi Eno [Sun, 8 Feb 2004 20:24:39 +0000 (20:24 -0000)]
2004-02-08 Atsushi Enomoto <atsushi@ximian.com>
* GenericOutputter.cs,
XslAttributeSet.cs,
XslStylesheet.cs,
XslTemplate.cs : tiny foreach elimination.
svn path=/trunk/mcs/; revision=22890
Atsushi Eno [Sun, 8 Feb 2004 20:23:41 +0000 (20:23 -0000)]
2004-02-08 Atsushi Enomoto <atsushi@ximian.com>
* DefaultContext.cs, Expression.cs, Iterator.cs :
tiny foreach elimination.
svn path=/trunk/mcs/; revision=22889
Atsushi Eno [Sun, 8 Feb 2004 20:23:08 +0000 (20:23 -0000)]
2004-02-08 Atsushi Enomoto <atsushi@ximian.com>
* XsdIdentityState.cs,
XsdKeyTable.cs,
XsdParticleValidationState.cs,
XsdValidatingReader.cs,
XsdWildcard.cs : foreach elimination.
svn path=/trunk/mcs/; revision=22888
Ben Maurer [Sun, 8 Feb 2004 18:55:03 +0000 (18:55 -0000)]
build fix
svn path=/trunk/mcs/; revision=22885
Martin Baulig [Sun, 8 Feb 2004 17:59:19 +0000 (17:59 -0000)]
2004-02-08 Martin Baulig <martin@ximian.com>
* class.h (MonoClass): Changed type of `generic_inst' from
`MonoType *' to `MonoGenericInst *'.
svn path=/trunk/mono/; revision=22883
David Sheldon [Sun, 8 Feb 2004 16:11:27 +0000 (16:11 -0000)]
2004-02-08 David Sheldon <dave-mono@earth.li>
* NumberFormatInfo.cs: When parsing the percentages, put the data
into PercentDecimalDigits/PercentGroupLengths, rather than trashing
the NumberDecimatDigits etc. This also means that the percent format
info gets set.
svn path=/trunk/mcs/; revision=22882
Sebastien Pouliot [Sun, 8 Feb 2004 15:53:33 +0000 (15:53 -0000)]
2004-02-08 Sebastien Pouliot <sebastien@ximian.com>
* HashAlgorithm.cs: Changed the ComputeHash(Stream) method to (a) not
allocate the whole stream memory (big memory saver as suggested by
Peter Williams in bugzilla entry #54022) and (b) to never use Stream.
Length and Stream.Position because they aren't implemented for every
stream class (similar issue to the CryptoStream patch).
* MD5CryptoServiceProvider.cs: Moved a buffer allocation from
ProcessBlock to constructor to reduce memory allocation. Optimization
suggested by Peter Williams in bugzilla entry #54024.
svn path=/trunk/mcs/; revision=22881
Martin Baulig [Sun, 8 Feb 2004 15:30:27 +0000 (15:30 -0000)]
2004-02-08 Martin Baulig <martin@ximian.com>
* MonoGenericInst.cs (MonoGenericInst.inflate): Pass recursive
invocations the `reflected' type as `reflected', not `this'.
(MonoInflatedMethod, MonoInflatedCtor): Reflect latest runtime changes.
svn path=/trunk/mcs/; revision=22879
Martin Baulig [Sun, 8 Feb 2004 15:25:47 +0000 (15:25 -0000)]
2004-02-08 Martin Baulig <martin@ximian.com>
* icall.c (ves_icall_Type_BindGenericParameters): Just call
mono_type_get_object(), this is now creating a `MonoGenericInst'
for MONO_TYPE_GENERICINST.
(ves_icall_MonoGenericInst_GetParentType): Likewise.
(ves_icall_MonoGenericInst_GetInterfaces): Likewise.
* reflection.c (mono_type_get_object): Return a `MonoGenericInst'
instead instead of a `MonoType' for MONO_TYPE_GENERICINST.
(inflated_method_get_object): Added `MonoClass *refclass' argument.
(mono_reflection_inflate_method_or_ctor): Correctly set declaring
and reflected type.
* reflection.h (MonoReflectionInflatedMethod): Removed
`declaring_type' and `reflected_type'.
svn path=/trunk/mono/; revision=22877
Eran Domb [Sun, 8 Feb 2004 15:06:45 +0000 (15:06 -0000)]
XmlSchemaMapper.cs : Read columns is they were written as SimpleContent or as Attributes.
svn path=/trunk/mcs/; revision=22876
Eran Domb [Sun, 8 Feb 2004 10:11:31 +0000 (10:11 -0000)]
Fix some bugs in recognizing the kind of xml we are parsing.
svn path=/trunk/mcs/; revision=22875
Andreas N [Sun, 8 Feb 2004 07:59:06 +0000 (07:59 -0000)]
2004-02-07 Andreas Nahr <ClassDevelopment@A-SoftTech.com>
* Margins.cs: Restyled, implemented missing members
* PageSettings.cs: Added missing attributes, stubbed,
fixed a few small issues
* PreviewPrintController.cs: Stubbed, small issues fixed
* PrintController.cs: Marked unfinished, restyled
* PrintDocument.cs: Added attributes
* PrinterResolution.cs: Added missing method
* PrinterSettings.cs: Mono-stylyzed, fixed signatures,
removed commented out values
* PrinterUnitConvert.cs: Added private constructor
* StandardPrintController.cs: Little restyling
* PaperKind.cs: Added missing enum values
svn path=/trunk/mcs/; revision=22874
Duncan Mak [Sun, 8 Feb 2004 07:18:40 +0000 (07:18 -0000)]
(ToType): Always let a Convert.ChangeType call
succeed if the source object is already of the destination type.
svn path=/trunk/mcs/; revision=22873
Martin Baulig [Sun, 8 Feb 2004 00:29:08 +0000 (00:29 -0000)]
2004-02-08 Martin Baulig <martin@ximian.com>
* MonoGenericInst.cs (MonoGenericInst.GetParentType): New interncall.
(MonoGenericInst.GetInterfaces_internal): New interncall.
(MonoGenericInst): Reflect latest API changes; use GetParentType()
and GetInterfaces_internal() instead of the fields.
svn path=/trunk/mcs/; revision=22869
Martin Baulig [Sun, 8 Feb 2004 00:20:39 +0000 (00:20 -0000)]
2004-02-08 Martin Baulig <martin@ximian.com>
* class.h (MonoGenericInst): Added `MonoType *parent' and
`MonoType **ifaces'.
* reflection.h (MonoReflectionGenericInst): Removed `klass',
`parent' and `interfaces'.
* reflection.c (mono_reflection_bind_generic_parameters): Take a
`MonoType *' argument and return a `MonoType *'.
* icall.c
(ves_icall_MonoGenericInst_GetParentType): New interncall.
(ves_icall_MonoGenericInst_GetInterfaces): Likewise.
svn path=/trunk/mono/; revision=22868
Andreas N [Sat, 7 Feb 2004 19:27:12 +0000 (19:27 -0000)]
removed
svn path=/trunk/mcs/; revision=22862
Andreas N [Sat, 7 Feb 2004 19:21:51 +0000 (19:21 -0000)]
2004-02-07 Andreas Nahr <ClassDevelopment@A-SoftTech.com>
* GraphicsPathIterator.cs: Fixed signature, added TODOs
* Matrix.cs: Removed additional method
svn path=/trunk/mcs/; revision=22861
Andreas N [Sat, 7 Feb 2004 19:20:46 +0000 (19:20 -0000)]
2004-02-07 Andreas Nahr <ClassDevelopment@A-SoftTech.com>
* System.Drawing.dll.sources:
SRDescriptionAttribute.cs, Locale.cs added
svn path=/trunk/mcs/; revision=22860
Andreas N [Sat, 7 Feb 2004 19:19:52 +0000 (19:19 -0000)]
2004-02-07 Andreas Nahr <ClassDevelopment@A-SoftTech.com>
* SRDescriptionAttribute.cs: Added and implemented
* ToolboxBitmapAttribute.cs: Implemented a few members
* SystemIcons.cs: Stubbed
* StringFormat.cs: Implemented method
* Region.cs: Added Todo, fixed attribute
* Size.cs: Added attribute
* SizeF.cs: Added attribute
* RectangleF.cs: Added attributes
* Rectangle.cs: Added attributes
* PointF.cs: Added attribute
* Point.cs: Added attribute
svn path=/trunk/mcs/; revision=22859
Andreas N [Sat, 7 Feb 2004 19:19:05 +0000 (19:19 -0000)]
2004-02-07 Andreas Nahr <ClassDevelopment@A-SoftTech.com>
* Locale.cs: Added
svn path=/trunk/mcs/; revision=22858
Miguel de Icaza [Sat, 7 Feb 2004 16:19:47 +0000 (16:19 -0000)]
Flush
svn path=/trunk/mono/; revision=22857
Miguel de Icaza [Sat, 7 Feb 2004 16:15:42 +0000 (16:15 -0000)]
2004-02-07 Miguel de Icaza <miguel@ximian.com>
* skeleton.cs: Report the token that we errored on; Helps
find parser errors.
svn path=/trunk/mcs/; revision=22856
Miguel de Icaza [Sat, 7 Feb 2004 05:56:27 +0000 (05:56 -0000)]
Improve test to include a case for #53696
svn path=/trunk/mcs/; revision=22855
Miguel de Icaza [Sat, 7 Feb 2004 05:54:15 +0000 (05:54 -0000)]
2004-02-07 Miguel de Icaza <miguel@ximian.com>
* assign.cs (Assign.DoResolve): When dealing with compound
assignments, there is a new rule in ECMA C# 2.4 (might have been
there before, but it is documented here) that states that in:
a op= b;
If b is of type int, and the `op' is a shift-operator, then the
above is evaluated as:
a = (int) a op b
svn path=/trunk/mcs/; revision=22854
Miguel de Icaza [Sat, 7 Feb 2004 05:37:17 +0000 (05:37 -0000)]
2004-02-07 Miguel de Icaza <miguel@ximian.com>
* expression.cs (Binary.ResolveOperator): Instead of testing for
int/uint/long/ulong, try to implicitly convert to any of those
types and use that in pointer arithmetic.
svn path=/trunk/mcs/; revision=22853
Miguel de Icaza [Sat, 7 Feb 2004 05:35:42 +0000 (05:35 -0000)]
Improve
svn path=/trunk/mcs/; revision=22852
Miguel de Icaza [Sat, 7 Feb 2004 05:23:38 +0000 (05:23 -0000)]
2004-02-07 Miguel de Icaza <miguel@ximian.com>
* delegate.cs (Error_NoMatchingMethodForDelegate): Compute the
method to print information for from the type, not from the
null-method we were given.
svn path=/trunk/mcs/; revision=22851
Tim Coleman [Sat, 7 Feb 2004 05:03:34 +0000 (05:03 -0000)]
2004-02-07 Tim Coleman <tim@timcoleman.com>
* System.Security.dll.sources: Add new
System.Security.Cryptography.Xml classes.
svn path=/trunk/mcs/; revision=22850
Tim Coleman [Sat, 7 Feb 2004 05:02:23 +0000 (05:02 -0000)]
2004-02-07 Tim Coleman <tim@timcoleman.com>
* CipherData.cs CipherReference.cs EncryptedData.cs
* EncryptedReference.cs EncryptedType.cs EncryptionMethod.cs
* EncryptionProperties.cs EncryptionProperty.cs XmlEncryption.cs:
New classes added for Xml Encryption in 1.2
* KeyInfoRetrievalMethod.cs:
Added Type attribute for 1.2
* XmlSignature.cs:
Added string constants for algorithm namespaces
svn path=/trunk/mcs/; revision=22849
Miguel de Icaza [Sat, 7 Feb 2004 04:55:39 +0000 (04:55 -0000)]
up
svn path=/trunk/mono/; revision=22848
Jackson Harper [Fri, 6 Feb 2004 21:28:28 +0000 (21:28 -0000)]
* Uri.cs: Do not escape querys or fragements. Only reduce certain
schemes.
svn path=/trunk/mcs/; revision=22846
Zoltan Varga [Fri, 6 Feb 2004 21:17:09 +0000 (21:17 -0000)]
2004-02-06 Zoltan Varga <vargaz@freemail.hu>
* marshal.c (mono_marshal_get_native_wrapper): Add support for custom
valuetype marshalling.
svn path=/trunk/mono/; revision=22845
Sebastien Pouliot [Fri, 6 Feb 2004 20:25:00 +0000 (20:25 -0000)]
2004-02-06 Sebastien Pouliot <sebastien@ximian.com>
* DSACryptoServiceProvider.cs: Added keypair persistence support.
Corrected dispose so object cannot be disposed multiple time. Added
PublicOnly property (as internal before 1.2, public after).
* RSACryptoServiceProvider.cs: Added keypair persistence support.
Corrected dispose so object cannot be disposed multiple time. Added
PublicOnly property (as internal before 1.2, public after).
svn path=/trunk/mcs/; revision=22844