Vladimir Krasnov [Mon, 20 Feb 2006 17:10:07 +0000 (17:10 -0000)]
fixed AreEqualAttribs to make attribute compare case insensitive
svn path=/trunk/mcs/; revision=57074
Vladimir Krasnov [Mon, 20 Feb 2006 16:29:28 +0000 (16:29 -0000)]
* ListControl.cs: fixed DataSource property, to throw
ArgumentException on incorrect value
svn path=/trunk/mcs/; revision=57073
Vladimir Krasnov [Mon, 20 Feb 2006 16:09:20 +0000 (16:09 -0000)]
Image.cs: fixed missing border="0" attribute, when image has style, but border width is not specified.
svn path=/trunk/mcs/; revision=57072
Vladimir Krasnov [Mon, 20 Feb 2006 15:45:42 +0000 (15:45 -0000)]
* CheckBox.cs: fixed InternalAddAttributesToRender, Render to
correct the "disabled" attribute in CheckBoxList
* CheckBoxList.cs: fixed RenderItem, to correct the "disabled" attribute in CheckBoxList
svn path=/trunk/mcs/; revision=57071
Vladimir Krasnov [Mon, 20 Feb 2006 15:01:46 +0000 (15:01 -0000)]
CheckBox.cs: fixed Render function, removed rendering of empty <span> element if ControlStyleCreated but it's empty.
fixed "disabled" attribute, it should be placed into span element
svn path=/trunk/mcs/; revision=57070
Atsushi Eno [Mon, 20 Feb 2006 15:00:34 +0000 (15:00 -0000)]
2006-02-20 Atsushi Enomoto <atsushi@ximian.com>
* EntityResolvingXmlReader.cs, XmlNodeReader2.cs, XmlTextReader2.cs :
in get_NodeType() entity reader existence check is faster.
* DTDValidatingReader2.cs : IsDefault could be avoided.
svn path=/trunk/mcs/; revision=57069
Vladimir Krasnov [Mon, 20 Feb 2006 14:43:58 +0000 (14:43 -0000)]
BoundColumn.cs: fixed InitializeCell function, if DataField is null or empty string, the cell should not be bound.
svn path=/trunk/mcs/; revision=57068
Atsushi Eno [Mon, 20 Feb 2006 14:35:40 +0000 (14:35 -0000)]
2006-02-20 Atsushi Enomoto <atsushi@ximian.com>
* XmlNodeReaderImpl.cs : optimized Depth.
svn path=/trunk/mcs/; revision=57067
Ankit Jain [Mon, 20 Feb 2006 13:03:47 +0000 (13:03 -0000)]
In ilasm/tests:
* generics-al.i, test-29.il: Remove. These use invalid style of
specifying generic constraints.
In ilasm/scanner:
* ILTable.cs (directives): Remove .constraint
In ilasm/parser:
* ILParser.jay: Remove D_CONSTRAINT
svn path=/trunk/mcs/; revision=57065
Atsushi Eno [Mon, 20 Feb 2006 13:02:16 +0000 (13:02 -0000)]
2006-02-20 Atsushi Enomoto <atsushi@ximian.com>
* XmlValidatingReader.cs : reducing layered ReadState invocation
results in 10% speed up.
svn path=/trunk/mcs/; revision=57064
Ankit Jain [Mon, 20 Feb 2006 12:31:13 +0000 (12:31 -0000)]
Display error messages instead of stack traces.
In ilasm/codegen:
2006-02-20 Ankit Jain <jankit@novell.com>
* *.cs: Update all .cs files to use Report.Error instead of directly
throwing an exception.
* CodeGen.cs (CodeGen.ctor): Remove 'report' param, and the related
field & property.
In ilasm:
2006-02-20 Ankit Jain <jankit@novell.com>
* Report.cs (Report): Make all methods,fields static.
(Report.Error): Update to throw ILAsmException.
(ILAsmException): New.
(InternalErrorException): New. Derive from ILAsmException.
* Driver.cs (Driver.Run): Catch ILAsmException and PEFileException and
print error messages instead of dumping the stack trace, and delete the
output file if CodeGen.Write() fails.
Move the check for entrypoint from CodeGen.Write to here.
In ilasm/scanner:
2006-02-20 Ankit Jain <jankit@novell.com>
* ILTokenizingException.cs (ILTokenizingException): Derive from
ILAsmException.
In ilasm/parser:
2006-02-20 Ankit Jain <jankit@novell.com>
* ILParser.jay: Update to use Report.Error instead of directly throwing
an exception.
In class/PEAPI:
2006-02-20 Ankit Jain <jankit@novell.com>
* PEAPI.cs (PEFileException): Update error message.
* Metadata.cs: Update to throw PEFileException instead of Exception.
svn path=/trunk/mcs/; revision=57063
Atsushi Eno [Mon, 20 Feb 2006 12:18:54 +0000 (12:18 -0000)]
2006-02-20 Atsushi Enomoto <atsushi@ximian.com>
* XmlNodeReaderImpl.cs : Reimplemented Read(). Points are:
- reduced call to NextSibling which is very unlikely to be inlined
- reorganized conditioning to avoid extra check
- added description on each returning branch.
- And then, removed unused code.
It is 1.5x faster than before.
svn path=/trunk/mcs/; revision=57062
Paolo Molaro [Mon, 20 Feb 2006 10:20:48 +0000 (10:20 -0000)]
Mon Feb 20 11:19:54 CET 2006 Paolo Molaro <lupus@ximian.com>
* MonoType.cs: patch from Joachim Ante <joe@otee.dk> to
improve error messages.
svn path=/trunk/mcs/; revision=57061
Paolo Molaro [Mon, 20 Feb 2006 09:38:29 +0000 (09:38 -0000)]
Mon Feb 20 10:37:57 CET 2006 Paolo Molaro <lupus@ximian.com>
* mini.c: more verification checks.
svn path=/trunk/mono/; revision=57060
Zoltan Varga [Sun, 19 Feb 2006 18:09:33 +0000 (18:09 -0000)]
2006-02-19 Zoltan Varga <vargaz@gmail.com>
* CodeDomProvider.cs: Fix the [ToolboxItem] attribute. Fixes #77513.
svn path=/trunk/mcs/; revision=57052
Konstantin Triger [Sun, 19 Feb 2006 18:05:18 +0000 (18:05 -0000)]
follow JDBC provider generic adapter mechanism
svn path=/trunk/mcs/; revision=57051
Konstantin Triger [Sun, 19 Feb 2006 17:30:11 +0000 (17:30 -0000)]
added JDBC provider generic adapter mechanism
svn path=/trunk/mcs/; revision=57048
Ankit Jain [Sun, 19 Feb 2006 14:49:12 +0000 (14:49 -0000)]
* ExternTable.cs (ExternTable.GetModuleTypeRef): 'module_table' can be
null.
svn path=/trunk/mcs/; revision=57046
Ankit Jain [Sun, 19 Feb 2006 13:59:36 +0000 (13:59 -0000)]
In ilasm/tests:
* invalid-method.il: New. Reference to undefined method.
* invalid-field.il: New. Reference to undefined field.
In ilasm/codegen:
* CodeGen.cs (CodeGen.Write): Use only filename as the name of the
module.
* TypeDef.cs (TypeDef.ResolveAsMethodRef): New.
(TypeDef.ResolveMethod): Change signature to take ret_type, params
etc instead of a signature string. Also, if the method does not exist,
then use ResolveAsMethodRef to return a MethodRef for it.
(TypeDef.ResolveVarargMethod): Likewise.
(TypeDef.ResolveField): Likewise.
* MethodRef.cs (MethodRef.Resolve): Update use of TypeDef.Resolve*
methods.
* FieldRef.cs (FieldRef.Resolve): Update use of TypeDef.ResolveField.
* PropertyDef.cs (PropertyDef.AsMethodDef): Throws an exception is the
method is not a MethodDef.
(PropertyDef.Define): Use AsMethodDef to ensure that get/set/other are
MethodDefs.
* EventDef.cs (EventDef.AsMethodDef): Same as PropertyDef.
(EventDef.Define): Likewise.
svn path=/trunk/mcs/; revision=57045
Ankit Jain [Sun, 19 Feb 2006 10:40:06 +0000 (10:40 -0000)]
In ilasm/codegen:
* CodeGen.cs (CodeGen.ThisModule): New.
(CodeGen.Write): Set module name if not set by '.module' directive.
* Module.cs: Inherit from ExternRef.
In class/PEAPI:
* Metadata.cs (Module): Implment IExternRef to allow reference to types
in 'this' module.
svn path=/trunk/mcs/; revision=57044
Raja R Harinath [Sun, 19 Feb 2006 07:31:38 +0000 (07:31 -0000)]
* metadata.c (mono_type_create_from_typespec): Rename from
mono_type_create_from_typespec_full. Remove MonoGenericContainer*
argument and caching of types in the generic container.
(unwrap_arrays, find_generic_param): Remove.
* metadata-internals.h: Update.
* class-internals.h (_MonoGenericContainer): Remove 'types' field.
The last in the series of cleanups to typespec handling. The caching
of types in the generic container was buggy wrt byref types, and the
only call-site of this function is prepared to handle owner-less
generic params/insts.
svn path=/trunk/mono/; revision=57043
Zoltan Varga [Sat, 18 Feb 2006 22:04:32 +0000 (22:04 -0000)]
2006-02-18 Zoltan Varga <vargaz@gmail.com>
* class.c (mono_class_get_exception_for_failure): Fix a warning.
* marshal.c (mono_marshal_emit_native_wrapper): Handle FNPTR args and
return values. Fixes #77581.
* class.c (mono_fnptr_class_get): Switch name and name_space.
svn path=/trunk/mono/; revision=57039
Zoltan Varga [Sat, 18 Feb 2006 20:36:41 +0000 (20:36 -0000)]
2006-02-18 Zoltan Varga <vargaz@gmail.com>
* libtest.c pinvoke2.cs: Add tests for asany marshalling and directional
attributes.
svn path=/trunk/mono/; revision=57038
Zoltan Varga [Sat, 18 Feb 2006 20:36:03 +0000 (20:36 -0000)]
2006-02-18 Zoltan Varga <vargaz@gmail.com>
* marshal.c (mono_marshal_asany): Fix marshalling of blittable formatted
classes and add support for [In, Out] attributes.
(mono_marshal_free_asany): Ditto. Fixes #77524.
svn path=/trunk/mono/; revision=57037
Duncan Mak [Sat, 18 Feb 2006 19:35:35 +0000 (19:35 -0000)]
2006-02-18 Duncan Mak <duncan@novell.com>
* Graphics.cs (DrawBeziers): Patch from Alexander Olk to fix
possible IndexOutOfRangeException.
svn path=/trunk/mcs/; revision=57036
Raja R Harinath [Sat, 18 Feb 2006 19:01:42 +0000 (19:01 -0000)]
* Uri.cs (InternalEquals): New helper.
(Equals, operator ==): Use it.
(operator !=): Likewise. Fix to actually compare operands.
svn path=/trunk/mcs/; revision=57035
Raja R Harinath [Sat, 18 Feb 2006 18:35:41 +0000 (18:35 -0000)]
Disable Mono.C5 in 'make check'.
svn path=/trunk/mcs/; revision=57034
Raja R Harinath [Sat, 18 Feb 2006 18:23:45 +0000 (18:23 -0000)]
* DbConnectionStringBuilder.cs (ICollection.CopyTo): Use
_dictionary, not 'this' in cast.
svn path=/trunk/mcs/; revision=57033
Raja R Harinath [Sat, 18 Feb 2006 17:56:59 +0000 (17:56 -0000)]
* DbConnectionStringBuilderTest.cs
(ICollectionCopyToTest, NegICollectionCopyToTest): Enable.
(IDictionaryCopyToTest, NegIDictionaryCopyToTest): Delete.
svn path=/trunk/mcs/; revision=57032
Atsushi Eno [Sat, 18 Feb 2006 16:40:11 +0000 (16:40 -0000)]
2006-02-18 Atsushi Enomoto <atsushi@ximian.com>
* CustomDataClassGenerator.cs : Patch by Marek Habersack. xsd now
outputs AutoIncrement, AutoIncrementSeed, AutoIncrementStep and
ReadOnly properties. This fixes bug #77576.
svn path=/trunk/mcs/; revision=57031
Raja R Harinath [Sat, 18 Feb 2006 16:35:17 +0000 (16:35 -0000)]
* get.c (get_typespec): Don't use mono_type_create_from_typespec_full().
Use get_type() instead.
(get_type): Add 'is_def' parameter.
(get_field_signature, get_ret_type, get_param): Update.
* dump.c (dump_table_property): Likewise.
* get.h (get_type): Update prototype.
svn path=/trunk/mono/; revision=57030
Raja R Harinath [Sat, 18 Feb 2006 16:24:57 +0000 (16:24 -0000)]
* class.c (mono_class_from_generic_parameter): Make more robust to
incomplete MonoGenericContainers from monodis.
svn path=/trunk/mono/; revision=57029
Raja R Harinath [Sat, 18 Feb 2006 06:01:34 +0000 (06:01 -0000)]
* TypeTest.cs (ByrefType): New.
svn path=/trunk/mcs/; revision=57028
Alp Toker [Sat, 18 Feb 2006 03:33:01 +0000 (03:33 -0000)]
2006-02-18 Alp Toker <alp@atoker.com>
* UnixEndPoint.cs: Avoid truncation of last two bytes of SocketAddress
string
svn path=/trunk/mcs/; revision=57026
Chris Toshok [Fri, 17 Feb 2006 20:34:22 +0000 (20:34 -0000)]
In System.Data.OleDb:
* OleDbDataAdapter.cs, OleDbCommand.cs, OleDbParameter.cs,
OleDbCommandBuilder.cs, OleDbConnection.cs: remove
DataSysDescriptions for >= 2.0.
2006-02-17 Chris Toshok <toshok@ximian.com>
In System.Data.SqlClient:
* SqlCommand.cs, SqlCommandBuilder.cs, SqlConnection.cs,
SqlDataAdapter.cs: remove DataSysDescription attributes for >= 2.0
2006-02-17 Chris Toshok <toshok@ximian.com>
In System.Data:
* System.Data/DataSet.cs, System.Data/DataView.cs,
System.Data/ForeignKeyConstraint.cs,
System.Data/DataViewManager.cs, System.Data/DataRow.cs,
System.Data/DataSysDescriptionAttribute.cs,
System.Data/UniqueConstraint.cs, System.Data/DataTable.cs,
System.Data/DataRelation.cs: lots of attribute work, removing
DataSysDescription atributes (and marking the class obsolete) for
2.0.
2006-02-17 Chris Toshok <toshok@ximian.com>
svn path=/trunk/mcs/; revision=57018
Chris Toshok [Fri, 17 Feb 2006 20:11:29 +0000 (20:11 -0000)]
2006-02-17 Chris Toshok <toshok@ximian.com>
* DbDataAdapter.cs: more 2.0 cleanup.
svn path=/trunk/mcs/; revision=57017
Chris Toshok [Fri, 17 Feb 2006 19:49:17 +0000 (19:49 -0000)]
2006-02-17 Chris Toshok <toshok@ximian.com>
* DataAdapter.cs, DataColumnMappingCollection.cs,
DataColumnMapping.cs, DataTableMappingCollection.cs,
DataTableMapping.cs, DbCommandBuilder.cs,
DbConnectionStringBuilder.cs, DbParameterCollection.cs,
DbParameter.cs: pretty major attribute work.
svn path=/trunk/mcs/; revision=57016
Paolo Molaro [Fri, 17 Feb 2006 19:09:05 +0000 (19:09 -0000)]
Updates.
svn path=/trunk/mono/; revision=57012
Atsushi Eno [Fri, 17 Feb 2006 19:03:46 +0000 (19:03 -0000)]
2006-02-17 Atsushi Enomoto <atsushi@ximian.com>
* XmlElement.cs : NextSibling could be effectively computed using
LastLinkedChild, beyond previous XmlLinkedNode optimization.
svn path=/trunk/mcs/; revision=57011
Chris Toshok [Fri, 17 Feb 2006 18:52:44 +0000 (18:52 -0000)]
2006-02-17 Chris Toshok <toshok@ximian.com>
* DataAdapterException.cs: remove this file.
svn path=/trunk/mcs/; revision=57010
Chris Toshok [Fri, 17 Feb 2006 18:52:33 +0000 (18:52 -0000)]
2006-02-17 Chris Toshok <toshok@ximian.com>
* System.Data.dll.sources: remove
System.Data/DataAdapterException.cs, and add
System.Data.Common/SupportedJoinOperators.cs.
svn path=/trunk/mcs/; revision=57009
Chris Toshok [Fri, 17 Feb 2006 18:50:48 +0000 (18:50 -0000)]
2006-02-17 Chris Toshok <toshok@ximian.com>
* DbProviderFactory.cs: remove two methods. and mark the
DbProviderSupportedClasses ctor as internal since it's not part of
the public api.
* DbTable.cs: remove this class from 2.0 build.. leave it for the
JVM build, I guess?
* RowUpdatingEventArgs.cs: this class isn't abstract in 2.0.
* RowUpdatedEventArgs.cs: this class isn't abstract in 2.0.
* SupportedJoinOperators.cs: new 2.0 enum.
* CatalogLocation.cs: fix enum values.
* GroupByBehavior.cs: same.
* IdentifierCase.cs: same.
* SchemaTableColumn.cs: class is static, not sealed. and add
missing elements.
* SchemaTableOptionalColumn.cs: same.
svn path=/trunk/mcs/; revision=57008
Paolo Molaro [Fri, 17 Feb 2006 18:48:13 +0000 (18:48 -0000)]
Fri Feb 17 19:47:29 CET 2006 Paolo Molaro <lupus@ximian.com>
* mini.c: added a few more verification checks.
svn path=/trunk/mono/; revision=57007
Paolo Molaro [Fri, 17 Feb 2006 18:46:56 +0000 (18:46 -0000)]
Fri Feb 17 16:10:34 CET 2006 Paolo Molaro <lupus@ximian.com>
* class-internals.h: added some more exception types.
* class.c, metadata.c: added a few checks to handle missing
types.
svn path=/trunk/mono/; revision=57006
Atsushi Eno [Fri, 17 Feb 2006 18:37:58 +0000 (18:37 -0000)]
2006-02-17 Atsushi Enomoto <atsushi@ximian.com>
* XmlLinkedNode.cs : In NextSibling, use LastChild directly.
It improves NextSibling performance in bulky document.
svn path=/trunk/mcs/; revision=57005
Paolo Molaro [Fri, 17 Feb 2006 18:29:29 +0000 (18:29 -0000)]
Fix compilation.
svn path=/trunk/mcs/; revision=57004
Chris Toshok [Fri, 17 Feb 2006 18:21:25 +0000 (18:21 -0000)]
2006-02-17 Chris Toshok <toshok@ximian.com>
* DataTableReader.cs: Switch to the (bool) form of Dispose to
override, as the no-arg form isn't virtual.
svn path=/trunk/mcs/; revision=57002
Chris Toshok [Fri, 17 Feb 2006 18:20:46 +0000 (18:20 -0000)]
2006-02-17 Chris Toshok <toshok@ximian.com>
* DbDataReaderBase.cs: Switch to the (bool) form of Dispose to
override, as the no-arg form isn't virtual.
svn path=/trunk/mcs/; revision=57001
Chris Toshok [Fri, 17 Feb 2006 18:20:02 +0000 (18:20 -0000)]
2006-02-17 Chris Toshok <toshok@ximian.com>
* DbDataReader.cs: oops, add back in VisibleFieldCount (i missed
it in the corcompare output), add EditorBrowsable attributes all
over the place, and fix some method signatures.
svn path=/trunk/mcs/; revision=57000
Atsushi Eno [Fri, 17 Feb 2006 18:19:23 +0000 (18:19 -0000)]
2006-02-17 Atsushi Enomoto <atsushi@ximian.com>
* XmlNodeReaderImpl.cs : do not compute ownerLinkedNode, just store
it in Read(). Simply use state field in EOF. They result in 20%
perf. boost. Expanding EOF also improved performance by 2-3%
(mono --optimize=inline might work in the later stage).
svn path=/trunk/mcs/; revision=56999
Chris Toshok [Fri, 17 Feb 2006 18:18:55 +0000 (18:18 -0000)]
2006-02-17 Chris Toshok <toshok@ximian.com>
* Constraint.cs: #ifdef out more DataSysDescriptions.
* ConstraintException.cs: add ..ctor (string, Exception) for 2.0.
svn path=/trunk/mcs/; revision=56998
Zoltan Varga [Fri, 17 Feb 2006 18:17:56 +0000 (18:17 -0000)]
2006-02-17 Zoltan Varga <vargaz@gmail.com>
* DynamicMethod.cs: Implement DefineParameter ().
* ParameterBuilder.cs: Add support for DynamicMethod parents.
svn path=/trunk/mcs/; revision=56997
Atsushi Eno [Fri, 17 Feb 2006 17:47:13 +0000 (17:47 -0000)]
2006-02-17 Atsushi Enomoto <atsushi@ximian.com>
* DTDValidatingReader2.cs : more refactoring. Split ReadContent()
into some methods. Reduced some extra MoveToElement().
svn path=/trunk/mcs/; revision=56995
Chris Toshok [Fri, 17 Feb 2006 17:20:53 +0000 (17:20 -0000)]
2006-02-17 Chris Toshok <toshok@ximian.com>
* DataColumn.cs: #ifdef all the DataSysDescriptions !NET_2_0.
* AdapterMappingException.cs: nuke this file.
svn path=/trunk/mcs/; revision=56993
Chris Toshok [Fri, 17 Feb 2006 17:20:26 +0000 (17:20 -0000)]
2006-02-17 Chris Toshok <toshok@ximian.com>
* System.Data.dll.sources: remove
System.Data/AdapterMappingException.cs.
svn path=/trunk/mcs/; revision=56992
Chris Toshok [Fri, 17 Feb 2006 17:12:20 +0000 (17:12 -0000)]
2006-02-17 Chris Toshok <toshok@ximian.com>
* IDbAsyncConnection.cs, IDbAsyncCommand.cs, IGetTypedData.cs,
ISetTypedData.cs, IDataReader2.cs, IDataSources.cs,
IDbExecutionContext.cs, IDataRecord2.cs, IDataUpdatableRecord.cs:
remove these 2.0 files.
svn path=/trunk/mcs/; revision=56991
Chris Toshok [Fri, 17 Feb 2006 17:12:06 +0000 (17:12 -0000)]
2006-02-17 Chris Toshok <toshok@ximian.com>
* DbDataUpdatableRecord.cs: remove this 2.0 file.
svn path=/trunk/mcs/; revision=56990
Chris Toshok [Fri, 17 Feb 2006 17:10:41 +0000 (17:10 -0000)]
2006-02-17 Chris Toshok <toshok@ximian.com>
* System.Data.dll.sources: remove IDbAsyncConnection.cs,
IDbAsyncCommand.cs, IGetTypedData.cs, ISetTypedData.cs,
IDataReader2.cs, IDataSources.cs, IDbExecutionContext.cs,
IDataRecord2.cs, IDataUpdatableRecord.cs, and
DbDataUpdatableRecord.cs from the build.
svn path=/trunk/mcs/; revision=56989
Chris Toshok [Fri, 17 Feb 2006 17:06:24 +0000 (17:06 -0000)]
2006-02-17 Chris Toshok <toshok@ximian.com>
* InvalidUdtException.cs: fix namespace typo, and mark all ctors
as internal (since none are public in corcompare.)
svn path=/trunk/mcs/; revision=56988
Neale Ferguson [Fri, 17 Feb 2006 17:05:52 +0000 (17:05 -0000)]
* mini-s390x.c, mini-s390x.h: Check for presence of long displacement
facility on the processor and use it if available.
svn path=/trunk/mono/; revision=56987
Atsushi Eno [Fri, 17 Feb 2006 17:03:36 +0000 (17:03 -0000)]
2006-02-17 Atsushi Enomoto <atsushi@ximian.com>
* DTDValidatingReader2.cs : more refactoring. Removed and simplified
some error check. String += would be enough for entity-reference-
mixed attributes which rarely happen, so simplify the code.
Added comments on how the fields are used.
svn path=/trunk/mcs/; revision=56986
Chris Toshok [Fri, 17 Feb 2006 17:01:44 +0000 (17:01 -0000)]
2006-02-17 Chris Toshok <toshok@ximian.com>
* OleDbCommand.cs: remove extra using System.Data. fixes warning.
svn path=/trunk/mcs/; revision=56985
Chris Toshok [Fri, 17 Feb 2006 16:57:38 +0000 (16:57 -0000)]
2006-02-17 Chris Toshok <toshok@ximian.com>
* StorageState.cs: correct namespace, and remove "Delayed"
element.
svn path=/trunk/mcs/; revision=56984
Chris Toshok [Fri, 17 Feb 2006 16:57:19 +0000 (16:57 -0000)]
2006-02-17 Chris Toshok <toshok@ximian.com>
* SqlNotificationRequest.cs: class is sealed, and s/id/userData
and s/service/options.
* SqlDataSourceEnumerator.cs: ctor is private (for use with
Instance property, which is currently not implemented.) Also,
remove set_Instance.
svn path=/trunk/mcs/; revision=56983
Chris Toshok [Fri, 17 Feb 2006 16:46:03 +0000 (16:46 -0000)]
2006-02-17 Chris Toshok <toshok@ximian.com>
* ConstraintCollection.cs: in 2.0, class is not serializable and
is sealed. make all the "virtuals" #if !NET_2_0 as well.
* Constraint.cs: not serializable in 2.0.
* DataColumnCollection.cs: in 2.0, class is not serializable and
is sealed. make all the "virtuals" #if !NET_2_0 as well.
* DataRelationCollection.cs: not serializable in 2.0.
* DataRelation.cs: not serializable in 2.0.
* DataRowBuilder.cs: class is sealed in 2.0.
* DataRowCollection.cs: in 2.0, class is not serialized and is
sealed. Also, Add isn't virtual in 2.0 (as the class is sealed).
* DataRow.cs: not serializable in 2.0.
* DataSet.cs: remove some DataSysDescriptions from the 2.0 build,
and s/GetDataReader/CreateDataReader.
* DataTableCollection.cs: in 2.0, class is not serializable and is
sealed. make all the "virtuals" #if !NET_2_0 as well.
* DataTableReader.cs: remove VisibleFieldCount property.
* DataViewSettingCollection.cs: not serializable in 2.0.
* DataViewSetting.cs: not serializable in 2.0.
* ForeignKeyConstraint.cs: serializable in 2.0.
* OperationAbortedException.cs: class is sealed and serializable.
* PropertyCollection.cs: serializable in 2.0.
* StatementCompletedEventArgs.cs: class is sealed.
* UniqueConstraint.cs: not serializable in 2.0.
svn path=/trunk/mcs/; revision=56982
Chris Toshok [Fri, 17 Feb 2006 16:45:44 +0000 (16:45 -0000)]
2006-02-17 Chris Toshok <toshok@ximian.com>
* DbDataReader.cs: remove VisibleFieldCount attribute, and remove
IDataReader2 and IDataRecord2 interfaces.
svn path=/trunk/mcs/; revision=56981
Chris Toshok [Fri, 17 Feb 2006 16:45:25 +0000 (16:45 -0000)]
2006-02-17 Chris Toshok <toshok@ximian.com>
* SqlDataReader.cs: remove VisibleFieldCount property.
svn path=/trunk/mcs/; revision=56980
Chris Toshok [Fri, 17 Feb 2006 16:45:10 +0000 (16:45 -0000)]
2006-02-17 Chris Toshok <toshok@ximian.com>
* OdbcDataReader.cs: remove VisibleFieldCount property.
svn path=/trunk/mcs/; revision=56979
Atsushi Eno [Fri, 17 Feb 2006 16:07:12 +0000 (16:07 -0000)]
2006-02-17 Atsushi Enomoto <atsushi@ximian.com>
* DTDValidatingReader2.cs : attribute node simplification. It now
stores attribute node slots, including default attributes for
further refactoring.
svn path=/trunk/mcs/; revision=56978
Dick Porter [Fri, 17 Feb 2006 15:51:28 +0000 (15:51 -0000)]
2006-02-17 Dick Porter <dick@ximian.com>
* handles-private.h:
* handles.c: Check handle values passed to array lookups. Fixes
bug 77572.
svn path=/trunk/mono/; revision=56976
Zoltan Varga [Fri, 17 Feb 2006 15:42:27 +0000 (15:42 -0000)]
2006-02-17 Zoltan Varga <vargaz@gmail.com>
* Makefile.am: Avoid installing mint.pc if mint is not compiled.
svn path=/trunk/mono/; revision=56975
Paolo Molaro [Fri, 17 Feb 2006 15:29:17 +0000 (15:29 -0000)]
Fri Feb 17 16:12:52 CET 2006 Paolo Molaro <lupus@ximian.com>
* driver.c, aot.c, mini.c: throw exception if the IL code is
invalid or unverifiable.
svn path=/trunk/mono/; revision=56974
Paolo Molaro [Fri, 17 Feb 2006 15:11:32 +0000 (15:11 -0000)]
Fri Feb 17 16:10:34 CET 2006 Paolo Molaro <lupus@ximian.com>
* class-internals.h: added some more exception types.
svn path=/trunk/mono/; revision=56973
Raja R Harinath [Fri, 17 Feb 2006 15:05:29 +0000 (15:05 -0000)]
Use owner-less generic-params some more.
* class.c (my_mono_class_from_generic_parameter): Remove.
(mono_class_from_generic_parameter): Handle null image,
param->name and param->owner.
(mono_class_from_mono_type): Update.
(mono_class_create_from_typespec): Remove 'container' parameter.
If that parameter is non-null, the result is always inflated by
'mono_class_get_full' anyway.
(mono_class_get): Rename from _mono_class_get. Remove 'container'
parameter.
(mono_class_get_full): Update.
svn path=/trunk/mono/; revision=56972
Raja R Harinath [Fri, 17 Feb 2006 14:26:28 +0000 (14:26 -0000)]
Complete entries
svn path=/trunk/mono/; revision=56971
Raja R Harinath [Fri, 17 Feb 2006 13:33:58 +0000 (13:33 -0000)]
* class.c (inflate_generic_type) [GENERICINST]: If the generic
instance is not open, don't bother inflating.
(mono_class_setup_fields): Hoist some loop-invariants. Don't
parse metadata for inflated classes.
(mono_class_create_from_typespec): Change GenericContext*
parameter to GenericContainer*. Implement trivially. All the
cases are handled in mono_class_from_mono_type. Don't inflate
returned class.
svn path=/trunk/mono/; revision=56970
Raja R Harinath [Fri, 17 Feb 2006 13:19:58 +0000 (13:19 -0000)]
* generics.2.cs (test_0_ldfld_stfld_mro): Use m.struct_field, not
m.StructField.
svn path=/trunk/mono/; revision=56969
Raja R Harinath [Fri, 17 Feb 2006 11:45:43 +0000 (11:45 -0000)]
* TypeTest.cs: Rename one of the instances of Foo<T> to ComFoo<T>.
Strange that this got through. I couldn't create a small testcase for this.
svn path=/trunk/mcs/; revision=56968
Atsushi Eno [Fri, 17 Feb 2006 08:47:38 +0000 (08:47 -0000)]
2006-02-17 Atsushi Enomoto <atsushi@ximian.com>
* DTDValidatingReader2.cs, EntityResolvingXmlReader.cs :
new files for refactoring DTD validating reader. As the first stage,
it splits entity handling process from DTD validation step.
(DTDValidatingReader.cs will be removed at some stage).
* System.Xml.dll.sources : removed DTDValidatingReader and added
DTDValidatingReader2.cs and EntityResolvingXmlReader.cs.
svn path=/trunk/mcs/; revision=56967
Atsushi Eno [Fri, 17 Feb 2006 05:20:27 +0000 (05:20 -0000)]
2006-02-17 Atsushi Enomoto <atsushi@ximian.com>
* DTDObjectModel.cs : entity resolution method will be used in
the next DTD validating reader in 1.x.
svn path=/trunk/mcs/; revision=56966
Jackson Harper [Thu, 16 Feb 2006 21:38:21 +0000 (21:38 -0000)]
* XplatUIWin32.cs: Since we fake MDI dont tell Windows that this
is a real MDI window
svn path=/trunk/mcs/; revision=56965
Gonzalo Paniagua Javier [Thu, 16 Feb 2006 20:45:20 +0000 (20:45 -0000)]
2006-02-16 Gonzalo Paniagua Javier <gonzalo@ximian.com>
* AssemblyBuilder.cs:
* BuildManager.cs: compile the assembly from AssemblyBuilder and use
GetGeneratedType() on the BuildProvider instead of loading the assembly
and trying a wild guess at the type name.
svn path=/trunk/mcs/; revision=56964
Atsushi Eno [Thu, 16 Feb 2006 19:20:04 +0000 (19:20 -0000)]
2006-02-02 Atsushi Enomoto <atsushi@ximian.com>
* xmltool.cs : Optional 3rd. argument to --transform is now output
filename.
svn path=/trunk/mcs/; revision=56958
Zoltan Varga [Thu, 16 Feb 2006 18:51:24 +0000 (18:51 -0000)]
2006-02-16 Zoltan Varga <vargaz@gmail.com>
* generics.2.cs: Add some tests for generics ldfld/stfld wrappers.
svn path=/trunk/mono/; revision=56957
Gert Driesen [Thu, 16 Feb 2006 18:46:54 +0000 (18:46 -0000)]
* TypeData.cs: Fixed the following issues when dealing with Array
SchemaType:
- if a type implements IDictionary, throw a NotSupportedException
- if a type implements ICollection, then an Add method must exist
which takes a single argument of a type to which the listitem type
is assignable (meaning a base type or an interface that it
implements). If such a method does not exist, then throw an
InvalidOperationException.
- if a type implements IEnumerable, then the listitem type is
determined by the type of the Current property of the (IEnumerator)
type returned by the GetEnumerator() method or the private
implementation of IEnumerable.GetEnumerator(). If there's no
public Current property on the IEnumerator, then System.Object
is assumed as listitem type. Similar as for types implementing
ICollection, an Add method must exist which takes a single argument
of a type to which the listitem type is assignable (meaning a base
type or an interface that it implements). If such a method does not
exist, then throw an InvalidOperationException.
* XmlReflectionImporter.cs: Enabled few tests for bug #77531.
* SoapReflectionImporter.cs: Enabled few tests for bug #77531.
svn path=/trunk/mcs/; revision=56956
Dick Porter [Thu, 16 Feb 2006 18:07:53 +0000 (18:07 -0000)]
2006-02-16 Dick Porter <dick@ximian.com>
* IPEndPoint.cs: The SocketAddress AddressFamily takes up the
first two bytes, not just one. Check the size of the
SocketAddress buffer for IPv6 as well.
* Dns.cs: Cope when GetHostByName_internal or
GetHostByAddr_internal returns fewer items in the array than it
intended to (maybe due to conversion errors.)
svn path=/trunk/mcs/; revision=56953
Dick Porter [Thu, 16 Feb 2006 18:07:28 +0000 (18:07 -0000)]
2006-02-16 Dick Porter <dick@ximian.com>
* socket-io.c (create_object_from_sockaddr): Fix typo.
(create_sockaddr_from_object): Check array lengths before
potentially accessing items off the end.
(ves_icall_System_Net_Sockets_Socket_Receive_internal)
(ves_icall_System_Net_Sockets_Socket_RecvFrom_internal)
(ves_icall_System_Net_Sockets_Socket_Send_internal)
(ves_icall_System_Net_Sockets_Socket_SendTo_internal): Fix buffer
length checks to avoid wraparound overflows.
(ves_icall_System_Net_Sockets_Socket_Select_internal): Check the
contents of the array of sockets
(hostent_to_IPHostEntry2)
(addrinfo_to_IPHostEntry): IPv6 printed addresses can be 48 bytes.
Check return value of inet_ntop ().
(addrinfo_to_IPHostEntry): Fix typo
svn path=/trunk/mono/; revision=56952
Atsushi Eno [Thu, 16 Feb 2006 17:33:06 +0000 (17:33 -0000)]
2006-02-16 Atsushi Enomoto <atsushi@ximian.com>
* DTMXPathDocument2.cs, DTMXPathNavigator2.cs :
Do not store mutable XPathDocument fields in every navigators.
It saves memory a lot.
svn path=/trunk/mcs/; revision=56951
Lluis Sanchez [Thu, 16 Feb 2006 17:01:50 +0000 (17:01 -0000)]
2006-02-16 Lluis Sanchez Gual <lluis@novell.com>
* XmlSchemaImporterTests.cs: Added test for bug #76848.
svn path=/trunk/mcs/; revision=56949
Lluis Sanchez [Thu, 16 Feb 2006 17:00:08 +0000 (17:00 -0000)]
2006-02-16 Lluis Sanchez Gual <lluis@novell.com>
* XmlSchemaImporter.cs: Support importing complex types with
simple content based on enums. Fixes bug #76848.
svn path=/trunk/mcs/; revision=56948
Senganal T [Thu, 16 Feb 2006 16:04:19 +0000 (16:04 -0000)]
2006-01-16 Senganal T <tsenganal@novell.com>
* Test/System.Data/schemas/test015.xsd, test016.xsd : added
- test ForeignKeyConstraint and annotated DataRelation
relating multiple columns
* Test/System.Data/DataSetTest2.cs :
- WriteXmlSchema_ForeignKeyConstraint : testcase for bug #77557
- WriteXmlSchema_RelationAnnotation :
- WriteXmlSchema_Relations_ForeignKeys :
ensure Relations and ForeignKeyConstraints are written and read correctly.
* Test/System.Data/DataSetReadXmlSchema.cs :
- ReadConstraints :
verify reading a foreignkeyconstraint doesent create a relation.
- ReadAnnotatedRelations_MultipleColumns :
verify multiple columns are read correctly if part of annotated relation.
* System.Data/XmlSchemaWriter :
WriteDataSetElement : Add an annotation element if exists.
WriteDataRelationAnnotation : New. Write a DataRelation as an annotation.
WriteConstraints : Write ForeignKeyConstraint even when not associated with
a DataRelation and add a "ConstraintOnly=true" attribute for such constraints.
* System.Data/XmlConstants.cs : Add a new constant - ConstraintOnly
* System.Data/XmlSchemaImporter.cs :
- ConstraintStructure : Add field ,IsConstraintOnly, to distinguish if a foreignkeyconstraint
is related to relation or not.
- GenerateRelation : Handle the case when parentkey and childkey contain multiple columnnames.
svn path=/trunk/mcs/; revision=56947
Lluis Sanchez [Thu, 16 Feb 2006 15:52:25 +0000 (15:52 -0000)]
2006-02-03 Sebastien Robitaille <sebastien.robitaille@croesus.com>
* BitArray.cs: Renamed members for interoperability with MS.
svn path=/trunk/mcs/; revision=56946
Atsushi Eno [Thu, 16 Feb 2006 15:46:11 +0000 (15:46 -0000)]
2006-02-16 Atsushi Enomoto <atsushi@ximian.com>
* IHasXmlChildNode.cs :
New internal interface to hold LastLinkedChild.
* XmlNodeListChildren.cs XmlEntity.cs XmlElement.cs XmlAttribute.cs
XmlLinkedNode.cs XmlEntityReference.cs XmlNode.cs
XmlDocumentFragment.cs XmlDocument.cs : use it. It minimizes memory
consumption in XmlText, XmlWhitespace, XmlComment etc.
* System.Xml.dll.sources : added IHasXmlChildNode.cs.
svn path=/trunk/mcs/; revision=56945
Raja R Harinath [Thu, 16 Feb 2006 15:41:32 +0000 (15:41 -0000)]
In metadata:
Type metadata parsing doesn't use generic-instantiation information.
* metadata.c (mono_metadata_parse_array_full): Change
MonoGenericContext* parameter to MonoGenericContainer*.
(mono_metadata_parse_type_full): Likewise.
(mono_type_create_from_typespec_full): Likewise.
(mono_metadata_parse_mh_full): Likewise.
(mono_metadata_parse_generic_inst): Likewise.
(do_mono_metadata_parse_generic_class): Likewise.
(do_mono_metadata_parse_type): Likewise.
* metadata-internals.h: Update to changes.
* class.c (mono_class_find_enum_basetype): Likewise.
(mono_class_setup_fields): Likewise.
(mono_class_create_from_typespec): Likewise.
* loader.c (method_from_methodspec): Likewise.
(mono_get_method_from_token): Likewise.
(mono_method_get_header): Likewise.
In dis:
* get.c (get_typespec): Pass MonoGenericContainer to
mono_type_create_from_typespec_full.
(get_type): Likewise.
* main.c (dis_code): Likewise.
(dis_property_signature): Likewise.
svn path=/trunk/mono/; revision=56944
Atsushi Eno [Thu, 16 Feb 2006 15:40:51 +0000 (15:40 -0000)]
2006-02-16 Atsushi Enomoto <atsushi@ximian.com>
* XmlChar.cs : added IndexOfNonWhitespace() and IndexOfInvalid() (not
in use yet).
* NewLineHandling.cs : prepared to be used internally in 1.x.
svn path=/trunk/mcs/; revision=56943
Paolo Molaro [Thu, 16 Feb 2006 14:44:21 +0000 (14:44 -0000)]
Thu Feb 16 15:42:13 CET 2006 Paolo Molaro <lupus@ximian.com>
* marshal.c: handle additional GENERICINST case (patch from
Thong Nguyen <tum@veridicus.com>).
Fix a few cases where LDIND_I/STIND_I was used for references.
svn path=/trunk/mono/; revision=56942
Martin Baulig [Thu, 16 Feb 2006 14:41:33 +0000 (14:41 -0000)]
Add the '#if NET_2_0' conditional everywhere.
svn path=/trunk/mcs/; revision=56941
Martin Baulig [Thu, 16 Feb 2006 14:23:40 +0000 (14:23 -0000)]
2006-02-16 Martin Baulig <martin@ximian.com>
Importing version 1.0 of C5, http://www.itu.dk/research/c5/.
* C5/trees/RedBlackTreeBag.cs: Added autogenerated file.
* C5/linkedlists/HashedLinkedList.cs: Likewise.
* C5/arrays/HashedArrayList.cs: Likewise.
* PreProcess/: Removed; we keep the autogenerated files in SVN.
svn path=/trunk/mcs/; revision=56940
Martin Baulig [Thu, 16 Feb 2006 14:07:18 +0000 (14:07 -0000)]
Temporarily take Mono.C5 out of the build until it is working again.
svn path=/trunk/mcs/; revision=56939
Martin Baulig [Thu, 16 Feb 2006 14:02:48 +0000 (14:02 -0000)]
Bringing C5 1.0 into the main branch.
svn path=/trunk/mcs/; revision=56938