mono.git
20 years ago2003-07-26 Piers Haken <piersh@friskit.com>
Piers Haken [Sun, 27 Jul 2003 02:54:26 +0000 (02:54 -0000)]
2003-07-26  Piers Haken <piersh@friskit.com>

* Expression.cs: fix function evaluation with ambigous argument types
* XPathnavigator.cs: fix silly null reference bug

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

20 years ago2003-07-26 Ben Maurer <bmaurer@users.sourceforge.net>
Ben Maurer [Sun, 27 Jul 2003 02:49:04 +0000 (02:49 -0000)]
2003-07-26  Ben Maurer  <bmaurer@users.sourceforge.net>

* statement.cs: Make Math.XXX System.Math.XXX, to fix the build.

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

20 years ago2003-07-26 Piers Haken <piersh@friskit.com>
Piers Haken [Sun, 27 Jul 2003 02:28:24 +0000 (02:28 -0000)]
2003-07-26  Piers Haken <piersh@friskit.com>

* Iterator.cs:
* DefaultContext.cs:
ArrayListIterator->EnumeratorIterator
* Expression.cs: add sorting support

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

20 years agoLittle fixity fix! ;-)
Duncan Mak [Sun, 27 Jul 2003 02:25:48 +0000 (02:25 -0000)]
Little fixity fix! ;-)

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

20 years ago2003-07-27 Atsushi Enomoto <ginga@kit.hi-ho.ne.jp>
Atsushi Eno [Sun, 27 Jul 2003 02:19:34 +0000 (02:19 -0000)]
2003-07-27  Atsushi Enomoto <ginga@kit.hi-ho.ne.jp>

* XmlDocument.cs (GetIdenticalAttribute): restored OwnerElement.IsRooted

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

20 years ago2003-07-27 Atsushi Enomoto <ginga@kit.hi-ho.ne.jp>
Atsushi Eno [Sun, 27 Jul 2003 02:10:41 +0000 (02:10 -0000)]
2003-07-27  Atsushi Enomoto <ginga@kit.hi-ho.ne.jp>

* XmlLinkedNode.cs : added internal IsRooted.

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

20 years ago* XmlDocument.cs (GetIdenticalAttribute): Temporarily remove test
Duncan Mak [Sat, 26 Jul 2003 23:49:55 +0000 (23:49 -0000)]
* XmlDocument.cs (GetIdenticalAttribute): Temporarily remove test
for OwnerElement.IsRooted to fix the build..

* SoapServices.cs (XmlNsForClrTypeWithNsAndAssembly):
Fixed typo. It's 'Ns', but 'Ms'.

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

20 years ago2003-07-26 Piers Haken <piersh@friskit.com>
Piers Haken [Sat, 26 Jul 2003 20:16:24 +0000 (20:16 -0000)]
2003-07-26  Piers Haken <piersh@friskit.com>

* Tokenizer.cs:
* Parser.jay:
move QName parsing into tokenizer
* Expression.cs:
fix evaluating XPathResultType.Any
fix ExprDiv.ToString()
fix NodeTypeTest.ToString() (for namespace axis)

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

20 years ago2003-07-26 Atsushi Enomoto <ginga@kit.hi-ho.ne.jp>
Atsushi Eno [Sat, 26 Jul 2003 19:46:11 +0000 (19:46 -0000)]
2003-07-26  Atsushi Enomoto <ginga@kit.hi-ho.ne.jp>

* XmlAttributeTests.cs : added IdentityConstraints().
* XmlDocumentTests.cs : added DocumentTypeNodes().
* XmlNodeTests.cs : added InnerText().
* XmlReaderCommonTests.cs : added XmlValidatingReader as one of the
  testing reader. Added IndexerAndAttributes().
* XmlValidatingReader.cs : modified TestAttributes() to have
  ReadAttributeValue() tests. Added TestIdentityConstraints()

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

20 years ago2003-07-26 Atsushi Enomoto <ginga@kit.hi-ho.ne.jp>
Atsushi Eno [Sat, 26 Jul 2003 19:39:32 +0000 (19:39 -0000)]
2003-07-26  Atsushi Enomoto <ginga@kit.hi-ho.ne.jp>

* DTDValidatingReader.cs :
  - Added ID support in ValidateAttributes().
  - More refined ReadAttributeValue() support for non-expanding entity
    situation
  - It should handle LocalName, Name, Prefix, NamespaceURI and Value
    correctly when the reader is on each of the value nodes of an
    attribute. Now XmlDocument.ReadNode() should work well.
* XmlDocument.cs :
  - added idTable, AddIdenticalAttribute(), GetIdenticalAttribute() and
    RemoveIdenticalAttribute()
  - Implemented GetAttributeById().
* XmlAttributeCollection.cs :
  - added private ownerDocument property and replaced
    ownerElement.OwnerDocument with it.
  - Added AdjustIdenticalAttribute() and it is used in SetNamedItem().
    It calls XmlDocument.{Add|Remove}IdenticalAttribute().
  - Added RemoveIdenticalAttribute() and it is used in Remove().
    (I also added AddIdenticalAttribute() but is not used.)

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

20 years ago2003-07-26 Atsushi Enomoto <ginga@kit.hi-ho.ne.jp>
Atsushi Eno [Sat, 26 Jul 2003 19:38:37 +0000 (19:38 -0000)]
2003-07-26  Atsushi Enomoto <ginga@kit.hi-ho.ne.jp>

