mono.git
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

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

* HttpContext.cs (IsCustomErrorEnabled): add CONFIGURATION_2_0
code.  use a nasty 'using' hack to map the 2.0 CustomErrorsMode to
the 1.x CustomErrorMode name.
(IsDebuggingEnabled): add CONFIGURATION_2_0 code.
(ConfigTimeout): add CONFIGURATION_2_0 code.

* HttpRequest.cs (MakeInputStream): add CONFIGURATION_2_0 code.

* HttpApplication.cs (RedirectCustomError): add CONFIGURATION_2_0
code.

* SiteMap.c (Init): use
WebConfigurationManager.GetWebApplicationSection.

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

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

* Membership.cs (.cctor): enable the code here under
CONFIGURATION_2_0.

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

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

* WebServiceCompiler.cs (GetCompiledType): add CONFIGURATION_2_0
code.

* AspGenerator.cs (CheckLanguage): add CONFIGURATION_2_0 code.

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

18 years agorefactoring
Konstantin Triger [Wed, 4 Jan 2006 06:57:00 +0000 (06:57 -0000)]
refactoring

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

18 years ago * mono/io-layer/ChangeLog, mono/io-layer/atomic.h,
Neale Ferguson [Wed, 4 Jan 2006 03:39:23 +0000 (03:39 -0000)]
    * mono/io-layer/ChangeLog, mono/io-layer/atomic.h,
        mono/mini/mini-s390x.h, mono/mini/exceptions-s390x.c,
        mono/mini/inssel-s390x.brg: Eliminate compiler warnings

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

18 years ago2006-01-03 Peter Dennis Bartok <pbartok@novell.com>
Peter Dennis Bartok [Wed, 4 Jan 2006 03:32:25 +0000 (03:32 -0000)]
2006-01-03  Peter Dennis Bartok  <pbartok@novell.com>

* RichTextBox.cs: FormatText is 1-based, make it so when SelectionFont
  is called. This fixes the crash in Nexxia when setting the font
  attributes in the chat. [However, RTF needs a look-over to make sure
  that all SelectionXXX methods handle the special case that selection
  is empty and therefore the change must be applied to all text starting
  at the cursor/selection start]

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

18 years ago2006-01-03 Chris Toshok <toshok@ximian.com>
Chris Toshok [Wed, 4 Jan 2006 01:09:02 +0000 (01:09 -0000)]
2006-01-03  Chris Toshok  <toshok@ximian.com>

* UrlAuthorizationModule.cs (OnAuthorizeRequest): add
CONFIGURATION_2_0 code here.

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

18 years ago2006-01-03 Chris Toshok <toshok@ximian.com>
Chris Toshok [Wed, 4 Jan 2006 01:08:32 +0000 (01:08 -0000)]
2006-01-03  Chris Toshok  <toshok@ximian.com>

* AuthorizationSection.cs (IsValidUser): add analogous method from
AuthorizationConfig.cs.

* AuthorizationRule.cs: add predicates for Verb, User, and Role
analogous to what existed in AuthorizationConfig.cs.

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

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

* System.Web.Services.dll.sources: add the 2.0 config classes.

* Makefile (LIB_MCS_FLAGS): if PROFILE == net_2_0, include
-r:System.Configuration.dll

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

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

* WsiProfiles.cs: new 2.0 enum.

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

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

* DiagnosticsElement.cs: new implementation.

* PriorityGroup.cs: new implementation.

* ProtocolElementCollection.cs: new implementation.

* ProtocolElement.cs: new implementation.

* SoapEnvelopeProcessingElement.cs: new implementation.

* SoapExtensionTypeElementCollection.cs: new implementation.

* SoapExtensionTypeElement.cs: new implementation.

* TypeElementCollection.cs: new implementation.

* TypeElement.cs: new implementation.

* WebServiceProtocols.cs: new implementation.

* WebServicesSection.cs: new implementation.

* WsdlHelpGeneratorElement.cs: new implementation.

* WsiProfilesElementCollection.cs: new implementation.

* WsiProfilesElement.cs: new implementation.

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

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

* Makefile (default_SUBDIRS): more futzing with ordering, thanks
to the complicated circular deps.  Build System.Configuration
after System.Security, and build System yet another time after
System.Configuration has been built.

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

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

* mono-codeman.c (new_codechunk): Fix warnings.

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

