mono.git
18 years agoadd DebuggerVisualizerAttribute, and make all the attributes available in the 1.1...
Chris Toshok [Tue, 25 Oct 2005 21:28:50 +0000 (21:28 -0000)]
add DebuggerVisualizerAttribute, and make all the attributes available in the 1.1 profile, just internal.

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

18 years agoremove property
Chris Toshok [Tue, 25 Oct 2005 21:25:24 +0000 (21:25 -0000)]
remove property

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

18 years agoadd System.Web.UI.Design.WebControls/DataProviderNameConverter.c
Chris Toshok [Tue, 25 Oct 2005 21:19:38 +0000 (21:19 -0000)]
add System.Web.UI.Design.WebControls/DataProviderNameConverter.c

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

18 years ago* CodeGeneratorTestBase.cs: Fixed line endings. Set eol-style to
Gert Driesen [Tue, 25 Oct 2005 20:17:22 +0000 (20:17 -0000)]
* CodeGeneratorTestBase.cs: Fixed line endings. Set eol-style to
native.
* CodeGeneratorFromCompileUnitTest.cs: Fixed line endings. Set
eol-style to native. Modified test to also check output for
CodeAttributeArgument with no name.
* CodeGeneratorFromNamespaceTest.cs: Fixed line endings. Set eol-style
to native.
* CodeGeneratorIdentifierTest.cs: Set eol-style to native.
* CodeGeneratorFromExpressionTest.cs: Fixed line endings. Set
eol-style to native.
* CSharpCodeProviderTest.cs: Set eol-style to native.
* CodeGeneratorFromTypeTest.cs: Fixed line endings. Set eol-style to
native.
* CodeGeneratorFromStatementTest.cs: Fixed line endings. Set
eol-style to native.
* CodeGeneratorTestBase.cs: Set eol-style to native.
* VBCodeProviderTest.cs: Set eol-style to native.
* CodeGeneratorFromCompileUnitTest.cs: Modified test to check
output for CodeAttributeArgument with no name. Set eol-style to
native.
* CodeGeneratorFromExpressionTest.cs: Set eol-style to native.
* CodeGeneratorFromTypeTest.cs: Fixed line endings. Set eol-style to
native.
* VBCodeGenerator.cs: Do not output name of CodeAttributeArgument if
its a zero-length string.

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

18 years ago * Mono.Posix.dll.sources: Add Mono.Unix.Native/FileNameMarshaler.cs.
Jonathan Pryor [Tue, 25 Oct 2005 20:09:26 +0000 (20:09 -0000)]
  * Mono.Posix.dll.sources: Add Mono.Unix.Native/FileNameMarshaler.cs.
  * Mono.Posix_test.dll.sources: Add Mono.Unix/UnixEncodingTest.cs

  * Mono.Unix/Stdlib.cs, Mono.Unix/Syscall.cs:
    Filenames need to be marshaled through the
    FileNameMarshaler, which will encode/decode filenames with UnixEncoder.
  * Mono.Unix/UnixEncoding.cs: Added (copied from
    ../../corlib/System.Text/UTF8Encoding.cs); a hack to permit handling of
    arbitrarily encoded filenames.  It attempts to decode a byte[] array as
    UTF-8, and if the decode fails it prefixes each byte with
    UnixEncoding.EscapeByte (\uFFFF).
  * Mono.Unix/UnixMarshal.cs: Use UnixEncoding as the default encoding, and
    special-case UnixEncoding to use Stdlib.strlen() for native string lengths.

  * Mono.Unix.Native/FileNameMarshaler.cs: Custom marshaler to marshal
    filenames using Mono.Unix.UnixEncoding.  A custom marshaler is used to
    remove the need to have ~6 lines of boilerplate on every method that takes
    filenames.
  * Mono.Unix.Native/Stdlib.cs, Mono.Unix.Native/Syscall.cs:  Filenames need
    to be marshaled through the FileNameMarshaler, which will encode/decode
    filenames with UnixEncoder.

  * Test/Mono.Unix/UnixEncodingTest.cs: Added string/byte[] encoding tests for
    Mono.Unix.UnixEncoding.

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

18 years ago2005-10-25 Carlo Kok <ck@carlo-kok.com>
Atsushi Eno [Tue, 25 Oct 2005 19:41:00 +0000 (19:41 -0000)]
2005-10-25  Carlo Kok  <ck@carlo-kok.com>

* Collection.cs :
  Added virtual ClearItems, InsertItem, RemoveItem, SetITem.
* KeyedCollection.cs : Implemented.

2005-10-25  Atsushi Enomoto  <atsushi@ximian.com>

* corlib_test.dll.sources : added System.Collections.ObjectModel/KeyedCollectionTest.cs.

* KeyedCollectionTest.cs : new file by Carlo Kok (ck@carlo-kok.com).

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

18 years ago2005-10-25 Atsushi Enomoto <atsushi@ximian.com>
Atsushi Eno [Tue, 25 Oct 2005 19:12:34 +0000 (19:12 -0000)]
2005-10-25  Atsushi Enomoto  <atsushi@ximian.com>

* gtest-223.cs : new test for #76551.

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

18 years ago2005-10-25 Sebastien Pouliot <sebastien@ximian.com>
Sebastien Pouliot [Tue, 25 Oct 2005 18:06:07 +0000 (18:06 -0000)]
2005-10-25  Sebastien Pouliot  <sebastien@ximian.com>

* CompilerError.cs: Added LinkDemand for Unrestricted before 2.0.
* CompilerErrorCollection.cs: Added LinkDemand for Unrestricted before
2.0.

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

18 years ago2005-10-25 Martin Baulig <martin@ximian.com>
Martin Baulig [Tue, 25 Oct 2005 18:04:51 +0000 (18:04 -0000)]
2005-10-25  Martin Baulig  <martin@ximian.com>

* convert.cs (ImplicitTypeParameterConversion): Make base
interfaces actually work; fixes #76557.

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

18 years ago2005-10-25 Sebastien Pouliot <sebastien@ximian.com>
Sebastien Pouliot [Tue, 25 Oct 2005 18:04:38 +0000 (18:04 -0000)]
2005-10-25  Sebastien Pouliot  <sebastien@ximian.com>

* CompilerErrorCas.cs: Under 1.x CompilerError is protected by a
LinkDemand for Unrestricted.
* CompilerErrorCollectionCas.cs: Under 1.x CompilerError is protected
by a LinkDemand for Unrestricted.
* TempFileCollectionCas.cs: Moved precompiler directive to the right
method (to ignore a test under MS 1.x).

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

18 years agoNew test.
Martin Baulig [Tue, 25 Oct 2005 18:04:08 +0000 (18:04 -0000)]
New test.

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