* XmlDocumentType.cs :
  modified private DTD to dtd and added internal DTD (the same thing).
* XmlElement.cs :
  Fixed SetAttributeNode() to check if specified attribute is already
  set to the other element. In fact it is W3C DOM's specification but
  MS.NET 1.0 failed to catch it.
* XmlTextReader.cs :
  ReadAttributeValue() should check if the value of the attribute is
  already read when the whole value is entity reference.
  Also, Name of text nodes should be "", not "#text"

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

20 years ago2003-07-26 Atsushi Enomoto <ginga@kit.hi-ho.ne.jp>
Atsushi Eno [Sat, 26 Jul 2003 19:37:38 +0000 (19:37 -0000)]
2003-07-26  Atsushi Enomoto  <ginga@kit.hi-ho.ne.jp>

* BuiltInDatatype.cs : XsdIDRefs.ParseValue () should be implemented.
* XmlSchemaDatatype.cs : public Whitespace and protected Normalize()
  should be internal.

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

20 years ago2003-07-26 Gonzalo Paniagua Javier <gonzalo@ximian.com>
Gonzalo Paniagua Javier [Sat, 26 Jul 2003 19:06:36 +0000 (19:06 -0000)]
2003-07-26  Gonzalo Paniagua Javier <gonzalo@ximian.com>

* Makefile: added install-local target.

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

20 years ago2003-07-26 Gonzalo Paniagua Javier <gonzalo@ximian.com>
Gonzalo Paniagua Javier [Sat, 26 Jul 2003 18:52:22 +0000 (18:52 -0000)]
2003-07-26  Gonzalo Paniagua Javier <gonzalo@ximian.com>

* Enum.cs: added Serializable attribute.

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

20 years agoUse System.Math instead of just `Math'.
Martin Baulig [Sat, 26 Jul 2003 17:53:52 +0000 (17:53 -0000)]
Use System.Math instead of just `Math'.

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

20 years ago2003-07-26 Martin Baulig <martin@ximian.com>
Martin Baulig [Sat, 26 Jul 2003 17:49:34 +0000 (17:49 -0000)]
2003-07-26  Martin Baulig  <martin@ximian.com>

* error-6.cs: New test for bug #46907.

* Makefile.am (test-multi-local): Run the multi-test tests.
(all-local): Run run-test-local and test-multi-local.

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

20 years ago2003-07-26 Martin Baulig <martin@ximian.com>
Martin Baulig [Sat, 26 Jul 2003 17:48:25 +0000 (17:48 -0000)]
2003-07-26  Martin Baulig  <martin@ximian.com>

* test-209.cs: New test for implict conversions and embedded assignments.

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

20 years ago2003-07-26 Martin Baulig <martin@ximian.com>
Martin Baulig [Sat, 26 Jul 2003 17:45:15 +0000 (17:45 -0000)]
2003-07-26  Martin Baulig  <martin@ximian.com>

* expression.cs (Indexers.Indexer): New nested struct; contains
getter, setter and the indexer's type.
(Indexers.Properties): This is now an ArrayList of
Indexers.Indexer's.
(IndexerAccess.DoResolveLValue): Correctly set the type if the
indexer doesn't have any getters.

* assign.cs (Assign.DoResolve): Also do the implicit conversions
for embedded property and indexer assignments.

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

20 years ago2003-07-25 Piers Haken <piersh@friskit.com>
Piers Haken [Sat, 26 Jul 2003 17:45:08 +0000 (17:45 -0000)]
2003-07-25  Piers Haken <piersh@friskit.com>

* Expression.cs: return clone of $var evaluation

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

20 years ago2003-07-26 Martin Baulig <martin@ximian.com>
Martin Baulig [Sat, 26 Jul 2003 17:40:05 +0000 (17:40 -0000)]
2003-07-26  Martin Baulig  <martin@ximian.com>

* cs-tokenizer.cs (Tokenizer.xtoken): Report a CS1040 if a
preprocessor directive is not the first non-whitespace character
on a line.

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

20 years ago2003-07-26 Martin Baulig <martin@ximian.com>
Martin Baulig [Sat, 26 Jul 2003 17:35:40 +0000 (17:35 -0000)]
2003-07-26  Martin Baulig  <martin@ximian.com>

* namespace.cs (NamespaceEntry.Lookup): New method; rewrote the
namespace parsing, follow the spec more closely.

* rootcontext.cs (RootContext.NamespaceLookup): Use the new
NamespaceEntry.Lookup().

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

20 years ago2003-07-26 Gonzalo Paniagua Javier <gonzalo@ximian.com>
Gonzalo Paniagua Javier [Sat, 26 Jul 2003 15:24:11 +0000 (15:24 -0000)]
2003-07-26  Gonzalo Paniagua Javier <gonzalo@ximian.com>

* FormatterServices.cs:
(GetSerializableMembers): check that all base types are serializable
when getting their fields. Fixes bug #46875.

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

20 years ago2003-07-26 Gonzalo Paniagua Javier <gonzalo@ximian.com>
Gonzalo Paniagua Javier [Sat, 26 Jul 2003 15:03:35 +0000 (15:03 -0000)]
2003-07-26  Gonzalo Paniagua Javier <gonzalo@ximian.com>