18 years ago2006-01-03 Peter Dennis Bartok <pbartok@novell.com>
Peter Dennis Bartok [Tue, 3 Jan 2006 23:32:53 +0000 (23:32 -0000)]
2006-01-03  Peter Dennis Bartok  <pbartok@novell.com>

* XplatUI.cs, XplatUIDriver.cs, XplatUIX11.cs, XplatUIWin32.cs,
  XplatUIOSX.cs: Added SendMessage and PostMessage methods
* X11Keyboard.cs: Switched to new way of calling PostMessage

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

18 years ago2006-01-03 Peter Dennis Bartok <pbartok@novell.com>
Peter Dennis Bartok [Tue, 3 Jan 2006 22:44:45 +0000 (22:44 -0000)]
2006-01-03  Peter Dennis Bartok  <pbartok@novell.com>

* Theme.cs: Added theme interface for images to allow the theme to
  control what images are used for things like FileDialog, MessageBox
  icons, etc.
* MessageBox.cs: Now uses the new Theme icon/image interfaces

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

18 years agoadd System.Security.dll reference
Chris Toshok [Tue, 3 Jan 2006 22:11:40 +0000 (22:11 -0000)]
add System.Security.dll reference

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

18 years ago2006-01-03 Alexander Olk <alex.olk@googlemail.com>
Alexander Olk [Tue, 3 Jan 2006 22:06:00 +0000 (22:06 -0000)]
2006-01-03  Alexander Olk  <alex.olk@googlemail.com>

* FileDialog.cs:
  - Removed some dead code
  - Opening a recently used file does work now
  - Small UI enhancements
  - Refactoring

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

18 years ago2006-01-03 Chris Toshok <toshok@ximian.com>
Chris Toshok [Tue, 3 Jan 2006 22:03:04 +0000 (22:03 -0000)]
2006-01-03  Chris Toshok  <toshok@ximian.com>

* ConfigurationSettings.cs (GetConfig): be nice to people using
old 1.x style section handlers with the new 2.0 config stuff.  If
we're about to return null or IgnoreSection, try to load it using
the 1.x api.  If that works, return that object.

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

18 years ago2006-01-03 Zoltan Varga <vargaz@gmail.com>
Zoltan Varga [Tue, 3 Jan 2006 21:48:24 +0000 (21:48 -0000)]
2006-01-03  Zoltan Varga  <vargaz@gmail.com>

* iltests.il: Add test for #77148.

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

18 years ago2006-01-03 Zoltan Varga <vargaz@gmail.com>
Zoltan Varga [Tue, 3 Jan 2006 21:39:40 +0000 (21:39 -0000)]
2006-01-03  Zoltan Varga  <vargaz@gmail.com>

* mini.c (mini_get_ldelema_ins): Handle arrays with rank 1 too. Fixes
#77148.

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

18 years ago * mini-s390x.c, inssel-s390x.brg: remove debug statements
Neale Ferguson [Tue, 3 Jan 2006 19:55:16 +0000 (19:55 -0000)]
    * mini-s390x.c, inssel-s390x.brg: remove debug statements

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

18 years ago * mono/io-layer/ChangeLog, mono/io-layer/atomic.h, mono/mini/mini-s390x.c,
Neale Ferguson [Tue, 3 Jan 2006 19:40:34 +0000 (19:40 -0000)]
    * mono/io-layer/ChangeLog, mono/io-layer/atomic.h, mono/mini/mini-s390x.c,
        mono/mini/mini-s390x.h, mono/mini/exceptions-s390x.c,
        mono/mini/ChangeLog, mono/mini/s390-abi.cs, mono/mini/tramp-s390x.c,
        mono/mini/inssel-s390x.brg, mono/mini/cpu-s390x.md, mono/mini/mini-codegen.c
        mono/mini/basic-long.cs, mono/mini/Makefile.am, mono/arch/s390x/ChangeLog
        mono/arch/s390x/s390x-codegen.h: 64-bit s390 support

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

18 years ago2006-01-03 Chris Toshok <toshok@ximian.com>
Chris Toshok [Tue, 3 Jan 2006 19:30:52 +0000 (19:30 -0000)]
2006-01-03  Chris Toshok  <toshok@ximian.com>

* Configuration.cs (SaveAs): open with FileMode.OpenOrCreate so we
can save to a new file.
(CreateSection): don't bother to set the section information's
Name here.  we'll do it in SectionInfo.CreateInstance.

* ProtectedConfiguration.cs (Section): new static property so we
can remove all the GetSection calls.
(GetProvider): load a named provider, optionally throwing an
exception if it's not found.

