Martin Baulig [Thu, 25 Mar 2004 19:55:13 +0000 (19:55 -0000)]
2004-03-25 Martin Baulig <martin@ximian.com>
* mini.c (mini_get_class): Take a `MonoGenericContext *' instead
of a `MonoMethod *'.
svn path=/trunk/mono/; revision=24607
Martin Baulig [Thu, 25 Mar 2004 19:51:03 +0000 (19:51 -0000)]
2004-03-25 Martin Baulig <martin@ximian.com>
* mini.c (mini_get_method): Take a `MonoGenericContext *' instead
of a `MonoGenericMethod *'.
(TYPE_PARAM_TO_TYPE, MTYPE_PARAM_TO_TYPE): mono_method_to_ir() has
a new local variable called `generic_context' which holds the
current `MonoGenericContext *'; use it to lookup things.
svn path=/trunk/mono/; revision=24606
Martin Baulig [Thu, 25 Mar 2004 19:50:48 +0000 (19:50 -0000)]
2004-03-25 Martin Baulig <martin@ximian.com>
* loader.h (MonoMethodInflated): Store the MonoGenericContext
instead of the MonoGenericMethod here.
svn path=/trunk/mono/; revision=24605
Martin Baulig [Thu, 25 Mar 2004 19:00:17 +0000 (19:00 -0000)]
2004-03-25 Martin Baulig <martin@ximian.com>
* class.h (MonoGenericInst): Added `MonoGenericContext *context';
each time we create a new MonoGenericInst, we also create a new
context which points back to us.
* class.c (inflate_method): Use `ginst->context' instead of
creating a new context.
* loader.c (method_from_memberref): Use
`klass->generic_inst->context' instead of creating a new context.
svn path=/trunk/mono/; revision=24604
Jackson Harper [Thu, 25 Mar 2004 18:56:33 +0000 (18:56 -0000)]
* gacutil.cs: Add culture to assemblies version string.
svn path=/trunk/mcs/; revision=24603
Martin Baulig [Thu, 25 Mar 2004 18:52:25 +0000 (18:52 -0000)]
2004-03-25 Martin Baulig <martin@ximian.com>
* class.h (MonoGenericContext): New struct.
(MonoGenericMethod): Removed `generic_inst'.
* class.c (mono_class_inflate_generic_method): Take a
`MonoGenericContext *' instead of a `MonoGenericMethod *'.
svn path=/trunk/mono/; revision=24602
Martin Baulig [Thu, 25 Mar 2004 18:26:11 +0000 (18:26 -0000)]
2004-03-25 Martin Baulig <martin@ximian.com>
* loader.h (MonoMethodInflated): New typedef.
* metadata.h (MonoMethodSignature): Removed `gen_method', make
`generic_param_count' consume just 30 bits, added `is_inflated'
and `has_type_parameters' flags (one bit each).
* class.c (mono_class_inflate_generic_method): Create a
MonoMethodInflated instead of a MonoMethodNormal and set
`is_inflated' in the method signature.
* class.h (MonoGenericMethod): Removed `generic_method'.
svn path=/trunk/mono/; revision=24600
Sebastien Pouliot [Thu, 25 Mar 2004 18:01:12 +0000 (18:01 -0000)]
2004-03-25 Sebastien Pouliot <sebastien@ximian.com>
* SignedXml.cs: Added try/catch in CheckSignatureWithKey to return
false on exceptions. Fix signature-rsa-detached-xslt-transform-bad
-retrieval-method.xml in the Phaos test suite.
svn path=/trunk/mcs/; revision=24599
Sebastien Pouliot [Thu, 25 Mar 2004 18:00:13 +0000 (18:00 -0000)]
2004-03-25 Sebastien Pouliot <sebastien@ximian.com>
* xmldsig.cs: Some of the Phaos test files uses <Manifest> with having
*manifest* in their name. Manually load certificates for Phaos tests
that requires it (as RetrievalMethod isn't support automatically).
svn path=/trunk/mcs/; revision=24598
Ben Maurer [Thu, 25 Mar 2004 17:29:52 +0000 (17:29 -0000)]
2004-03-25 Ben Maurer <bmaurer@users.sourceforge.net>
* cs1510-2.cs: test for 56016.
* cs0154-2.cs: test for 55780.
* cs0246-6.cs: test for 55770.
svn path=/trunk/mcs/; revision=24597
Ben Maurer [Thu, 25 Mar 2004 16:49:33 +0000 (16:49 -0000)]
2004-03-25 Ben Maurer <bmaurer@users.sourceforge.net>
* cs1510-2.cs: test for 56016.
svn path=/trunk/mcs/; revision=24596
Ben Maurer [Thu, 25 Mar 2004 16:41:52 +0000 (16:41 -0000)]
2004-03-25 Ben Maurer <bmaurer@users.sourceforge.net>
* cs0122-4.cs: test for bug 55970.
svn path=/trunk/mcs/; revision=24595
Lluis Sanchez [Thu, 25 Mar 2004 15:54:38 +0000 (15:54 -0000)]
* soapsuds.cs: Execute the tool from a new domain that has the current
directory as application base for locating assemblies. This fixes #55586.
svn path=/trunk/mcs/; revision=24593
Gonzalo Paniagua Javier [Thu, 25 Mar 2004 15:18:16 +0000 (15:18 -0000)]
fix the build on windows
svn path=/trunk/mono/; revision=24592
Sebastien Pouliot [Thu, 25 Mar 2004 15:11:49 +0000 (15:11 -0000)]
2004-03-25 Sebastien Pouliot <sebastien@ximian.com>
* cs1548.cs: More descriptive comment (missing file).
* cs1548-2.cs: New. Invalid strongname file (content).
* mcs-expect-no-errors: Added cs1458-2.cs.
svn path=/trunk/mcs/; revision=24591
Ravindra [Thu, 25 Mar 2004 14:37:35 +0000 (14:37 -0000)]
Added a sample for TextureBrush wrapmodes.
svn path=/trunk/mcs/; revision=24590
Lluis Sanchez [Thu, 25 Mar 2004 14:35:31 +0000 (14:35 -0000)]
* FileStream.cs: ReadByte(): when buffering is disabled, read the byte with
a direct call to ReadData. In InitBuffer(), if buffering is disabled,
create a buffer of one byte, to be used in ReadByte.
This fixes bug #52361.
svn path=/trunk/mcs/; revision=24589
Ravindra [Thu, 25 Mar 2004 14:31:20 +0000 (14:31 -0000)]
Added ChangeLog and a bmp for samples.
svn path=/trunk/mcs/; revision=24588
Sebastien Pouliot [Thu, 25 Mar 2004 14:09:45 +0000 (14:09 -0000)]
2004-03-25 Sebastien Pouliot <sebastien@ximian.com>
* xmldsig.cs: Added code to automagically ajust for presence of
HMAC-MD5 and ExC14N in the framework and to manualy skip signatures
containing <Manifest> (not supported).
svn path=/trunk/mcs/; revision=24587
Sebastien Pouliot [Thu, 25 Mar 2004 13:03:06 +0000 (13:03 -0000)]
2004-03-25 Sebastien Pouliot <sebastien@ximian.com>
* xmldsig.cs: Added code to ignore tests using HMAC-MD5 (1 in Phaos
suite) as it is unsupported in Fx 1.0/1.1.
svn path=/trunk/mcs/; revision=24586
Sebastien Pouliot [Thu, 25 Mar 2004 12:46:03 +0000 (12:46 -0000)]
2004-03-25 Sebastien Pouliot <sebastien@ximian.com>
* mcs.1: Added documentation for the new options /delaysign[+|-],
/keyfile and /keycontainer to the man page.
svn path=/trunk/mono/; revision=24585
Lluis Sanchez [Thu, 25 Mar 2004 12:34:03 +0000 (12:34 -0000)]
* daemon.c: in process_post_mortem, If the child terminated due to the
receipt of a signal, the exit status must be based on WTERMSIG, since
WEXITSTATUS returns 0 in this case.
svn path=/trunk/mono/; revision=24584
Alon Gazit [Thu, 25 Mar 2004 12:30:25 +0000 (12:30 -0000)]
fix ValidateCookieCollection() to prevent InvalidCastException.
svn path=/trunk/mcs/; revision=24583
Lluis Sanchez [Thu, 25 Mar 2004 11:44:40 +0000 (11:44 -0000)]
* Path.cs: In GetDirectoryName, fixed check for volumeSeparator. This
fixes bug #53892.
svn path=/trunk/mcs/; revision=24582
Lluis Sanchez [Thu, 25 Mar 2004 11:24:12 +0000 (11:24 -0000)]
* DataSet.cs: In WriteXml (string filename, XmlWriteMode mode), close the
stream after writing the dataset. This fixes bug #52581.
Also added several writer.Close into finally blocks, so writers are properly
closed in case of an exception.
svn path=/trunk/mcs/; revision=24580
Umadevi S [Thu, 25 Mar 2004 10:48:50 +0000 (10:48 -0000)]
2004-03-25 Umadevi S (sumadevi@novell.com)
* Implemented missing methods in SqlClientPermission & SqlClientPermissionAttribute
svn path=/trunk/mcs/; revision=24579
Lluis Sanchez [Thu, 25 Mar 2004 10:45:33 +0000 (10:45 -0000)]
* image.c: Make sure the name of a MonoImage is always an absolute path.
This fixes bug #54415.
svn path=/trunk/mono/; revision=24578
Lluis Sanchez [Thu, 25 Mar 2004 09:46:07 +0000 (09:46 -0000)]
* WebServiceHelper.cs: In GetContentEncoding, chop off the single & double
quotes around the encoding name. Patch by George Kodinov. This fixes
bug #55806.
svn path=/trunk/mcs/; revision=24577
Anirban Bhattacharjee [Thu, 25 Mar 2004 09:44:54 +0000 (09:44 -0000)]
* class.cs: bug fixing - creating default constructor when no constructor is specified
Few modifiers are changed to align with Vb
svn path=/trunk/mcs/; revision=24576
Ben Maurer [Thu, 25 Mar 2004 04:55:54 +0000 (04:55 -0000)]
2004-03-24 Ben Maurer <bmaurer@users.sourceforge.net>
* Makefile, do-tests.pl: A new system for testing.
* mcs-expect-no-errors, mcs-expect-wrong-error: a list
of tests that we fail on.
* CONTRIBUTORS_README: update docs.
svn path=/trunk/mcs/; revision=24562
Ben Maurer [Thu, 25 Mar 2004 04:18:59 +0000 (04:18 -0000)]
2004-03-24 Ben Maurer <bmaurer@users.sourceforge.net>
* driver.cs: For --expect-error, report error code `2'
if the program compiled with no errors, error code `1' if
it compiled with an error other than the one expected.
svn path=/trunk/mcs/; revision=24560
Sebastien Pouliot [Thu, 25 Mar 2004 03:12:57 +0000 (03:12 -0000)]
2004-03-24 Sebastien Pouliot <sebastien@ximian.com>
* Makefile: Updated sn.exe to include StrongNameManager.cs.
* sn.cs: Updated to use StrongNameManager. This allows remapping a
public key token to another public key (e.g. ECMA key). Also added
support for -Vl.
* StrongNameManager.cs: New. First version. Allows remapping of
public key tokens to alternate public keys (e.g. ECMA) and disabling
strongname verification for specific tokens/assemblies/users combo.
svn path=/trunk/mcs/; revision=24559
Martin Baulig [Thu, 25 Mar 2004 02:42:47 +0000 (02:42 -0000)]
2004-03-24 Martin Baulig <martin@ximian.com>
* decl.cs (DeclSpace.FindType): Also use
TypeManager.CheckGeneric() for types from the using clauses.
svn path=/trunk/mcs/; revision=24557
Martin Baulig [Thu, 25 Mar 2004 02:21:27 +0000 (02:21 -0000)]
2004-03-24 Martin Baulig <martin@ximian.com>
* class.c (mono_class_setup_vtable): If we're a generic instance,
use our generic type's vtable size.
svn path=/trunk/mono/; revision=24556
Martin Baulig [Thu, 25 Mar 2004 02:20:23 +0000 (02:20 -0000)]
2004-03-24 Martin Baulig <martin@ximian.com>
* mini.c (mini_get_class): New static method; if we're inside a
generic instance, inflate the class if neccessary.
(mono_method_to_ir): Use mini_get_class() instead of mono_class_get().
svn path=/trunk/mono/; revision=24555
Gonzalo Paniagua Javier [Thu, 25 Mar 2004 00:49:57 +0000 (00:49 -0000)]
2004-03-24 Gonzalo Paniagua Javier <gonzalo@ximian.com>
* NumberFormatInfo.cs: this fixes bug #56000 for me. And it doesn't
break anything as NumberFormatInfo is sealed.
svn path=/trunk/mcs/; revision=24554
Lluis Sanchez [Thu, 25 Mar 2004 00:07:43 +0000 (00:07 -0000)]
* SerializationCodeGenerator.cs: Generate an integer for unknown enum values.
Use a special method to generate default values, since default enum values
will come as integers, so a special cast is needed.
* XmlSerializationReaderInterpreter.cs,
* SerializationSource.cs, SoapAttributeAttribute.cs, SoapAttributeOverrides.cs,
SoapAttributes.cs, SoapElementAttribute.cs, SoapEnumAttribute.cs,
SoapTypeAttribute.cs, XmlAnyElementAttribute.cs, XmlAnyElementAttributes.cs,
XmlArrayAttribute.cs, XmlArrayItemAttribute.cs, XmlArrayItemAttributes.cs,
XmlAttributeAttribute.cs, XmlAttributeOverrides.cs, XmlAttributes.cs,
XmlChoiceIdentifierAttribute.cs, XmlElementAttribute.cs, XmlElementAttributes.cs,
XmlEnumAttribute.cs, XmlReflectionMember.cs, XmlRootAttribute.cs,
XmlTextAttribute.cs, XmlTypeAttribute.cs: Had to change the implementation
of SerializationSource. It can't keep and use the XmlAttributeOverride
instances as key values, since those instances can be modified after the
xml map has been generated. Now, SerializationSource generates a unique
string hash from XmlAttributeOverride and uses it for comparisons.
svn path=/trunk/mcs/; revision=24553
Gonzalo Paniagua Javier [Wed, 24 Mar 2004 23:53:11 +0000 (23:53 -0000)]
2004-03-24 Gonzalo Paniagua Javier <gonzalo@ximian.com>
* RegexBugs.cs: added new test with a regex used when discovering the
wsdl document for a asmx page.
svn path=/trunk/mcs/; revision=24552
Gonzalo Paniagua Javier [Wed, 24 Mar 2004 23:27:24 +0000 (23:27 -0000)]
2004-03-24 Gonzalo Paniagua Javier <gonzalo@ximian.com>
* parser.cs: fixed group numbering.
svn path=/trunk/mcs/; revision=24551
Gonzalo Paniagua Javier [Wed, 24 Mar 2004 22:06:56 +0000 (22:06 -0000)]
2004-03-24 Gonzalo Paniagua Javier <gonzalo@ximian.com>
* HttpWebRequest.cs: added the exception status to the error message.
* WebConnection.cs: add headers using SetInternal instead of Add to
bypass header name validation. Fixes bug #55994.
* WebHeaderCollection.cs: added SetInternal (string header).
svn path=/trunk/mcs/; revision=24549
Sebastien Pouliot [Wed, 24 Mar 2004 20:25:12 +0000 (20:25 -0000)]
2004-03-24 Sebastien Pouliot <sebastien@ximian.com>
* StrongName.cs: Added CanSign property for AssemblyBuilder. Current
Fx design requires an exception to know if the private key is present
in an RSA instance. In some case (inside corlib) we can do without...
svn path=/trunk/mcs/; revision=24547
Zoltan Varga [Wed, 24 Mar 2004 20:20:48 +0000 (20:20 -0000)]
2004-03-24 Zoltan Varga <vargaz@freemail.hu>
* iltests.il: New regression test for #55976.
* mini.c (mono_method_to_ir): Empty the stack in endfinally. Fixes
#55976.
svn path=/trunk/mono/; revision=24546
Sebastien Pouliot [Wed, 24 Mar 2004 20:15:57 +0000 (20:15 -0000)]
2004-03-24 Sebastien Pouliot <sebastien@ximian.com>
* StrongName.cs: Added CanSign property for AssemblyBuilder. Current
Fx design requires an exception to know if the private key is present
in an RSA instance. In some case (inside corlib) we can do without...
svn path=/trunk/mcs/; revision=24545
Lluis Sanchez [Wed, 24 Mar 2004 19:33:16 +0000 (19:33 -0000)]
* System.Xml_test.dll.sources: Added
System.Xml.Serialization/ComplexDataStructure.cs.
svn path=/trunk/mcs/; revision=24543
Lluis Sanchez [Wed, 24 Mar 2004 19:32:45 +0000 (19:32 -0000)]
added literal-data.xml. This file is used by ComplexDataStructure.cs.
svn path=/trunk/mcs/; revision=24542
Lluis Sanchez [Wed, 24 Mar 2004 19:31:28 +0000 (19:31 -0000)]
* XmlSerializerTests.cs: Added some identifiers for AssertEquals.
Minor fixes in Infoset method.
* ComplexDataStructure.cs: New set of tests for testing complex object
serialization.
svn path=/trunk/mcs/; revision=24541
Lluis Sanchez [Wed, 24 Mar 2004 19:30:12 +0000 (19:30 -0000)]
* SerializationCodeGenerator.cs: Several fixes: generate valid names for
WriteRoot_ and ReadRoot_ methods. Cast result of ReadTypedPrimitive to
the adequate type. Set the default value of members that do have a default
value. Other minor fixes.
* SoapReflectionImporter.cs, XmlReflectionImporter.cs: All maps must derive
from typeof(object) map, even those that have another base class.
* XmlCustomFormatter.cs: Fixed generation of conversion from char to string.
It must serialize the char as number, not as character.
* XmlSerializationReaderInterpreter.cs: Set the default value of members
that do have a default value.
* XmlTypeMapping.cs: Added property MembersWithDefault, which returns a list
of members that have a default value.
svn path=/trunk/mcs/; revision=24540
Sebastien Pouliot [Wed, 24 Mar 2004 19:17:35 +0000 (19:17 -0000)]
2004-03-24 Sebastien Pouliot <sebastien@ximian.com>
* StrongNameKeyPair.cs: Added an internal method to return a
StrongName object (for AssemblyBuilder). Simplified implementation
using Mono.Security.Cryptography.CryptoConvert class.
svn path=/trunk/mcs/; revision=24539
Atsushi Eno [Wed, 24 Mar 2004 18:40:57 +0000 (18:40 -0000)]
2004-03-24 Atsushi Enomoto <atsushi@ximian.com>
* xmldsig.cs : Ok, time to test phaos collection ;-)
svn path=/trunk/mcs/; revision=24535
Atsushi Eno [Wed, 24 Mar 2004 18:38:08 +0000 (18:38 -0000)]
2004-03-24 Atsushi Enomoto <atsushi@ximian.com>
* ReferenceTest.cs : Test for keeping document object identity.
* XmlDsigC14NTransformTest.cs : Fixed LoadInputAsXmlNodeList(). Here,
passed XmlNodeList means filtered (e.g. XPath) nodes, which might
contain parent and children as each node in the list.
Added LoadInputAsXmlNodeList2(), which fails in the meantime.
svn path=/trunk/mcs/; revision=24534
Atsushi Eno [Wed, 24 Mar 2004 18:32:58 +0000 (18:32 -0000)]
2004-03-24 Atsushi Enomoto <atsushi@ximian.com>
* Reference.cs, Signature.cs : They should keep input element and hence
keep namespace context nodes on LoadXml() as same as SignedInfo.
* SignedXml.cs : Fixed SignedInfoTransformed() to fill context
namespace nodes into the input document (unlike other classes, there
seems no other way to keep ns-nodes here).
Now some of W3C phaos xmldsig test passes.
svn path=/trunk/mcs/; revision=24532
Atsushi Eno [Wed, 24 Mar 2004 18:20:14 +0000 (18:20 -0000)]
2004-03-24 Atsushi Enomoto <atsushi@ximian.com>
* XmlDocumentNavigator.cs : MoveTo*Namespace() should not iterate
namespace nodes which has the same name as already-iterated nodes.
Also xmlns='' should not be selected, and once it appeared, default
namespace should not be selected anymore.
svn path=/trunk/mcs/; revision=24531
Atsushi Eno [Wed, 24 Mar 2004 18:19:51 +0000 (18:19 -0000)]
2004-03-24 Atsushi Enomoto <atsushi@ximian.com>
* SelectNodesTests.cs : Added test for 1) not selecting previously-
selected prefixes, and that 2) default namespace erasure (i.e.
xmlns="") should not be selected.
svn path=/trunk/mcs/; revision=24530
Atsushi Eno [Wed, 24 Mar 2004 18:19:24 +0000 (18:19 -0000)]
2004-03-24 Atsushi Enomoto <atsushi@ximian.com>
* XslTransformTests.cs : Added InvalidStylesheet2().
svn path=/trunk/mcs/; revision=24529
Sebastien Pouliot [Wed, 24 Mar 2004 18:05:30 +0000 (18:05 -0000)]
2003-03-24 Sebastien Pouliot <sebastien@ximian.com>
* StrongNameKeyPairTest.cs: Converted to NUnit2 format. Removed
unneeded code and false comments (too much copy-n-paste).
svn path=/trunk/mcs/; revision=24528
Lluis Sanchez [Wed, 24 Mar 2004 17:24:29 +0000 (17:24 -0000)]
* File.cs: In Move, throw IOException instead of ArgumentException if destination
is a directory.
* MonoIO.cs: In ExistsDirectory, return ERROR_PATH_NOT_FOUND instead of
ERROR_FILE_NOT_FOUND, since we are looking for a directory, not a file.
svn path=/trunk/mcs/; revision=24527
Urs C. Muff [Wed, 24 Mar 2004 16:39:02 +0000 (16:39 -0000)]
use platform specific file extension for shared libraries (.so / .dylib)
svn path=/trunk/mono/; revision=24526
Sebastien Pouliot [Wed, 24 Mar 2004 16:12:50 +0000 (16:12 -0000)]
2004-03-24 Sebastien Pouliot <sebastien@ximian.com>
* AssemblyBuilderTest.cs: Added new tests to build strongnamed
assemblies.
svn path=/trunk/mcs/; revision=24525
Zoltan Varga [Wed, 24 Mar 2004 16:11:29 +0000 (16:11 -0000)]
2004-03-24 Zoltan Varga <vargaz@freemail.hu>
* appdomain.c (ves_icall_System_AppDomain_InternalUnload): Add
MONO_NO_UNLOAD env var as a temporary workaround for unloading
problems.
svn path=/trunk/mono/; revision=24524
Sebastien Pouliot [Wed, 24 Mar 2004 15:22:29 +0000 (15:22 -0000)]
2004-03-24 Sebastien Pouliot <sebastien@ximian.com>
* other: Added Mono Brazil for fxjr
svn path=/trunk/mono/; revision=24523
Sebastien Pouliot [Wed, 24 Mar 2004 15:20:36 +0000 (15:20 -0000)]
2004-03-24 Sebastien Pouliot <sebastien@ximian.com>
* compiler.csproj: Updated for Visual Studio .NET 2003.
* compiler.csproj.user: Updated for Visual Studio .NET 2003.
* compiler.sln: Updated for Visual Studio .NET 2003.
svn path=/trunk/mcs/; revision=24522
Jordi Mas i Hernandez [Wed, 24 Mar 2004 14:52:41 +0000 (14:52 -0000)]
fixes image and bmp dpi
svn path=/trunk/mcs/; revision=24521
Zoltan Varga [Wed, 24 Mar 2004 13:46:51 +0000 (13:46 -0000)]
2004-03-24 Zoltan Varga <vargaz@freemail.hu>
* TypeBuilder.cs (GetMethod): Implement.
svn path=/trunk/mcs/; revision=24520
Jordi Mas i Hernandez [Wed, 24 Mar 2004 12:51:20 +0000 (12:51 -0000)]
drawimage sample
svn path=/trunk/mcs/; revision=24519
Zoltan Varga [Wed, 24 Mar 2004 12:16:53 +0000 (12:16 -0000)]
2004-03-24 Zoltan Varga <vargaz@freemail.hu>
* CustomAttributeBuilder.cs: Reenable argument checking with MS.NET
compatibility tweaks.
svn path=/trunk/mcs/; revision=24518
Zoltan Varga [Wed, 24 Mar 2004 12:14:09 +0000 (12:14 -0000)]
2004-03-24 Zoltan Varga <vargaz@freemail.hu>
* AssemblyFileVersionAttribute.cs (.ctor): Add argument checking.
svn path=/trunk/mcs/; revision=24517
Jordi Mas i Hernandez [Wed, 24 Mar 2004 12:11:25 +0000 (12:11 -0000)]
added missing DrawImage gdi+ calls and example
svn path=/trunk/mcs/; revision=24516
Ravi Pratap M [Wed, 24 Mar 2004 11:49:58 +0000 (11:49 -0000)]
oops. forgot to add this
svn path=/trunk/mcs/; revision=24515
Umadevi S [Wed, 24 Mar 2004 05:04:40 +0000 (05:04 -0000)]
2004-03-24 Umadevi S (sumadevi@novell.com)
* DataColumn.cs - removed the TODOs since I had checkedin earlier
* DataViewRowState.cs - Implemented EditorAttribute
svn path=/trunk/mcs/; revision=24514
Ravi Pratap M [Wed, 24 Mar 2004 04:51:11 +0000 (04:51 -0000)]
2004-03-24 Ravi Pratap M <ravi@ximian.com>
* expression.cs: Fix bug #47234. We basically need to apply the
rule that we prefer the conversion of null to a reference type
when faced with a conversion to 'object' (csc behaviour).
svn path=/trunk/mcs/; revision=24513
Ravi Pratap M [Wed, 24 Mar 2004 04:49:26 +0000 (04:49 -0000)]
2004-03-24 Ravi Pratap M <ravi@ximian.com>
* test-235.cs: test for 47234.
svn path=/trunk/mcs/; revision=24512
Atsushi Eno [Wed, 24 Mar 2004 03:45:22 +0000 (03:45 -0000)]
2004-03-24 Atsushi Enomoto <atsushi@ximian.com>
* XmlCharacterData.cs : ReplaceData() should reject negative integer
value for count argument.
* XmlAttribute.cs, XmlAttributeCollection.cs, XmlNamedNodeMap.cs :
On RemoveNamedItem(), default attribute value should be restored.
svn path=/trunk/mcs/; revision=24511
Ben Maurer [Wed, 24 Mar 2004 03:35:19 +0000 (03:35 -0000)]
2004-03-23 Ben Maurer <bmaurer@users.sourceforge.net>
* statement.cs: Shorter form for foreach, eliminates
a local variable. r=Martin.
svn path=/trunk/mcs/; revision=24510
Atsushi Eno [Wed, 24 Mar 2004 02:21:48 +0000 (02:21 -0000)]
2004-03-24 Atsushi Enomoto <atsushi@ximian.com>
* XmlAttributeCollection.cs : Remove() should throw an exception when
target attribute is not included in the collection.
* XmlDocument.cs : ImportNode() should reject null node.
* XmlNode.cs : Fixed type of exception for invalid insertion.
It should throw an exception not only when the owner document of the
reference element is different but its parent element is different.
Some error message improvement.
svn path=/trunk/mcs/; revision=24509
Martin Baulig [Tue, 23 Mar 2004 23:10:24 +0000 (23:10 -0000)]
Make this actually work.
svn path=/trunk/mcs/; revision=24508
Martin Baulig [Tue, 23 Mar 2004 23:08:19 +0000 (23:08 -0000)]
2004-03-23 Martin Baulig <martin@ximian.com>
* MonoGenericInst.cs: Added support for events.
svn path=/trunk/mcs/; revision=24507
Martin Baulig [Tue, 23 Mar 2004 23:08:03 +0000 (23:08 -0000)]
2004-03-23 Martin Baulig <martin@ximian.com>
* TypeBuilder.cs (TypeBuilder.GetEvents_internal): New internal
method; this is basically GetEvents(), but see the FIXME in that method.
svn path=/trunk/mcs/; revision=24506
Martin Baulig [Tue, 23 Mar 2004 23:07:39 +0000 (23:07 -0000)]
2004-03-23 Martin Baulig <martin@ximian.com>
* class.h (MonoDynamicGenericInst): Added `int count_events' and
`MonoEvent *events'.
* icall.c (ves_icall_MonoGenericInst_GetEvents): New interncall.
(typebuilder_icalls): Added "get_event_info"; calls
mono_reflection_event_builder_get_event_info().
* reflection.c (mono_reflection_generic_inst_initialize): Added
`MonoArray *events'.
(mono_reflection_event_builder_get_event_info): New function.
svn path=/trunk/mono/; revision=24505
Bernie Solomon [Tue, 23 Mar 2004 22:01:55 +0000 (22:01 -0000)]
2004-03-23 Bernie Solomon <bernard@ugsolutions.com>
* hppa/hppa-codegen.h: created
* hppa/tramp.c: changed style to be more like
other platforms.
* hppa/Makefile.am: add hppa-codegen.h
svn path=/trunk/mono/; revision=24504
Sebastien Pouliot [Tue, 23 Mar 2004 21:46:15 +0000 (21:46 -0000)]
2004-03-23 Sebastien Pouliot <sebastien@ximian.com>
* cs1548.cs: New test for signing an assembly.
svn path=/trunk/mcs/; revision=24503
Ben Maurer [Tue, 23 Mar 2004 20:57:13 +0000 (20:57 -0000)]
2004-03-23 Ben Maurer <bmaurer@users.sourceforge.net>
* Switch.cs: Don't throw when there is no switches section.
svn path=/trunk/mcs/; revision=24502
Ben Maurer [Tue, 23 Mar 2004 20:47:18 +0000 (20:47 -0000)]
2004-03-23 Ben Maurer <bmaurer@users.sourceforge.net>
* constant.cs, ecore.cs, literal.cs: New prop IsZeroInteger that
checks if we can use brtrue/brfalse to test for 0.
* expression.cs: use the above in the test for using brtrue/brfalse.
cleanup code a bit.
svn path=/trunk/mcs/; revision=24501
Bernie Solomon [Tue, 23 Mar 2004 20:19:53 +0000 (20:19 -0000)]
2004-03-23 Bernie Solomon <bernard@ugsolutions.com>
* object.h: add mono_type_initialization_init
* object.c (mono_runtime_class_init):
implement class constructor synchronization rules
to cope with threading issues.
add mono_type_initialization_init
* appdomain.c (mono_runtime_init): call
mono_type_initialization_init
* class.h: removing initializing field from MonoVTable
svn path=/trunk/mono/; revision=24500
Martin Baulig [Tue, 23 Mar 2004 20:09:21 +0000 (20:09 -0000)]
2004-03-23 Martin Baulig <martin@ximian.com>
* expression.cs (Invocation.OverloadResolve): Added `bool
may_fail' argument and use it instead of the Location.IsNull() hack.
svn path=/trunk/mcs/; revision=24499
Martin Baulig [Tue, 23 Mar 2004 19:44:48 +0000 (19:44 -0000)]
Make the delegate stuff actually working.
svn path=/trunk/mcs/; revision=24498
Sebastien Pouliot [Tue, 23 Mar 2004 19:35:01 +0000 (19:35 -0000)]
2004-03-23 Sebastien Pouliot <sebastien@ximian.com>
* CryptoConvert.cs: Added support for public keys preceded by an
header like the one generated by "sn -e".
svn path=/trunk/mcs/; revision=24497
Sebastien Pouliot [Tue, 23 Mar 2004 19:28:36 +0000 (19:28 -0000)]
2004-03-23 Sebastien Pouliot <sebastien@ximian.com>
* CryptoConvertTest.cs: Added test case where the public key structure
is inside preceded by an header (like the one produced by "sn -e").
svn path=/trunk/mcs/; revision=24496
Zoltan Varga [Tue, 23 Mar 2004 19:05:56 +0000 (19:05 -0000)]
2004-03-23 Zoltan Varga <vargaz@freemail.hu>
* exceptions-sparc.c (mono_sparc_handle_exception): Remove debugging
output.
svn path=/trunk/mono/; revision=24495
Sebastien Pouliot [Tue, 23 Mar 2004 19:04:13 +0000 (19:04 -0000)]
2004-03-23 Sebastien Pouliot <sebastien@ximian.com>
* Mono.Security_test.dll.sources: Added unit tests for CryptoConvert.
svn path=/trunk/mcs/; revision=24494
Zoltan Varga [Tue, 23 Mar 2004 19:03:38 +0000 (19:03 -0000)]
2004-03-23 Zoltan Varga <vargaz@freemail.hu>
* liveness.c: Consider SSA stores as well as loads when making vars
volatile.
* exceptions.cs: New regression tests for register allocation.
svn path=/trunk/mono/; revision=24493
Martin Baulig [Tue, 23 Mar 2004 19:03:16 +0000 (19:03 -0000)]
Make this actually work.
svn path=/trunk/mcs/; revision=24492
Sebastien Pouliot [Tue, 23 Mar 2004 19:02:23 +0000 (19:02 -0000)]
2004-03-23 Sebastien Pouliot <sebastien@ximian.com>
* RSAManaged.cs: CryptographicException thrown when trying to export
the private key when only the public key is present (CRT aware).
svn path=/trunk/mcs/; revision=24491
Martin Baulig [Tue, 23 Mar 2004 19:01:54 +0000 (19:01 -0000)]
2004-03-23 Martin Baulig <martin@ximian.com>
* expression.cs (Invocation.InferType): Use correct type inference
rules here.
svn path=/trunk/mcs/; revision=24490
Sebastien Pouliot [Tue, 23 Mar 2004 19:01:31 +0000 (19:01 -0000)]
2004-03-23 Sebastien Pouliot <sebastien@ximian.com>
* StrongName.cs: Added exceptions for null or invalid keys.
svn path=/trunk/mcs/; revision=24489
Martin Baulig [Tue, 23 Mar 2004 19:00:52 +0000 (19:00 -0000)]
New test ...
svn path=/trunk/mcs/; revision=24488
Martin Baulig [Tue, 23 Mar 2004 19:00:21 +0000 (19:00 -0000)]
New tests .....
svn path=/trunk/mcs/; revision=24487
Sebastien Pouliot [Tue, 23 Mar 2004 18:58:52 +0000 (18:58 -0000)]
2004-03-23 Sebastien Pouliot <sebastien@ximian.com>
* CryptoConvert.cs: Added exception for null and bad parameters.
* RSAManaged.cs: CryptographicException thrown when trying to export
the private key when only the public key is present (CRT aware).
svn path=/trunk/mcs/; revision=24486
Sebastien Pouliot [Tue, 23 Mar 2004 18:54:54 +0000 (18:54 -0000)]
2004-03-23 Sebastien Pouliot <sebastien@ximian.com>
* StrongName.cs: Added exceptions for null or invalid keys.
svn path=/trunk/mcs/; revision=24485
Martin Baulig [Tue, 23 Mar 2004 18:41:03 +0000 (18:41 -0000)]
2004-03-23 Martin Baulig <martin@ximian.com>
* ecore.cs (MethodGroupExpr.Name): Use
TypeManager.CSharpSignature() instead of just the name.
* expression.cs (Invocation.OverloadResolve): Provide better error
reporting.
(Invocation.DoResolve): OverloadResolve() never returns null
without reporting an error, so removed the error -6 reporting here.
svn path=/trunk/mcs/; revision=24484
Martin Baulig [Tue, 23 Mar 2004 18:38:22 +0000 (18:38 -0000)]
2004-03-23 Martin Baulig <martin@ximian.com>
* MonoMethod.cs (MonoMethod.ToString): Don't include the namespace
if it's the empty string.
svn path=/trunk/mcs/; revision=24483