* Mono.Http.dll.sources: added new files.

* README: updated.

* Mono.Http/GZipWebRequest.cs:
* Mono.Http/GZipWebResponse.cs: wrappers for WebRequest/WebResponse to
allow requesting and receiving gzipped content that is transparently
uncompressed.

* samples/ChangeLog:
* samples/Makefile:
* samples/http-get-gzip.cs: initial check in.

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

20 years ago2003-07-26 Atsushi Enomoto <ginga@kit.hi-ho.ne.jp>
Atsushi Eno [Sat, 26 Jul 2003 08:47:54 +0000 (08:47 -0000)]
2003-07-26  Atsushi Enomoto <ginga@kit.hi-ho.ne.jp>

* XmlAttribute.cs : .ctor() shouldallow localName "xml" (not prefix)
  with http://www.w3.org/XML/1998/namespace.
* XmlEntity.cs : patch by Aleksey Sanin. InnerText is now supported.
* XmlNode.cs : InnerText should handle CDATA and whitespaces.
* XmlTextReader.cs : Should allow " (#PCDATA)* " in ReadContentSpec().
* XmlTextWriter.cs : Quick fix for accepting (and writing) same-named
  attributes (as MS.NET does). It isn't good way and I may change it.

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

20 years ago(Equals):
Duncan Mak [Fri, 25 Jul 2003 23:26:05 +0000 (23:26 -0000)]
(Equals):
(GetHashCode): Removed because they do not need to be defined
here.

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

20 years ago2003-07-25 Piers Haken <piersh@friskit.com>
Piers Haken [Fri, 25 Jul 2003 21:26:28 +0000 (21:26 -0000)]
2003-07-25  Piers Haken <piersh@friskit.com>

* Iterator.cs: add setter for NamespaceManager
* XPathNavigator.cs: propagate NamespaceManager from context on Evaluate
* Expression.cs: fix func/var exception strings

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

20 years agoHave run-test depend on test-local after it does run-test-recursive, so
Peter Williams [Fri, 25 Jul 2003 19:42:00 +0000 (19:42 -0000)]
Have run-test depend on test-local after it does run-test-recursive, so
a toplevel 'make run-test' doesn't recurse through all the directories twice
(once to make test, once to run-test).

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

20 years agoComplete comment
Ravi Pratap M [Fri, 25 Jul 2003 19:22:23 +0000 (19:22 -0000)]
Complete comment

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

20 years ago2003-07-25 Piers Haken <piersh@friskit.com>
Piers Haken [Fri, 25 Jul 2003 19:14:19 +0000 (19:14 -0000)]
2003-07-25  Piers Haken <piersh@friskit.com>

* Expressioncs: implement ExprFilter.Evaluate

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

20 years agoupdate
Gonzalo Paniagua Javier [Fri, 25 Jul 2003 18:01:40 +0000 (18:01 -0000)]
update

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

20 years agoChanged USE_... by NET_1_X
Gonzalo Paniagua Javier [Fri, 25 Jul 2003 17:56:57 +0000 (17:56 -0000)]
Changed USE_... by NET_1_X

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

20 years ago2003-07-24 Gonzalo Paniagua Javier <gonzalo@ximian.com>
Gonzalo Paniagua Javier [Fri, 25 Jul 2003 17:54:01 +0000 (17:54 -0000)]
2003-07-24  Gonzalo Paniagua Javier <gonzalo@ximian.com>

* XmlCanonicalizer.cs: fixed to make it build for 1.0 and 1.1.

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

20 years ago2003-07-25 Piers Haken <piersh@friskit.com>
Piers Haken [Fri, 25 Jul 2003 17:42:44 +0000 (17:42 -0000)]
2003-07-25  Piers Haken <piersh@friskit.com>

* Expressioncs: implement ExprVariable.Evaluate

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

20 years agoAdd this error test case
Ravi Pratap M [Fri, 25 Jul 2003 17:38:12 +0000 (17:38 -0000)]
Add this error test case

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

20 years ago2003-07-25 Ravi Pratap <ravi@ximian.com>
Ravi Pratap M [Fri, 25 Jul 2003 17:37:29 +0000 (17:37 -0000)]
2003-07-25  Ravi Pratap  <ravi@ximian.com>

* expression.cs (Invocation.OverloadResolve): Perform the check
which disallows Invoke to be directly called on a Delegate.

(Error_InvokeOnDelegate): Report error cs1533.

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

20 years agoFri Jul 25 19:25:31 CEST 2003 Paolo Molaro <lupus@ximian.com>
Paolo Molaro [Fri, 25 Jul 2003 17:36:29 +0000 (17:36 -0000)]
Fri Jul 25 19:25:31 CEST 2003 Paolo Molaro <lupus@ximian.com>

* PEAPI.cs: added coded index for the owner field in the GenericParam
table.

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

20 years ago2003-07-25 Ravi Pratap <ravi@ximian.com>
Ravi Pratap M [Fri, 25 Jul 2003 17:35:43 +0000 (17:35 -0000)]
2003-07-25  Ravi Pratap  <ravi@ximian.com>

* everywhere: Remove uses of direct invocation of the 'Invoke'
method on a delegate type - that is error cs1533 now flagged by
mcs.

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