* InternalConfigurationHost.cs (EncryptSection, DecryptSection):
make these private interface implementations, and call
protectedSection.{EncryptSection,DecryptSection}.

* ProtectedConfigurationSection.cs (EncryptSection,
DecryptSection): add these two calls.  They really shouldn't be
here, but I saw them in an MS stack trace and thought "why not?".

* ConfigurationSection.cs (SectionInformation): don't set
attributes here, that's done in SectionInfo.CreateInstance.
(DeserializeSection): shoehorn in the decryption stuff here.  It
doesn't belong here, and I've added a MonoTODO about it.  It
should live someplace like SectionInfo.ReadData (which would make
it similar to the encryption stuff in .WriteData).

* SectionInformation.cs (IsProtected): remove the special flag,
just return true if we have a non-null protection_provider.
(ProtectSection): do nothing but try to instantiate the named
provider.
(UnprotectSection): null out protection_provider.

* DpapiProtectedConfigurationProvider.cs: move the
NotSupportedExceptions to Decrypt/Encrypt so we don't bomb out
when parsing our machine.config file.

* RsaProtectedConfigurationProvider.cs: initial implementation.
much is missing (OAEP support, key importing, adding/deleting
keys), but it can be used.

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

18 years ago2006-01-03 Geoff Norton <gnorton@customerdna.com>
Geoff Norton [Tue, 3 Jan 2006 19:03:23 +0000 (19:03 -0000)]
2006-01-03  Geoff Norton  <gnorton@customerdna.com>

        * darwin_stop_world.c:  Merge a patch from Bruce Mitchener that fixes a small
        leak on OS X.

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

18 years agoadd a test for protecting a section with a nonexistant provider (24), and a series...
Chris Toshok [Tue, 3 Jan 2006 17:58:43 +0000 (17:58 -0000)]
add a test for protecting a section with a nonexistant provider (24), and a series of chained tests that encrypt (25) and decrypt (26) a connection strings section (27 tests the decrypted config).

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

18 years ago * configure.in: Add check for lutimes(2). Mac OS X doesn't provide this.
Jonathan Pryor [Tue, 3 Jan 2006 17:09:52 +0000 (17:09 -0000)]
  * configure.in: Add check for lutimes(2).  Mac OS X doesn't provide this.
  * support/sys-time.c: lutimes(2) only exists on some BSDs.  There's a
  configure check for it now -- use it.

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

18 years ago * UnixMarshal.cs (CreateExceptionForError): Don't map ENOMEM to
Jonathan Pryor [Tue, 3 Jan 2006 16:19:46 +0000 (16:19 -0000)]
  * UnixMarshal.cs (CreateExceptionForError): Don't map ENOMEM to
    System.OutOfMemoryException.  OOME should be reserved for use by the CLR.
    Return a UnixIOException instead (default behavior).

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

18 years ago2006-01-03 Zoltan Varga <vargaz@gmail.com>
Zoltan Varga [Tue, 3 Jan 2006 16:05:05 +0000 (16:05 -0000)]
2006-01-03  Zoltan Varga  <vargaz@gmail.com>

* Nullable.cs: Update to Net 2.0 RTM.

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

18 years agoFix the build fix
Dick Porter [Tue, 3 Jan 2006 16:01:44 +0000 (16:01 -0000)]
Fix the build fix

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

18 years ago2006-01-03 Zoltan Varga <vargaz@gmail.com>
Zoltan Varga [Tue, 3 Jan 2006 15:44:20 +0000 (15:44 -0000)]
2006-01-03  Zoltan Varga  <vargaz@gmail.com>

* ActivatorTest.cs: Add Nullable tests.

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

18 years ago2006-01-03 Zoltan Varga <vargaz@gmail.com>
Zoltan Varga [Tue, 3 Jan 2006 15:43:14 +0000 (15:43 -0000)]
2006-01-03  Zoltan Varga  <vargaz@gmail.com>

* object.c (mono_runtime_invoke_array): Add Nullable support.

* icall.c (ves_icall_System_Activator_CreateInstanceInternal): Ditto.

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

18 years agoio.c: revert last patch as it broke the build
Sebastien Pouliot [Tue, 3 Jan 2006 15:23:29 +0000 (15:23 -0000)]
io.c: revert last patch as it broke the build

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

