Sebastien Pouliot [Fri, 26 Mar 2004 21:14:07 +0000 (21:14 -0000)]
2004-03-26 Sebastien Pouliot <sebastien@ximian.com>
* XmlSignature.cs: Added constants for Manifest element and URI.
svn path=/trunk/mcs/; revision=24646
Sebastien Pouliot [Fri, 26 Mar 2004 21:10:40 +0000 (21:10 -0000)]
2004-03-26 Sebastien Pouliot <sebastien@ximian.com>
* Manifest.cs: New. Support for <Manifest> in Xml Digital Signature.
This should help us to validate more tests from the Phaos suite.
Note: Microsoft doesn't support this and we only support it for
verification (not signature generation).
* SignedXml.cs: Added support for Manifest, including recursive
manifests. Made some changes to reuse existing code as much as
possible. Better support for local/remote files - but requires
catching an Uri exception for local files :-(.
svn path=/trunk/mcs/; revision=24645
Sebastien Pouliot [Fri, 26 Mar 2004 20:58:04 +0000 (20:58 -0000)]
2004-03-26 Sebastien Pouliot <sebastien@ximian.com>
* xmldsig.cs: Reactivated <Manifest> tests as support for them will be
present in Mono. Changed directory for Phaos tests because of some
documents' references.
svn path=/trunk/mcs/; revision=24644
Ben Maurer [Fri, 26 Mar 2004 18:39:17 +0000 (18:39 -0000)]
2004-03-26 Ben Maurer <bmaurer@users.sourceforge.net>
* do-tests.pl: i think this fixes the problem with
tests that have comp options alway passing
* mcs-expect*: update for above.
svn path=/trunk/mcs/; revision=24642
Jordi Mas i Hernandez [Fri, 26 Mar 2004 17:53:51 +0000 (17:53 -0000)]
added missing members and complete the wrapper
svn path=/trunk/mcs/; revision=24641
Atsushi Eno [Fri, 26 Mar 2004 16:24:04 +0000 (16:24 -0000)]
2004-03-26 Atsushi Enomoto <atsushi@ximian.com>
* System.Security_test.dll.sources :
Added XmlDsigEnvelopedSignatureTest.cs.
svn path=/trunk/mcs/; revision=24640
Atsushi Eno [Fri, 26 Mar 2004 16:22:39 +0000 (16:22 -0000)]
2004-03-26 Atsushi Enomoto <atsushi@ximian.com>
* Added XmlDsigEnvelopedSignatureTransformTest.cs.
* SignedXmlTest.cs : Added some KeyInfo and error handling repro.
svn path=/trunk/mcs/; revision=24639
Atsushi Eno [Fri, 26 Mar 2004 16:18:06 +0000 (16:18 -0000)]
2004-03-26 Atsushi Enomoto <atsushi@ximian.com>
* Makefile : Use alias for mcs and mono and debuginfo.
svn path=/trunk/mcs/; revision=24638
Atsushi Eno [Fri, 26 Mar 2004 16:12:40 +0000 (16:12 -0000)]
2004-03-26 Atsushi Enomoto <atsushi@ximian.com>
* XmlCanonicalizer.cs :
Don't output 
 for Whitespace node.
To filter every kind of nodes, make sure node.Attributes isnot null.
This makes some phaos tests passed.
svn path=/trunk/mcs/; revision=24637
Atsushi Eno [Fri, 26 Mar 2004 16:08:47 +0000 (16:08 -0000)]
2004-03-26 Atsushi Enomoto <atsushi@ximian.com>
* SignedXml.cs :
- Use specified (or default) XmlResolver to get external resource,
instead of using WebRequest directly. Also modified it easier.
- ApplyTransform() : Clone only when it is required. Handle
transformation output other than Stream.
- Even if applicable key was not found in GetHash(), don't throw
crypto exception every time and just return false (MS does it).
Throw an exception only when no key was specified as KeyInfo.
* XmlDsigEnvelopedSignatureTransform.cs : Fixed get_OutputTypes which
incorrectly set InputTypes internally.
* XmlDsigXPathTransform.cs : Context namespace nodes in loaded
transform parameter (i.e. <XPath>..</XPath>) should be registered
to XsltContext. Otherwise prefix binding error occurs.
Just filter attribute node, instead of filtering attribute children.
svn path=/trunk/mcs/; revision=24636
Zoltan Varga [Fri, 26 Mar 2004 15:30:23 +0000 (15:30 -0000)]
2004-03-26 Zoltan Varga <vargaz@freemail.hu>
* mini-sparc.c: Update status.
svn path=/trunk/mono/; revision=24635
Zoltan Varga [Fri, 26 Mar 2004 15:27:57 +0000 (15:27 -0000)]
2004-03-26 Zoltan Varga <vargaz@freemail.hu>
* inssel-sparc.brg: Add some optimizations.
* inssel-sparc.brg mini-sparc.c: Rework branch instructions to allow
future delay slot filling. Add support for varargs, tail calls and JMP.
svn path=/trunk/mono/; revision=24634
Zoltan Varga [Fri, 26 Mar 2004 15:24:16 +0000 (15:24 -0000)]
2004-03-26 Zoltan Varga <vargaz@freemail.hu>
* inssel.brg mini-ops.h mini.c: Use OP_REFANYTYPE instead of
CEE_REFANYTYPE, since CEE_REFANYTYPE needs a prefix to be unique.
* inssel.brg: Fix register allocation in OP_ARGLIST.
* inssel.brg: Fix warnings.
svn path=/trunk/mono/; revision=24633
Ravindra [Fri, 26 Mar 2004 13:48:00 +0000 (13:48 -0000)]
dos2unix and some cosmatic changes.
svn path=/trunk/mcs/; revision=24630
Ravindra [Fri, 26 Mar 2004 13:33:58 +0000 (13:33 -0000)]
Fixed wrapmode enum values.
svn path=/trunk/mcs/; revision=24629
Umadevi S [Fri, 26 Mar 2004 05:05:21 +0000 (05:05 -0000)]
2004-03-26 Umadevi S (sumadevi@novell.com)
* Changed SqlClientPermission Attribute to fix a build issue using csc
svn path=/trunk/mcs/; revision=24625
Gonzalo Paniagua Javier [Thu, 25 Mar 2004 23:54:57 +0000 (23:54 -0000)]
removed debugging output
svn path=/trunk/mono/; revision=24624
Gonzalo Paniagua Javier [Thu, 25 Mar 2004 23:52:50 +0000 (23:52 -0000)]
2004-03-25 Gonzalo Paniagua Javier <gonzalo@ximian.com>
* SearchPattern.cs: small improvement for files with no wildcard.
svn path=/trunk/mcs/; revision=24623
Gonzalo Paniagua Javier [Thu, 25 Mar 2004 23:45:44 +0000 (23:45 -0000)]
2004-03-25 Gonzalo Paniagua Javier <gonzalo@ximian.com>
* Process.cs: use the ISynchronizeInvoke object to invoke the event.
Implemented Close, CloseMainWindow and Kill.
svn path=/trunk/mcs/; revision=24622
Gonzalo Paniagua Javier [Thu, 25 Mar 2004 23:45:40 +0000 (23:45 -0000)]
2004-03-25 Gonzalo Paniagua Javier <gonzalo@ximian.com>
* io-layer/daemon-messages.h: added kill structs.
* io-layer/daemon.c: implemented process_process_kill.
* io-layer/handles-private.h: define process_process_kill.
* io-layer/handles.c: implemented _wapi_handle_process_kill.
* io-layer/processes.[ch]: implemented TerminateProcess.
* metadata/icall.c: added Kill_internal icall.
* metadata/process.[ch]: added Kill_internal icall.
svn path=/trunk/mono/; revision=24621
Ben Maurer [Thu, 25 Mar 2004 23:00:27 +0000 (23:00 -0000)]
build fix for 1.2 prof
svn path=/trunk/mcs/; revision=24620
Martin Baulig [Thu, 25 Mar 2004 22:50:04 +0000 (22:50 -0000)]
2004-03-25 Martin Baulig <martin@ximian.com>
* class.h (MonoStats): Added `generic_instance_count',
`inflated_method_count', `inflated_type_count' and
`generics_metadata_size'.
svn path=/trunk/mono/; revision=24619
Bernie Solomon [Thu, 25 Mar 2004 22:14:54 +0000 (22:14 -0000)]
2004-03-25 Bernie Solomon <bernard@ugsolutions.com>
* daemon.c (rem_fd): On solaris you seem to get an
error even after removing the input source so don't
try and rem_fd it twice.
svn path=/trunk/mono/; revision=24618
Martin Baulig [Thu, 25 Mar 2004 22:09:06 +0000 (22:09 -0000)]
Oooops.
svn path=/trunk/mono/; revision=24617
Martin Baulig [Thu, 25 Mar 2004 22:06:32 +0000 (22:06 -0000)]
2004-03-25 Martin Baulig <martin@ximian.com>
* interp.c (stackval_from_data): Added MONO_TYPE_GENERICINST.
(stackval_to_data): Added MONO_TYPE_GENERICINST.
(calc_offsets): Use mono_class_get_full() and mono_get_method_full().
(ves_exec_method_with_context): Likewise.
svn path=/trunk/mono/; revision=24616
Martin Baulig [Thu, 25 Mar 2004 22:06:20 +0000 (22:06 -0000)]
2004-03-25 Martin Baulig <martin@ximian.com>
* mini.c (inflate_generic_field): Removed.
(mini_get_method): Removed, use mono_get_method_full(),
(mini_get_class): Removed, use mono_class_get_full().
(mono_method_to_ir): Pass our generic context to
mono_field_from_token().
svn path=/trunk/mono/; revision=24615
Martin Baulig [Thu, 25 Mar 2004 22:06:07 +0000 (22:06 -0000)]
2004-03-25 Martin Baulig <martin@ximian.com>
* class.c (mono_class_get_full): New public function; does a
mono_class_get(), but also takes a `MonoGenericContext *'.
* loader.c (mono_field_from_memberref): Renamed to
`field_from_memberref', made static and added `MonoGenericContext *'
argument.
(mono_field_from_token): Added `MonoGenericInst *' argument.
(method_from_memberef): Likewise.
(mono_get_method_from_token): Likewise.
(mono_get_method_full): New public function; does a
mono_get_method(), but also takes a `MonoGenericContext *'.
* verify.c (mono_method_verify): Get the method's generic context
and pass it to mono_field_from_token(), mono_get_method_full() and
mono_class_get_full().
svn path=/trunk/mono/; revision=24614
Sebastien Pouliot [Thu, 25 Mar 2004 21:04:28 +0000 (21:04 -0000)]
2004-03-25 Sebastien Pouliot <sebastien@ximian.com>
* mcs-expect-no-errors: Removed cs1548 and cs1458-2.cs (fixed #55364).
svn path=/trunk/mcs/; revision=24613
Gonzalo Paniagua Javier [Thu, 25 Mar 2004 21:01:00 +0000 (21:01 -0000)]
2004-03-25 Gonzalo Paniagua Javier <gonzalo@ximian.com>
* reflection.c: no warnings now.
svn path=/trunk/mono/; revision=24612
Sebastien Pouliot [Thu, 25 Mar 2004 20:31:32 +0000 (20:31 -0000)]
2004-03-25 Sebastien Pouliot <sebastien@ximian.com>
* AssemblyBuilder.cs: Changed strongname support to match MS
implementation (i.e. attributes are used by the compiler - not by
AssemblyBuilder).
svn path=/trunk/mcs/; revision=24610
Sebastien Pouliot [Thu, 25 Mar 2004 20:29:43 +0000 (20:29 -0000)]
2004-03-25 Sebastien Pouliot <sebastien@ximian.com>
* attribute.cs: Added methods to get a string and a bool from an
attribute. Required to information from AssemblyKeyFileAttribute,
AttributeKeyNameAttribute (string) and AssemblyDelaySign (bool).
* codegen.cs: Modified AssemblyName creation to include support for
strongnames. Catch additional exceptions to report them as CS1548.
* compiler.csproj: Updated include CryptoConvert.cs.
* compiler.csproj.user: Removed file - user specific configuration.
* CryptoConvert.cs: New. A COPY of the class CryptoConvert from
Mono.Security assembly. The original class is maintained and tested in
/mcs/class/Mono.Security/Mono.Security.Cryptography/CryptoConvert.cs.
* drivers.cs: Added support for /keyfile, /keycontainer and /delaysign
like CSC 8.0 (C# v2) supports.
* Makefile: Added CryptoConvert.cs to mcs sources.
* rootcontext.cs: Added new options for strongnames.
svn path=/trunk/mcs/; revision=24609
Martin Baulig [Thu, 25 Mar 2004 20:15:56 +0000 (20:15 -0000)]
2004-03-25 Martin Baulig <martin@ximian.com>
* class.c (mono_class_inflate_generic_type): Take a
`MonoGenericContext *' instead of a `MonoGenericInst *' and a
`MonoGenericMethod *'.
svn path=/trunk/mono/; revision=24608
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