20 years ago2003-07-25 Ravi Pratap <ravi@ximian.com>
Ravi Pratap M [Fri, 25 Jul 2003 17:29:24 +0000 (17:29 -0000)]
2003-07-25  Ravi Pratap  <ravi@ximian.com>

* DataRelation.cs (OnPropertyChanging): Calling the 'Invoke'
method on a delegate is disallowed - fix this.

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

20 years agoFri Jul 25 19:14:13 CEST 2003 Paolo Molaro <lupus@ximian.com>
Paolo Molaro [Fri, 25 Jul 2003 17:28:32 +0000 (17:28 -0000)]
Fri Jul 25 19:14:13 CEST 2003 Paolo Molaro <lupus@ximian.com>

* class.c, class.h, image.c, image.h, loader.c, metadata.c,
metadata.h, row-indexes.h, verify.c: first cut of generics support.

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

20 years agoFri Jul 25 18:51:45 CEST 2003 Paolo Molaro <lupus@ximian.com>
Paolo Molaro [Fri, 25 Jul 2003 17:28:25 +0000 (17:28 -0000)]
Fri Jul 25 18:51:45 CEST 2003 Paolo Molaro <lupus@ximian.com>

* cpu-g4.md, cpu-pentium.md: updates for new instructions.
* mini.c, mini.h: first cut at generics support: some new instructions
added and changed the behaviour of some of the existing ones.

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

20 years agoFri Jul 25 19:06:27 CEST 2003 Paolo Molaro <lupus@ximian.com>
Paolo Molaro [Fri, 25 Jul 2003 17:28:17 +0000 (17:28 -0000)]
Fri Jul 25 19:06:27 CEST 2003 Paolo Molaro <lupus@ximian.com>

* interp.c: updates for new instructions.

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

20 years agoOops - we need a main
Ravi Pratap M [Fri, 25 Jul 2003 17:11:19 +0000 (17:11 -0000)]
Oops - we need a main

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

20 years agoAdd this error test case
Ravi Pratap M [Fri, 25 Jul 2003 17:10:36 +0000 (17:10 -0000)]
Add this error test case

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

20 years ago2003-07-25 Ravi Pratap <ravi@ximian.com>
Ravi Pratap M [Fri, 25 Jul 2003 17:03:30 +0000 (17:03 -0000)]
2003-07-25  Ravi Pratap  <ravi@ximian.com>

* attribute.cs (Attribute.CheckAttribute): Break as soon as we
find an AttributeUsage attribute.

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

20 years ago2003-07-25 Martin Baulig <martin@ximian.com>
Martin Baulig [Fri, 25 Jul 2003 16:36:59 +0000 (16:36 -0000)]
2003-07-25  Martin Baulig  <martin@ximian.com>