18 years ago* CodeArgumentReferenceExpressionTest.cs: Fixed namespace.
Gert Driesen [Tue, 25 Oct 2005 16:49:00 +0000 (16:49 -0000)]
* CodeArgumentReferenceExpressionTest.cs: Fixed namespace.
* CodeArrayCreateExpressionTest.cs: Fixed namespace.
* CodeAttachEventStatementTest.cs: Fixed namespace and added tests for
contructors that were not covered.
* CodeAttributeArgumentTest.cs: Fixed namespace.
* CodeAttributeDeclarationTest.cs: Fixed namespace and added tests for
constructors that were not covered.
* CodeAttachEventStatement.cs: Fixed extra removal in r52147.
* CodeAttributeDeclaration.cs: Make sure AttributeType is updated
when Name is set or changed. For constructors taking attribute type,
use BaseType of attribute type as name of CodeAttributeDeclaration.

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

18 years ago2005-10-25 Gonzalo Paniagua Javier <gonzalo@ximian.com>
Gonzalo Paniagua Javier [Tue, 25 Oct 2005 16:46:37 +0000 (16:46 -0000)]
2005-10-25 Gonzalo Paniagua Javier <gonzalo@ximian.com>

* Repeater.cs: someone forgot the curly brackets. Fixes bug 76537.

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

18 years ago2005-10-25 Gonzalo Paniagua Javier <gonzalo@ximian.com>
Gonzalo Paniagua Javier [Tue, 25 Oct 2005 16:35:24 +0000 (16:35 -0000)]
2005-10-25 Gonzalo Paniagua Javier <gonzalo@ximian.com>

* TemplateControl.cs:
* PartialCachingControl.cs: if a control is cacheable, LoadControl
returns a PartialCachingControl that holds the VaryBy* and takes care
of partial caching and rendering. Fixes bug #76547.

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

18 years agoGetViewStateString() does not need to be internal
Gonzalo Paniagua Javier [Tue, 25 Oct 2005 16:27:43 +0000 (16:27 -0000)]
GetViewStateString() does not need to be internal

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

18 years ago2005-10-25 Sebastien Pouliot <sebastien@ximian.com>
Sebastien Pouliot [Tue, 25 Oct 2005 16:05:50 +0000 (16:05 -0000)]
2005-10-25  Sebastien Pouliot  <sebastien@ximian.com>

* CodeAttributeDeclaration.cs: Fixed extra removal in r52147.

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

18 years ago2005-10-25 Sebastien Pouliot <sebastien@ximian.com>
Sebastien Pouliot [Tue, 25 Oct 2005 15:51:22 +0000 (15:51 -0000)]
2005-10-25  Sebastien Pouliot  <sebastien@ximian.com>