18 years ago2006-01-03 Zoltan Varga <vargaz@gmail.com>
Zoltan Varga [Tue, 3 Jan 2006 14:33:49 +0000 (14:33 -0000)]
2006-01-03  Zoltan Varga  <vargaz@gmail.com>

* mini.c (mono_method_to_ir): Fix DynamicMethod support in some opcodes.

* mini-sparc.c (mono_arch_call_opcode): Use mono_class_value_size ()
here as on other archs.

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

18 years ago2006-01-03 Sebastien Pouliot <sebastien@ximian.com>
Sebastien Pouliot [Tue, 3 Jan 2006 13:40:08 +0000 (13:40 -0000)]
2006-01-03  Sebastien Pouliot  <sebastien@ximian.com>

* io.c: Patch _wapi_stat_to_file_attributes against bug #76966, where
sockets could be considered as directory.

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

18 years agoIn ilasm/tests:
Ankit Jain [Tue, 3 Jan 2006 13:40:00 +0000 (13:40 -0000)]
In ilasm/tests:
* gen-dotted-name.il: New. Test for dotted-name of a generic type.

In ilasm/scanner:
* ILTokenizer.cs (ILTokenizer.idchars): Add ` to the list.

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

18 years agofile-io.c: Don't consider sockets as directory and avoid an endless loop. Fix bug...
Sebastien Pouliot [Tue, 3 Jan 2006 13:34:50 +0000 (13:34 -0000)]
file-io.c: Don't consider sockets as directory and avoid an endless loop. Fix bug #76966.

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

18 years ago2005-01-03 Atsushi Enomoto <atsushi@ximian.com>
Atsushi Eno [Tue, 3 Jan 2006 12:44:49 +0000 (12:44 -0000)]
2005-01-03  Atsushi Enomoto <atsushi@ximian.com>

* RdpPattern.cs : reduced RdpFlip instantiation. Share patternPool
  only when it does not exist.

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

18 years ago2006-01-03 Senganal T <tsenganal@novell.com>
Senganal T [Tue, 3 Jan 2006 10:57:13 +0000 (10:57 -0000)]
2006-01-03 Senganal T <tsenganal@novell.com>
* DataSetTypedDataSetTest.cs : corrected the path to file : TypedDataSet.xml
to make sure the testcases pass

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

18 years ago* get.c (init_key_table): Add keywords uint8, uint16, uint32 and uint64.
Ankit Jain [Tue, 3 Jan 2006 10:57:08 +0000 (10:57 -0000)]
* get.c (init_key_table): Add keywords uint8, uint16, uint32 and uint64.

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

18 years agoapply MonoTODO attributes
Konstantin Triger [Tue, 3 Jan 2006 10:46:35 +0000 (10:46 -0000)]
apply MonoTODO attributes

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

18 years ago2005-01-03 Atsushi Enomoto <atsushi@ximian.com>
Atsushi Eno [Tue, 3 Jan 2006 10:42:24 +0000 (10:42 -0000)]
2005-01-03  Atsushi Enomoto <atsushi@ximian.com>

* Util.cs, RdpPatterns.cs : optimization. Removed extraneous
  delegate instantiation. Avoid using enum for HashTable keys.

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

18 years ago2006-01-03 Senganal T <tsenganal@novell.com>
Senganal T [Tue, 3 Jan 2006 10:41:28 +0000 (10:41 -0000)]
2006-01-03 Senganal T <tsenganal@novell.com>
*Test/System.Data/DataViewTest.cs : added testcases for bug #77104
* System.Data/DataTable.cs :
- ParseSortString() : Changed the way the sort string is parsed.
Using a regex to parse the string.Fixes bug #77104

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

18 years ago2006-01-03 Gonzalo Paniagua Javier <gonzalo@ximian.com>
Gonzalo Paniagua Javier [Tue, 3 Jan 2006 09:52:01 +0000 (09:52 -0000)]
2006-01-03 Gonzalo Paniagua Javier <gonzalo@ximian.com>

* TraceHandler.cs: when clearing trace data, remove 'clear=1' from the
query string. Fixes bug #77072.

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

18 years ago2006-01-03 Atsushi Enomoto <atsushi@ximian.com>
Atsushi Eno [Tue, 3 Jan 2006 05:14:29 +0000 (05:14 -0000)]
2006-01-03  Atsushi Enomoto <atsushi@ximian.com>

        * RelaxngValidatingReaderTests.cs : seems like there are some
          sort of regressions. Will be fixed after my end of vacations.

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