mono.git
18 years ago.Config extension is also forbidden. Fixes bug #77175
Gonzalo Paniagua Javier [Sat, 7 Jan 2006 07:20:38 +0000 (07:20 -0000)]
.Config extension is also forbidden. Fixes bug #77175

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

18 years ago2006-01-06 Zoltan Varga <vargaz@gmail.com>
Zoltan Varga [Fri, 6 Jan 2006 22:10:45 +0000 (22:10 -0000)]
2006-01-06  Zoltan Varga  <vargaz@gmail.com>

* generics.2.cs: Reenable vtype tests.

* inssel-x86.brg: Remove an icorrect valuetype rule.

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

18 years ago* MonthCalendar.cs: Removed DoEvents call to prevent a running
Jackson Harper [Fri, 6 Jan 2006 20:39:38 +0000 (20:39 -0000)]
* MonthCalendar.cs: Removed DoEvents call to prevent a running
        message loop. Change timer intervals to numbers that seem more
        natural.

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

18 years ago * s390x-codegen.h: Add lpdbr instruction (OP_ABS).
Neale Ferguson [Fri, 6 Jan 2006 18:52:21 +0000 (18:52 -0000)]
    * s390x-codegen.h: Add lpdbr instruction (OP_ABS).

        * mini-s390x.c, inssel-s390x.brg, cpu-s390x.md: Fix ATOMIC_I8
        operations. Provide initial support for OP_ABS.

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

18 years agoMakefile: fix man path
Wade Berrier [Fri, 6 Jan 2006 18:42:04 +0000 (18:42 -0000)]
Makefile: fix man path

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