* MethodCore.cs (OverridesSomething): New public field; it's set
from TypeContainer.DefineMembers if this method overrides
something (which doesn't need to be a method).  Fix #39462.

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

20 years agoOops - no 207 it seems
Ravi Pratap M [Fri, 25 Jul 2003 16:28:39 +0000 (16:28 -0000)]
Oops - no 207 it seems

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

20 years agoAdd these to the test suite
Ravi Pratap M [Fri, 25 Jul 2003 16:28:06 +0000 (16:28 -0000)]
Add these to the test suite

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

20 years agoBash was complaining about some syntax error - fix it
Ravi Pratap M [Fri, 25 Jul 2003 16:25:10 +0000 (16:25 -0000)]
Bash was complaining about some syntax error - fix it

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

20 years agoFix - test-102 doesn't pass, not 202
Ravi Pratap M [Fri, 25 Jul 2003 16:14:27 +0000 (16:14 -0000)]
Fix - test-102 doesn't pass, not 202

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

20 years ago2003-07-25 Martin Baulig <martin@ximian.com>
Martin Baulig [Fri, 25 Jul 2003 15:52:38 +0000 (15:52 -0000)]
2003-07-25  Martin Baulig  <martin@ximian.com>

* test-208.cs: New test for bug #46788.

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

20 years ago2003-07-25 Martin Baulig <martin@ximian.com>
Martin Baulig [Fri, 25 Jul 2003 15:51:32 +0000 (15:51 -0000)]
2003-07-25  Martin Baulig  <martin@ximian.com>

* expression.cs (Indexers.GetIndexersForType): Only look in the
interface hierarchy if the requested type is already an
interface.  Fixes #46788 while keeping #46502 fixed.

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

20 years ago2003-07-25 Ravi Pratap <ravi@ximian.com>
Ravi Pratap M [Fri, 25 Jul 2003 15:46:30 +0000 (15:46 -0000)]
2003-07-25  Ravi Pratap  <ravi@ximian.com>

* typemanager.cs (GetMembers): Ensure that the list of members is
reversed. This keeps things in sync.

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

20 years ago2003-07-24 Ravi Pratap <ravi@ximian.com>
Ravi Pratap M [Fri, 25 Jul 2003 15:15:01 +0000 (15:15 -0000)]
2003-07-24  Ravi Pratap  <ravi@ximian.com>

* interface.cs (Populate*): Get rid of code which emits attributes
since the stage in which we emit attributes is the 'Emit' stage,
not the define stage.

(Emit): Move attribute emission for interface members here.

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

20 years ago * MEthodDef.cs: If methods do not have the static attribute give
Jackson Harper [Fri, 25 Jul 2003 15:00:00 +0000 (15:00 -0000)]
    * MEthodDef.cs: If methods do not have the static attribute give
them the instance calling convention.

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

20 years agoSlightly more complex example.
Paolo Molaro [Fri, 25 Jul 2003 13:23:32 +0000 (13:23 -0000)]
Slightly more complex example.

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

20 years ago * MessageFormatter.cs: WriteMethodCall(): It must write all parameters,
Lluis Sanchez [Fri, 25 Jul 2003 12:22:01 +0000 (12:22 -0000)]
* MessageFormatter.cs: WriteMethodCall(): It must write all parameters,
      including ref and out.

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

20 years ago * RemotingProxy.cs: Check the return arguments types. (a wrong type
Lluis Sanchez [Fri, 25 Jul 2003 12:17:02 +0000 (12:17 -0000)]
* RemotingProxy.cs: Check the return arguments types. (a wrong type
  would make the runtime to crash).

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

20 years ago * ArgInfo.cs: Use Type.IsByRef to check if a parameter is a ref or
Lluis Sanchez [Fri, 25 Jul 2003 12:10:09 +0000 (12:10 -0000)]
* ArgInfo.cs: Use Type.IsByRef to check if a parameter is a ref or
  out parameter.
* MethodCall.cs: Improved checking if the requested client type for the target
  object can be casted to the server type. Now not only checks type name,
  but also the type hierarchy and implemented interfaces. Also implemented
  method ToString().
* MethodResponse.cs: Imlemented ToString().
* ReturnMessage.cs: In the exception constructor, allow the request to be null.
  Implemented ToString().
* StackBuilderSink.cs: Check type of parameters before calling the target method.
  (a wrong type would make the runtime to crash).

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

20 years ago * RemotingServices.cs: If the type for a proxy is not available in
Lluis Sanchez [Fri, 25 Jul 2003 11:58:23 +0000 (11:58 -0000)]
* RemotingServices.cs: If the type for a proxy is not available in
  the client site, use the MarshalByRefObject type.

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

20 years agoFri Jul 25 12:27:24 CEST 2003 Paolo Molaro <lupus@ximian.com>
Paolo Molaro [Fri, 25 Jul 2003 10:36:55 +0000 (10:36 -0000)]
Fri Jul 25 12:27:24 CEST 2003 Paolo Molaro <lupus@ximian.com>

* generics-c.il, generics-b.il: add constructors and fix code.

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

20 years agoDisable tests which were already disabled in the old makefile.
Martin Baulig [Fri, 25 Jul 2003 10:13:35 +0000 (10:13 -0000)]
Disable tests which were already disabled in the old makefile.

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

20 years ago2003-07-25 Martin Baulig <martin@ximian.com>
Martin Baulig [Fri, 25 Jul 2003 10:10:38 +0000 (10:10 -0000)]
2003-07-25  Martin Baulig  <martin@ximian.com>

* class.cs (TypeContainer.DefineMembers): Check whether all
readonly fields have been assigned and report warning CS0649 if
not.

* statement.cs (LocalInfo.IsFixed): Always return true if this is
a valuetype.

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

20 years ago2003-07-24 Ben Maurer <bmaurer@users.sourceforge.net>
Ben Maurer [Fri, 25 Jul 2003 03:43:26 +0000 (03:43 -0000)]
2003-07-24  Ben Maurer <bmaurer@users.sourceforge.net>

* DefaultContext.cs: implement lang ()

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

20 years agoAdd missing file
Miguel de Icaza [Fri, 25 Jul 2003 01:30:08 +0000 (01:30 -0000)]
Add missing file

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

20 years agoFix build.
Miguel de Icaza [Fri, 25 Jul 2003 01:29:57 +0000 (01:29 -0000)]
Fix build.

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

20 years agoError test - checks attributes on interface members
Ravi Pratap M [Fri, 25 Jul 2003 01:05:13 +0000 (01:05 -0000)]
Error test - checks attributes on interface members

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

20 years agoGEt rid of debug statement
Ravi Pratap M [Fri, 25 Jul 2003 00:50:57 +0000 (00:50 -0000)]
GEt rid of debug statement

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

20 years ago2003-07-24 Sebastien Pouliot <spouliot@videotron.ca>
Sebastien Pouliot [Fri, 25 Jul 2003 00:25:58 +0000 (00:25 -0000)]
2003-07-24  Sebastien Pouliot  <spouliot@videotron.ca>

* XmlDsigC14NTransformTest.cs: New tests from Aleksey Sanin.
* XmlDsigC14NWithCommentsTransformTest.cs: New tests from
Aleksey Sanin.

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

20 years ago2003-07-24 Sebastien Pouliot <spouliot@videotron.ca>
Sebastien Pouliot [Fri, 25 Jul 2003 00:23:29 +0000 (00:23 -0000)]
2003-07-24  Sebastien Pouliot  <spouliot@videotron.ca>

* System.Security.dll.sources: Added new Mono.Xml.XmlCanonicalizer.cs
from Aleksey Sanin.

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

20 years ago2003-07-24 Sebastien Pouliot <spouliot@videotron.ca>
Sebastien Pouliot [Fri, 25 Jul 2003 00:22:17 +0000 (00:22 -0000)]
2003-07-24  Sebastien Pouliot  <spouliot@videotron.ca>

* XmlDsigC14NTransform.cs: Patch to use Mono.Xml.XmlCanonicalizer
from Aleksey Sanin.

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

20 years ago2003-07-24 Sebastien Pouliot <spouliot@motus.com>
Sebastien Pouliot [Fri, 25 Jul 2003 00:19:44 +0000 (00:19 -0000)]
2003-07-24  Sebastien Pouliot <spouliot@motus.com>

* XmlCanonicalizer.cs: New. C14N class from Aleksey Sanin.

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

20 years agoFlush changelog entries
Miguel de Icaza [Thu, 24 Jul 2003 23:00:26 +0000 (23:00 -0000)]
Flush changelog entries

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

20 years ago2003-07-24 Piers Haken <piersh@friskit.com>
Piers Haken [Thu, 24 Jul 2003 22:37:55 +0000 (22:37 -0000)]
2003-07-24  Piers Haken <piersh@friskit.com>

* Parser.jay:
* Expression.cs:
allow ExprUNION to take non-nodeset (eg, $var) arguments

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

20 years ago2003-07-24 Gonzalo Paniagua Javier <gonzalo@ximian.com>
Gonzalo Paniagua Javier [Thu, 24 Jul 2003 22:00:43 +0000 (22:00 -0000)]
2003-07-24  Gonzalo Paniagua Javier <gonzalo@ximian.com>

* TypeLoadException.cs: removed unused fields. TypeName returns "" if
cannot even get the type.

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

20 years ago2003-07-24 Ravi Pratap <ravi@ximian.com>
Ravi Pratap M [Thu, 24 Jul 2003 21:34:31 +0000 (21:34 -0000)]
2003-07-24  Ravi Pratap  <ravi@ximian.com>

* decl.cs (MemberCache.AddMethods): Reverse the order of the array
returned from GetMethods to make things consistent with the
assumptions MCS makes about ordering of methods.

This should comprehensively fix bug #45127 and it does :-)

* ecore.cs (MethodGroupExpr.DeclaringType): Correct bug - the
ordering is actually reverse.

* Clean up some debug messages I left lying around.

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

20 years ago2003-07-24 Ravi Pratap <ravi@ximian.com>
Ravi Pratap M [Thu, 24 Jul 2003 21:34:03 +0000 (21:34 -0000)]
2003-07-24  Ravi Pratap  <ravi@ximian.com>

* icall.c: Remove the FIXED_MCS_45127 workarounds - this has been
fixed.

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

20 years ago2003-07-24 Gonzalo Paniagua Javier <gonzalo@ximian.com>
Gonzalo Paniagua Javier [Thu, 24 Jul 2003 21:10:36 +0000 (21:10 -0000)]
2003-07-24  Gonzalo Paniagua Javier <gonzalo@ximian.com>

* rules.make: run-test depends now on 'test'.

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

20 years ago2003-07-24 Miguel de Icaza <miguel@ximian.com>
Miguel de Icaza [Thu, 24 Jul 2003 20:46:47 +0000 (20:46 -0000)]
2003-07-24  Miguel de Icaza  <miguel@ximian.com>

This compiler can not self host currently.  Need to fix that.

* Makefile: compile to `gmcs.exe'

* driver.cs: Turn on v2 by default on gmcs.

* generic.cs (ConstructedType): Does no longer take a container
type argument;  That will be taken care of later.

(ConstructedType.DoResolve, ConstructedType.ResolveAsTypeStep):
Use SimpleName to resolve for now, so we can continue the work on
the parser, until we get Type.GetType that understands generics.

(ConstructedType.ToString): Implement

(TypeArguments.Resolve): Resolve the child expressions as types.

* cs-parser.jay: Rename interface_constraints to
type_parameter_constraints

(namespace_or_type_name): Only use constructed types for the basic
construction, we will deal with identifier<...> later.

(type/type_name): No longer call DecomposeQI, as
namespace_or_type_name is always decoded now.

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

20 years ago2003-07-24 Piers Haken <piersh@friskit.com>
Piers Haken [Thu, 24 Jul 2003 20:41:45 +0000 (20:41 -0000)]
2003-07-24  Piers Haken <piersh@friskit.com>

* Tokenizer.cs: fix variable references
* Parser.jay:
* Expression.cs:
* XPathNavigator.cs:
use XmlQualifiedName

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

20 years agoAdd another test
Miguel de Icaza [Thu, 24 Jul 2003 20:41:34 +0000 (20:41 -0000)]
Add another test

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

20 years ago2003-07-24 Miguel de Icaza <miguel@ximian.com>
Miguel de Icaza [Thu, 24 Jul 2003 20:26:37 +0000 (20:26 -0000)]
2003-07-24  Miguel de Icaza  <miguel@ximian.com>

* Type.cs: Added generics stubs.

2003-07-24  Miguel de Icaza  <miguel@ximian.com>

* ArrayList.cs: Removed MonoTODO.

2003-07-24  Miguel de Icaza  <miguel@ximian.com>

* TypeDelegator.cs: Added generics stubs.

2003-07-24  Miguel de Icaza  <miguel@ximian.com>

* TypeBuilder.cs: Added generics stubs.

* EnumBuilder.cs: Added generics  stubs, changed bracing style for
routines.

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

20 years agoAdd profile
Miguel de Icaza [Thu, 24 Jul 2003 20:22:02 +0000 (20:22 -0000)]
Add profile

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

20 years ago2003-07-24 Gonzalo Paniagua Javier <gonzalo@ximian.com>
Gonzalo Paniagua Javier [Thu, 24 Jul 2003 17:37:39 +0000 (17:37 -0000)]
2003-07-24  Gonzalo Paniagua Javier <gonzalo@ximian.com>

* Makefile: only build Mono.CSharp.Debugger under linux.

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

20 years ago2003-07-24 Gonzalo Paniagua Javier <gonzalo@ximian.com>
Gonzalo Paniagua Javier [Thu, 24 Jul 2003 17:35:15 +0000 (17:35 -0000)]
2003-07-24  Gonzalo Paniagua Javier <gonzalo@ximian.com>

* rules.make: set corlib to PLATFORM_CORLIB if this is defined.

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

20 years ago2003-07-24 Atsushi Enomoto <ginga@kit.hi-ho.ne.jp>
Atsushi Eno [Thu, 24 Jul 2003 17:34:42 +0000 (17:34 -0000)]
2003-07-24  Atsushi Enomoto <ginga@kit.hi-ho.ne.jp>

* XmlConvertTests.cs,
  XmlNodeTests.cs,
  XmlTextWriterTests.cs : removed some compilation warning.
* XmlNodeReaderTests.cs : reverted Jul. 12th. ReadInnerXmlWrongInit()
  incorrect commit.
* XmlValidatingReaderTests.cs : Code refactory (removed xml1, xml2...
  and changed PrepareXmlReader() as returning validating reader.
  Added indexer (this[]) property check and ValidationType.None check
  to TestAttributeDefaultContribution().
  Added TestExpandEntity(), TestPreserveEntity() and TestNormalization().

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

20 years ago2003-07-24 Atsushi Enomoto <ginga@kit.hi-ho.ne.jp>
Atsushi Eno [Thu, 24 Jul 2003 17:24:37 +0000 (17:24 -0000)]
2003-07-24  Atsushi Enomoto <ginga@kit.hi-ho.ne.jp>

* DTDObjectModel.cs : Added DTDEntityDeclarationCollection and
  DTDNotationDeclarationCollection and replaced Hashtables with them.
  Added NormalizedDefaultValue property for DTDAttributeDefinition.
* DTDValidatingReader.cs :
  - It now reads attribute values into value collection.
  - Renamed consumedDefaultAttribute to consumedAttribute, and
    inContent to insideContent.
  - GetAttribute() should allow reader's other node state than element.
  - MoveToNextAttribute() should move when reader is placed other than
    the first attribute.
  - HandleError() now supports ValidationType.None (i.e. does nothing).
  - ValidateAttribute() now collects and resolves attribute value
    entity references. (On the other hand, it doesn't support
    EntityHandling.ExpandCharEntity.)
  - NodeType shouldn't return Attribute after ReadAttributeValue().
    Now only Text is supported, but must also support EntityReference.
  - Add FilterNormalization() and partially support Normalization.

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

20 years agoAdded new assembly to hold utility classes related to Http protocol
Gonzalo Paniagua Javier [Thu, 24 Jul 2003 17:02:52 +0000 (17:02 -0000)]
Added new assembly to hold utility classes related to Http protocol

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

20 years agoInitial import of the Generic MCS tree.
Miguel de Icaza [Thu, 24 Jul 2003 16:46:43 +0000 (16:46 -0000)]
Initial import of the Generic MCS tree.

2003-07-20  Miguel de Icaza  <miguel@ximian.com>

* cs-parser.jay (namespace_name): do not use
namespace_or_type_name, use qualified_identifier, because
namespace_or_type_name will soon return a composed expression
instead of a string.

(namespace_or_type_name): Instead of returning a string, now this
production returns an expression.

* codegen.cs (EmitContext): Setup IsGeneric property based on
whether our DeclSpace is generic, our the method is generic.

* modifier.cs (Modifiers.METHOD_GENERIC): New definition, use if
the method is generic.

* cs-parser.jay (type_arguments, opt_type_argument_list,
type_parameters, type_parameter_list, opt_type_parameter_list,
type_parameter,, opt_type_parameter_constraints_clauses,
type_parameter_constraints_clauses,
type_parameter_constraint_clause, type_parameter_constraint,
interface_constraints): Add new production

* decl.cs (DeclSpace): IsGeneric, flag to track whether this
DeclSpace is generic or not.

(DeclSpace.SetParameterInfo): New routine, used to set the
parameter info for a type.

(DeclSpace.LookupGeneric): Lookups a name, and if it is a generic,
returns a GenericTypeExpr

* ecore.cs (SimpleName.ResolveAsTypeStep): If our container is
generic, lookup the generic argument.

* attribute.cs: Do not allow TypeParameterExpressions in
Attributes.

* class.cs: Do not allow the Main method to be defined in a
Generic container.

* expression.cs (SizeOf): Do not allow generic types to be used as
arguments to sizeof.

* typemanager.cs (IsGeneric): Wrapper for Reflection when we have
it: whether a type is generic or not.  Only works for types we are
currently building for now.

2003-01-21  Miguel de Icaza  <miguel@ximian.com>

* generic.cs: New file, contains support code for generics.

* cs-parser.jay: Remove OP_SHIFT_LEFT, OP_SHIFT_RIGHT,
OP_SHIFT_LEFT_ASSIGN, OP_SHIFT_RIGHT_ASSIGN.

Update parser for the above removals.

* cs-tokenizer.cs: Do not handle <<= or >>= specially.  This is
now taken care of in the parser.

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

20 years agoThis import contains a verbatim copy of mcs at the time of this writing;
Miguel de Icaza [Thu, 24 Jul 2003 16:28:24 +0000 (16:28 -0000)]
This import contains a verbatim copy of mcs at the time of this writing;

This directory is only for the development of the generics version of MCS,
we will later fold all those changes into the main branch.  But wanted to
share the code with others in the meantime instead of keeping a separate
tree.

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

20 years ago2003-07-24 Atsushi Enomoto <ginga@kit.hi-ho.ne.jp>
Atsushi Eno [Thu, 24 Jul 2003 16:20:20 +0000 (16:20 -0000)]
2003-07-24  Atsushi Enomoto  <ginga@kit.hi-ho.ne.jp>

* XmlSchema.cs : Read() now uses XmlSerializer.Deserialize().

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

20 years ago2003-07-24 Atsushi Enomoto <ginga@kit.hi-ho.ne.jp>
Atsushi Eno [Thu, 24 Jul 2003 16:19:39 +0000 (16:19 -0000)]
2003-07-24  Atsushi Enomoto <ginga@kit.hi-ho.ne.jp>

* XmlTextReader.cs :
  Read() now handles parser context stuff (BaseURI, XmlLang and
  XmlSpace) correctly for an empty element.
  Normalization property now doesn't throw an error. Will be used soon.
* XmlValidatingReader.cs : added ValidationType.None support (wait for
  the next DTDValidatingReader update for "not firing event handler).
* XmlNodeReader.cs : jun. 30th commit seems wrong. It keeps its state.

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

20 years agoAdd some comments from Paolo to the file
Miguel de Icaza [Thu, 24 Jul 2003 15:15:56 +0000 (15:15 -0000)]
Add some comments from Paolo to the file

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

20 years ago(GetFolderPath): Make it not print out CS0162
Duncan Mak [Thu, 24 Jul 2003 14:51:10 +0000 (14:51 -0000)]
(GetFolderPath): Make it not print out CS0162
warnings.

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

20 years ago * reflection.c: Fix bug #46669
Lluis Sanchez [Thu, 24 Jul 2003 13:57:13 +0000 (13:57 -0000)]
* reflection.c: Fix bug #46669

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

20 years ago2003-07-23 Gonzalo Paniagua Javier <gonzalo@ximian.com>
Gonzalo Paniagua Javier [Thu, 24 Jul 2003 12:54:23 +0000 (12:54 -0000)]
2003-07-23  Gonzalo Paniagua Javier <gonzalo@ximian.com>

* exception.c:
* exception.h:
* icall.c:
* object.h: fill in the type name for TypeLoadException.

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

20 years ago * ObjectReader.cs, ObjectWriter.cs, BinaryCommon.cs: Fixed bug #45970.
Lluis Sanchez [Thu, 24 Jul 2003 12:27:53 +0000 (12:27 -0000)]
* ObjectReader.cs, ObjectWriter.cs, BinaryCommon.cs: Fixed bug #45970.

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

20 years ago2003-07-22 Ravi Pratap <ravi@ximian.com>
Paolo Molaro [Thu, 24 Jul 2003 09:55:13 +0000 (09:55 -0000)]
2003-07-22  Ravi Pratap  <ravi@ximian.com>

* expression.cs (Invocation.OverloadResolve): Follow the spec more
closely: we eliminate methods in base types when we have an
applicable method in a top-level type.

        Please see section 14.5.5.1 for an exact description of what goes
on.

This fixes bug #45127 and a host of other related to corlib compilation.

        * ecore.cs (MethodGroupExpr.DeclaringType): The element in the
array is the method corresponding to the top-level type (this is
because of the changes made to icall.c) so we change this
accordingly.

(MethodGroupExpr.Name): This too.

* typemanager.cs (GetElementType): New method which does the right
thing when compiling corlib.

* everywhere: Make use of the above in the relevant places.

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

20 years ago2003-07-24 Peter Williams <peter@newton.cx>
Peter Williams [Thu, 24 Jul 2003 06:43:22 +0000 (06:43 -0000)]
2003-07-24  Peter Williams  <peter@newton.cx>

Makefile (clean-local): Forgot $(plattestlib).

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

20 years ago2003-07-24 Peter Williams <peter@newton.cx>
Peter Williams [Thu, 24 Jul 2003 06:21:57 +0000 (06:21 -0000)]
2003-07-24  Peter Williams  <peter@newton.cx>

* Makefile: Boo-yah! Add corlib_plattest.dll, which is a
corlib test library built against the platform corlib. This
lets us test our corlib tests. On a non-mono-native platform
(Windows) we run those tests only; on a mono-native platform, we
run the full corlib test suite on our own tests.

* corlib_plattest.dll.excludes: Add this. (The result of
'grep Mono corlib_test.dll.sources')

* corlib_test.dll.sources: Extraneous newline was messing things
up.

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

20 years agoOops, this part was backed out.
Duncan Mak [Thu, 24 Jul 2003 03:38:52 +0000 (03:38 -0000)]
Oops, this part was backed out.

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