* CodeGenerator.cs: Fixed OutputAttributeArgument not to assume the
default value is null (it's String.Empty).

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

18 years agoFix warning.
Martin Baulig [Tue, 25 Oct 2005 15:38:22 +0000 (15:38 -0000)]
Fix warning.

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

18 years ago2005-10-25 Martin Baulig <martin@ximian.com>
Martin Baulig [Tue, 25 Oct 2005 15:36:13 +0000 (15:36 -0000)]
2005-10-25  Martin Baulig  <martin@ximian.com>

* generic.cs
(GenericMethod.Define): Call TypeParameter.DefineConstraints() on
all the type parameters; fixes #76551.

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

18 years agoAdded new unit/CAS tests for System.CodeDom.Compiler.TempFileCollection
Sebastien Pouliot [Tue, 25 Oct 2005 14:31:52 +0000 (14:31 -0000)]
Added new unit/CAS tests for System.CodeDom.Compiler.TempFileCollection

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

18 years ago2005-10-25 Sebastien Pouliot <sebastien@ximian.com>
Sebastien Pouliot [Tue, 25 Oct 2005 14:31:18 +0000 (14:31 -0000)]
2005-10-25  Sebastien Pouliot  <sebastien@ximian.com>

* CompilerParameters.cs: Added [ComVisible(false)] on the new (2.0)
EmbeddedResources and LinkedResources properties.
* TempFileCollection.cs: Changed BasePath property to use Path.
GetTempPath (Environment check) and added the PathDiscovery check on
the combined result. Fixed TempDir so it's value never change (i.e.
imply that it doesn't need any permissions). Fixed SyncRoot to always
return null.

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

18 years ago2005-10-25 Sebastien Pouliot <sebastien@ximian.com>
Sebastien Pouliot [Tue, 25 Oct 2005 14:27:48 +0000 (14:27 -0000)]
2005-10-25  Sebastien Pouliot  <sebastien@ximian.com>

* TempFileCollectionCas.cs: New. CAS unit tests.
* TempFileCollectionTest.cs: New. Very basic tests to check the
behaviour of the TempDir property.

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

18 years agoNew test.
Martin Baulig [Tue, 25 Oct 2005 12:37:06 +0000 (12:37 -0000)]
New test.

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

18 years ago2005-10-25 Martin Baulig <martin@ximian.com>
Martin Baulig [Tue, 25 Oct 2005 12:35:08 +0000 (12:35 -0000)]
2005-10-25  Martin Baulig  <martin@ximian.com>

Fix #76472.

* generic.cs
(GenericMethod.ctor): Added `Expression return_type' and
`Parameters parameters' arguments.
(GenericMethod.DefineType): Call ResolveAsTypeTerminal() on the
parameter and return types to check their constraints if they're
generic types.

* codegen.cs (EmitContext.ResolvingGenericMethod): New public
boolean field.

* ecore.cs (Expression.ResolveAsTypeTerminal): Don't check the
constraints of a generic type if `ec.ResolvingGenericMethod'.

* class.cs (MethodCore.DoDefineParameters): Set
`ec.ResolvingGenericMethod' if we're a generic method.
(MemberBase.MemberType): Likewise.

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

18 years ago2005-10-25 Carlos Alberto Cortez <calberto.cortez@gmail.com>
Carlos Alberto Cortez [Tue, 25 Oct 2005 12:11:20 +0000 (12:11 -0000)]
2005-10-25  Carlos Alberto Cortez <calberto.cortez@gmail.com>

* gcs1700.cs, gcs1726.cs, gcs0647.cs, gcs0647-2.cs:
  New tests.

* InternalVisibleTo.snk: New key file for gcs1726.cs.

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

18 years ago2005-10-25 Carlos Alberto Cortez <calberto.cortez@gmail.com>
Carlos Alberto Cortez [Tue, 25 Oct 2005 11:59:34 +0000 (11:59 -0000)]
2005-10-25  Carlos Alberto Cortez <calberto.cortez@gmail.com>

* typemanager.cs (TypeManager): Added
TypeManager.internals_visible_attr_type to cache
S.R.CompilerServices.InternalsVisibleToAttribute.

* codegen.cs (AssemblyClass): Added checks for
InternalsVisibleToAttribute in new method
CheckInternalsVisibleAttribute () and also cache the
AssemblyName in AssemblyClass.Name.

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

18 years ago* namespace.cs (RootNamespace.VerifyUsingForAll, Namespace.VerifyUsing): Remove.
Raja R Harinath [Tue, 25 Oct 2005 11:10:36 +0000 (11:10 -0000)]
* namespace.cs (RootNamespace.VerifyUsingForAll, Namespace.VerifyUsing): Remove.
(NamespaceEntry.VerifyAllUsing): New.
(NamespaceEntry.AliasEntry.Resolve): New.  Handles common error
behaviour.  Delegates actual resolution of alias to ...
(NamespaceEntry.DoResolve): ... this.  Renamed from Resolve.
(NamespaceEntry.LocalAliasEntry, NamespaceEntry.ExternAliasEntry): Update.
* driver.cs (Driver.MainDriver): Update.

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

18 years ago* namespace.cs (NamespaceEntry.DefineNamespace): Remove.
Raja R Harinath [Tue, 25 Oct 2005 08:37:49 +0000 (08:37 -0000)]
* namespace.cs (NamespaceEntry.DefineNamespace): Remove.
(NamespaceEntry.SymbolFileID): Make into a on-demand computed
property.
(Namespace.DefineNamespaces, RootNamespace.DefineNamespacesForAll):
Remove.
* symbolwriter.cs (SymbolWriter.Initialize): Don't call
RootNamespace.DefineNamespacesForAll.

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

18 years agoFix for 76489
Miguel de Icaza [Tue, 25 Oct 2005 05:00:24 +0000 (05:00 -0000)]
Fix for 76489

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

18 years agoAdd new test for 76849
Miguel de Icaza [Tue, 25 Oct 2005 04:59:57 +0000 (04:59 -0000)]
Add new test for 76849

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

18 years ago2005-10-25 Chris Toshok <toshok@ximian.com>
Chris Toshok [Tue, 25 Oct 2005 04:17:27 +0000 (04:17 -0000)]
2005-10-25  Chris Toshok  <toshok@ximian.com>

* PositiveTimeSpanValidatorAttribute.cs: new implementation.

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

18 years agoadd positive time span validator
Chris Toshok [Tue, 25 Oct 2005 04:13:55 +0000 (04:13 -0000)]
add positive time span validator

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

18 years ago2005-10-25 Chris Toshok <toshok@ximian.com>
Chris Toshok [Tue, 25 Oct 2005 04:13:45 +0000 (04:13 -0000)]
2005-10-25  Chris Toshok  <toshok@ximian.com>

* PositiveTimeSpanValidator.cs: new implementation.

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

18 years ago2005-10-25 Chris Toshok <toshok@ximian.com>
Chris Toshok [Tue, 25 Oct 2005 04:13:29 +0000 (04:13 -0000)]
2005-10-25  Chris Toshok  <toshok@ximian.com>

* System.Configuration/PositiveTimeSpanValidatorTest.cs: new test.

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

18 years agoadd the TimeSpanSecondsOrInfiniteConverter stuff
Chris Toshok [Tue, 25 Oct 2005 03:48:25 +0000 (03:48 -0000)]
add the TimeSpanSecondsOrInfiniteConverter stuff

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

18 years ago2005-10-24 Chris Toshok <toshok@ximian.com>
Chris Toshok [Tue, 25 Oct 2005 03:46:07 +0000 (03:46 -0000)]
2005-10-24  Chris Toshok  <toshok@ximian.com>

* TimeSpanSecondsOrInfiniteConverter.cs: new implementation.

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

18 years ago2005-10-24 Chris Toshok <toshok@ximian.com>
Chris Toshok [Tue, 25 Oct 2005 03:44:16 +0000 (03:44 -0000)]
2005-10-24  Chris Toshok  <toshok@ximian.com>

* System.Configuration/TimeSpanSecondsOrInfiniteConverterTest.cs:
new test.

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

18 years agoAdd System.CodeDom.Compiler.GeneratedCodeAttribute (2.0) to the build and a lot of...
Sebastien Pouliot [Tue, 25 Oct 2005 01:05:13 +0000 (01:05 -0000)]
Add System.CodeDom.Compiler.GeneratedCodeAttribute (2.0) to the build and a lot of CAS unit tests for System.CodeDom.Compiler

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

18 years ago2005-10-24 Sebastien Pouliot <sebastien@ximian.com>
Sebastien Pouliot [Tue, 25 Oct 2005 01:04:26 +0000 (01:04 -0000)]
2005-10-24  Sebastien Pouliot  <sebastien@ximian.com>

* CodeGeneratorOptionsCas.cs: New. CAS unit tests.
* CodeGeneratorOptionsTest.cs: New. Unit tests.
* CodeParserCas.cs: New. CAS unit tests.
* CompilerErrorCas.cs: New. CAS unit tests.
* CompilerErrorCollectionCas.cs: New. CAS unit tests.
* CompilerInfoCas.cs: New. CAS unit tests.
* CompilerParametersCas.cs: New. CAS unit tests.
* CompilerResultsCas.cs: New. CAS unit tests.
* GeneratedCodeAttributeCas.cs: New. CAS unit tests.
* GeneratedCodeAttributeTest.cs: New. Unit tests.
* IndentedTextWriterCas.cs: New. CAS unit tests.

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

18 years ago2005-10-24 Sebastien Pouliot <sebastien@ximian.com>
Sebastien Pouliot [Tue, 25 Oct 2005 00:59:32 +0000 (00:59 -0000)]
2005-10-24  Sebastien Pouliot  <sebastien@ximian.com>

* CodeGeneratorOptions.cs: Fixed how properties are kept inside the
IDictionary (which is just like System.Web.dll).
* CompilerError.cs: Added [Serializable] attribute for 2.0.
* CompilerInfo.cs: Added LinkDemand for Unrestricted. Stubbed new
(2.0) CreateDefaultCompilerParameters method.
* CompilerParameters.cs: Added LinkDemand and InheritanceDemand for
Unrestricted. Added Demand for ControlEvidence to Evidence property.
Added new (2.0) EmbeddedResources and LinkedResources properties.
* CompilerResults.cs: Added LinkDemand and InheritanceDemand for
Unrestricted. Added Demand for ControlEvidence to Evidence property.
* Executor.cs: Added LinkDemand for Unrestricted. Added support for
userToken (impersonation).
* GeneratedCodeAttribute.cs: New. 2.0 attribute for code generated by
tools.
* IndentedTextWriter.cs: Added LinkDemand and InheritanceDemand for
Unrestricted.

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

18 years ago2005-10-24 Carlos Alberto Cortez <calberto.cortez@gmail.com>
Carlos Alberto Cortez [Mon, 24 Oct 2005 22:40:31 +0000 (22:40 -0000)]
2005-10-24  Carlos Alberto Cortez <calberto.cortez@gmail.com>

* cs0430.cs, cs0439.cs, cs0439-2.cs,
  cs1537-2.cs, cs1537-3.cs, cs1679.cs,
  cs1680.cs, cs1681.cs: Added tests for extern alias
  feature.

* known-gmcs-issues: Update the issues to avoid testing
the extern alias test in 2.0 profile. We need to change them
as soon as the merged is done in gmcs.

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

18 years agoadd TypeNameConverter{Test}.cs
Chris Toshok [Mon, 24 Oct 2005 22:38:25 +0000 (22:38 -0000)]
add TypeNameConverter{Test}.cs

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

18 years ago2005-10-24 Chris Toshok <toshok@ximian.com>
Chris Toshok [Mon, 24 Oct 2005 22:38:16 +0000 (22:38 -0000)]
2005-10-24  Chris Toshok  <toshok@ximian.com>

* System.Configuration/TypeNameConverterTest.cs: new test.

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

18 years ago2005-10-24 Chris Toshok <toshok@ximian.com>
Chris Toshok [Mon, 24 Oct 2005 22:37:55 +0000 (22:37 -0000)]
2005-10-24  Chris Toshok  <toshok@ximian.com>

* TypeNameConverter.cs: new implementation.

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

18 years ago2005-10-24 Gonzalo Paniagua Javier <gonzalo@ximian.com>
Gonzalo Paniagua Javier [Mon, 24 Oct 2005 21:58:31 +0000 (21:58 -0000)]
2005-10-24 Gonzalo Paniagua Javier <gonzalo@ximian.com>

* HandlerFactoryConfiguration.cs: when using regex matching, pass the
original full virtual path, not just the file name. The regex matches
the end of the path. Fixes bug #76536.

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

18 years ago2005-10-24 Chris Toshok <toshok@ximian.com>
Chris Toshok [Mon, 24 Oct 2005 21:51:22 +0000 (21:51 -0000)]
2005-10-24  Chris Toshok  <toshok@ximian.com>

* System.Configuration_test.dll.sources: add
WhiteSpaceTrimStringConverterTest.cs

* System.Configuration.dll.sources: add
WhiteSpaceTrimStringConverter.cs

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

18 years ago2005-10-24 Chris Toshok <toshok@ximian.com>
Chris Toshok [Mon, 24 Oct 2005 21:51:11 +0000 (21:51 -0000)]
2005-10-24  Chris Toshok  <toshok@ximian.com>

* System.Configuration/WhiteSpaceTrimStringConverterTest.cs: new
test.

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

18 years ago2005-10-24 Chris Toshok <toshok@ximian.com>
Chris Toshok [Mon, 24 Oct 2005 21:50:53 +0000 (21:50 -0000)]
2005-10-24  Chris Toshok  <toshok@ximian.com>

* WhiteSpaceTrimStringConverter.cs: new implementation.

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

18 years ago2005-10-24 Chris Toshok <toshok@ximian.com>
Chris Toshok [Mon, 24 Oct 2005 21:10:42 +0000 (21:10 -0000)]
2005-10-24  Chris Toshok  <toshok@ximian.com>

* AppSettingsSection.cs (DeserializeElement, SerializeSection):
split the behavior based on if File == "".  If it is, we do the
default.  otherwise we throw NIE.

* ConnectionStringsSection.cs (DeserializeElement): we shouldn't
need this, but we do until the IsDefaultCollection stuff is fixed.

* ConfigurationElementCollection.cs
(OnDeserializeUnrecognizedElement): for clearElementName, make
sure we have no attributes.

* ConnectionStringSettingsCollection.cs (get_Properties): for now
just chain up to base.Properties.

* ConfigurationElement.cs (ReflectProperties): do the default
value/property type check in a more robust way, using
Convert.ChangeType.

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

18 years ago2005-10-24 Gonzalo Paniagua Javier <gonzalo@ximian.com>
Gonzalo Paniagua Javier [Mon, 24 Oct 2005 20:57:13 +0000 (20:57 -0000)]
2005-10-24 Gonzalo Paniagua Javier <gonzalo@ximian.com>

* Literal.cs: allow LiteralControl as child, but instead of adding it
to the control collection, it just gets the Text out of it.

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

18 years ago2005-10-24 Gonzalo Paniagua Javier <gonzalo@ximian.com>
Gonzalo Paniagua Javier [Mon, 24 Oct 2005 20:53:30 +0000 (20:53 -0000)]
2005-10-24 Gonzalo Paniagua Javier <gonzalo@ximian.com>

* LiteralTest.cs: Literal allows LiteralControl.

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

18 years ago* CodeArgumentReferenceExpressionTest.cs: Added test for default ctor
Gert Driesen [Mon, 24 Oct 2005 20:07:57 +0000 (20:07 -0000)]
* CodeArgumentReferenceExpressionTest.cs: Added test for default ctor
and default value of ParameterName.
* CodeArrayCreateExpressionTest.cs: Added test for default ctor and
default value of CreateType.
* CodeAttachEventStatementTest.cs: Added test for default ctor and
default value of Event.
* CodeAttributeArgumentTest.cs: Added test for default ctor and default
value of Name.
* CodeAttributeDeclarationTest.cs: Added test for default ctor and
default value of Name.
* System_test.dll.sources: Added CodeArgumentReferenceExceptionTest.cs,
CodeArrayCreateExpressionTest.cs, CodeAttachEventStatementTest.cs,
CodeAttributeArgumentTest.cs, CodeAttributeDeclarationTest.cs.
* CodeArgumentReferenceExpression.cs: If ParameterName is null, return
string.Empty.
* CodeArrayCreateExpression.cs: Implement default value in CreateType
property.
* CodeAttachEventStatement.cs: Implement default value in Event
property.
* CodeAttributeArgument.cs: Implement default value in Name property.
* CodeAttributeDeclaration.cs: Implement default value in Name
property.

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

18 years ago2005-10-23 Jonathan Gilbert <logic@deltaq.org>
Jonathan Gilbert [Mon, 24 Oct 2005 19:48:48 +0000 (19:48 -0000)]
2005-10-23  Jonathan Gilbert  <logic@deltaq.org>

        * TestBitmap.cs (Rotate1bit4bit): Added test for rotation &
          flipping of indexed (1- and 4-bit) Bitmaps.
        * 1bit.png, 4bit.png: Added to 'bitmaps' subdirectory.

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

18 years ago2005-10-24 Chris Toshok <toshok@ximian.com>
Chris Toshok [Mon, 24 Oct 2005 18:47:40 +0000 (18:47 -0000)]
2005-10-24  Chris Toshok  <toshok@ximian.com>

* ConfigurationElement.cs: treat
ConfigurationProperty.NoDefaultValue the same as null when we're
checking the default value's type.  this fixes t13 and 14.

* ConnectionStringsSection.cs (ConnectionStrings): fix the
DefaultValue in the ConfigurationPropertyAttribute.

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

18 years agofix config and expected files for t13 and t14
Chris Toshok [Mon, 24 Oct 2005 18:45:24 +0000 (18:45 -0000)]
fix config and expected files for t13 and t14

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

18 years ago2005-10-24 Chris Toshok <toshok@ximian.com>
Chris Toshok [Mon, 24 Oct 2005 18:18:09 +0000 (18:18 -0000)]
2005-10-24  Chris Toshok  <toshok@ximian.com>

* KeyValueConfigurationCollection.cs (GetElementKey): sacrifice
one test to get another working.  Return a valid key even if the
element is not in this collection.
(get_ThrowOnDuplicate): return false.

* ConfigurationElementCollection.cs (BaseAdd): if we're adding an
element with the same key, overwrite the old one (remove the old
one after inserting the new one).  Also, re-enable the throwing of
exceptions if ThrowOnDuplicate == true.

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

18 years agoupdate the expected output
Chris Toshok [Mon, 24 Oct 2005 18:03:15 +0000 (18:03 -0000)]
update the expected output

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

18 years ago2005-10-24 Chris Toshok <toshok@ximian.com>
Chris Toshok [Mon, 24 Oct 2005 17:53:30 +0000 (17:53 -0000)]
2005-10-24  Chris Toshok  <toshok@ximian.com>

* AppSettingsSection.cs (Settings): fix ConfigurationProperty
attribute.

* ProtectedConfigurationSection.cs (Providers): same.

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

18 years ago2005-10-24 Chris Toshok <toshok@ximian.com>
Chris Toshok [Mon, 24 Oct 2005 17:49:52 +0000 (17:49 -0000)]
2005-10-24  Chris Toshok  <toshok@ximian.com>

* standalone/Makefile: hide the output from cmp.

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

18 years agomodify t3 slightly
Chris Toshok [Mon, 24 Oct 2005 17:48:45 +0000 (17:48 -0000)]
modify t3 slightly

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

18 years agoFix typo
Raja R Harinath [Mon, 24 Oct 2005 17:35:00 +0000 (17:35 -0000)]
Fix typo

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

18 years ago* typemanager.cs (assemblies, external_aliases, modules)
Raja R Harinath [Mon, 24 Oct 2005 17:34:06 +0000 (17:34 -0000)]
* typemanager.cs (assemblies, external_aliases, modules)
(AddAssembly, AddExternAlias, AddModule GetAssemblies, Modules)
(ComputeNamespaces, GetRootNamespace): Remove extra staging
overhead.  Move resposibility ...
* namespace.cs (RootNamespace): ... here.  Update to changes.
* driver.cs, attribute.cs, codegen.cs: Update to changes.

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

18 years ago2005-10-24 Chris Toshok <toshok@ximian.com>
Chris Toshok [Mon, 24 Oct 2005 17:30:03 +0000 (17:30 -0000)]
2005-10-24  Chris Toshok  <toshok@ximian.com>

* System.Configuration/ConfigurationPermissionTest.cs: lots more
tests.

* System.Configuration/KeyValueConfigurationCollectionTest.cs: add
ThrowOnDuplicate check.

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

18 years ago* CodeGeneratorFromTypeTest.cs (CodeGeneratorFromTypeTest_Class)
Raja R Harinath [Mon, 24 Oct 2005 17:14:42 +0000 (17:14 -0000)]
* CodeGeneratorFromTypeTest.cs (CodeGeneratorFromTypeTest_Class)
(CodeGeneratorFromTypeTest_Struct): Update to reflect mbas workaround.

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

18 years ago* CodeTypeReferenceTest.cs: Enabled test case for bug #76535. Added
Gert Driesen [Mon, 24 Oct 2005 15:46:17 +0000 (15:46 -0000)]
* CodeTypeReferenceTest.cs: Enabled test case for bug #76535. Added
few additional tests for null or zero length data type of array.
* CodeTypeReference.cs: Ignore ArrayElementType for determining
BaseType if ArrayRank is zero or less. Fixes bug #76535.

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

18 years ago* icall.c (base64_to_byte_array): Don't pass an out-of-range
Raja R Harinath [Mon, 24 Oct 2005 14:53:26 +0000 (14:53 -0000)]
* icall.c (base64_to_byte_array): Don't pass an out-of-range
integer to isspace.

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

18 years agoAdd new CAS unit tests for System.CodeDom to the build
Sebastien Pouliot [Mon, 24 Oct 2005 14:34:13 +0000 (14:34 -0000)]
Add new CAS unit tests for System.CodeDom to the build

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

18 years ago2005-10-24 Sebastien Pouliot <sebastien@ximian.com>
Sebastien Pouliot [Mon, 24 Oct 2005 14:33:27 +0000 (14:33 -0000)]
2005-10-24  Sebastien Pouliot  <sebastien@ximian.com>

* CodeArgumentReferenceExpression.cs: Added default value for
arameterName.
* CodeArrayCreateExpression.cs: Added default value for createType.
* CodeAttachEventStatement.cs: Added default value for eventRef.
* CodeAttributeArgument.cs: Added default value for name.
* CodeAttributeArgumentCollection.cs: Fixed AddRange methods not to
throw an exception (as the list was being changed when using an
numerator).
* CodeAttributeDeclaration.cs: Added default value for name.
* CodeAttributeDeclarationCollection.cs: Fixed AddRange methods not to
throw an exception (as the list was being changed when using an
numerator).
* CodeCastExpression.cs: Added default value for targetType.
* CodeCatchClause.cs: Added default value for catchExceptionType and
ocalName.
* CodeCatchClauseCollection.cs: Fixed AddRange methods not to throw an
xception (as the list was being changed when using an enumerator).
* CodeCommentStatementCollection.cs: Fixed AddRange methods not to
hrow an exception (as the list was being changed when using an
numerator).
* CodeDelegateCreateExpression.cs: Added default value for
elegateType and methodName.
* CodeEventReferenceExpression.cs: Added default value for eventName.
* CodeExpressionCollection.cs: Fixed AddRange methods not to throw an
xception (as the list was being changed when using an enumerator).
* CodeFieldReferenceExpression.cs: Added default value for fieldName.
* CodeMethodInvokeExpression.cs: Added default value for method.
* CodeMethodReferenceExpression.cs: Added default value for methodName
* CodeNamespace.cs: Added default value for name.
* CodeNamespaceCollection.cs: Fixed AddRange methods not to throw an
xception (as the list was being changed when using an enumerator).
* CodeNamespaceImport.cs: Added default value for nameSpace.
* CodeNamespaceImportCollection.cs: SyncRoot returns null.
* CodeObjectCreateExpression.cs: Added default value for createType.
* CodeParameterDeclarationExpression.cs: Added default value for name
and type.
* CodeParameterDeclarationExpressionCollection.cs: Fixed AddRange
methods not to throw an exception (as the list was being changed when
using an enumerator).
* CodePropertyReferenceExpression.cs: Added default value for
propertyName.
* CodeRemoveEventStatement.cs: Added default value for eventRef.
* CodeSnippetExpression.cs: Added default value for value.
* CodeSnippetStatement.cs: Added default value for value.
* CodeSnippetTypeMember.cs: Added default value for text.
* CodeStatementCollection.cs: Fixed AddRange methods not to throw an
exception (as the list was being changed when using an enumerator).
* CodeTypeDeclarationCollection.cs: Fixed AddRange methods not to
throw an exception (as the list was being changed when using an
enumerator).
* CodeTypeMemberCollection.cs: Fixed AddRange methods not to throw an
exception (as the list was being changed when using an enumerator).
* CodeTypeOfExpression.cs: Added default value for type.
* CodeTypeReferenceCollection.cs: Fixed AddRange methods not to throw
an exception (as the list was being changed when using an enumerator).
* CodeTypeReferenceExpression.cs: Added default value for type.
* CodeVariableDeclarationStatement.cs: Added default value for name
and type.
* CodeVariableReferenceExpression.cs: Added default value for
variableName.

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

18 years ago2005-10-24 Sebastien Pouliot <sebastien@ximian.com>
Sebastien Pouliot [Mon, 24 Oct 2005 14:20:00 +0000 (14:20 -0000)]
2005-10-24  Sebastien Pouliot  <sebastien@ximian.com>

* CodeTypeReferenceCas.cs: Fixed test cases not to trigger bug or
depend on the internal ctor.
* CodeTypeReferenceTest.cs: Added a test case for bug #76535.

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

18 years ago2005-10-24 Sebastien Pouliot <sebastien@ximian.com>
Sebastien Pouliot [Mon, 24 Oct 2005 12:52:06 +0000 (12:52 -0000)]
2005-10-24  Sebastien Pouliot  <sebastien@ximian.com>

* CodeArgumentReferenceExpressionCas.cs,
CodeArrayCreateExpressionCas.cs, CodeArrayIndexerExpressionCas.cs,
CodeAssignStatementCas.cs, CodeAttachEventStatementCas.cs,
CodeAttributeArgumentCas.cs, CodeAttributeArgumentCollectionCas.cs,
CodeAttributeDeclarationCas.cs,
CodeAttributeDeclarationCollectionCas.cs,
CodeBaseReferenceExpressionCas.cs, CodeBinaryOperatorExpressionCas.cs,
CodeCastExpressionCas.cs, CodeCatchClauseCas.cs,
CodeCatchClauseCollectionCas.cs, CodeChecksumPragmaCas.cs,
CodeCommentStatementCas.cs, CodeCommentStatementCollectionCas.cs,
CodeCompileUnitCas.cs, CodeConditionStatementCas.cs,
CodeConstructorCas.cs, CodeDefaultValueExpressionCas.cs,
CodeDelegateCreateExpressionCas.cs,
CodeDelegateInvokeExpressionCas.cs, CodeDirectionExpressionCas.cs,
CodeDirectiveCas.cs, CodeDirectiveCollectionCas.cs,
CodeEntryPointMethodCas.cs, CodeEventReferenceExpressionCas.cs,
CodeExpressionCas.cs, CodeExpressionCollectionCas.cs,
CodeExpressionStatementCas.cs, CodeFieldReferenceExpressionCas.cs,
CodeGotoStatementCas.cs, CodeIndexerExpressionCas.cs,
CodeIterationStatementCas.cs, CodeLinePragmaCas.cs,
CodeMemberEventCas.cs, CodeMemberFieldCas.cs, CodeMemberMethodCas.cs,
CodeMemberPropertyCas.cs, CodeMethodInvokeExpressionCas.cs,
CodeMethodReferenceExpressionCas.cs, CodeMethodReturnStatementCas.cs,
CodeNamespaceCas.cs, CodeNamespaceCollectionCas.cs,
CodeNamespaceImportCas.cs, CodeNamespaceImportCollectionCas.cs,
CodeObjectCas.cs, CodeObjectCreateExpressionCas.cs,
CodeParameterDeclarationExpressionCas.cs,
CodeParameterDeclarationExpressionCollectionCas.cs,
CodePrimitiveExpressionCas.cs, CodePropertyReferenceExpressionCas.cs,
CodePropertySetValueReferenceExpressionCas.cs,
CodeRegionDirectiveCas.cs, CodeRemoveEventStatementCas.cs,
CodeSnippetCompileUnitCas.cs, CodeSnippetExpressionCas.cs,
CodeSnippetStatementCas.cs, CodeSnippetTypeMemberCas.cs,
CodeStatementCas.cs, CodeStatementCollectionCas.cs,
CodeThisReferenceExpressionCas.cs, CodeThrowExceptionStatementCas.cs,
CodeTryCatchFinallyStatementCas.cs, CodeTypeConstructorCas.cs,
CodeTypeDeclarationCas.cs, CodeTypeDeclarationCollectionCas.cs,
CodeTypeDelegateCas.cs, CodeTypeMemberCas.cs,
CodeTypeMemberCollectionCas.cs, CodeTypeOfExpressionCas.cs,
CodeTypeParameterCas.cs, CodeTypeReferenceCas.cs,
CodeTypeReferenceCollectionCas.cs, CodeTypeReferenceExpressionCas.cs,
CodeVariableDeclarationStatementCas.cs,
CodeVariableReferenceExpressionCas.cs: New. CAS unit tests.

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

18 years agoremoved extra type validation for object container
Konstantin Triger [Mon, 24 Oct 2005 12:11:37 +0000 (12:11 -0000)]
removed extra type validation for object container

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

18 years agoButtonBase.cs, ListView.cs, NotifyIcon.cs, PictureBox.cs, ToolBar.cs, TreeView.cs...
Kornél Pál [Mon, 24 Oct 2005 10:01:55 +0000 (10:01 -0000)]
ButtonBase.cs, ListView.cs, NotifyIcon.cs, PictureBox.cs, ToolBar.cs, TreeView.cs: Don't dispose objects that are not owned.

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

18 years ago2005-10-24 Martin Baulig <martin@ximian.com>
Martin Baulig [Mon, 24 Oct 2005 08:35:05 +0000 (08:35 -0000)]
2005-10-24  Martin Baulig  <martin@ximian.com>

* TypeBuilder.cs (TypeBuilder.IsGenericTypeDefinition): Override this.

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

18 years ago2005-10-24 Martin Baulig <martin@ximian.com>
Martin Baulig [Mon, 24 Oct 2005 08:34:38 +0000 (08:34 -0000)]
2005-10-24  Martin Baulig  <martin@ximian.com>

* Type.cs (Type.IsGenericTypeDefinition): Make this virtual.

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

18 years agoNew test.
Martin Baulig [Mon, 24 Oct 2005 08:30:32 +0000 (08:30 -0000)]
New test.

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

18 years agoNew test.
Martin Baulig [Mon, 24 Oct 2005 07:47:35 +0000 (07:47 -0000)]
New test.

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

18 years ago2005-10-24 Martin Baulig <martin@ximian.com>
Martin Baulig [Mon, 24 Oct 2005 07:47:16 +0000 (07:47 -0000)]
2005-10-24  Martin Baulig  <martin@ximian.com>

* typemanager.cs
(TypeManager.ExpandInterfaces): Added overloaded version which
just takes a `Type[]' array.

* generic.cs
(Constraints.Resolve): Don't expand the interfaces here; ie. we
just use the interfaces which were explicitly specified and not
the interfaces they inherit.  Fixes #76482.
(TypeParameter.FindMembers): Expand the interfaces here.

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

18 years ago2005-10-24 Peter Dennis Bartok <pbartok@novell.com>
Peter Dennis Bartok [Mon, 24 Oct 2005 06:26:27 +0000 (06:26 -0000)]
2005-10-24  Peter Dennis Bartok  <pbartok@novell.com>

* Brush.cs: Don't delete the brush if the display handle is no longer
  valid, otherwise cairo will try to use the handle and crash and burn

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

18 years ago2005-10-24 Atsushi Enomoto <atsushi@ximian.com>
Atsushi Eno [Mon, 24 Oct 2005 06:25:18 +0000 (06:25 -0000)]
2005-10-24  Atsushi Enomoto  <atsushi@ximian.com>

* Compiler.cs : (FromString(s, hashtable)) pull default namespace
  from the table for LRE (don't consider it as ""; spec. 7.1.2)
  Fixed bug #76530.

* XslTransformTests.cs : added test for bug #76530.

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

18 years ago2005-10-24 Peter Dennis Bartok <pbartok@novell.com>
Peter Dennis Bartok [Mon, 24 Oct 2005 06:23:01 +0000 (06:23 -0000)]
2005-10-24  Peter Dennis Bartok  <pbartok@novell.com>

* Cursor.cs: Defaulting the Current cursor to Cursors.Default. We
  should retrieve the current cursor and report that, but XplatUI
  doesn't (yet) have an interface for that (and I'm not sure I even
  can, on X11)
* XplatUIWin32.cs: Fixed override behaviour. The override is temporary,
  until any message loop processing is done (and the WM_SETCURSOR
  replaces the cursor to the proper one)
* XplatUIX11.cs:
  - Fixed override behaviour, we can't set the cursor globally on X11,
    just for our windows.
  - Invalidating the System.Drawing X11 display handle when we are
    shutting down
* Control.cs: Fix to make csc happy

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

18 years ago2005-10-23 Peter Dennis Bartok <pbartok@novell.com>
Peter Dennis Bartok [Mon, 24 Oct 2005 05:20:39 +0000 (05:20 -0000)]
2005-10-23  Peter Dennis Bartok  <pbartok@novell.com>

* TextBoxBase.cs:
  - get_Text: Add last line (without trailing newline) to returned
    value (Fixes 76212)
  - get_TextLength: Count last line in returned length
  - ToString: Call Text property instead of duplicating code

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

18 years ago2005-10-24 Gonzalo Paniagua Javier <gonzalo@ximian.com>
Gonzalo Paniagua Javier [Mon, 24 Oct 2005 05:10:05 +0000 (05:10 -0000)]
2005-10-24 Gonzalo Paniagua Javier <gonzalo@ximian.com>

* System.Web.Caching/Cache.cs: new internal method.
* System.Web/HttpRuntime.cs: invoke callbacks on private items in the
cache before calling disposing the app. factory. This way we get
notifications of removal for all sessions stored in the cache (InProc
only). Fixes bug #76524.

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

18 years ago2005-10-23 Florian Gross <flgr@ccan.de>
César Natarén [Sun, 23 Oct 2005 22:36:11 +0000 (22:36 -0000)]
2005-10-23  Florian Gross  <flgr@ccan.de>

* LateBinding.cs: Changed to accept object instead of ScriptObject in a lot of places

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

18 years ago2005-10-23 Atsushi Enomoto <atsushi@ximian.com>
Atsushi Eno [Sun, 23 Oct 2005 20:45:26 +0000 (20:45 -0000)]
2005-10-23  Atsushi Enomoto <atsushi@ximian.com>

* XPathNavigator.cs : now 2.0 MoveToFirst() invokes internal
  MoveToFirstImpl() and it is from what XmlDocumentNavigator did.
  This fixes XPathEditableDocument.MoveToFirst().

* XmlDocumentNavigator.cs : now MoveToFirst() invokes internal
  MoveToFirstImpl().

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

18 years ago2005-10-23 Atsushi Enomoto <atsushi@ximian.com>
Atsushi Eno [Sun, 23 Oct 2005 20:19:28 +0000 (20:19 -0000)]
2005-10-23  Atsushi Enomoto <atsushi@ximian.com>

* XmlTextWriter.cs : oops, so WriteState.Error is NET_2_0 only.

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

18 years agoAdd System.CodeDom.CodeDefaultValueExpression class (2.0) to the build
Sebastien Pouliot [Sun, 23 Oct 2005 20:15:54 +0000 (20:15 -0000)]
Add System.CodeDom.CodeDefaultValueExpression class (2.0) to the build

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

18 years ago2005-10-23 Sebastien Pouliot <sebastien@ximian.com>
Sebastien Pouliot [Sun, 23 Oct 2005 20:15:27 +0000 (20:15 -0000)]
2005-10-23  Sebastien Pouliot  <sebastien@ximian.com>

* CodeTypeParameterCollection.cs: Added missing Add(string) method.

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

18 years ago2005-10-23 Atsushi Enomoto <atsushi@ximian.com>
Atsushi Eno [Sun, 23 Oct 2005 20:14:48 +0000 (20:14 -0000)]
2005-10-23  Atsushi Enomoto <atsushi@ximian.com>

* XmlNamespaceManagerTests.cs :
  well, hence GetNamespacesInScope() is NotDotNet.

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

18 years ago2005-10-23 Atsushi Enomoto <atsushi@ximian.com>
Atsushi Eno [Sun, 23 Oct 2005 20:13:10 +0000 (20:13 -0000)]
2005-10-23  Atsushi Enomoto <atsushi@ximian.com>

* XmlTextWriter.cs : (Error state check) actually I need to set Error.

* XmlNamespaceManagerTests.cs : GetNamespacesInScope() - Added test
   labels. Fixed counts; they count default namespaces. MS seems to
   have a bug on declaration removal (xmlns='') on .Local.
* XmlNodeReaderTests.cs : in .NET 2.0 undeclared entity are not
  allowed at all, so disabled tests that depends on such references.

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

18 years ago2005-10-23 Atsushi Enomoto <atsushi@ximian.com>
Atsushi Eno [Sun, 23 Oct 2005 19:48:22 +0000 (19:48 -0000)]
2005-10-23  Atsushi Enomoto <atsushi@ximian.com>

* XmlTextWriter.cs : throw InvalidOperationException if any of
  WriteBlah() methods were invoked at error state.

* XmlTextWriterTests.cs : split some tests that try to write nodes
  at error state (.NET 2.0 correctly rejects them).

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

18 years ago2005-10-23 Atsushi Enomoto <atsushi@ximian.com>
Atsushi Eno [Sun, 23 Oct 2005 19:10:47 +0000 (19:10 -0000)]
2005-10-23  Atsushi Enomoto <atsushi@ximian.com>

* XmlTextReader.cs, DTDValidatingReader.cs : LookupNamespace("") for
  default namespace was returning "" instead of null. It didn't check
  empty namespace URI for non-empty prefixes.

* XmlTextReaderTests.cs, XmlValidatingReaderTests.cs,
  XmlReaderCommonTests.cs : added and fixed tests to make sure that
  LookupNamespace("") returns null for default namespace, and checks
  that empty namespace URI is not allowed for non-empty prefix.

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

18 years ago2005-10-23 Sebastien Pouliot <sebastien@ximian.com>
Sebastien Pouliot [Sun, 23 Oct 2005 18:54:07 +0000 (18:54 -0000)]
2005-10-23  Sebastien Pouliot  <sebastien@ximian.com>

* CodeAttributeDeclaration.cs: Added new 2.0 ctor and AttributeType
property.
* CodeDefaultValueExpression.cs: New. Implemented (2.0).
* CodeDirectiveCollection.cs: Completed implementation.
* CodeGotoStatement.cs: Added default ctor for 2.0.
* CodeIndexerExpression.cs: Fixed typo in header.
* CodeLinePragma.cs: Added default ctor for 2.0.
* CodeRegionMode.cs: Added missing None element.
* CodeSnippetCompileUnit.cs: Added default ctor for 2.0.
* CodeTypeDeclaration.cs: Added ComVisible(false) on TypeParameters
property.
* CodeTypeParameterCollection.cs: Completed implementation.

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

18 years ago2005-10-23 Atsushi Enomoto <atsushi@ximian.com>
Atsushi Eno [Sun, 23 Oct 2005 18:13:58 +0000 (18:13 -0000)]
2005-10-23  Atsushi Enomoto <atsushi@ximian.com>

* XmlSchemaTests.cs : some namespace output strategy seems changed
  in .NET 2.0 and they still make sense, so just mark them as
  NotDotNet and NotWorking under 2.0.

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

18 years ago2005-10-23 Atsushi Enomoto <atsushi@ximian.com>
Atsushi Eno [Sun, 23 Oct 2005 18:12:26 +0000 (18:12 -0000)]
2005-10-23  Atsushi Enomoto <atsushi@ximian.com>

* Attr.cs : core0006A is not working under .NET 2.0.
* Element.cs : core0008A and core0016A Are not working under .NET 2.0.
* NamedNodeMap.cs : core0009M is not working under .NET 2.0.

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

18 years ago2005-10-23 Atsushi Enomoto <atsushi@ximian.com>
Atsushi Eno [Sun, 23 Oct 2005 18:09:20 +0000 (18:09 -0000)]
2005-10-23  Atsushi Enomoto <atsushi@ximian.com>

* XPathNavigatorCommonTests.cs, XPathNavigatorTests.cs,
  XPathNavigatorEvaluateTests.cs :
  Added assertion labels. Marked some tests as NotDotNet under 2.0.

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

18 years agoIn mcs:
Raja R Harinath [Sun, 23 Oct 2005 17:46:52 +0000 (17:46 -0000)]
In mcs:
* namespace.cs (RootNamespace.all_namespaces): Renamed from
cached_namespaces.  Improve usage.
(RootNamespace.Reset, RootNamespace.RegisterNamespace)
(RootNamespace.VerifyUsingForAll, RootNamespace.DefineNamespacesForAll):
Move from GlobalRootNamespace and simplify.
(RootNamespace.Global): Make instance variable.
(RootNamespace.RootNamespace): Add "alias name" parameter.
(GlobalRootNamespace): Simplify drastically.
(Namespace.Lookup): Don't use GetNamespace.
* typemanager.cs (GetRootNamespace): Rename from
ComputeNamespaceForAlias.
(NamespaceClash): Use Global.IsNamespace instead of GetNamespace.

In class/Microsoft.JScript/Microsoft.JScript:
* Import.cs (Resolve): Update to changes in MCS code.

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

18 years agonew test
Marek Safar [Sun, 23 Oct 2005 17:40:10 +0000 (17:40 -0000)]
new test

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

18 years agoRemove fixed testcases from known failures list.
Andrew Skiba [Sun, 23 Oct 2005 17:37:22 +0000 (17:37 -0000)]
Remove fixed testcases from known failures list.

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

18 years ago2005-10-23 Marek Safar <marek.safar@seznam.cz>
Marek Safar [Sun, 23 Oct 2005 17:36:03 +0000 (17:36 -0000)]
2005-10-23  Marek Safar  <marek.safar@seznam.cz>

* anonymous.cs (AnonymousContainer): Don't crash when container
doesn't exist.

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

18 years ago * XsltTestUtils.cs, xslt.vmwcsproj, xslt.sln, xslttest.cs, XmlCompare.cs,
Andrew Skiba [Sun, 23 Oct 2005 17:25:11 +0000 (17:25 -0000)]
    * XsltTestUtils.cs, xslt.vmwcsproj, xslt.sln, xslttest.cs, XmlCompare.cs,
        Makefile: make XML compare to reduce the noise from attribute order and
        namespace names (not URIs)

--This ine, and those below, will be ignored--

M    standalone_tests/XsltTestUtils.cs
M    standalone_tests/xslt.vmwcsproj
M    standalone_tests/xslt.sln
M    standalone_tests/ChangeLog
M    standalone_tests/xslttest.cs
AM   standalone_tests/XmlCompare.cs
M    standalone_tests/Makefile

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