Zoltan Varga [Mon, 12 Dec 2005 21:24:21 +0000 (21:24 -0000)]
2005-12-12 Zoltan Varga <vargaz@gmail.com>
* class.c (mono_class_setup_vtable_general): Add missing != -1 to an
interface check.
svn path=/trunk/mono/; revision=54260
Zoltan Varga [Mon, 12 Dec 2005 21:15:19 +0000 (21:15 -0000)]
2005-12-12 Zoltan Varga <vargaz@gmail.com>
* generics.2.cs: Disable the newly added tests as they do not work yet.
svn path=/trunk/mono/; revision=54259
Mike Kestner [Mon, 12 Dec 2005 20:18:49 +0000 (20:18 -0000)]
2005-12-12 Mike Kestner <mkestner@novell.com>
* mono-cairo.pc.in: pkgconfig support for Mono.Cairo. Mono.Cairo.dll
and this file can be extracted post-build to be packaged separately
on win32.
* configure.in: expand mono-cairo.pc
* Makefile.am: dist and install mono-cairo.pc
svn path=/trunk/mono/; revision=54256
Mike Kestner [Mon, 12 Dec 2005 20:15:04 +0000 (20:15 -0000)]
2005-12-12 Mike Kestner <mkestner@novell.com>
* Mono.Cairo/Context.cs: renamed from Graphics.cs. renamed Graphics to
Context and added an Obsolete subclass to minimize the pain.
* Mono.Cairo/Surface.cs : s/Graphics/Context.
Thanks to jluke for pointing out this change was needed.
svn path=/trunk/mcs/; revision=54255
Peter Dennis Bartok [Mon, 12 Dec 2005 20:09:20 +0000 (20:09 -0000)]
2005-12-12 Peter Dennis Bartok <pbartok@novell.com>
* Control.cs:
- Changed handling of Controls.Add/Controls.Remove to fire (almost)
the same events as MS does. MS fires events for each property
except, for unknown reasons, Cursor, when the control is reparented.
I can't seem to totally match add/remove since MS also fires some
VisibleChanged events, which makes no sense. Consolidated the
parenting code into a separate method so it can be called from
both Add and Remove. set_Parent no longer needs any special logic
as it calls the parent's add method which implicitly fires
all events
- Removed some obsolete code and debug output
- Enabled state is inherited from parents, if this is enabled
svn path=/trunk/mcs/; revision=54254
Zoltan Varga [Mon, 12 Dec 2005 19:14:17 +0000 (19:14 -0000)]
2005-12-12 Zoltan Varga <vargaz@gmail.com>
* generics.2.cs: Add valuetype tests.
svn path=/trunk/mono/; revision=54251
Chris Toshok [Mon, 12 Dec 2005 17:48:24 +0000 (17:48 -0000)]
2005-12-12 Chris Toshok <toshok@ximian.com>
* AppSettingsSection.cs (DeserializeElement): provide rather naive
version of the file="" handling. It's enough to make our tests
pass.
svn path=/trunk/mcs/; revision=54250
Atsushi Eno [Mon, 12 Dec 2005 16:46:36 +0000 (16:46 -0000)]
2005-12-12 Atsushi Enomoto <atsushi@ximian.com>
* Makefile : seems like net_2_0_ONLY_SUBDIRS must precede.
svn path=/trunk/mcs/; revision=54247
Raja R Harinath [Mon, 12 Dec 2005 15:25:25 +0000 (15:25 -0000)]
* Makefile (DIST_ONLY_SUBDIRS): Add 'xbuild'.
svn path=/trunk/mcs/; revision=54242
Raja R Harinath [Mon, 12 Dec 2005 14:53:18 +0000 (14:53 -0000)]
* Makefile (default_SUBDIRS): New. Rename from SUBDIRS, and move
before including library.make.
(net_2_0_ONLY_SUBDIRS): New.
(DIST_ONLY_SUBDIRS): Add net_2_0_ONLY_SUBDIRS.
svn path=/trunk/mcs/; revision=54240
Ankit Jain [Mon, 12 Dec 2005 13:45:40 +0000 (13:45 -0000)]
* Metadata.cs (TypeAttr): Add VisibilityMask.
svn path=/trunk/mcs/; revision=54238
Neale Ferguson [Mon, 12 Dec 2005 13:38:45 +0000 (13:38 -0000)]
Add MonoCallArgParm for passing parameter information to burg routines
(s390/s390x)
svn path=/trunk/mono/; revision=54237
Ankit Jain [Mon, 12 Dec 2005 13:03:15 +0000 (13:03 -0000)]
In ilasm/tests:
* nested.il: New. Ensure nested visibility for nested types.
In ilasm/codegen:
* TypeDef.cs (TypeDef.Define): Ensure nested visibility for a nested class.
(TypeDef.NestedFullName): New.
svn path=/trunk/mcs/; revision=54236
Miguel de Icaza [Mon, 12 Dec 2005 12:22:20 +0000 (12:22 -0000)]
Add xbuild to the build
svn path=/trunk/mcs/; revision=54235
Miguel de Icaza [Mon, 12 Dec 2005 12:21:37 +0000 (12:21 -0000)]
Add xbuild to the build
svn path=/trunk/mcs/; revision=54234
Atsushi Eno [Mon, 12 Dec 2005 12:21:09 +0000 (12:21 -0000)]
2005-12-12 Atsushi Enomoto <atsushi@ximian.com>
* XPathNavigator.cs : removed some MonoTODOs.
* XPathNavigatorTests.cs : added tests for ValueAsXxx properties.
svn path=/trunk/mcs/; revision=54233
Atsushi Eno [Mon, 12 Dec 2005 11:49:32 +0000 (11:49 -0000)]
2005-12-12 Atsushi Enomoto <atsushi@ximian.com>
* XmlReader.cs : fixed several misconception in MoveToNextSibling().
It should check its ReadState to avoid infinite loop.
* XmlReaderCommonTests.cs : enabled MoveToNextSibling() tests.
svn path=/trunk/mcs/; revision=54231
Atsushi Eno [Mon, 12 Dec 2005 11:26:27 +0000 (11:26 -0000)]
2005-12-12 Atsushi Enomoto <atsushi@ximian.com>
* XmlException.cs : added another .ctor() overload that takes both
IXmlLineInfo and innerException.
* XmlQualifiedName.cs : added Parse() overload that takes XmlReader
(since XmlReader is not IXmlNamespaceResolver anymore).
* XmlReader.cs : made several fixes on 2.0 ReadContentAs(),
ReadElementContentAs() and all of its variants.
* XmlReaderCommonTests.cs : added several tests for 2.0 methods.
svn path=/trunk/mcs/; revision=54230
Atsushi Eno [Mon, 12 Dec 2005 11:22:57 +0000 (11:22 -0000)]
2005-12-12 Atsushi Enomoto <atsushi@ximian.com>
* XsdValidatingReader.cs : it is not IXmlNamespaceResolver anymore.
svn path=/trunk/mcs/; revision=54229
Atsushi Eno [Mon, 12 Dec 2005 11:21:43 +0000 (11:21 -0000)]
2005-12-12 Atsushi Enomoto <atsushi@ximian.com>
* XslTransformTests.cs : (LocalParameter) [NotDotNet] should not have
been undone.
svn path=/trunk/mcs/; revision=54228
Konstantin Triger [Mon, 12 Dec 2005 09:52:31 +0000 (09:52 -0000)]
add NET_1_1 define
svn path=/trunk/mcs/; revision=54227
Raja R Harinath [Mon, 12 Dec 2005 08:19:42 +0000 (08:19 -0000)]
* AssemblyBuilderTest.cs (TestIsDefined): Make failure messages unique.
svn path=/trunk/mcs/; revision=54226
Ankit Jain [Mon, 12 Dec 2005 06:53:37 +0000 (06:53 -0000)]
* gen-1.il:New. Generic method reference.
* err-gen-2.il:
* err-gen-3.il: New. Negative tests for generic method refernce.
* global.il: New. Global generic method ref.
* gen-field.il: New. Generic field reference. (Compiles fine, but
will have PEVerify errors)
svn path=/trunk/mcs/; revision=54225
Raja R Harinath [Mon, 12 Dec 2005 04:34:20 +0000 (04:34 -0000)]
Fix thinko
svn path=/trunk/mono/; revision=54224
Raja R Harinath [Mon, 12 Dec 2005 04:33:33 +0000 (04:33 -0000)]
* class.c (set_generic_param_owner): Delete.
(mono_class_create_from_typedef): Don't set ->owner field of
generic parameters to "param containers" of base classes.
* reflection.c (mono_reflection_initialize_generic_parameter): Likewise.
svn path=/trunk/mono/; revision=54223
Raja R Harinath [Mon, 12 Dec 2005 04:02:34 +0000 (04:02 -0000)]
Update
svn path=/trunk/mcs/; revision=54222
Daniel Morgan [Sun, 11 Dec 2005 22:38:21 +0000 (22:38 -0000)]
REF CURSOR support. See ChangeLog for 2005-12-11 Daniel Morgan <danielmorgan@verizon.net>
svn path=/trunk/mcs/; revision=54216
Zoltan Varga [Sun, 11 Dec 2005 19:48:40 +0000 (19:48 -0000)]
2005-12-11 Zoltan Varga <vargaz@gmail.com>
* mini-amd64.c (emit_load_volatile_arguments): Load vtype address
as well.
* iltests.il: Make tail call test more complex.
svn path=/trunk/mono/; revision=54214
Chris Toshok [Sun, 11 Dec 2005 17:29:21 +0000 (17:29 -0000)]
2005-12-11 Chris Toshok <toshok@ximian.com>
* WebConfigurationManager.cs (OpenMachineConfiguration): just call
ConfigurationManager.OpenMachineConfiguration.
(OpenWebConfiguration): remove the "IntPtr userToken" version and
add a "string userName" version to clean up corcompare output.
Modify all the overloads to pass null instead of IntPtr.Zero.
(GetWebApplicationSection): if we're not running in a web
application, use the machine configuration.
svn path=/trunk/mcs/; revision=54213
Chris Toshok [Sun, 11 Dec 2005 16:47:43 +0000 (16:47 -0000)]
2005-12-11 Chris Toshok <toshok@ximian.com>
* ConnectionStringsSection.cs (..cctor): use "" instead of null
for the name of the default collection.
* AppSettingsSection.cs (..cctor): create a property for the
default collection.
(DeserializeElement): call base.DeserializeElement.
(File): index off the property, not the name.
(Settings): don't use an private variable here, use
base[_propSettings].
* ConfigurationManager.cs (GetSection): GetEntryAssembly returns
null for new app domains. so deal with this by calling
GetCallingAssembly if it's null. This is probably still wrong but
it doesn't NRE in xsp2.
(AppSettings): remove MonoTODO.
* KeyValueConfigurationElement.cs (..ctor): new method, create the
ConfigurationProperty's and the collection here.
(.ctor): add internal arg-less ctor.
(Key): use keyProp instead of "key".
(Value): use vlaueProp instead of "value".
(Properties): return our class's properties.
* KeyValueConfigurationCollection.cs (CreateNewElement): use the
arg-less ctor.
(GetElementKey): re-enable the BaseIndexOf test.
svn path=/trunk/mcs/; revision=54212
Zoltan Varga [Sun, 11 Dec 2005 13:58:15 +0000 (13:58 -0000)]
2005-12-11 Zoltan Varga <vargaz@gmail.com>
* reflection.c (custom_attr_visible): Fix build.
svn path=/trunk/mono/; revision=54210
Atsushi Eno [Sun, 11 Dec 2005 12:43:28 +0000 (12:43 -0000)]
2005-12-11 Atsushi Enomoto <atsushi@ximian.com>
* doc.cs : The search for referenced namespace was insufficient to
get global one as it used to do. Fixed bug #76965.
svn path=/trunk/mcs/; revision=54209
César Natarén [Sat, 10 Dec 2005 21:59:00 +0000 (21:59 -0000)]
2005-12-10 Cesar Lopez Nataren <cnataren@novell.com>
* runner.cs: Make the current direcory the place where we create
jstest.js, it's causing strange failures on my suse.10 using /tmp
for this purpose and it's easier to develop and test with new
configuration.
svn path=/trunk/mcs/; revision=54198
Zoltan Varga [Sat, 10 Dec 2005 21:17:08 +0000 (21:17 -0000)]
2005-12-10 Zoltan Varga <vargaz@gmail.com>
* MethodBuilderTest.cs: Add test for handling not accessible custom
attributes.
svn path=/trunk/mcs/; revision=54197
Zoltan Varga [Sat, 10 Dec 2005 21:16:27 +0000 (21:16 -0000)]
2005-12-10 Zoltan Varga <vargaz@gmail.com>
* reflection.c (mono_custom_attrs_from_builders): Avoid returning
private attributes.
svn path=/trunk/mono/; revision=54196
César Natarén [Sat, 10 Dec 2005 20:37:58 +0000 (20:37 -0000)]
2005-12-10 Florian Gross <flgr@ccan.de> and
Evan Briones <evan@evanbriones.com>
* ForIn.cs (JScriptGetEnumerator) : Returns a new IEnumerable GetEnumerator.
* JSObject.cs (JSObjectEnumerator) : Enumerates the property names.
* JScriptException.cs : Added NotCollection exception.
* Convert.cs (ToForInObject): If value isn't null
returns GlobalObject.Object.CreateInstance(value)
* LateBinding.cs : Added StringObject for getting and setting
object property
2005-12-10 Cesar Lopez Nataren <cnataren@novell.com>
svn path=/trunk/mcs/; revision=54195
Zoltan Varga [Sat, 10 Dec 2005 18:41:30 +0000 (18:41 -0000)]
2005-12-10 Zoltan Varga <vargaz@gmail.com>
* reflection.c (reflection_methodbuilder_to_mono_method): Fix
handling of null parameter defaults.
svn path=/trunk/mono/; revision=54194
Francisco Figueiredo Jr. [Sat, 10 Dec 2005 15:22:47 +0000 (15:22 -0000)]
2005-12-12 Francisco Figueiredo Jr. <fxjrlists@yahoo.com.br>
* Npgsql/NpgsqlCommand.cs: [bugzilla 76961] Fixed problem with ExecuteReader when using SchemaOnly and SingleRow behavior at same time. Thanks Kamil Skalski for feedback.
svn path=/trunk/mcs/; revision=54193
Atsushi Eno [Sat, 10 Dec 2005 12:03:06 +0000 (12:03 -0000)]
2005-12-10 Atsushi Enomoto <atsushi@ximian.com>
* doc.cs : check name in cref in the last phase that whether it is
namespace or not.
* test-xml-051.cs test-xml-051-ref.xml : new test for bug #76960.
* known-issues-gmcs : updated.
svn path=/trunk/mcs/; revision=54190
César Natarén [Sat, 10 Dec 2005 06:08:22 +0000 (06:08 -0000)]
2005-12-10 Cesar Lopez Nataren <cnataren@novell.com>
* mjs-most.tests: Enable ecma/Boolean/15.6.1.js,
ecma/Boolean/15.6.4.3-1.js, ecma/Boolean/15.6.4.3.js.
svn path=/trunk/mcs/; revision=54188
César Natarén [Sat, 10 Dec 2005 06:06:02 +0000 (06:06 -0000)]
2005-12-10 Cesar Lopez Nataren <cnataren@novell.com>
* CodeGenerator.cs: Add EmitAssignAsExp.
* expression.cs: Take care of uses of assigment in a expression
context; we must save the right-side value in a local and then
load the local. Added Assign.EmitAndReturnBuilder.
svn path=/trunk/mcs/; revision=54187
César Natarén [Sat, 10 Dec 2005 03:41:23 +0000 (03:41 -0000)]
update TODO
svn path=/trunk/mcs/; revision=54184
Zoltan Varga [Fri, 9 Dec 2005 22:42:19 +0000 (22:42 -0000)]
2005-12-09 Zoltan Varga <vargaz@gmail.com>
* basic-long.cs: Add i4->u8 test.
svn path=/trunk/mono/; revision=54174
Gonzalo Paniagua Javier [Fri, 9 Dec 2005 20:50:25 +0000 (20:50 -0000)]
2005-12-09 Gonzalo Paniagua Javier <gonzalo@ximian.com>
* CookieContainer.cs: fix matching of subdomains. Patch by Cyrille
Colin.
svn path=/trunk/mcs/; revision=54171
Atsushi Eno [Fri, 9 Dec 2005 18:16:07 +0000 (18:16 -0000)]
2005-12-09 Atsushi Enomoto <atsushi@ximian.com>
* cs-tokenizer.cs : reverted the latest change: it somehow broke
Mono.C5.
* known-issues-mcs : test-476 is broken (since the corresponding
patch is reverted.)
svn path=/trunk/mcs/; revision=54168
Atsushi Eno [Fri, 9 Dec 2005 16:37:22 +0000 (16:37 -0000)]
2005-12-09 Atsushi Enomoto <atsushi@ximian.com>
* XmlInputStream.cs :
Added Encoding property on NonBlockingStreamReader
* XmlTextReader.cs :
set Encoding property when it proceeds to xml declaration.
* XmlTextReaderTests.cs : added test for Encoding property.
svn path=/trunk/mcs/; revision=54166
Ankit Jain [Fri, 9 Dec 2005 13:33:36 +0000 (13:33 -0000)]
* MethodDef.cs (MethodDef.GenParamCount): typar_list can be null.
svn path=/trunk/mcs/; revision=54164
Zoltan Varga [Fri, 9 Dec 2005 13:17:53 +0000 (13:17 -0000)]
2005-12-09 Zoltan Varga <vargaz@gmail.com>
* objects.cs: Add tests for JIT intrinsic.
svn path=/trunk/mono/; revision=54163
Francisco Figueiredo Jr. [Fri, 9 Dec 2005 13:13:36 +0000 (13:13 -0000)]
2005-12-09 Francisco Figueiredo Jr. <fxjrlists@yahoo.com.br>
Npgsql/NpgsqlError.cs,
Npgsql/NpgsqlParameter.cs,
Npgsql/NpgsqlConnectionString.cs,
Npgsql/NpgsqlConnection.cs,
Npgsql/NpgsqlSchema.cs,
Npgsql/NpgsqlClosedState.cs,
Npgsql/NpgsqlCommand.cs,
Npgsql/NpgsqlState.cs,
Npgsql/NpgsqlAsciiRow.cs,
Npgsql/NpgsqlConnectorPool.cs,
Npgsql/NpgsqlConnector.cs,
Npgsql/NpgsqlQuery.cs,
Npgsql/NpgsqlRowDescription.cs,
Npgsql/NpgsqlCommandBuilder.cs,
Npgsql/NpgsqlDataReader.cs,
Npgsql/NpgsqlException.cs,
Npgsql/NpgsqlMediator.cs,
Npgsql/NpgsqlReadyState.cs,
Npgsql/NpgsqlEventLog.cs,
Npgsql.dll.resources,
NpgsqlTypes/NpgsqlTypeConverters.cs,
NpgsqlTypes/NpgsqlTypesHelper.cs,
Makefile: Updated to 1.0beta1
svn path=/trunk/mcs/; revision=54161
Ankit Jain [Fri, 9 Dec 2005 13:02:33 +0000 (13:02 -0000)]
In ilasm/codegen:
2005-12-09 Ankit Jain <jankit@novell.com>
* ITypeRef.cs (ITypeRef.GetMethodRef): Add 'gen_param_count' param.
* Sentinel.cs (Sentinel.GetMethodRef): Update.
* GlobalMethodRef.cs (GlobalMethodRef.ctor): Add 'gen_param_count' param.
(GlobalMethodRef.Resolve): Update usage of MethodDef.CreateSignature .
* TypeDef.cs (TypeDef.GetGenericParamNum): New.
(TypeDef.DefineContents): Update usage of ITypeRef.GetMethodRef .
* ExternTypeRefInst.cs (ExternTypeRefInst.ctor): Add parameter for list of type
parameters (type_list).
(ExternTypeRefInst.Clone): Clone type_list also.
(ExternTypeRefInst.Resolve): Resolve the list of type parameters, and create
instance of PEAPI.GenericTypeInst instead of PEAPI.ClassRefInst .
(ExternTypeRefInst.GetMethodRef): Update.
* GenericTypeInst.cs (GenericTypeInst.GetMethodRef): Update signature. Update
usage of TypeSpecMethodRef.ctor .
* MethodRef.cs (MethodRef.ctor): Add 'gen_param_count' param.
(MethodRef.Resolve): Throw exception for non-existant owner. Update usage of
MethodDef.CreateSignature .
* ExternMethodRef.cs (ExternMethodRef.ctor): Add 'gen_param_count' param.
(ExternMethodRef.Resolve): Update usage of PEFile.AddMethodToTypeSpec and .AddMethod
* GenericMethodRef.cs (GenericMethodRef.PeapiMethod): Return PEAPI.Method obtained in
.Resolve .
* GenericTypeRef.cs (GenericTypeRef.GetMethodRef): Update.
* MethodPointerTypeRef.cs (MethodPointerTypeRef.GetMethodRef): Likewise.
* TypeSpecMethodRef.cs (TypeSpecMethodRef.ctor): Add 'gen_param_count' param.
(TypeSpecMethodRef.Resolve): Update usage of PEFile.AddMethodToTypeSpec .
* MethodDef.cs (MethodDef.ctor): Add 'typars_list' param.
(MethodDef.AddGenericParam): Replace ..
(MethodDef.AddGenericParams): .. with this.
(MethodDef.GenParamCount): New.
(MethodDef.GetGenericParamNum): New. Returns index for a given method type parameter name.
(MethodDef.ResolveGenParams): Resolves type parameter names in the parameter
list to their corresponding indices.
(MethodDef.ResolveGenParam): Resolves a give type parameter to its corresponding
index.
(MethodDef.CreateSignature): Add 'gen_param_count' param.
* TypeRef.cs (TypeRef.GetMethodRef): Update.
* ExternTypeRef.cs (ExternTypeRef.GetMethodRef): Likewise.
* PrimitiveTypeRef.cs (PrimitiveTypeRef.GetMethodRef): Likewise.
In ilasm/parser:
2005-12-09 Ankit Jain <jankit@novell.com>
* ILParser.jay (class_decl | D_OVERRIDE ..): Update usage of ITypeRef.GetMethodRef
and MethodDef.CreateSignature .
(method_head | D_METHOD ..): Update usage of MethodDef.ctor .
Use MethodDef.ResolveGenParams to resolve VARs/MVARs in parameter list.
(type | K_CLASS slashed_name ..): Remove redundant rule.
(type | BANG id): New. Generic type parameter.
(type | BANG BANG id): New. Generic method type parameter.
(instr | INSTR_FIELD type ..): Resolve generic param for 'type'.
(method_ref | call_conv ..): Set MethodRef's GenParamCount.
(method_ref | call_conv type ..): Update usage of TypeSpecMethodRef.ctor and GetMethodRef.
(method_ref | call_conv type ..): New. Rule for global generic method refs.
(custom_type | call_conv ..): Update usage of GlobalMethodRef.ctor .
In class/PEAPI:
2005-12-09 Ankit Jain <jankit@novell.com>
* Metadata.cs (Method.ctor): Remove rType parameter.
(Method.GetRetType): Remove.
(Method.AddCallConv): Make it abstract.
(Method.GetSigIx): Likewise.
(MethodDef): Override and implement abstract methods from Method class.
(MethodRef): Likewise.
(MethodSpec): Change base class from MetaDataElement to Method. Override
abstract methods from Method but throw Exception as they are not meant to be used here.
(MethodDef.TypeSig): Write gen_param_count before num of params.
(ClassRef.AddMethod): New overload with an extra gen_param_count param.
* PEAPI.cs (PEFile.AddMethodToTypeSpec): New overload with an extra gen_param_count
param.
(PEFile.AddMethodSpec): Change return type from void to Method.
svn path=/trunk/mcs/; revision=54160
Raja R Harinath [Fri, 9 Dec 2005 12:48:52 +0000 (12:48 -0000)]
* anonymous.cs (AnonymousMethod.Compatible): Use IsGenericType
instead of IsGenericInstance.
* generic.cs (TypeManager.IsEqual): Likewise. Delete redundant
code that's now covered by the more general test.
* typemanager.cs (TypeManager.IsPrivateAccessible): Likewise.
svn path=/trunk/mcs/; revision=54159
Zoltan Varga [Fri, 9 Dec 2005 11:54:57 +0000 (11:54 -0000)]
2005-12-09 Zoltan Varga <vargaz@gmail.com>
* mini.c (mini_get_inst_for_method): Resurrect the array Rank/Length
optimizations lost by a mistake.
svn path=/trunk/mono/; revision=54158
Raja R Harinath [Fri, 9 Dec 2005 11:23:51 +0000 (11:23 -0000)]
* generic.cs (DropGenericTypeArguments): New. Captures the common
pattern: if (t.IsGenericInstance) t = t.GetGenericTypeDefinition ();
* attribute.cs, class.cs, decl.cs, ecore.cs: Use it.
* generic.cs, report.cs, typemanager.cs: Likewise.
svn path=/trunk/mcs/; revision=54157
Raja R Harinath [Fri, 9 Dec 2005 11:17:30 +0000 (11:17 -0000)]
* TypeTest.cs (TypeParameterIsNotGeneric): New. Test invariants
listed in MSDN docs.
svn path=/trunk/mcs/; revision=54156
Raja R Harinath [Fri, 9 Dec 2005 10:56:37 +0000 (10:56 -0000)]
* class.c (mono_class_from_generic_parameter): Don't set
klass->generic_container.
(my_mono_class_from_generic_parameter): Likewise.
svn path=/trunk/mono/; revision=54155
Atsushi Eno [Fri, 9 Dec 2005 10:55:25 +0000 (10:55 -0000)]
2005-12-09 Atsushi Enomoto <atsushi@ximian.com>
* doc.cs : so it turned out that we cannot skip override check for
interface members. Fixed bug #76954.
* test-xml-050-ref.xml, test-xml-050.cs : new test for bug #76954.
* known-issues-gmcs : fixed filename and removed test-60.cs.
svn path=/trunk/mcs/; revision=54154
Atsushi Eno [Fri, 9 Dec 2005 10:24:45 +0000 (10:24 -0000)]
2005-12-09 Atsushi Enomoto <atsushi@ximian.com>
* cs-tokenizer.cs : fixed bug #75984:
- #warning and #error should not be handled when the source line
is disabled.
- #line is not checked strictly when the source line is disabled.
- #define and #undef is on the other hand checked strictly at any
state.
* test-476.cs : test for bug #75984.
* test-60.cs : unrecognized directive should be handled as an error
even in a disable line (the behavior has changed in 2.0).
* known-issues-gmcs : added above cases.
svn path=/trunk/mcs/; revision=54153
Atsushi Eno [Fri, 9 Dec 2005 07:52:09 +0000 (07:52 -0000)]
2005-12-09 Atsushi Enomoto <atsushi@ximian.com>
* XmlReader.cs : ReadToDescendant() should work when its ReadState is
Initial.
* XmlReaderCommonTests.cs : added tests for ReadToDescendant() and
ReadToFollowing().
svn path=/trunk/mcs/; revision=54152
Atsushi Eno [Fri, 9 Dec 2005 06:43:34 +0000 (06:43 -0000)]
2005-12-09 Atsushi Enomoto <atsushi@ximian.com>
* XmlChar.cs : removed incorrect comment.
* XmlReader.cs : Create() clones XmlReaderSettings (if supplied).
For wrapped XmlReader, check ConformanceLevel to be consistent.
* XmlTextReader.cs, XmlTextReader2.cs : added get_Conformance for
internal use. Removed unused fields.
* XmlInputStream.cs : updated NonBlockingStreamReader to the latest
StreamReader (it is almost a copy).
* XmlReaderSettingsTests.cs : added some ConformanceLevel tests.
Added CreateClonesSettings() to make sure XmlReader.Create() clones
XmlReaderSettings.
svn path=/trunk/mcs/; revision=54151
César Natarén [Fri, 9 Dec 2005 02:14:10 +0000 (02:14 -0000)]
2005-12-08 Cesar Lopez Nataren <cnataren@novell.com>
* mjs-most.tests: Disable js1_4/Regress/function-001.js because
it causes hangs.
svn path=/trunk/mcs/; revision=54150
Sebastien Pouliot [Fri, 9 Dec 2005 02:09:43 +0000 (02:09 -0000)]
Add System.Globalization.DaylightTime and System.Runtime.Remoting.Contexts.SynchronizationAttribute unit tests to the build
svn path=/trunk/mcs/; revision=54149
Sebastien Pouliot [Fri, 9 Dec 2005 01:31:59 +0000 (01:31 -0000)]
2005-12-08 Sebastien Pouliot <sebastien@ximian.com>
* SynchronizationAttributeTest.cs: New. Serialization interop test cases.
svn path=/trunk/mcs/; revision=54147
Sebastien Pouliot [Fri, 9 Dec 2005 01:31:36 +0000 (01:31 -0000)]
2005-12-08 Sebastien Pouliot <sebastien@ximian.com>
* Context.cs: ContextProperties property is virtual.
* CrossContextDelegate.cs: Removed [Serializable] from 2.0 build.
* SynchronizationAttribute.cs: Fixed serialization to be compatible
with MS FX. Removed old TODO.
svn path=/trunk/mcs/; revision=54146
Sebastien Pouliot [Fri, 9 Dec 2005 01:27:46 +0000 (01:27 -0000)]
2005-12-08 Sebastien Pouliot <sebastien@ximian.com>
* DaylightTimeTest.cs: New. Serialization interop test cases.
svn path=/trunk/mcs/; revision=54145
Sebastien Pouliot [Fri, 9 Dec 2005 01:26:08 +0000 (01:26 -0000)]
2005-12-08 Sebastien Pouliot <sebastien@ximian.com>
* DaylightTime.cs: Fixed serialization to be compatible with MS FX.
Pre-requisite to fix bug #76094.
svn path=/trunk/mcs/; revision=54144
Sebastien Pouliot [Fri, 9 Dec 2005 01:21:13 +0000 (01:21 -0000)]
2005-12-08 Sebastien Pouliot <sebastien@ximian.com>
* AppDomainSetupTest.cs: Adapted tests to work on both Mono/MS and
both 1.1/2.0. Most of the previously "NonWorking" test cases were
really path issues (valid on Linux, invalid on Windows).
svn path=/trunk/mcs/; revision=54143
Peter Dennis Bartok [Fri, 9 Dec 2005 01:21:13 +0000 (01:21 -0000)]
2005-12-08 Peter Dennis Bartok <pbartok@novell.com>
* Form.cs: Removed commented out code
svn path=/trunk/mcs/; revision=54142
Peter Dennis Bartok [Fri, 9 Dec 2005 01:18:46 +0000 (01:18 -0000)]
- Removed todo
svn path=/trunk/mcs/; revision=54140
Sebastien Pouliot [Fri, 9 Dec 2005 01:18:46 +0000 (01:18 -0000)]
2005-12-08 Sebastien Pouliot <sebastien@ximian.com>
* AppDomainSetup.cs: ApplicationBase throw exception on get (not on
set). New behaviour is more like MS - but most issues (unit tests)
were really path issues. Fix bug #71291.
* DateTime.cs: Add more information when throwing an exception in
ctor(long). Useful for debugging.
svn path=/trunk/mcs/; revision=54139
Peter Dennis Bartok [Fri, 9 Dec 2005 01:17:53 +0000 (01:17 -0000)]
2005-12-08 Peter Dennis Bartok <pbartok@novell.com>
* Control.cs:
- Added internal version of Invoke, with additional argument
indicating if we're calling it from a Dispose() handler. That
way we can avoid BeginInvoke throwing an exception if we're
calling for an already destroyed window.
- Added a dispose argument to BeginInvokeInternal, and made the
check if a valid window handle chain exists conditional on
it not being a dispose call
- Removed code in DestroyHandle to destroy our children. Since we
now handle the WM_DESTROY message we will catch all our children
being destroyed.
- Now calling OnHandleDestroyed from our new WM_DESTROY handler
* Form.cs:
- Added a field to track the application context of the form.
- No need to set closing variable as response to WM_CLOSE, instead
we destroy the window. We also call PostQuitMessage if the form
has an application context (which makes it the main app form,
which, when closed terminates the app)
* XplatUI.cs:
- Dropped Exit() method, it's naming was confusing
- Added PostQuitMessage() which causes GetMessage to return false
once the message queue is empty
* XplatUIDriver.cs, XplatUIWin32.cs: Dropped Exit(), added
PostQuitMessage()
* XplatUIOSX.cs: Switched signature for Exit method since Exit() is
no longer a valid XplatUI method, but left it in since it's used
internally. Added empty PostQuitMessage() method.
* MenuAPI.cs: Replaced call to Exit() with call to
PostQuitMessage, even though this is probably no longer needed.
* Hwnd.cs: Added 'pretty' ToString() to support debugging.
* X11Structs.cs: Added pretty XEvent.ToString() to support debugging.
* Application.cs:
- Replaced call to XplatUI.Exit() with PostQuitMessage()
- Removed old debug code that would call XplatUI for exception
display, enabled standard exception handling (Still not enabled
though, until NativeWindow's ExternalExceptionHandler define
is removed
* NativeWindow.cs:
- Added internal method to allow control to update NativeWindow
after a window has been destroyed
- Added handling of already destroyed windows when calling i
DestroyWindow
- Added removal of handle from list on ReleaseHandle
* XplatUIX11.cs:
- Dropped GetMessageResult var and related code
- Added PostQuitState to field to track if PostQuitMessage has been
called
- Dropped Exit() method
- Added PostQuitMessage() method
- GetMessage now will return false if PostQuitState is set and no
more messages are in the queue.
- Expose handler will no longer generate WM_PAINT messages if we are
in PostQuitState since it's very likely any windows have already
been destroyed, and since Hwnd won't get updated until we have
processed the DestroyNotify we'd be causing X errors.
svn path=/trunk/mcs/; revision=54138
Gonzalo Paniagua Javier [Thu, 8 Dec 2005 23:20:52 +0000 (23:20 -0000)]
Better yet. Thanks to Gert for watching.
svn path=/trunk/mcs/; revision=54137
Gonzalo Paniagua Javier [Thu, 8 Dec 2005 21:36:13 +0000 (21:36 -0000)]
2005-12-08 Gonzalo Paniagua Javier <gonzalo@ximian.com>
* HttpRequestTest.cs: ignore test.
svn path=/trunk/mcs/; revision=54129
Gonzalo Paniagua Javier [Thu, 8 Dec 2005 21:28:02 +0000 (21:28 -0000)]
2005-12-08 Gonzalo Paniagua Javier <gonzalo@ximian.com>
* DropDownList.cs: HtmlEncode the item text. Fixes bug #76949.
svn path=/trunk/mcs/; revision=54128
Gonzalo Paniagua Javier [Thu, 8 Dec 2005 18:17:48 +0000 (18:17 -0000)]
2005-12-08 Gonzalo Paniagua Javier <gonzalo@ximian.com>
* HttpWebResponse.cs: don't loop forever when no name or value between
semicolons. Fixes bug #76943.
svn path=/trunk/mcs/; revision=54118
Gonzalo Paniagua Javier [Thu, 8 Dec 2005 18:06:28 +0000 (18:06 -0000)]
2005-12-08 Robert Jordan <robertj@gmx.net>
* MimeTypes.cs: added entry for "jpg".
svn path=/trunk/mcs/; revision=54117
Atsushi Eno [Thu, 8 Dec 2005 17:51:19 +0000 (17:51 -0000)]
2005-12-08 Atsushi Enomoto <atsushi@ximian.com>
* XmlTextReader.cs : avoid Char.IsSurrogate() and do it inside
PeekChar(), which improves notable performance.
svn path=/trunk/mcs/; revision=54116
Martin Baulig [Thu, 8 Dec 2005 17:11:21 +0000 (17:11 -0000)]
New CS1547 test case.
svn path=/trunk/mcs/; revision=54115
Martin Baulig [Thu, 8 Dec 2005 17:11:03 +0000 (17:11 -0000)]
Updated error messages.
svn path=/trunk/mcs/; revision=54114
Martin Baulig [Thu, 8 Dec 2005 17:06:56 +0000 (17:06 -0000)]
2005-12-08 Martin Baulig <martin@ximian.com>
* generic.cs (TypeArguments.Resolve): Added CS1547 check.
* typemanager.cs (TypeManager.CSharpSignature): Include type
arguments in the signature of a generic method.
svn path=/trunk/mcs/; revision=54113
Atsushi Eno [Thu, 8 Dec 2005 12:51:32 +0000 (12:51 -0000)]
2005-12-08 Atsushi Enomoto <atsushi@ximian.com>
* UTF8Encoding.cs : (GetChars) let ABCREM work effectively.
svn path=/trunk/mcs/; revision=54111
Atsushi Eno [Thu, 8 Dec 2005 11:59:32 +0000 (11:59 -0000)]
2005-12-08 Atsushi Enomoto <atsushi@ximian.com>
* Encoding.cs : now under 2.0 GetBytes(string,...) dispatches to
byte*-based GetBytes().
* UTF8Encoding.cs : avoid extraneous DecoderFallbackBuffer creation
which came to happen after introducing fallback buffer.
svn path=/trunk/mcs/; revision=54109
Atsushi Eno [Thu, 8 Dec 2005 09:48:38 +0000 (09:48 -0000)]
2005-12-08 Atsushi Enomoto <atsushi@ximian.com>
* XmlReaderSettings.cs : Schemas will be created only when it is
required.
svn path=/trunk/mcs/; revision=54105
Andrew Skiba [Thu, 8 Dec 2005 09:32:16 +0000 (09:32 -0000)]
update GH project, delete TARGET_JVM from IXmlNamespaceResolver
svn path=/trunk/mcs/; revision=54103
Atsushi Eno [Thu, 8 Dec 2005 08:43:34 +0000 (08:43 -0000)]
2005-12-08 Atsushi Enomoto <atsushi@ximian.com>
* Driver.cs, Profiler.cs, XmlQualifiedNameTable.cs :
removed old code.
svn path=/trunk/mcs/; revision=54102
Atsushi Eno [Thu, 8 Dec 2005 08:40:59 +0000 (08:40 -0000)]
2005-12-08 Atsushi Enomoto <atsushi@ximian.com>
* XPathDocument2.cs, XPathDocument2Editable.cs,
XPathDocument2Navigator.cs : garbage cleanup.
svn path=/trunk/mcs/; revision=54101
Atsushi Eno [Thu, 8 Dec 2005 08:38:05 +0000 (08:38 -0000)]
2005-12-08 Atsushi Enomoto <atsushi@ximian.com>
* XPathDocument.cs : garbage cleanup.
svn path=/trunk/mcs/; revision=54100
Gonzalo Paniagua Javier [Thu, 8 Dec 2005 08:17:29 +0000 (08:17 -0000)]
2005-12-08 Gonzalo Paniagua Javier <gonzalo@ximian.com>
* Control.cs: use _controls instead of the property wherever possible.
svn path=/trunk/mcs/; revision=54099
Atsushi Eno [Thu, 8 Dec 2005 08:15:30 +0000 (08:15 -0000)]
2005-12-08 Atsushi Enomoto <atsushi@ximian.com>
* XmlSchemaSet.cs :
Turned out that it also has set_CompilationSettings.
* XmlSchemaComplexType. : thus CompilationSettings is nullable, we
have to check its existence.
* XmlSchemaSetTests.cs : added set_CompilationSettings tests.
svn path=/trunk/mcs/; revision=54098
Atsushi Eno [Thu, 8 Dec 2005 07:29:54 +0000 (07:29 -0000)]
2005-12-08 Atsushi Enomoto <atsushi@ximian.com>
* XmlSchema.cs : Compile() are obsoleted in 2.0.
svn path=/trunk/mcs/; revision=54097
Atsushi Eno [Thu, 8 Dec 2005 07:27:53 +0000 (07:27 -0000)]
2005-12-08 Atsushi Enomoto <atsushi@ximian.com>
* XmlSchemaDatatype.cs : TypeCode is virtual in 2.0 RTM.
svn path=/trunk/mcs/; revision=54096
Atsushi Eno [Thu, 8 Dec 2005 07:11:03 +0000 (07:11 -0000)]
2005-12-08 Atsushi Enomoto <atsushi@ximian.com>
* XmlSchemaValidationException.cs :
oops, there is SourceObject other than SourceSchemaObject.
* XmlSchemaCompilationSettings.cs : oops, actually XmlSchemaSet is
also used in 1.x profile (internally)
* XmlSchemaSimpleTypeList.cs : added set_BaseItemType bogus (just to
fill API compatibility).
svn path=/trunk/mcs/; revision=54095
Atsushi Eno [Thu, 8 Dec 2005 06:56:12 +0000 (06:56 -0000)]
2005-12-08 Atsushi Enomoto <atsushi@ximian.com>
* System.Xml.dll.sources : added XmlSchemaCompilationSettings.cs
* XmlReaderSettings.cs : thanks to idiotic MS design,
AllowXmlAttributes is turned on by default.
* XmlSchemaCompilationSettings.cs : new file.
* XmlSchemaSet.cs : added CompilationSettings property.
* XmlSchemaComplexType.cs : support for EnableUpaCheck.
* XmlReaderSettingsTests.cs : (DefaultValue)
Added assertion label everywhere.
* XmlWriterTests.cs : WriteNodeError is broken under MS.NET 2.0 (it
should cause an error).
* XmlSchemaSetTests.cs : added CompilationSettings tests.
svn path=/trunk/mcs/; revision=54094
Atsushi Eno [Thu, 8 Dec 2005 05:53:02 +0000 (05:53 -0000)]
2005-12-08 Atsushi Enomoto <atsushi@ximian.com>
* XmlReaderSettings.cs :
set_Schemas() is fixed in 2.0 RTM (it just works).
* XmlResolver.cs : throw ArgumentNullException instead of
ArgumentException when both base and relative urls are null.
* XmlReaderSettingsTests.cs : SetSchemas() should not cause an error.
Added SetSchemasNull() as well.
* XmlUrlResolverTests.cs : (ResolveUriWithNullArgs)
expect ArgumentNullException instead of ArgumentException.
This is a fix in .NET 2.0.
svn path=/trunk/mcs/; revision=54093
Atsushi Eno [Thu, 8 Dec 2005 04:38:01 +0000 (04:38 -0000)]
2005-12-08 Atsushi Enomoto <atsushi@ximian.com>
* XmlSchemaValidationException.cs : added SetSourceObject() which
is just for API compat (it does nothing on MS.NET).
Removed #if NET_2_0 inside #if NET_2_0.
* XsdParticleValidationTests.cs : ValidateRootElementOnlyInvalid()
does not throw validation exception under MS 2.0, this NotDotNet.
svn path=/trunk/mcs/; revision=54092
Atsushi Eno [Thu, 8 Dec 2005 04:34:01 +0000 (04:34 -0000)]
2005-12-08 Atsushi Enomoto <atsushi@ximian.com>
* cs-tokenizer.cs : missing Location (actually, filename) in one of
CS1027 report.
svn path=/trunk/mcs/; revision=54091
Atsushi Eno [Thu, 8 Dec 2005 04:06:22 +0000 (04:06 -0000)]
2005-12-08 Atsushi Enomoto <atsushi@ximian.com>
* XmlReaderSettings.cs : ProhibitDtd is set as default.
* XmlWriterSettings.cs : no set_OutputMethod.
* XmlReaderCommonTests.cs : use ProhibitDtd=false in CreateSimple()
and added CreateSimpleProhibitDtd().
svn path=/trunk/mcs/; revision=54090
Peter Dennis Bartok [Thu, 8 Dec 2005 03:14:21 +0000 (03:14 -0000)]
2005-12-07 Peter Dennis Bartok <pbartok@novell.com>
* Control.cs(WndProc): Apparently I'm suffering from brain cloud.
Thanks to Mike for pointing out the err of my ways.
svn path=/trunk/mcs/; revision=54089
Peter Dennis Bartok [Thu, 8 Dec 2005 00:53:44 +0000 (00:53 -0000)]
* Control.cs(PreProcessMessage): Moved menu handling back, but
after all other key handling, to match MS (who handles Menu in
DefWndProc)
* Menu.cs (WndProc): Removed my brainfart
2005-12-07 Peter Dennis Bartok <pbartok@novell.com>
svn path=/trunk/mcs/; revision=54085
Peter Dennis Bartok [Wed, 7 Dec 2005 23:53:48 +0000 (23:53 -0000)]
2005-12-07 Peter Dennis Bartok <pbartok@novell.com>
* Control.cs(PreProcessMessage): Removed special menu handling
* Menu.cs (WndProc): Added handling of WM_SYSKEYUP for menu purposes.
svn path=/trunk/mcs/; revision=54084
Mike Kestner [Wed, 7 Dec 2005 22:44:34 +0000 (22:44 -0000)]
2005-12-07 Mike Kestner <mkestner@novell.com>
* Control.cs : special case SYSKEYUP so that we can adjust keynav
state according in tracker.
* Menu.cs : promote tracker field to base class and provide a tracker
lookup capability. Add/Remove shortcuts dynamically if the top menu
has a tracker. Unparent items that are removed from the collection.
* MenuAPI.cs : implement mnemonic, shortcut, and arrow-based keynav.
* Theme*.cs: add always_show_hotkeys field to support configurability
of mnemonic display. win32 doesn't show mnemonics until Alt is
pressed.
svn path=/trunk/mcs/; revision=54077