18 years ago * Mono.Unix/Catalog.cs: s/libintl/intl/g, since intl.dll is used by GTK+ on Windows,
Jonathan Pryor [Fri, 6 Jan 2006 16:58:31 +0000 (16:58 -0000)]
  * Mono.Unix/Catalog.cs: s/libintl/intl/g, since intl.dll is used by GTK+ on Windows,
    not libintl.dll (according to
    http://www.gimp.org/~tml/gimp/win32/downloads.html).

  * Mono.Posix/Catalog.cs: s/libintl/intl/g, since intl.dll is used by GTK+ on Windows,
    not libintl.dll (according to
    http://www.gimp.org/~tml/gimp/win32/downloads.html).

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

18 years ago * data/config.in: s/libintl/intl/g. Mono.Unix.Catalog DllImports "intl"
Jonathan Pryor [Fri, 6 Jan 2006 16:55:07 +0000 (16:55 -0000)]
  * data/config.in: s/libintl/intl/g.  Mono.Unix.Catalog DllImports "intl"
    now, as intl.dll is the file actually shipped/available on Windows.

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

18 years ago2006-01-06 Atsushi Enomoto <atsushi@ximian.com>
Atsushi Eno [Fri, 6 Jan 2006 15:58:52 +0000 (15:58 -0000)]
2006-01-06  Atsushi Enomoto <atsushi@ximian.com>

* XmlSchemaSet.cs : Add() rollbacks IsCompiled to false.
  Global components are not added when Add() is called.

* XmlSchemaSetTests.cs : added AddRollbackIsCompiled(); Add() changes
  IsCompiled to false.

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

18 years agoSqliteDataReader::GetFieldType
Joshua Tauberer [Fri, 6 Jan 2006 15:13:41 +0000 (15:13 -0000)]
SqliteDataReader::GetFieldType

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

18 years ago* get.c (get_generic_param): Generic param attributes can be any combination
Ankit Jain [Fri, 6 Jan 2006 13:30:22 +0000 (13:30 -0000)]
* get.c (get_generic_param): Generic param attributes can be any combination
of .ctor, valuetype and class, emit correctly.

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

18 years ago2006-01-06 Senganal T <tsenganal@novell.com>
Senganal T [Fri, 6 Jan 2006 13:28:13 +0000 (13:28 -0000)]
2006-01-06 Senganal T <tsenganal@novell.com>
* Aggregation.cs
- Correction in previous check-in

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

18 years ago2006-01-06 Atsushi Enomoto <atsushi@ximian.com>
Atsushi Eno [Fri, 6 Jan 2006 12:58:41 +0000 (12:58 -0000)]
2006-01-06  Atsushi Enomoto <atsushi@ximian.com>

* XmlSchemaSet.cs : reverted previous fix; it broke inclusions.

* XmlSchemaSetTests.cs : reverted the patch, thus restore [Ignore].

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

18 years ago2006-01-06 Atsushi Enomoto <atsushi@ximian.com>
Atsushi Eno [Fri, 6 Jan 2006 12:24:46 +0000 (12:24 -0000)]
2006-01-06  Atsushi Enomoto <atsushi@ximian.com>

* XmlSchemaSet.cs : Add() needs (consistent) namespace duplicate check.

* XmlSchemaSetTests.cs : re-enabled test for Add() which was
  inconsistent in beta versions.

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

18 years agoGenericTypeInst.Resolve should do the expected thing ie., resolve and add
Ankit Jain [Fri, 6 Jan 2006 12:24:19 +0000 (12:24 -0000)]
GenericTypeInst.Resolve should do the expected thing ie., resolve and add
the Generic Inst to the typespec table. Use ResolveOnly to Resolve w/o
adding to the table.
* GenericTypeInst.cs (GenericTypeInst.Resolve): Rename to ..
(GenericTypeInst.ResolveOnly): .. this.
(GenericTypeInst.ResolveAsClass): Rename to Resolve.

* TypeDef.cs (TypeDef.Define): Revert the ResolveAsClass calls added here.
* Local.cs (Local.GetPeapiLocal): Use new GenericTypeInst.ResolveOnly if type is
GenericTypeInst.

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

18 years ago2006-01-06 Atsushi Enomoto <atsushi@ximian.com>
Atsushi Eno [Fri, 6 Jan 2006 11:56:08 +0000 (11:56 -0000)]
2006-01-06  Atsushi Enomoto <atsushi@ximian.com>

* XmlWriter.cs : In WriteNode(XPathNavigator, bool), Avoid
  ReadSubtree() for non-element content since they are not allowed
  in ReadSubtree() (but allowed here).

* XPathNavigator.cs : use WriteNode(XPathNavigator, bool)
  rather than WriteNode(XmlWriter, bool) in WriteSubtree().

* XmlWriterTests.cs : added tests for WriteNode(XPathNavigator, bool)
  as well as XPathNavigator.WriteSubtree(XmlWriter).

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

18 years ago* TypeElement.cs (TypeElement) [string variant]: Use Type.GetType.
Raja R Harinath [Fri, 6 Jan 2006 11:52:54 +0000 (11:52 -0000)]
* TypeElement.cs (TypeElement) [string variant]: Use Type.GetType.
* SoapExtensionTypeElement.cs (SoapExtensionTypeElement) [string variant]:
Likewise.

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

18 years ago2006-01-06 Senganal T <tsenganal@novell.com>
Senganal T [Fri, 6 Jan 2006 11:29:47 +0000 (11:29 -0000)]
2006-01-06 Senganal T <tsenganal@novell.com>
* Test/System.Data/DataColumnTest.cs
* Test/System.Data/DataColumnCollectionTest.cs
- Added couple of tests for Expression Columns.
* Mono.Data.SqlExpressions/Aggregation.cs
- Modified the cache to listen for RowChangedEvents.
* Mono.Data.SqlExpressions/Expression.cs
* Mono.Data.SqlExpressions/IExpression.cs
- Added a Reset Method to cleanup when a Datacolumn is removed
from a table.
* Mono.Data.SqlExpressions/Parser.jay
- Modified to check :
1.Aggregate Functions : Only for columns returning multiple values (child/local)
2.Other Functions : Only for columns that return single value (parent/local)
* System.Data/DataColumn.cs
* System.Data/DataColumnCollection.cs
- Reset the Parameters of DataColumn to Default Values when
column is removed from the Table's Collection

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

18 years ago- DateTimePicker.cs: Modified CalculateDropDownLocation to use the screen
John BouAntoun [Fri, 6 Jan 2006 11:26:37 +0000 (11:26 -0000)]
- DateTimePicker.cs: Modified CalculateDropDownLocation to use the screen
  object for location info since screen object is now implemented.

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

18 years ago* PropertyInfoTest.cs: Use newer nunit API.
Raja R Harinath [Fri, 6 Jan 2006 11:08:33 +0000 (11:08 -0000)]
* PropertyInfoTest.cs: Use newer nunit API.
(Bug77160): New test from #77160.

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

18 years agoFix #77160.
Raja R Harinath [Fri, 6 Jan 2006 11:06:34 +0000 (11:06 -0000)]
Fix #77160.
* icall.c (ves_icall_InternalInvoke): Use mono_get_inflated_method
on passed-in method.

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

18 years ago* System.Net.Mime/ContentDispositionTest.cs: Use Assert.AreEqual
Raja R Harinath [Fri, 6 Jan 2006 10:44:25 +0000 (10:44 -0000)]
* System.Net.Mime/ContentDispositionTest.cs: Use Assert.AreEqual
rather than Assert.IsTrue(foo == bar) where appropriate.
(ToStringTest): Make it work on all timezones.

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

18 years agoIn ilasm/tests:
Ankit Jain [Fri, 6 Jan 2006 07:21:06 +0000 (07:21 -0000)]
In ilasm/tests:
* test-field-init.il: New. Test for field initialization (simple signed/unsigned
int variants).

In ilasm/parser:
* ILParser.jay (field_init): Add rules for UINT8/UINT16/etc

In class/PEAPI:
* Metadata.cs (UIntConst): Change constructor param from signed int/sbyte/etc to
unsigned.
(UIntConst.GetBlobIndex):
(UIntConst.Write): Change use of signed types to unsigned ones.

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

18 years agoVersion bump
Wade Berrier [Fri, 6 Jan 2006 06:13:22 +0000 (06:13 -0000)]
Version bump

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

18 years ago2006-01-06 Atsushi Enomoto <atsushi@ximian.com>
Atsushi Eno [Fri, 6 Jan 2006 04:47:46 +0000 (04:47 -0000)]
2006-01-06  Atsushi Enomoto <atsushi@ximian.com>

* XmlValidatingReader.cs : In ReadTypedValue(), treat Whitespace
  nodes as target string nodes as well as other text nodes.

* XsdValidatingReader.cs :
  Don't use normalized string as input to AssessStringValid(). It
  incorrectly invalidates strings against simple types with length-
  related facets.
  Now that we don't ignore whitespaces, we need to explicitly allow
  pure whitespace texts in ElementOnly/Empty model.

* XmlSchemaSimpleTypeRestriction.cs : maxLength and minLength were
  likely to be ignored in ValidateNonListValueWithFacets().
* XmlSchemaValidator.cs : Don't use normalized string value as the
  input to AssessStringValid().

* XsdValidatingReaderTests.cs : test for ReadTypeValue() that it
  does not ignore whitespace nodes, and it does not normalize string
  incorrectly.

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

18 years ago2006-01-06 Atsushi Enomoto <atsushi@ximian.com>
Atsushi Eno [Fri, 6 Jan 2006 04:33:14 +0000 (04:33 -0000)]
2006-01-06  Atsushi Enomoto <atsushi@ximian.com>

* XsltTestUtils.cs,
  catalog.sed,
  xslttest.cs,
  Makefile : To run under Linux, strip \r. Fixed mcs -r arguments
  (case sensitive).

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

18 years ago2006-01-06 Atsushi Enomoto <atsushi@ximian.com>
Atsushi Eno [Fri, 6 Jan 2006 03:36:13 +0000 (03:36 -0000)]
2006-01-06  Atsushi Enomoto <atsushi@ximian.com>

* XmlValidatingReader.cs : ReadTypedValue() was not working with
  non-XmlSchemaDatatype types.

* XsdValidatingReaderTests.cs : test for ReadTypeValue() with simple
  type restriction.

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

18 years ago * mini-s390x.c (emit_float_to_int): Correct r8 to unsigned int algorithm.
Neale Ferguson [Fri, 6 Jan 2006 02:40:59 +0000 (02:40 -0000)]
* mini-s390x.c (emit_float_to_int): Correct r8 to unsigned int algorithm.

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

18 years ago * mini-s390.c, mini-s390.h, inssel-s390.brg, cpu-s390.md: Fix r8 to unsigned int
Neale Ferguson [Fri, 6 Jan 2006 02:31:37 +0000 (02:31 -0000)]
* mini-s390.c, mini-s390.h, inssel-s390.brg, cpu-s390.md: Fix r8 to unsigned int
conversion and implement LADD/LSUB.

* exceptions-s390.c: Standardize mono_arch_find_jit_info to match other
architectures.

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

18 years agofix 2.0 profile.
Jackson Harper [Fri, 6 Jan 2006 01:21:26 +0000 (01:21 -0000)]
fix 2.0 profile.

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

18 years ago2006-01-05 Neale Ferguson <neale@sinenomine.net>
Neale Ferguson [Thu, 5 Jan 2006 22:20:11 +0000 (22:20 -0000)]
2006-01-05 Neale Ferguson <neale@sinenomine.net>

* mini-s390x.c, mini-s390x.h: Fix r8 to unsigned int conversion.

* exceptions-s390x.c: Standardize mono_arch_find_jit_info to match other
architectures.

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

18 years ago* AsyncMethodData.cs: Check if the call is complete before doing a
Jackson Harper [Thu, 5 Jan 2006 22:18:41 +0000 (22:18 -0000)]
* AsyncMethodData.cs: Check if the call is complete before doing a
* WaitOne
        * AsyncMethodResult.cs: We no longer use a WeakReference for the
        AsyncMethodResult, this is because we ALWAYS want the
        ManualResetEvent to get set.
        * Control.cs: When disposing use an async invoke to call
        * shutdown
        code, so that thigns don't block on the finalizer thread.  Also
        check if we even have a message loop before trying to send
        messages, if we don't then don't bother sending messages.
        - No more weak references for async methods
        * XplatUIDriver.cs: No more weak references for async methods.

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

18 years agoPatch from Matt Hargett: fix an incompatible pointer being passed
Miguel de Icaza [Thu, 5 Jan 2006 21:05:38 +0000 (21:05 -0000)]
Patch from Matt Hargett: fix an incompatible pointer being passed

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

18 years agoPatch from Matt Hargett: fix an incompatible pointer being passed
Miguel de Icaza [Thu, 5 Jan 2006 21:04:12 +0000 (21:04 -0000)]
Patch from Matt Hargett: fix an incompatible pointer being passed

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

18 years agoremove a couple of MonoTODO's
Chris Toshok [Thu, 5 Jan 2006 21:02:14 +0000 (21:02 -0000)]
remove a couple of MonoTODO's

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

18 years ago* XmlTextWriter.cs: Modified WriteWhitespace to throw ArgumentException
Gert Driesen [Thu, 5 Jan 2006 20:16:41 +0000 (20:16 -0000)]
* XmlTextWriter.cs: Modified WriteWhitespace to throw ArgumentException
if value is null or zero-length string. Modified WriteNmToken to throw
ArgumentException if name is null or zero-length string. Cosmetic
change to WriteStringInternal.
* XmlElement.cs: In 2.0 profile, do not throw ArgumentNullException
if new value for Prefix is null.
* XmlElementTests.cs: Improved tests for setting prefix to null
or zero-length string. On 2.0 profile, setting prefix to null should
not result in ArgumentNullException.
* XmlTextWriterTests.cs: Enabled WriteNmToken tests and
WriteWhitespace tests for null or zero-length value.

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

18 years agoPatch from Matt Hargett
Miguel de Icaza [Thu, 5 Jan 2006 19:38:43 +0000 (19:38 -0000)]
Patch from Matt Hargett

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

18 years ago2006-01-05 Atsushi Enomoto <atsushi@ximian.com>
Atsushi Eno [Thu, 5 Jan 2006 19:25:36 +0000 (19:25 -0000)]
2006-01-05  Atsushi Enomoto <atsushi@ximian.com>

Hopefully this is the last biggest fix for rng engine.

* RelaxngValidatingReader.cs :
  - weak match 3 in Section 6.2.7 was missing (in derivative, it is
    childrenDeriv cx p [] = childrenDeriv cx p [(TextNode "")] ).
  - uncommented out whitespace handling in TextOnlyDeriv (it is
    "in if whitespace s then choice p p1 else p1" in derivative).
  - MixedTextDeriv() is not fixed to not require string argument.
* XsdDatatypeProvider.cs : call Read() after ReadTypedValue().

* RdpPattern.cs :
  - Fixed RdpPattern.TextDeriv() and MixedTextDeriv() to not allow
    whitespaces incorrectly.
  - Fixed MixedTextDeriv() to not require string argument.
  - Erased commented code.
  - in listDerivInternal(), skip empty strings.
  - ValueMatch() should allow whitespaces if the pattern is nullable
    (as defined in derivative).
  - Replaced MakeChoice()/MakeGroup()/MakeInterleave()/MakeAfter()
    in TextOnlyDeriv() and MixedTextDeriv(). They should not be
    constructions but should be functions (thus, member methods).
  - Fixed Nullable in RdpData and RdpValue to conform to the
    derivative algorithm (it incorrectly extended to return false
    for RELAX NG predefined datatypes).

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

18 years ago * mini-s390.c, mini-s390.h: Fix lmf handling when localloc is
Neale Ferguson [Thu, 5 Jan 2006 19:05:24 +0000 (19:05 -0000)]
* mini-s390.c, mini-s390.h: Fix lmf handling when localloc is
        encountered.  Fixes crash in test-183.cs when using gmcs (stack walk problem).

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

18 years ago * mini-s390x.c, mini-s390x.h: Fix LMF processing when LOCALLOC
Neale Ferguson [Thu, 5 Jan 2006 19:03:50 +0000 (19:03 -0000)]
    * mini-s390x.c, mini-s390x.h: Fix LMF processing when LOCALLOC
        is encountered. Addresses bug manifested running test-183 with
        gmcs (stack walking problem).

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

18 years ago2006-01-04 Alexander Olk <alex.olk@googlemail.com>
Alexander Olk [Thu, 5 Jan 2006 18:26:32 +0000 (18:26 -0000)]
2006-01-04  Alexander Olk  <alex.olk@googlemail.com>

* FontDialog.cs: Fix, don't throw an exception if FontFamily.Families
  returns two FontFamily with the same name

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

18 years ago2006-01-05 Chris Toshok <toshok@ximian.com>
Chris Toshok [Thu, 5 Jan 2006 18:06:58 +0000 (18:06 -0000)]
2006-01-05  Chris Toshok  <toshok@ximian.com>

* ProtocolElementCollection.cs,
SoapExtensionTypeElementCollection.cs,
WsiProfilesElementCollection.cs, TypeElementCollection.cs: Flesh
out these classes.  Untested at the moment, but no more
NotImplementedExceptions.

* WebServicesSection.cs (Diagnostics): add TODO.

* WsdlHelpGeneratorElement.cs: add TODO on DeserializeElement and
Reset.

* TypeElement.cs (.ctor): fill in the Type overload, and add a
comment and TODO for the string overload.

* DiagnosticsElement.cs: some cleanup.

* SoapExtensionTypeElement.cs (GetKey): new internal method, used
by SoapExtensionTypeElementCollection.

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

18 years ago2006-01-05 Chris Toshok <toshok@ximian.com>
Chris Toshok [Thu, 5 Jan 2006 17:31:06 +0000 (17:31 -0000)]
2006-01-05  Chris Toshok  <toshok@ximian.com>

* System.Web.Services_test.dll.sources: enable a bunch of the 2.0
configuration tests.  Just Element types for now.  Collections
coming soon.

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

18 years ago2006-01-05 Sebastien Pouliot <sebastien@ximian.com>
Sebastien Pouliot [Thu, 5 Jan 2006 17:26:40 +0000 (17:26 -0000)]
2006-01-05  Sebastien Pouliot  <sebastien@ximian.com>

* Evidence.cs: Use EscapedCodeBase instead of CodeBase. Fix nunit
under Windows.

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

18 years agonew tests
Chris Toshok [Thu, 5 Jan 2006 17:21:17 +0000 (17:21 -0000)]
new tests

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

18 years ago2006-01-05 Sebastien Pouliot <sebastien@ximian.com>
Sebastien Pouliot [Thu, 5 Jan 2006 16:07:07 +0000 (16:07 -0000)]
2006-01-05  Sebastien Pouliot  <sebastien@ximian.com>

* X509Extension.cs: Extension data may be encapsulated (i.e. ASN.1
data inside the octet string) if it comes from the X509Certificate
parser.

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

18 years agomerge revision 55103 from mcs
Jb Evain [Thu, 5 Jan 2006 15:43:32 +0000 (15:43 -0000)]
merge revision 55103 from mcs

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

18 years ago2006-01-05 Jb Evain <jbevain@gmail.com>
Jb Evain [Thu, 5 Jan 2006 15:42:51 +0000 (15:42 -0000)]
2006-01-05  Jb Evain  <jbevain@gmail.com>

* class.cs (Property.Define, Indexer.Define): do not tag the
properties as SpecialName | RTSpecialName.

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

18 years agoAdded DriveNotFoundException.cs. MonoIO.cs: Added ERROR_INVALID_DRIVE handling. Pass...
Kornél Pál [Thu, 5 Jan 2006 14:32:22 +0000 (14:32 -0000)]
Added DriveNotFoundException.cs. MonoIO.cs: Added ERROR_INVALID_DRIVE handling. Pass HResult to IOException constructors.

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

18 years ago* known-issues-gmcs: Removed cs0619-18.cs and cs0619-24.cs (working now).
Ankit Jain [Thu, 5 Jan 2006 14:31:23 +0000 (14:31 -0000)]
* known-issues-gmcs: Removed cs0619-18.cs and cs0619-24.cs (working now).

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

18 years agoFix regressions introduced by the fix to #71300.
Raja R Harinath [Thu, 5 Jan 2006 13:58:19 +0000 (13:58 -0000)]
Fix regressions introduced by the fix to #71300.
* Activator.cs (CreateInstance): Use Binder.SelectMethod instead
of home-grown FindBestCtor.
(FindBestCtor): Delete.

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

18 years ago* library.make (run-test-lib, run-test-ondotnet-lib): Workaround a
Raja R Harinath [Thu, 5 Jan 2006 13:57:02 +0000 (13:57 -0000)]
* library.make (run-test-lib, run-test-ondotnet-lib): Workaround a
sed limitation when printing the testsuite log.

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

18 years agouse stream interfaces
Konstantin Triger [Thu, 5 Jan 2006 13:25:42 +0000 (13:25 -0000)]
use stream interfaces

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

18 years agoIn tests:
Ankit Jain [Thu, 5 Jan 2006 13:04:45 +0000 (13:04 -0000)]
In tests:

* test-perm_pass-2.il: New. Test for new(2.0) syntax of specifying value
of a permissionset, which uses string instead of a bytearray.

In parser:
* ILParser.jay (sec_decl | D_PERMISSION sec_action comp_qstring): New. Support
new (2.0) syntax which uses string(xml) instead of a bytearray for specifying
value of the security attribute.

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

18 years ago* Makefile: Build FirebirdSql.Data.Firebird only in the "default" profile.
Raja R Harinath [Thu, 5 Jan 2006 11:30:49 +0000 (11:30 -0000)]
* Makefile: Build FirebirdSql.Data.Firebird only in the "default" profile.

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

18 years agoIn ilasm/codegen:
Ankit Jain [Thu, 5 Jan 2006 11:29:58 +0000 (11:29 -0000)]
In ilasm/codegen:

* IClassRef.cs (IClassRef.Clone): New.
(IClassRef.GetGenericTypeInst): Get the Generic Instance of the IClassRef.
(IClassRef.ResolveInstance): Resolves the generic instance and returns the
resolved PEAPI type.

* TypeRef.cs:
* ExternTypeRef.cs: Implement new methods of IClassRef.
Classes implementing IClassRef cache their generic instances (GenericTypeInst)
and their corresponding resolved PEAPI types.

* CodeGen.cs (CodeGen.GetTypeRef): Gets a TypeRef given a type name and caches them.

GenericTypeInst is now used for any Generic Type Instance, including any
extern types. ExternTypeRefInst is not used now.
* GenericTypeInst.cs (GenericTypeInst): Implement IClassRef instead of ITypeRef.
(GenericTypeInst.ResolveAsClass): Adds the instance to the TypeSpec table after Resolve()'ing it.
Clone () returns a cloned instance which shares its class_ref and generic arguments.

* TypeDef.cs (TypeDef.Define): Use ResolveAsClass for base class and interfaces
being implemented if they are GenericTypeInsts.

In ilasm:

* ilasm.exe.sources: Remove ExternTypeRefInst from build.

In ilasm/parser:

* ILParser.jay (GetTypeRef): Use new IClassRef.Clone .
(extends_clause): Use new IClassRef.GetGenericTypeInst.
(impl_clause | K_IMPLEMENTS class_refs): Remove.
(impl_clause | impl_class_refs): New.
(impl_class_refs): New. Add rules for generic and non-generic interface
implementations.
(class_ref | slashed_name): Use new codegen.GetTypeRef so that the TypeRef
gets cached.
(type | K_CLASS class_ref): Add typars_clause to the rule and handle accordingly.
(type | K_VALUETYPE ...): Likewise.

In class/PEAPI:

* PEAPI.cs (PEFile.AddGenericClass): New. Adds a GenericTypeInst to the TypeSpec table.
* Metadata.cs (GenericTypeInst): Change base class from 'Type' to 'Class'.
(GenericTypeInst.GetTypeSpec):
(GenericTypeInst.BuildTables):
(GenericTypeInst.Size):
(GenericTypeInst.Write):
(GenericTypeInst.GetCodedIx): Implement these for GenericTypeInst.
(ClassDef.SetSuper): Set typeIndexChecked to false if 'super' is not GenericTypeInst.
Fixup of typeIndex is not required for GenericTypeInst .
(ClassDef.CheckTypeIndex): Recursively fix typeIndex if superType is ClassDef.
(MetaData.BuildMetaData): BuildTable for TypeSpec.

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

18 years ago2006-01-05 Gonzalo Paniagua Javier <gonzalo@ximian.com>
Gonzalo Paniagua Javier [Thu, 5 Jan 2006 10:24:55 +0000 (10:24 -0000)]
2006-01-05 Gonzalo Paniagua Javier <gonzalo@ximian.com>

* FAMWatcher.cs: fix arraylist access when a new directory is added and
the new directory is watched too. Closes bug #77068.

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

18 years ago* gen-extern-type.il: New. Test for ref to an external generic type.
Ankit Jain [Thu, 5 Jan 2006 10:06:52 +0000 (10:06 -0000)]
* gen-extern-type.il: New. Test for ref to an external generic type.
* gen-array1.il, gen-array-2.il: New. Test for duplicate typespecs for
generic types and arrays of the same.
* gen-interf-1.il, gen-interf-2.il: New. Test for inheriting from a generic
base class and implementing generic interfaces.
* gen-struct.il: New. Test for generic valuetype.
* gen-local.il: New. No entry in the TypeSpec table should be emitted if a
generic type is referenced only as a local var.
* one.cs, two.cs: Updated to include types required the new tests.

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

18 years ago2006-01-05 Atsushi Enomoto <atsushi@ximian.com>
Atsushi Eno [Thu, 5 Jan 2006 04:31:31 +0000 (04:31 -0000)]
2006-01-05  Atsushi Enomoto  <atsushi@ximian.com>

* XmlTextWriterTests.cs : removed silly part from
  WriteStartElement_XmlPrefix (). We are not reproducing MS bugs.
  (kept remaining part of this test; see if it makes sense after
  bug #77094 got fixed).

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

18 years ago2006-01-04 Peter Dennis Bartok <pbartok@novell.com>
Peter Dennis Bartok [Thu, 5 Jan 2006 01:43:27 +0000 (01:43 -0000)]
2006-01-04  Peter Dennis Bartok  <pbartok@novell.com>

* ThemeWin32Classic.cs, ThemeClearlooks.cs: Dropped stupid scheme of
  drawing disabled text. Instead using the ColorGrayText color

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

18 years ago* TreeNode.cs: redraw the node when its image index is changed.
Jackson Harper [Thu, 5 Jan 2006 01:15:21 +0000 (01:15 -0000)]
* TreeNode.cs: redraw the node when its image index is changed.

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

18 years ago2006-01-04 Peter Dennis Bartok <pbartok@novell.com>
Peter Dennis Bartok [Wed, 4 Jan 2006 23:12:15 +0000 (23:12 -0000)]
2006-01-04  Peter Dennis Bartok  <pbartok@novell.com>

* RichTextBox.cs: Same fix as last, just for SelectionColor. This
  time I checked there are no others like it.

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

18 years ago2006-01-04 Chris Toshok <toshok@ximian.com>
Chris Toshok [Wed, 4 Jan 2006 22:36:40 +0000 (22:36 -0000)]
2006-01-04  Chris Toshok  <toshok@ximian.com>

* TemplateParser.cs (.ctor): kinda gross, but handle the
AddAssembliesInBin case here.

* SimpleWebHandlerParser.cs (.ctor): same.

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

18 years ago2006-01-04 Chris Toshok <toshok@ximian.com>
Chris Toshok [Wed, 4 Jan 2006 22:34:44 +0000 (22:34 -0000)]
2006-01-04  Chris Toshok  <toshok@ximian.com>

* SoapDocumentationHandler.cs: add CONFIGURATION_2_0 stuff.

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

18 years ago2006-01-04 Chris Toshok <toshok@ximian.com>
Chris Toshok [Wed, 4 Jan 2006 22:34:00 +0000 (22:34 -0000)]
2006-01-04  Chris Toshok  <toshok@ximian.com>

* WebServicesSection.cs (EnabledProtocols): implement.

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

18 years ago2006-01-04 Sebastien Pouliot <sebastien@ximian.com>
Sebastien Pouliot [Wed, 4 Jan 2006 21:47:53 +0000 (21:47 -0000)]
2006-01-04  Sebastien Pouliot  <sebastien@ximian.com>

* TcpClient.cs: The Client property is public in 2.0 while it was
protected in earlier release. Fix bug #77048.

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

18 years ago2006-01-04 Sebastien Pouliot <sebastien@ximian.com>
Sebastien Pouliot [Wed, 4 Jan 2006 21:28:39 +0000 (21:28 -0000)]
2006-01-04  Sebastien Pouliot  <sebastien@ximian.com>

* HashtableTest.cs: Added test case to check if all subclasses are
serializable.

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

18 years ago2006-01-04 Sebastien Pouliot <sebastien@ximian.com>
Sebastien Pouliot [Wed, 4 Jan 2006 21:26:50 +0000 (21:26 -0000)]
2006-01-04  Sebastien Pouliot  <sebastien@ximian.com>

* Hashtable.cs: Mark all inner classes as [Serializable] to match MS
behaviour. Fix bug #76300.

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

18 years ago2006-01-04 Chris Toshok <toshok@ximian.com>
Chris Toshok [Wed, 4 Jan 2006 21:17:55 +0000 (21:17 -0000)]
2006-01-04  Chris Toshok  <toshok@ximian.com>

* WebServiceProtocols.cs: use 1 << n instead of explicit numbers.

* WebServicesSection.cs (Instance): new property to make it easier
to port over the existing configuration code.
(IsSupported): new method, same rationale.

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

18 years ago2006-01-04 Chris Toshok <toshok@ximian.com>
Chris Toshok [Wed, 4 Jan 2006 21:16:17 +0000 (21:16 -0000)]
2006-01-04  Chris Toshok  <toshok@ximian.com>

* WebServiceHandlerFactory.cs: add CONFIGURATION_2_0 stuff.

* SoapExtension.cs: add CONFIGURATION_2_0 stuff.

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

18 years ago2006-01-04 Chris Toshok <toshok@ximian.com>
Chris Toshok [Wed, 4 Jan 2006 21:15:13 +0000 (21:15 -0000)]
2006-01-04  Chris Toshok  <toshok@ximian.com>

* ExtensionManager.cs: add CONFIGURATION_2_0 stuff.

* ServiceDescriptionReflector.cs: add CONFIGURATION_2_0 stuff.

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

18 years ago* Control.cs: Special case Invoking EventHandlers, this matches MS
Jackson Harper [Wed, 4 Jan 2006 21:03:07 +0000 (21:03 -0000)]
* Control.cs: Special case Invoking EventHandlers, this matches MS
        and fixes part of bug #76326.

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

18 years agoFix typo
Alexandre Gomes [Wed, 4 Jan 2006 21:01:41 +0000 (21:01 -0000)]
Fix typo

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

18 years agoRevert patch 55055 as it fails to build the following code:
Miguel de Icaza [Wed, 4 Jan 2006 20:50:06 +0000 (20:50 -0000)]
Revert patch 55055 as it fails to build the following code:

for (LinkedList<int> a = null; ;)

The problem is that simple-name-deambiguation is turned on at this point
because the flag in_namespace_or_typename is false.

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

18 years agoRevert
Miguel de Icaza [Wed, 4 Jan 2006 20:43:55 +0000 (20:43 -0000)]
Revert

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

18 years ago* AsyncMethodResult.cs: Use a ManualResetEvent instead of a mutex,
Jackson Harper [Wed, 4 Jan 2006 19:44:03 +0000 (19:44 -0000)]
* AsyncMethodResult.cs: Use a ManualResetEvent instead of a mutex,
        this gives the behavoir I was looking for.

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

18 years ago2006-01-04 Atsushi Enomoto <atsushi@ximian.com>
Atsushi Eno [Wed, 4 Jan 2006 19:42:12 +0000 (19:42 -0000)]
2006-01-04  Atsushi Enomoto <atsushi@ximian.com>

* RelaxngValidatingReader.cs :
  - Simplified CreateValidationError().
  - Don't validate 1) whitespaces outside element and 2) whitespaces
    which do not consist of text only content.
  - Implemented "memoization":
    http://www.thaiopensource.com/relaxng/derivative.html#Memoization
  - with related to memoization, use new TextOnlyDeriv() and
    MixedTextDeriv() to validate texts. See also RdpPattern changes.
* RelaxngGrammar.cs : don't update pool tables for static instances.

* RdpPattern.cs :
  - Implemented textOnlyDeriv and mixedTextDeriv of "memoization".
    Details are described in the "derivative" algorithm:
    http://www.thaiopensource.com/relaxng/derivative.html#Memoization
  - Added MakeChoiceLeaf() to implement "choice-leaves":
    http://www.thaiopensource.com/relaxng/derivative.html#Avoiding_exponential_blowup
  - To intern effectively, reorder choice and interleave contents by
    hash code.
  - Avoid extra pattern creation with related to empty and notAllowed
    as one hand of binary branches.

* RelaxngValidatingReaderTests.cs : regressions mentioned in the
  previous fix were solved.

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

18 years ago * ThemeClearlooks.cs, FileDialog.cs:
Alexander Olk [Wed, 4 Jan 2006 19:30:42 +0000 (19:30 -0000)]
* ThemeClearlooks.cs, FileDialog.cs:
  - Reflect the latest Theme class changes
  - Remove Mono.Unix.Syscall.time in FileDialg and replace it
    with DateTime

2006-01-04  Alexander Olk  <alex.olk@googlemail.com>

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

18 years ago2006-01-04 Alexander Olk <alex.olk@googlemail.com>
Alexander Olk [Wed, 4 Jan 2006 19:22:07 +0000 (19:22 -0000)]
2006-01-04  Alexander Olk  <alex.olk@googlemail.com>

* Theme.cs: Cache UI resource images and resize them if needed

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

18 years ago2006-01-04 Sebastien Pouliot <sebastien@ximian.com>
Sebastien Pouliot [Wed, 4 Jan 2006 19:07:19 +0000 (19:07 -0000)]
2006-01-04  Sebastien Pouliot  <sebastien@ximian.com>

* BasicConstraintsExtension.cs: Keep in sync with Mono.Security.dll.
* KeyUsageExtension.cs: Keep in sync with Mono.Security.dll.

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

18 years ago2006-01-04 Sebastien Pouliot <sebastien@ximian.com>
Sebastien Pouliot [Wed, 4 Jan 2006 19:05:59 +0000 (19:05 -0000)]
2006-01-04  Sebastien Pouliot  <sebastien@ximian.com>

* X509Extension.cs: Keep in sync with Mono.Security.dll.

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

18 years ago2006-01-04 Sebastien Pouliot <sebastien@ximian.com>
Sebastien Pouliot [Wed, 4 Jan 2006 19:05:06 +0000 (19:05 -0000)]
2006-01-04  Sebastien Pouliot  <sebastien@ximian.com>

* ASN1Convert.cs: Fix convertion of integer 0 to ASN.1.

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

18 years agoAdd new tests to the build
Sebastien Pouliot [Wed, 4 Jan 2006 19:04:14 +0000 (19:04 -0000)]
Add new tests to the build

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

18 years ago2006-01-04 Sebastien Pouliot <sebastien@ximian.com>
Sebastien Pouliot [Wed, 4 Jan 2006 19:02:35 +0000 (19:02 -0000)]
2006-01-04  Sebastien Pouliot  <sebastien@ximian.com>

* BasicConstraintsExtensionTest.cs: New. Unit tests for encoding and
decoding X.509 BasicConstraints certificate extension.
* ExtendedKeyUsageExtensionTest.cs: New. Unit tests for encoding and
decoding X.509 ExtendedKeyUsage certificate extension.
* KeyUsageExtensionTest.cs: New. Unit tests for encoding and
decoding X.509 KeyUsage certificate extension.

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

18 years ago2006-01-04 Sebastien Pouliot <sebastien@ximian.com>
Sebastien Pouliot [Wed, 4 Jan 2006 19:00:01 +0000 (19:00 -0000)]
2006-01-04  Sebastien Pouliot  <sebastien@ximian.com>

* AuthorityKeyIdentifierExtension.cs: Added property to publish the
identifier. Fix bug #77155.
* BasicConstraintsExtension.cs: Fix encoding to include the octet
string (#75781). Fix encoding when the key usage > 255.
* ExtendedKeyUsageExtension.cs: Fix encoding to include the octet
string (#75781).
* KeyUsageExtension.cs: Fix encoding to include the octet string
(#75781). Added NoPathLengthConstraint (-1) as it is different than
0. Throw if PathLenConstraint is negative (unless it's -1). Do not
encode PathLenConstraint if CA isn't set.

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

18 years ago2006-01-04 Sebastien Pouliot <sebastien@ximian.com>
Sebastien Pouliot [Wed, 4 Jan 2006 18:55:10 +0000 (18:55 -0000)]
2006-01-04  Sebastien Pouliot  <sebastien@ximian.com>

* X509Extension.cs: Added setter for Critical property (fix #77154).
Fixed asymmetry between encoding and decoding (fix #75781).

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

18 years ago2006-01-04 Sebastien Pouliot <sebastien@ximian.com>
Sebastien Pouliot [Wed, 4 Jan 2006 18:52:33 +0000 (18:52 -0000)]
2006-01-04  Sebastien Pouliot  <sebastien@ximian.com>

* ASN1Convert.cs: Fix convertion of integer 0 to ASN.1.

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

18 years agoAdd test for 77147
Miguel de Icaza [Wed, 4 Jan 2006 17:39:44 +0000 (17:39 -0000)]
Add test for 77147

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

18 years ago2006-01-04 Miguel de Icaza <miguel@novell.com>
Miguel de Icaza [Wed, 4 Jan 2006 17:38:30 +0000 (17:38 -0000)]
2006-01-04  Miguel de Icaza  <miguel@novell.com>

* class.cs (MethodCore.IsDuplicateImplementation): This method was
doing a low-level comparission of parameter types.  It was lacking
a check for __argslist.

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

18 years ago2006-01-04 Miguel de Icaza <miguel@novell.com>
Miguel de Icaza [Wed, 4 Jan 2006 17:37:53 +0000 (17:37 -0000)]
2006-01-04  Miguel de Icaza  <miguel@novell.com>

* class.cs (MethodCore.IsDuplicateImplementation): This method was
doing a low-level comparission of parameter types.  It was lacking
a check for __argslist.

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

18 years agoAdd new tests
Miguel de Icaza [Wed, 4 Jan 2006 16:30:03 +0000 (16:30 -0000)]
Add new tests

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

18 years ago2006-01-04 Miguel de Icaza <miguel@novell.com>
Miguel de Icaza [Wed, 4 Jan 2006 16:24:54 +0000 (16:24 -0000)]
2006-01-04  Miguel de Icaza  <miguel@novell.com>

* cs-parser.jay (in_namespace_or_typename): This variable is used
to pass information down to member-name that we are parsing
namespace_or_type_name and that it should not activate the
grammar deambiguation.

(namespace_or_type_name): Inline the member_name production here
so we can avoid a shift/reduce conflict as we need to turn off
simple-name-deamiguation after the identifier is seen.

(primary_expression): Replace member_name and IDENTIFIER
DOUBLE_COLON IDENTIFIER rules with a merged rule.  This is
required to control the lexer simple-name-deambuguation feature
which needs to be activated after the first IDENTIFIER has been
parsed.

The new merged rule is member_name_or_qualified_alias.

(member_name_or_qualified_alias): This rules is a combination of
member_name and IDENTIFIER DOUBLE_COLON IDENTIFIER.   After the
first IDENTIFIER is parsed we enable the simple-name-deambuguation
flag in the lexer if we are not in a namespace or typename.

* cs-tokenizer.cs: Add support for simple-name-deambuguation which
is specified in section 9.2.3 of the third edition of the C#
specification.

simple-name-deambuguation is a short-hand for the actual required
cases: simple-name, member-access and pointer-member-access.
During those context we must check the token to deambiguate the
expression.

(next_token_is_allowed_after_generic_closing): This routine
implements the check for the next-token.

This routine currently contains a hack: it considers "[" a valid
character after the >.  This is against the spec, but we require
it for this particular cast:

(Blah<a,b>[])

This is probably a sign that something is wrong elsewhere.

(Position): Introduce a new class to track the current position
instead of saving all the state everywhere.  The state was being
incorrecly saved/restored in the past (not complete enough
everywhere).

Maybe this should become a struct, and saving should not use a
parallel stack, but just use a construct like:

Position save = current_position;
xxxx
current_position = save;

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

18 years ago2006-01-04 Chris Toshok <toshok@ximian.com>
Chris Toshok [Wed, 4 Jan 2006 16:24:49 +0000 (16:24 -0000)]
2006-01-04  Chris Toshok  <toshok@ximian.com>

* MachineKeySection.cs: bring over some more internal methods from
MachineKeyConfig, and call Set{Decryption,Validation}Key from
their respective property setters.

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

18 years ago2006-01-04 Chris Toshok <toshok@ximian.com>
Chris Toshok [Wed, 4 Jan 2006 16:23:45 +0000 (16:23 -0000)]
2006-01-04  Chris Toshok  <toshok@ximian.com>

* FormsAuthentication.cs (Authenticate): add CONFIGURATION_2_0
code.
(Decrypt2): same.
(Decrypt): same.
(Encrypt): same.
(Initialize): same.

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

18 years ago* ObjectManager.cs (ObjectRecord.IsInstanceReady): Fix regression
Raja R Harinath [Wed, 4 Jan 2006 15:18:39 +0000 (15:18 -0000)]
* ObjectManager.cs (ObjectRecord.IsInstanceReady): Fix regression
introduced in previous patch.  See the re-opened bug #76931.

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

18 years ago2006-01-04 Zoltan Varga <vargaz@gmail.com>
Zoltan Varga [Wed, 4 Jan 2006 11:40:49 +0000 (11:40 -0000)]
2006-01-04  Zoltan Varga  <vargaz@gmail.com>

* Makefile.am: Use CFLAGS_FOR_BUILD.

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

18 years ago2006-01-04 Zoltan Varga <vargaz@gmail.com>
Zoltan Varga [Wed, 4 Jan 2006 11:40:04 +0000 (11:40 -0000)]
2006-01-04  Zoltan Varga  <vargaz@gmail.com>

* configure.in: Add a CFLAGS_FOR_BUILD autoconf variable.

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

18 years ago2006-01-04 Zoltan Varga <vargaz@gmail.com>
Zoltan Varga [Wed, 4 Jan 2006 11:11:05 +0000 (11:11 -0000)]
2006-01-04  Zoltan Varga  <vargaz@gmail.com>

* aot.c (mono_aot_load_method): Fix a warning.

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

18 years agorefactoring
Konstantin Triger [Wed, 4 Jan 2006 10:14:19 +0000 (10:14 -0000)]
refactoring

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

18 years agoremove unused method
Konstantin Triger [Wed, 4 Jan 2006 09:44:46 +0000 (09:44 -0000)]
remove unused method

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

18 years ago2006-01-04 Chris Toshok <toshok@ximian.com>
Chris Toshok [Wed, 4 Jan 2006 07:15:30 +0000 (07:15 -0000)]
2006-01-04  Chris Toshok  <toshok@ximian.com>

* SimpleWebHandlerParser.cs: Remove the declaration of
compilationConfig in the CONFIGURATION_2_0 case.  it's
unnecessary.
(.ctor): ifdef out the AddAssembliesInBin call in the
CONFIGURATION_2_0 case.  need to revisit this.
(CompilationConfig): add a CONFIGURATION_2_0 version.

* BaseParser.cs: Remove the declaration of compilationConfig in
the CONFIGURATION_2_0 case.  it's unnecessary.

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