* daemon.c (read_message): Return FALSE on error so the GSource
callback itself can return FALSE. Cures the infinite loop poll()
warning on MacosX.
* shared.c: Fix some daemon startup race conditions.
svn path=/trunk/mono/; revision=26704
* WebConfigurationSettings.cs: now it defaults to 'web.config' and if
not found, 'Web.config'. Don't throw exception if both exists. Thanks
to urs and dru for bugging me about this.
svn path=/trunk/mcs/; revision=26698
* configure.in: check for SIGEV_THREAD being defined before checking
for AIO support. Fixes compilation under FreeBSD.
svn path=/trunk/mono/; revision=26690
* interp.c (ves_exec_method_with_context): Disable explicit assignment
of 'esi' to the ip variable, since it causes register allocation errors
on some versions of gcc. Fixes#58010.
svn path=/trunk/mono/; revision=26689
JIT_SUPPORTED.
(install-data-local, uninstall-data-local): Run runtime with
libtool.
* runtime/net_2_0/Makefile.am: Likewise.
Report from Urs C Muff <[email protected]>.
svn path=/trunk/mono/; revision=26685
* SimpleWebHandlerParser.cs:
* TemplateParser.cs: for the assembly names given in the 'assembly'
attribute, use LoadWithPartialName instead of Load.
svn path=/trunk/mcs/; revision=26649
* CryptoConfig.cs: Specify version and public key token when loading
System.Security.dll for XML Digital Signature classes.
svn path=/trunk/mcs/; revision=26629
* driver.cs: Remove the hack from saturday, as well as the hack
from jackson (LoadAssemblyFromGac), also adds the CWD to the
link_paths to get that bit proper.
svn path=/trunk/mcs/; revision=26620
* AssemblyInfo.cs: Returned to match original version (0.7.4.*). We
now use 0.7.4.0 for Fx1.0, 0.7.4.1. for Fx1.1 and 0.7.4.2 for Fx 2.0.
svn path=/trunk/mcs/; revision=26606
Add --with-preview=yes/no
Install mcs/mbas into $prefix/lib/mono/1.1
Install gmcs into $prefix/lib/mono/2.0
This is in preparation for the dual installation of libraries GAC + devel.
svn path=/trunk/mono/; revision=26599
* appdomain.c: use g_strncasecmp when looking for 'Culture=' et al.
* reflection.c: use g_strncasecmp when looking for 'Culture=' et al.
(type_get_fully_qualified_name): Added PublicKeyToken when building a
full type name.
svn path=/trunk/mono/; revision=26592
* appdomain.c: fixed check for 'neutral' culture and removed warning.
* reflection.c: fix bug when parsing a full type name and Version is not
the last thing in the string.
svn path=/trunk/mono/; revision=26589
* AssemblyInfo.cs: Now that bug #57941 (incomplete key pairs) is fixed
we now use nunit.key to sign their assemblies.
svn path=/trunk/mcs/; revision=26559
* mono-sha1.c: MacOS X defines "LITTLE_ENDIAN", you are supposed
to test against BYTE_ORDER, and this caused trouble. We now use
G_BYTE_ORDER and G_LITTLE_ENDIAN. This should fix the MacOS woes.
svn path=/trunk/mono/; revision=26543
* assembly.c (mono_assembly_load_references): Add a compatibility
hack to run old applications that might be still referencing the
3300-based assemblies, only do this for System.xxx.
svn path=/trunk/mono/; revision=26524
* driver.cs: Try a LoadFrom before a Load, this checks the current
path. This is currently a bug in mono that is be fixed, however, this
provides a workaround for now. This will be removed when the bug
is fixed.
svn path=/trunk/mcs/; revision=26523
* Npgsql/NpgsqlCommand.cs,
Npgsql/NpgsqlConnection.cs,
Npgsql/NpgsqlConnector.cs,
Npgsql/NpgsqlConnectorPool.cs,
Npgsql/NpgsqlError.cs,
Npgsql/NpgsqlException.cs,
Npgsql/NpgsqlParameterCollection.cs,
NpgsqlTypes/NpgsqlTypesHelper.cs: Improved exception support. Now NpgsqlException as well as NpgsqlError provide much more information. Thanks Glen Parker ([email protected]) for the patch.
svn path=/trunk/mcs/; revision=26522
* Npgsql/NpgsqlCommand.cs,
Npgsql/NpgsqlConnection.cs,
Npgsql/NpgsqlConnector.cs,
Npgsql/NpgsqlConnectorPool.cs,
Npgsql/NpgsqlError.cs,
Npgsql/NpgsqlException.cs,
Npgsql/NpgsqlParameterCollection.cs,
NpgsqlTypes/NpgsqlTypesHelper.cs: Improved exception support. Now NpgsqlException as well as NpgsqlError provide much more information. Thanks Glen Parker ([email protected]) for the patch.
svn path=/trunk/mcs/; revision=26519
* CryptoConvert.cs: Added support for truncated, but still valid, RSA
private key blob. Fix#57941 (couldn't sign with nunit key).
* RSAManaged.cs: Normalized the size of D when not present. This
allows us to output a compatible base64 representation of 1024bits 0.
svn path=/trunk/mcs/; revision=26511
* CryptoConvertTest.cs: Added test case where a strongname key pair
(RSA 1024 bits) was truncated in the last parameter (D) (i.e. the
private key) but saved by the use of CRT (Chinese Remainder Theorem).
svn path=/trunk/mcs/; revision=26508
* Socket.cs: only enable socket AIO if MONO_ENABLE_SOCKET_AIO is there.
I will remove this once THE bug is hunted.
svn path=/trunk/mcs/; revision=26507
* CaseInsensitiveComparer.cs: Fix the default constructor (needs to
set CurrentCulture, ensure culture is set to null for invariant case,
construct early
* Comparer.cs: Restyle, change lineendings
svn path=/trunk/mcs/; revision=26504
* TimeSpan.cs: Redid a lot of stuff in TimeSpan from scratch.
Fixes several potential bugs and makes things way faster.
svn path=/trunk/mcs/; revision=26501
* runtime/net_2_0/Makefile.am (gac_assemblies_list): Add NUnit
dlls here.
(non_gac_assemblies): Removed, every thing is migrated over to gac_assemblies.
(EXTRA_DIST): Include only gac_assemblies.
(dist_assemblies_DATA): It's referring to $(non_gac_assemblies)
and that is no gone now. So remove as well.
($(non_gac_assemblies)): Bye bye.
svn path=/trunk/mono/; revision=26497
* gacutil.cs: Change the way of handling the /prefix stuff.
Now all gacbased operations will work with /prefix or --root. This
*MUST* be at the end of the commandline for it to work.
Also note, that in a Makefile changing /i to /u will not work, as the
gac uninstalls based on AssemblyName.Name, so forexample:
gacutil /i some/path/blah/System.dll --root /usr/lib/somefakegac
will install and
gacutil /u System --root /usr/lib/somefakegac
will uninstall.
svn path=/trunk/mcs/; revision=26480
* ThreadTest.cs: Un-ignore some tests that seem to run pretty well
now. Getting one failure from these, but at least they run without
crashing, or throwing some nasty _wapi exception thingy.
svn path=/trunk/mcs/; revision=26429
* DataColumnCollection.cs : Fixed nunit test errors, removed TODOs
* DataTableCollection.cs : Tested and removed TODO
* TypedDataSetGeneratorException.cs : Fixed a couple of TODOs
svn path=/trunk/mcs/; revision=26407
SoapFault. Taken this into account.
* SoapMessageFormatter.cs: Added FormatFault method. In FormatResponse(),
the array of output parameters must also include placeholders for the
input parameters (set to null).
ParameterInfo.IsOut does not correspond to the "out" keyword in C#, but
to the OutAttribute applied to parameters. There can be input parameters
with the OutAttribute. Fixed this in a couple of places.
Added CreateSoapMessage method, which creates a SoapMessage including
the parameter types (only for responses, since for requests the target
method is not known).
* SoapServerFormatterSink.cs: Use soapMsgFormatter.CreateSoapMessage to
create the SoapMessage.
svn path=/trunk/mcs/; revision=26402
array of parameter types, use those to deserialize the parameter values.
Use the new method SoapTypeMapper.ParseXsdValue() to parse primitive values.
* SoapTypeMapper.cs: Added GetXsdValue and ParseXsdValue.
* SoapWriter.cs: Always include parameter types when serializing a message.
MS.NET does it.
svn path=/trunk/mcs/; revision=26400
suffix.
(gac_assemblies, non_gac_assemblies, corlibdir, dist_corlib_DATA):
New variables. Use Automake idioms.
(dist-hook): Remove.
(install-local, uninstall-local): Use mscorlib.dll from current
tree when running gacutil.
(mono_runtime): New variable. Points to either JIT compiler or
interpreter.
Report from Bernie Solomon <[email protected]>
* runtime/net_2_0/Makefile.am: Likewise.
* runtime/Makefile.am (dist_monobins_DATA): Rename from
monobins_DATA.
(EXTRA_DIST): Remove.
* Makefile.am (fullbuild): Update to changes.
svn path=/trunk/mono/; revision=26398
* typemanager.cs: don't report cyclic struct layout when a struct
contains 2 or more fields of the same type. Failed for Pango.AttrShape
which has 2 Pango.Rectangle fields.
svn path=/trunk/mcs/; revision=26396
* DSACryptoServiceProviderTest.cs: New unit tests fo better coverage.
* FromBase64Transform.cs: New unit tests for better coverage.
* HashAlgorithmTest.cs: New unit tests for better coverage.
* HMACSHA1Test.cs: New unit tests for better coverage. Updated to
NUnit2.
* KeyedHashAlgorithmTest.cs: Coverage already complete. Updated to
NUnit 2.
* SHA1Test.cs: Coverage already complete. Updated to NUnit2.
* SHA1CryptoServiceProviderTest.cs: Coverage almost complete. Updated
to NUnit2.
* SHA256Test.cs: Coverage already complete. Updated to NUnit2.
* SHA256ManagedTest.cs: Coverage already complete. Updated to NUnit2.
* SHA384Test.cs: Coverage already complete. Updated to NUnit2.
* SHA384ManagedTest.cs: Coverage almost complete. Updated to NUnit2.
* SHA512Test.cs: Coverage already complete. Updated to NUnit2.
* SHA512ManagedTest.cs: Coverage almost complete. Updated to NUnit2.
svn path=/trunk/mcs/; revision=26367
* Makefile: (Reintroduced) Removed Mono.CSharp.Debugger.dll from
the Windows/cygwin build as this break the Linux build.
svn path=/trunk/mcs/; revision=26366
* ecore.cs (PropertyExpr.FindAccessor): New private method. Walk
the list of PropertyInfo's in class hierarchy and find the
accessor. Fixes#56013.
svn path=/trunk/mcs/; revision=26355
* transform.c (generate): missed a couple
of places that should use ADD_CODE so buffer
gets grown properly.
* interp.c (interp_mono_runtime_invoke):
restore state better on catching exception
via longjmp here
svn path=/trunk/mono/; revision=26324
* mini-ppc.c, exceptions-ppc.c: more code saves registers
at the top of the stack. Fixed typos. Use a frame registers
for all the methods with exception clauses.
svn path=/trunk/mono/; revision=26321
Applying a patch from Benjamin Jemlich <[email protected]>.
* ecore.cs (FieldExpr.AddressOf): Make this work for valuetypes.
svn path=/trunk/mcs/; revision=26318
Applying a patch from Benjamin Jemlich <[email protected]>.
* statement.cs (Using.EmitLocalVariableDecls): Use
TypeManager.idisposable_type, not typeof (IDisposable).
(Foreach.EmitCollectionForeach): Added support for valuetypes.
svn path=/trunk/mcs/; revision=26310
* class.cs (Event.Define): Don't emit the field and don't set
RTSpecialName and SpecialName for events on interfaces. Fixes
#57703.
svn path=/trunk/mcs/; revision=26306
* mini-ppc.c, exceptions-ppc.c: save the registers in reverse
order from the stack top (moved the stack room to save the
return value for trace after the param area). Fixed corruption
in restoring registers on unwind.
svn path=/trunk/mono/; revision=26305
* string-icalls.c: added low overhead function for copying chars
* icall.c: added needed icall for the above function
svn path=/trunk/mono/; revision=26295
* exceptions-ppc.c, mini-ppc.h, mini-ppc.c: fixed localloc
and prolog/epilog for methods that use it. Allow
enough param area room for varargs methods. Fix miguel's
breakage in exception handling.
svn path=/trunk/mono/; revision=26293
* attribute.cs (Attributable): New base class for objects that can
have Attributes applied on them.
(Attribute): Make AttributeUsage fields public.
(Attribute.GetFieldValue, Attribute.GetMarshal): Make non-static.
(Attribute.IsInternalCall): New property.
(Attribute.UsageAttr): Convert to a public read-only property.
(Attribute.CheckAttributeType): Use a DeclSpace, not an EmitContext.
(Attribute.ResolveType, Attribute.Resolve)
(Attribute.ScanForIndexerName): Update to reflect changes.
(Attribute.CheckAttributeTarget): Re-format.
(Attribute.ApplyAttributes): Refactor, to various
Attributable.ApplyAttributeBuilder methods.
* decl.cs (MemberCore): Make Attributable.
* class.cs (Accessor): Make Attributable.
(MethodData.ApplyAttributes): Use proper attribute types, not
attribute names.
(TypeContainer.LabelParameters): Pass Parameter to ApplyAttributes.
(TypeContainer.ApplyAttributeBuilder)
(Method.ApplyAttributeBuilder, Constructor.ApplyAttributeBuilder)
(Field.ApplyAttributeBuilder, Accessor.ApplyAttributeBuilder)
(PropertyBase.ApplyAttributeBuilder, Event.ApplyAttributeBuilder)
(Operator.ApplyAttributeBuilder): New factored-out methods.
* const.cs (Const.ApplyAttributeBuilder): Likewise.
* delegate.cs (Delegate.ApplyAttributeBuilder): Likewise.
* enum.cs (Enum.ApplyAttributeBuilder): Likewise.
* parameter.cs (ParameterBase): New Attributable base class
that can also represent Return types.
(Parameter): Update to the changes.
svn path=/trunk/mcs/; revision=26291
* DataRow.cs : When Column was added and it was AutoIncrement column,
it extended the item object array incorrectly.
(Plus tiny comment and incorrect indentation fix.)
svn path=/trunk/mcs/; revision=26281
* DataRowTest.cs : Added a test for auto increment column and item
integrity (it caused index out of range exception).
svn path=/trunk/mcs/; revision=26280
* decl.cs, enum.cs: Improved error 3005 reporting.
* report.cs (SymbolRelatedToPreviousError): New method for error reporting.
(related_symbols): New private member for list of symbols
related to reported error/warning.
* tree.cs: Do not use now obsolete Report.LocationOfPreviousError.
svn path=/trunk/mcs/; revision=26278
* ecore.cs (Expression.Constantify): If we're an enum and
TypeManager.TypeToCoreType() doesn't give us another type, use
t.UnderlyingSystemType. Fixes#56178.
svn path=/trunk/mcs/; revision=26247
* decl.cs (MemberCache.SetupCacheForInterface): Look over all our
interfaces and for each interface, only add members directly
declared in that interface. Fixes#53255.
svn path=/trunk/mcs/; revision=26244
* expression.cs (ConditionalLogicalOperator): Use a temporary
variable for `left' to avoid that we evaluate it more than once;
bug #52588.
svn path=/trunk/mcs/; revision=26238
directories.
* runtime/net_1_1/Makefile.am: Install and Uninstall the .net 1.1
libs to the GAC.
* runtime/net_2_0/Makefile.am: Install and Uninstall the .net 2.0
libs to the GAC.
svn path=/trunk/mono/; revision=26232
* statement.cs (LocalInfo.Resolve): Check whether the type is not
void (CS1547).
* class.cs (MemberBase.CheckParameters, FieldBase.DoDefine): Check
whether the type is not void (CS1547).
svn path=/trunk/mcs/; revision=26228
Committing a patch from Ben Maurer; see bug #50820.
* typemanager.cs (TypeManager.FilterWithClosure): Added CS1540
check for classes.
* ecore.cs (Expression.MemberLookupFailed): Added CS1540 check for
classes.
svn path=/trunk/mcs/; revision=26220
* Applied patch from Atsushi Enomoto that allows Synchronized
writers to have a `dont close' flag, this fixes 52094
svn path=/trunk/mcs/; revision=26219
* config.h.in:
* configure.in: check for field name in 'union sigval'.
* mono/io-layer/io.c:
* mono/io-layer/sockets.c: use the field name from configure when
accessing sigval pointer field. Makes this work on the Mac.
svn path=/trunk/mono/; revision=26218
the method if it is private (it did until now because of a bug). Make sure
it works as it worked before the fix.
* Type.cs: Implemented FilterAttribute delegate.
svn path=/trunk/mcs/; revision=26214
* statement.cs (Block.LookupLabel): Also lookup in implicit child blocks.
(Block.AddLabel): Call DoLookupLabel() to only search in the
current block.
svn path=/trunk/mcs/; revision=26207
* transform.c: Make sure ENSURE_I4 does something
32 bit machines too.
(mono_interp_transform_method): allow some stack
space for tracing to work.
svn path=/trunk/mono/; revision=26206
* cfold.cs (ConstantFold.BinaryFold): Added special support for
comparing StringConstants and NullLiterals in Equality and Inequality.
svn path=/trunk/mcs/; revision=26202
GAC. This is the quick and dirty version of this method that
doesnt take into account versions and just takes the first
canidate found. Will be good enough for now as we will not have more
then one version installed into the GAC until I update this
method.
svn path=/trunk/mcs/; revision=26190
* marshal.c (mono_marshal_load_type_info): Calculate the minimum
alignment for the type using the native alignment of its members
instead of using klass->min_align.
svn path=/trunk/mono/; revision=26189
* MethodResponse.cs, ReturnMessage.cs: Handle output parameters in a
different way. The message is constructed from an array that has all
parameters, including input parameters (which will be set to null).
The Args property returns all arguments. OutArgs returns only the
output arguments, which are taken from the provided args list.
svn path=/trunk/mcs/; revision=26186
* typemanager.cs (TypeManager.CheckStructCycles): New public
static method to check for cycles in the struct layout.
* rootcontext.cs (RootContext.PopulateTypes): Call
TypeManager.CheckStructCycles() for each TypeContainer.
[Note: We only need to visit each type once.]
svn path=/trunk/mcs/; revision=26177
* constant.cs (StringConstant.Emit): Emit Ldnull if we're null.
* const.cs (Const.LookupConstantValue): Return a `bool' signalling
success and added `out object value'. Use a `bool resolved' field
to check whether we've already been called rather than
`ConstantValue != null' since this breaks for NullLiterals.
svn path=/trunk/mcs/; revision=26173
* DigestAuthenticationModule.cs: introduces new overridable method
GetUserByName(), which by default works exactly like it used to, but
inherited classes can implement their own version. Patch by Tambet Ingo.
svn path=/trunk/mcs/; revision=26171
* corlib.dll.sources: Added X509ChainStatusFlags, X509CRL, X509Store,
X509StoreManager, X509Stores, BasicConstraintsExtension,
KeyUsageExtension and SubjectKeyIdentifierExtension to the build.
Removed ITrustAnchors.cs, TestAnchors.cs and TrustAnchors from the
build.
svn path=/trunk/mcs/; revision=26165
* BasicConstaintExtension.cs: New in corlib. In sync with
Mono.Security.dll version.
* KeyUsageExtension.cs: New in corlib. In sync with Mono.Security.dll
version.
* SubjectKeyIdentifierExtension.cs: New in corlib. In sync with
Mono.Security.dll version.
svn path=/trunk/mcs/; revision=26163
* X501Name.cs: In sync with Mono.Security.dll version.
* X509CRL.cs: New in corlib. In sync with Mono.Security.dll version.
* X509Certificate.cs: In sync with Mono.Security.dll version.
* X509CertificateCollection.cs: In sync with Mono.Security.dll version.
* X509Chain.cs: In sync with Mono.Security.dll version.
* X509ChainStatusFlag.cs: New in corlib. In sync with Mono.Security.dll
version.
* X509Extension.cs: In sync with Mono.Security.dll version.
* X509Extensions.cs: In sync with Mono.Security.dll version.
* X509Store.cs: New in corlib. In sync with Mono.Security.dll version.
* X509StoreManager.cs: New in corlib. In sync with Mono.Security.dll version.
* X509Stores.cs: New in corlib. In sync with Mono.Security.dll version.
* X520Attributes.cs: In sync with Mono.Security.dll version.
svn path=/trunk/mcs/; revision=26162
* CryptoConvert.cs: In sync with Mono.Security.dll version.
* CryptoTools.cs: In sync with Mono.Security.dll version.
* DSAManaged.cs: Changed delegate to please FxCop.
* PKCS1.cs: In sync with Mono.Security.dll version.
* RSAManaged.cs: In sync with Mono.Security.dll version.
svn path=/trunk/mcs/; revision=26161
* ASN1.cs: In sync with Mono.Security.dll version.
* ASN1Convert.cs: In sync with Mono.Security.dll version.
* PKCS7.cs: In sync with Mono.Security.dll version.
* StrongName.cs: In sync with Mono.Security.dll version.
svn path=/trunk/mcs/; revision=26159
* NextPrimeFinder.cs: In sync with Mono.Security.dll version.
* PrimeGeneratorBase.cs: In sync with Mono.Security.dll version.
svn path=/trunk/mcs/; revision=26158
* AssemblyInfo.cs: Uncommented assembly key file attribute as MCS can
now strongname assembly. This makes Mono.Http compile with CSC (now
that Mono.Http is also strongnamed).
svn path=/trunk/mcs/; revision=26147
* error.[ch]: added _wapi_get_win32_file_error...
* io.c: ... which was _wapi_get_win32_error here.
* sockets.c: rename the function calls here too.
svn path=/trunk/mono/; revision=26146
ColorTranslator.cs, StringFormat.cs, SystemIcons.cs,ToolboxBitmapAttribute.cs:
Converted to unix format from dos format
svn path=/trunk/mcs/; revision=26144
* DESCryptoServiceProviderTest.cs: New. Completes coverage for
DESCryptoServiceProvider class. Calls the FIPS 81 tests for this
implementation.
* DESTest.cs: Added test vectors from FIPS 81.
svn path=/trunk/mcs/; revision=26142
* Makefile.am mini.h mini-exceptions.c mini-x86.h mini-sparc.h exceptions-sparc.c: Move parts of the sparc exception handling code to XP code.
svn path=/trunk/mono/; revision=26140
* SymmetricTransform.cs: Fixed a bug when offset > 0 in destination
buffer. Changed Array.Copy to Buffer.BlockCopy.
svn path=/trunk/mcs/; revision=26138
* DSA.cs: Moved XML comments to monodoc. Added globalization to
exceptions. Already had 100% coverage.
* DSAParameters.cs: Moved XML comments to monodoc.
* DSASignatureDeformetter.cs: Added globalization to exceptions.
Limited catch to expected exception. Already had 100% coverage.
* DSASignatureFormatter.cs: Added globalization to exceptions. Limited
catch to expected exception. Already had 100% coverage.
svn path=/trunk/mcs/; revision=26135
* daemon-messages.c: Avoid a deadlock when a thread is killed while
waiting for the daemon by using a recursive mutex. Helps bug 56699.
svn path=/trunk/mono/; revision=26130
setting of this flag, since the 'set' method may be non-public.
** Quick fix for breaking mcs/ build: mcs/errors/CS3013-module.cs
See corlib/System.Reflection/ChangeLog
2004-04-27 Lluis Sanchez Gual <[email protected]>
svn path=/trunk/mcs/; revision=26128
* mini-exceptions.c: New file.
* mini.c mini-exceptions.c mini-x86.h exceptions-x86.c Makefile.am:
Move some parts of the x86 exception handling code to an
arch-independent file so it can be shared with other ports.
svn path=/trunk/mono/; revision=26126
- Perfomance fixes:
- Added using of list of autoIncrement columns
- SetColumnValue receives also DataColumn to avoid duplicate lookup in DatacolumnCollection
- Fix in CheckNullConstraints
- Fix in this[] and HasVersion() : when evaluating an expression deleted rows values can be accessed.
- Fix in SetColumnValue() , added CanAccess() method to avoid case of accessing internal array values berore it actually allocated.
- Added onColumnRemoved() method to threat column removal accurately.
* DataRowCollection.cs :
- Added using of DataRow._nullConstraintViolation (for perfomance fix in EndLoadData())
- Added method onColumnRemoved() - calls each row's onColumnRemoved() (to ensure column removal is treated accurately)
* DataTable.cs :
- Call DataRowCollection.onColumnRemoved() in OnRemoveColumn() (to ensure column removal is treated accurately)
* DataColumnCollection.cs :
- Perfomance fixes :
- collection holds a list of its autoIncrement columns (avoids unnesessary lookup through whole collection)
- collection holds mapping from column names to DataColumn objects (avoids lookup through whole collection).
- automatic creation of column names rewrited (bug fixes + perfomance improvement)
* DataColumn.cs :
- Uses autoincrement list of a table
svn path=/trunk/mcs/; revision=26118
* io-layer/io.c: fixed leak in async_notifier().
* io-layer/sockets.[ch]: added AIO support for sockets and fixed
WSAIoctl declaration.
* io-layer/threads.c: removed old comment.
* metadata/icall.c: added 2 new async calls for Socket.
* metadata/socket-io.[ch]: fixed some warnings. Added support for
asynchronous IO on *nix systems.
* metadata/threadpool.c: removed unused variable.
svn path=/trunk/mono/; revision=26111
* Socket.cs: added support for unmanaged asynchronous IO. Speed up
error checking.
* UdpClient.cs: fixed Dispose so that it only closes the socket when
called explicitly.
svn path=/trunk/mcs/; revision=26110
* System.Runtime.InteropServices.CustomMarshalers.dll.sources:
Added Assembly/AssemblyInfo.cs, Locale.cs and TODO to the build.
svn path=/trunk/mcs/; revision=26105
* ecore.cs (PropertyExpr.DoResolve/DoResolveLValue): Check whether
we're not attempting to use an indexer. Fixes#52154.
svn path=/trunk/mcs/; revision=26094
* statement.cs (Return): Don't create a return label if we don't
need it; reverts my change from January 20th. Thanks to Ben
Maurer for this.
svn path=/trunk/mcs/; revision=26090
According to the spec, `goto' can only leave a nested scope, but
never enter it.
* statement.cs (Block.LookupLabel): Only lookup in the current
block, don't recurse into parent or child blocks.
(Block.AddLabel): Check in parent and child blocks, report
CS0140/CS0158 if we find a duplicate.
(Block): Removed this indexer for label lookups.
(Goto.Resolve): Call LookupLabel() on our current FlowBranching;
this already does the error reporting for us.
* flowanalysis.cs
(FlowBranching.UsageVector.Block): New public variable; may be null.
(FlowBranching.CreateSibling): Added `Block' argument.
(FlowBranching.LookupLabel): New public virtual method. Lookup a
label for the target of a `goto' and check whether we're not
leaving a `finally'.
svn path=/trunk/mcs/; revision=26089
* flowanalysis.cs (FlowBranching.UsageVector.MergeChild): If we're
a finite loop block, also do the ALWAYS->SOMETIMES for throws (not
just for returns).
svn path=/trunk/mcs/; revision=26086
* XmlSchemaComplexType.cs : Set basetype as ur-type for such complex
type that has an immediate Particle (W3C specified as restriction
of ur-type).
svn path=/trunk/mcs/; revision=26084
* XmlDataLoader.cs : Even when it should ignore schema, it was
infering schema.
* XmlSchemaDataImporter.cs : DataRelation creation support.
Improved "DataSet" element handing. When attributes are on the
element, it is not a "DataSet" element.
Fixed parent key column name.
Unique name creation is not required. Just raise an error.
Fill facet also for attribute types.
svn path=/trunk/mcs/; revision=26082
* flowanalysis.cs (FlowBranchingLoop): New class.
(FlowBranching.UsageVector.MergeJumpOrigins): Take a list of
UsageVector's instead of an ArrayList.
(FlowBranching.Label): Likewise.
(FlowBranching.UsageVector.MergeBreakOrigins): New method.
(FlowBranching.AddBreakVector): New method.
svn path=/trunk/mcs/; revision=26075
* attribute.cs (Attribute.Resolve): If we have a constant value
for a named field or property, implicity convert it to the correct
type.
svn path=/trunk/mcs/; revision=26069
* DataRow.cs : Null check for CheckReadOnlyStatus() and
CheckNullConstraints(), with some coding guideline fixes.
Type check should be done by Type instance comparison.
svn path=/trunk/mcs/; revision=26068
* XmlSchemaAttribute.cs : When type was inline simple type, it is not
validated correctly.
* XmlSchemaSimpleType.cs : When Content was restriction, DataType was
not indicating base type's Datatype correctly.
svn path=/trunk/mcs/; revision=26050
* Delegate.cs: GetObjectData should be virtual.
* IntegerFormatter.cs: Method factorization. I don't want to fix bugs in
30 methods almost identical.
* MulticastDelegate.cs: Implemented GetObjectData.
svn path=/trunk/mcs/; revision=26046
in interpreter
* interp.h: remove comma from end of enumeration constants
declarations
in io-layer
* daemon-messages.h:
* daemon-private.h
* error.h:
* io.h:
* processes.h:
* shared.h:
* thread-private.h:
* wapi-private.h: remove comma from end of enumeration declarations
* status.h: cast unsigned int types to int for enum assignment
in metadata
* file-io.h:
* socket-io.h:
* threads.h:
* unicode.h: remove comma from end of enumeration declarations
in mini
* driver.c: remove comma from end of enumeration declaration
in utils
* mono-logger.h: remove comma from end of enumeration declaration
svn path=/trunk/mono/; revision=26035
'child_variable_names' fields with parent blocks.
(Block.AddChildVariableNames): Remove.
(Block.AddVariable): Mark variable as "used by a child block" in
every surrounding block.
* ecore.cs (SimpleName.SimpleNameResolve): If the name has already
been used in a child block, complain about violation of "Invariant
meaning in blocks" rule.
* cs-parser.jay (declare_local_variables): Don't use
AddChildVariableNames.
(foreach_statement): Don't create an implicit block: 'foreach'
introduces a scope.
svn path=/trunk/mcs/; revision=26030
in io-layer
* io.c:
* timefuncs.c: Define 64 bit constants as long long types (i.e. 10ULL)
in metadata
* debug-mono-symfile.h:
* decimal.c:
* mono_debug.h:
* sysmath.c: Define 64 bit constants as long long types (i.e. 10ULL)
svn path=/trunk/mono/; revision=26029
* FunctionDeclaration.cs: let's make function name formation
(get_name ()) a little bit less dumb. We cache the prefix now so
we don't have to recalculate it everytime.
svn path=/trunk/mcs/; revision=26027
* DES.cs: Fixes to weak/semi-weak checking to pass new unit tests (it
requires to set odd parity on keys before comparing).
svn path=/trunk/mcs/; revision=26025
* DESTest.cs: New. Unit tests for DES including checks for weak and
semi-weak keys (with and without parity applied on keys). Completes
coverage for DES class.
svn path=/trunk/mcs/; revision=26023
* AsymmetricAlgorithm.cs: Moved XML comments to monodoc. Added
globalization to exceptions. Already had 100% coverage.
* AsymmetricKeyExchangeDeformatter.cs: Moved XML comments to monodoc.
Already had 100% coverage.
* AsymmetricKeyExchangeFormatter.cs: Moved XML comments to monodoc.
Already had 100% coverage.
* AsymmetricSignatureDeformatter.cs: Moved XML comments to monodoc.
Already had 100% coverage.
* AsymmetricSignatureFormatter.cs: Moved XML comments to monodoc.
Already had 100% coverage.
* CryptoAPITransform.cs: Unused by Mono (added note to monodoc).
Class will stay at 0% coverage.
* CryptoConfig.cs: Added globalization to exceptions. 98% coverage.
* CryptographicException.cs: Added globalization to exceptions.
Already had 100% coverage.
* CryptoStream.cs: Added globalization to exceptions. Removed (unused)
field _previousBlock to get 100% coverage.
* CspParameters.cs: Moved XML comments to monodoc. Already had 100%
coverage.
* CspProviderFlags.cs: Moved XML comments to monodoc.
* DeriveBytes.cs: Moved XML comments to monodoc. Already had 100%
coverage.
svn path=/trunk/mcs/; revision=26022
PublicKeyToken is specified, not the hash_value. Free public token
values when free assembly name data. Previously the public key
token was hex decoded, however we are using hex encoded public key
tokens, so this is not neccasary.
* assembly.c: Lookup assemblies in the gac if their public token
value is set. Add function to allow enabling user gac
lookups. Specify whether or not the assembly was loaded from the
GAC. Compare full assembly names when checking the cache for
assemblies (Temporarily disabled see comment in code). Remove
mscorlib -> corlib mapping cruft. Add trace-loading. When a user
specifies trace-loader they get extra info to stdout on the
loading of assemblies.
* image.h: Add a field for an assembly references public token
value to MonoAssemblyname. Add a field to MonoAssembly to specifiy
whether an assembly has been loaded from the GAC.
* image.c: Remove a corlib -> mscorlib name mapping.
* loader.h: Add function to enable/disable the user gac.
* mono-config.c: Check if the usergac is enabled in the config
file.
* icall.c: New icall to determine whether or not an assembly has
been loaded from the GAC. Remove some mscorlib -> corlib mappings.
* tabldefs.h: Add constant for assemblyref flag that specifies a
full public key is used instead of a public token.
* reflection.c: Remove mscorlib -> corlib mappings. Set
PublicTokenValue instead of hash value. This value is a hex
string so it does not need to be expanded.
svn path=/trunk/mono/; revision=26012
* DateAndTime.cs:
Catch FormatException and rethrow as InvalidCastException in:
- public static System.DateTime DateValue (string StringDate) - return only the Date Part
- public static System.DateTime TimeValue (string StringTime) - return only the Time Part
svn path=/trunk/mcs/; revision=25997
Image.cs: Corrected implementation of property RawFormat.
gdipFunctions.cs: Corrected declaration of function GdipGetImageRawFormat.
svn path=/trunk/mcs/; revision=25994
gdipFunctions.cs: Added few linux only function calls.
Image.cs: Changed the implementation of few methods to proceed with
ImageAnimator class.
Bitmap.cs: Resolved a compile time error.
Icon.cs: Removed an unused variable
svn path=/trunk/mcs/; revision=25964
- Reader can have empty results (fo example from UPDATE or DELETE).
- Reader can have results with no rows (SELECT that returns 0 rows but have columns)
- In FillTable - skip rows only once for each table.
svn path=/trunk/mcs/; revision=25961
* CaseInsensitiveHashCodeProvider.cs: Fix the default constructor (needs to
set CurrentCulture, Add null check to other constructor, Call correct function
for invariant case, ensure culture is set to null for invariant case, removed
static constructor, made invariant version available as internal in .Net 1.0
svn path=/trunk/mcs/; revision=25954
* String.cs: Refactored the Invariant ToXXX into its own internal methods
so they are directly callable within corlib (can prevent early
construction of CultureInfo, InvariantCulture and related classes)
svn path=/trunk/mcs/; revision=25947
* String.cs: Managed impl. of Invariant parts of ToLower, ToUpper
* Char.cs: Managed impl. of Invariant parts of ToLower, ToUpper
svn path=/trunk/mcs/; revision=25943
* icall.c: icalls for Char.ToUpper/ToLower are now hooked to
InternalToUpper/InternalToLower.
* locales.c: (ves_icall_System_{Char,String}_InternalTo{Upper,Lower}_Comp)
removed invariant culture shortcut. This is now done in managed code.
* locales.c: (string_invariant_toupper/tolower) removed.
svn path=/trunk/mono/; revision=25942
W3C DOM compliant read-only check support (buggy part in MS.NET).
* XmlAttribute.cs,
XmlCDataSection.cs,
XmlCharacterData.cs,
XmlDocument.cs,
XmlElement.cs,
XmlNode.cs,
XmlSignificantWhitespace.cs,
XmlText.cs
: CloneNode() - set read-only when copied node is read-only.
Check IsReadOnly on attempt to modify value.
* XmlEntity.cs,
XmlEntityReference.cs : Set descendant nodes read-only.
* XmlAttributeCollection.cs,
XmlNode.cs
: Fixed incompatible exception type.
* XmlEntityReference.cs : CloneNode() should not pass an empty string
as its name.
* XmlEntityReference.cs,
XmlProcessingInstruction.cs : Check XML name validity.
* XmlText.cs : CloneNode() does not have to check children.
svn path=/trunk/mcs/; revision=25938
* XmlConvertTests.cs : Commented out locale-dependent tests.
* XmlDocumentTests.cs : Uncommented now-testable lines.
Commented out that should not be allowed, such as non-XML-name node.
svn path=/trunk/mcs/; revision=25936
* Attribute.cs, Compiler.cs, Debug.cs, Emitter.cs,
MSXslScriptCompiler.cs, Outputter.cs, XslAttributeSet.cs,
XslDecimalFormat.cs, XslKey.cs, XslStylesheet.cs, XslTemplate.cs,
XslTransformProcessor.cs : Make extra classes internal.
* XslKey.cs : It should require sorting.
* Debug.cs : Just avoid debug output. Only who want to output should
turn it on.
svn path=/trunk/mcs/; revision=25930
* TypeDescriptor.cs: fixed ComponentInfo.GetAttributes(). Now it returns
all the attributes, not just DesignerAttribute instances. nGallery
complained.
svn path=/trunk/mcs/; revision=25919
* io-layer/socket-wrappers.h: _wapi_socket == WSASocket now. Added
WSA_FLAG_OVERLAPPED.
* io-layer/sockets.c: new unused parameters for _wapi_socket.
* metadata/icall.c: added GetSupportsAsync for Socket (same as MonoIO).
Added Poll internal call.
* metadata/socket-io.[ch]: _wapi_socket == WSASocket. Added internal
call for Poll. Select was too heavy for polling a single socket.
* metadata/threadpool.[ch]: added mono_threadpool_cleanup.
* metadata/threads.c: use it. Don't use Thread_Abort on windows.
svn path=/trunk/mono/; revision=25915
* Socket.cs: added GetSupportsAsync and Poll_internal internal calls.
Cleaned up Worker class: moved fields to SocketAsyncResult and use Poll
when the socket is non-blocking before getting EWOULDBLOCK error.
svn path=/trunk/mcs/; revision=25914
* mini-ppc.c (ppc_patch): Replaced the branch code patching with a
simpler mechanism: we do not care what is encoded initially
(branch absolute or relative), we care about the code and its
target. I kept the old code for reference for now.
The new code tries first to determine if the jump is anywhere in
the -/+32 absolute meg range, if it succeeds, it encodes using the
absolute branch; If not, it tried to find something in the
relative range, if not, it uses the handle_thunk code.
svn path=/trunk/mono/; revision=25908
* icall.c: Registred new icalls for key pair protection and added an
icall for Environment.GetFolderPath on Windows.
* security.c|h: Added new icalls for key pair protection.
svn path=/trunk/mono/; revision=25892
* cert2spc.cs: Updated to match changes in Mono.Security.dll. Better
handling of files.
* certmgr.cs: Updated to match changes in Mono.Security.dll.
* signcode.cs: Updated to match changes in Mono.Security.dll.
svn path=/trunk/mcs/; revision=25873
* timed-thread.c: Replace sem_init with MONO_SEM_INIT to handle
the fact that MacOS X is a piece of junk (sem_init is *defined* in
the libc, but they return `not implemented').
svn path=/trunk/mono/; revision=25870
* GcdBigTest.cs: Ajusted to changes in assembly.
* ModInverseBigTest.cs: Ajusted to changes in assembly.
* PrimeGenerationTest.cs: Ajusted to changes in assembly.
* PrimeTestingTest.cs: Ajusted to changes in assembly.
* SearchGeneratorTest.cs: Ajusted to changes in assembly.
svn path=/trunk/mcs/; revision=25865
* TlsClientCertificateVerify.cs: Use Buffer.BlockCopy instead of
Array.Copy.
* TlsServerCertificate.cs: Changed KeyUsage to KeyUsages and CertType
to CertTypes.
svn path=/trunk/mcs/; revision=25863
* CryptoConvert.cs: FxCop-ized. Sealed class. Use Buffer.BlockCopy.
* CryptoTools.cs: FxCop-ized. Sealed KeyBuilder class. Delay creation
of RNG object. Use Buffer.BlockCopy.
* DiffieHellman.cs: FxCop-ized. Removed public constructor.
* DiffieHellmanManaged.cs: FxCop-ized. Actualized with changes from
BigInteger.
* KeyPairPersistance.cs: FxCop-ized. Updated version for management
of keypairs.
* MD2Managed.cs: Use Buffer.BlockCopy instead of Array.Copy.
* PKCS1.cs: FxCop-ized. Sealed class. Use Buffer.BlockCopy instead of
Array.Copy. Also includes endian patches from Bernie Solomon.
* PKCS8.cs: FxCop-ized. Sealed class.
* RSAManaged.cs: FxCop-ized. Actualized with changes from BigInteger.
* SymmetricTransform.cs: Use Buffer.BlockCopy instead of Array.Copy.
svn path=/trunk/mcs/; revision=25859
All fixes are to make them pass under MS.NET 1.1.
* ConstraintCollectionTest.cs : Fixed to pass under MS.NET 1.1.
* DataRelationTest.cs : Creation4() never works.
* DataSetInferXmlSchemaTest.cs :
Fixed xml9 test (relation count).
Some mappings were incorrectly specified int.
ConflictColumnTable() test incorrectly tested different columns.
Fixed exception type on ConflictExistingPrimaryKey().
* DataSetReadXmlSchemaTest.cs :
Use fixed current culture.
Fixed exceptoin type on NestedReferenceNotAllowed().
* DataSetReadXmlTest.cs :
InferSchema mode is said as to load rows.
* DataSetTest.cs :
SqlGuid test depends on the runtime version.
In WriteDifferentNamespaceSchema(), we're going to set the same
order for namespaces (just for ease of tests).
Fixed many bugs on SerializeDataSet() test.
* DataTableTest.cs :
Set culture only on NET_1_0. Culture difference causes exception
under .NET 1.1.
Don't depend on error message string (consider localization).
Under .NET 1.1, constraints looks also vanishes on table's Clear().
* ForeignKeyConstraintTest.cs :
Ignore TestCtor5(). That does not work under .NET 1.1.
Fixed some exception type differences.
svn path=/trunk/mcs/; revision=25853
* mini-ppc.c, cpu-g4.md: made the branch macros more flexible.
Raise exception on integer divide by zero by hand since the hw
doesn't support it. Handle NaNs in FP compares.
svn path=/trunk/mono/; revision=25844
* AppDomainSetup.cs: When setting a relative path to ApplicationBase, it
must be relative to the current directory, not the temp directory.
Implemented DynamicBase.
* Convert.cs: No need to create a ToBase64Transform instance at every call
to ToBase64CharArray.
* DateTime.cs: Implemented missing methods FromFileTimeUtc and
ToFileTimeUtc.
* Decimal.cs: Implemented FromOACurrency and ToOACurrency.
* Delegate.cs: Removed class TODO.
* IntegerFormatter.cs: Use Char.IsLetter and Char.IsDigit instead of ad-hoc
methods.
* Type.cs: Removed TODOs for things already implemented.
svn path=/trunk/mcs/; revision=25840
* decl.cs (FindMemberToOverride): Fix wrong warning for case when
derived class hides via 'new' keyword field from base class (test-242.cs).
TODO: Handle this in the more general way.
* class.cs (CheckBase): Ditto.
svn path=/trunk/mcs/; revision=25839
* handles.c:
* handles-private.h: Reference the handle when it is locked, so
that another thread can't blow it away while we're waiting for it
to become signalled.
* wait.c:
* timed-thread.c:
* threads.c:
* sockets.c:
* semaphores.c:
* mutexes.c:
* mono-mutex.c:
* io.c:
* handles.c:
* handles-private.h:
* events.c:
* error.c:
* daemon-messages.c:
* critical-sections.c:
* atomic.c: Added pthreads cleanup handlers and error asserts
* shared.c:
* handles.c: Fixed the gcc "variable might be used uninitialised"
warnings. They can't happen, but gcc doesn't know that
g_assert()s don't return.
Fixed the declaration of _wapi_handle_process_kill() so that it
expects the correct type for the pid.
* threads.c: Removed the TLS_PTHREAD_MUTEX style locking that
hasn't been used in ages and just made the code more complex.
svn path=/trunk/mono/; revision=25834
* exceptions-ppc.c, mini-ppc.h, mini.c: simplified some
code reducing duplication between the platforms and enabled
signal exception handling (on linux for now).
svn path=/trunk/mono/; revision=25831
* Parser.jay: Allow computed expressions on left-hand side of
"like" operator.
Correct ordering for "is null" rule ("NOT IS NULL" => "IS NOT NULL").
svn path=/trunk/mcs/; revision=25826
* DataSet.cs : Data should be read when mode is IgnoreSchema (well,
the support is incomplete yet).
* XmlDataLoader.cs :
Reverted ReadModeSchema() argument change. XmlReadMode would be
useful to handle IgnoreSchema.
Don't overwrite DataSetName when mode is not such kind.
Set Prefix and Namespace as well as DataSetName.
AllowDBNull looks set false by default for element column.
Set unique constraint as primary key when infering the table schema.
svn path=/trunk/mcs/; revision=25821
* decl.cs (caching_flags): New member for storing cached values
as bit flags.
(MemberCore.Flags): New enum where bit flags for caching_flags
are defined.
(MemberCore.cls_compliance): Moved to caching_flags.
(DeclSpace.Created): Moved to caching_flags.
* class.cs: Use caching_flags instead of DeclSpace.Created
svn path=/trunk/mcs/; revision=25816
* socket-io.c: don't display the non-supported family warning for known
families. Now this is not displayed on windows when checking support
for IPv4/IPv6.
svn path=/trunk/mono/; revision=25809
* NewMonoXSD.cs : Added support for (ADO.NET based) xsd inference.
Changed command line usage to require /c for serialization class
generation, or /d for typed dataset generation (not supported yet).
Modified usage message due to the changes above.
* Makefile : Added reference to System.Data.dll.
svn path=/trunk/mcs/; revision=25806
* ecore.cs (PropertyExpr.GetAccesor): Only perform the 1540 check
if we are only a derived class, not a nested class.
* typemanager.cs: Same as above, but do this at the MemberLookup
level (used by field and methods, properties are handled in
PropertyExpr). Allow for the qualified access if we are a nested
method.
svn path=/trunk/mcs/; revision=25802
* Npgsql/NpgsqlDataAdapter.cs: Changed RowUpdated and RowUpdating prefix to Npgsql.
* Npgsql/NpgsqlClosedState.cs: Removed dependency in TlsException. Carlos Guzman will change this excpetion to internal.
* Npgsql/NpgsqlCommand.cs * Npgsql/NpgsqlCommand.resx * Npgsql/NpgsqlConnection.cs * Npgsql/NpgsqlConnection.resx * Npgsql/NpgsqlDataAdapter.cs * Npgsql/NpgsqlError.cs * Npgsql/NpgsqlException.cs * Npgsql/NpgsqlException.resx * Npgsql/NpgsqlMediator.cs * Npgsql/NpgsqlState.cs * Npgsql/NpgsqlState.resx * Npgsql/PGUtil.cs : Added initial error handling code improvements. Thanks Glen Parker ([email protected]) for the patch. NpgsqlException now gives aceess to error collection through the Errors property. This property return a collection of NpgsqlErrors objects. Also it gives access to error message, hint, severity and code. This fixes the feature request 689 in gborg.
svn path=/trunk/mcs/; revision=25786
* DataSet.cs :
Never set null string for Prefix and Namespace.
In InferXmlSchema() when null XmlReader is passed, just do nothing.
In WriteXmlSchema(string), earlier try block.
In BuildSchema(), try to add serialization namespaces for each
namespaces in DataSet/DataTable/DataColumn.
Removed namespace argument from WriteColumnAsElement() and don't
overwrite when namespace is "". This fixes bug #57330.
* DataColumn.cs : For Namespace and Prefix, never set null.
svn path=/trunk/mcs/; revision=25777
* class.cs: Refactoring.
(IMethodData): New inteface; Holds links to parent members
to avoid member duplication (reduced memory allocation).
(Method): Implemented IMethodData interface.
(PropertyBase): New inner classes for get/set methods.
(PropertyBase.PropertyMethod): Implemented IMethodData interface
(Event): New inner classes for add/remove methods.
(Event.DelegateMethod): Implemented IMethodData interface.
* cs-parser.jay: Pass DeclSpace to Event class for creation of valid
EmitContext (related to class.cs refactoring).
svn path=/trunk/mcs/; revision=25773
- CaseSensitive : Additional fix (removed unnesessary assignment).
- CopyProperties : Do not try to copy ExtendedProperties if the collection is empty.
svn path=/trunk/mcs/; revision=25766
arguments are the same as the number of parameters, first try to
verify applicability ignoring any 'params' modifier on the last
parameter.
Fixes#56442.
svn path=/trunk/mcs/; revision=25763
interoperability). I also had to make some changes in the implementation:
I added a field _tail that points at the first free position in the array, and
changed the type of growFactor, which is now an int (its value is the old
growFactor * 100).
svn path=/trunk/mcs/; revision=25742
* XmlSchemaImporter.cs: If a map was initially imported as a class, but it
turns out that it is an array, import it again as array. This fixes
bug #57133.
svn path=/trunk/mcs/; revision=25735
- EndLoadData() : perfomance fix in case of null constraint violation during data load (also in DataRow.cs).
- CaseSensitive : If DataTable belongs to DataSet it should always use DataSet.CaseSensitive untill explicitly changed.
- CopyProperties() : do not try to copy ExtendedProperties if the collection is empty.
* DataRow.cs :
- Pefromance fix in case of null constraint violation during data load (also in DataTable.cs).
- CollectionChanged() : use correct column number after new DataColumn was added (differs in case some DataColumn was previosly removed).
- EndEdit() - throw away proposed values only after CheckChildRows() complete.
svn path=/trunk/mcs/; revision=25734
* DataSetInferXmlSchema.cs : added more 16 patterns.
(mostly fails as yet).
* DataSetReadXmlTest.cs : Reverted yesterday's incorrect part.
As for XmlReadMode = Auto, data row should be read.
* DataSetTest.cs : Added Namespace and Prefix tests.
Added WriteDifferentNamespaceSchema().
hmm... WriteXmlSchema() also needs more love :(
svn path=/trunk/mcs/; revision=25733
* mono-debug-debugger.c (mono_debugger_lookup_type): Make a copy
of the type name before passing it to mono_reflection_type_from_name().
svn path=/trunk/mono/; revision=25732
in DataColumn.SetTable() the additional creation of constraint in
DataColumnCollection.Add() is redundant and causes exception - fixed.
svn path=/trunk/mcs/; revision=25731
* ConfigXmlDocument.cs: fixed overloaded Load and added a new one that
sets the file name.
* ConfigurationSettings.cs: use the new Load in ConfigXmlDocument when
loading sections.
* NameValueFileSectionHandler.cs: don't fails if the path for the 'file'
attribute doesn't have a directory.
Closes bug #57244.
svn path=/trunk/mcs/; revision=25728
* XmlDocumentNavigator.cs : MoveToFirstChild() failed when there is
only an EntityReference (not navigatable) child. Bug #57248 fixed.
* XmlWriter.cs : Modified WriteNode() to use MoveToAttribute(int)
instead of WriteAttributes() only for MS.NET behavior compatibility.
This change makes SgmlReader usable (due to SgmlReader bug).
svn path=/trunk/mcs/; revision=25718
* WindowsIdentityTest.cs: Don't fail on Windows for some contructor
tests (in NET_1_1). Checking for Windows 2003 Server isn't enough as
the domain must also be Windows 2003 Server based to work. Also skip
the GetRolesViaReflection when running os POSIX systems.
svn path=/trunk/mcs/; revision=25716
* Makefile.am:
* interp.h:
* interp.c: now interprets different VM code
* mintops.h:
* mintops.def:
* mintops.c: definition of new VM code
* transform.c: convert CIL to new VM code
svn path=/trunk/mono/; revision=25712
stream header in the case of unrecognised names
* metadata.c: mono_metadata_encode_value changed to correctly handle
a value of exactly 16k. Also, the expression is changed to use the
same comparison and hex values for easier comprehension.
svn path=/trunk/mono/; revision=25695
* Array.cs: Removed some TODOs in CreateInstance and IndexOf.
* BadImageFormatException.cs: TODO reformat.
* DateTime.cs: Implemented GetDateTimeFormats and GetDateTimeFormats.
* DelegateSerializationHolder.cs: Made class internal.
* Enum.cs: Removed TODO for localization, since this is something that has
to be done for all classes.
* Environment.cs: Removed TODO.
* Exception.cs: Changed ToString to use StringBuilder.
* MonoDummy.cs: Made class internal.
* UnitySerializationHolder.cs: Added support for modules.
svn path=/trunk/mcs/; revision=25692
* XmlDataLoader.cs : Added "never add data rows" mode.
Removed unused code. However, it is temporary fixes to unify
ReadXml() and InferXmlSchema().
* DataSet.cs : Implemented InferXmlSchema(), though it is incomplete.
I'll create another XmlDataLoader since there are many problems
such that 1) it is too waste to read the entire xml into an
XmlDocument, 2) it does not handle attributes correctly, and 3) it
must handle "ignored namespaces".
svn path=/trunk/mcs/; revision=25681
* Added DataSetInferXmlSchemaTest.cs.
* DataSetReadXmlTest.cs : Fixed test bogus. When ReadMode is
InferSchema, it should not load any data rows.
* DataSetAssertion.cs : Added AssertDataSet() overroad that takes
relation count.
svn path=/trunk/mcs/; revision=25680
* region.xsd : To make sure that "msdata" prefix has nothing to do
with the actual "msdata namespace", modified namespace URI string.
(This modification never affects on the results under MS.NET.)
* XmlDataDocumentTest.cs : Make sure Read2() loaded the table just fine.
svn path=/trunk/mcs/; revision=25679
* Added XmlSchemaDataImporter.cs (new schema reader).
* DataSet.cs : Use XmlSchemaDataImporter (right now for DataSet only)
for ReadXmlSchema().
Let schema reading work to ReadXmlSchema().
Don't return ReadSchema when argument read mode was DiffGram.
svn path=/trunk/mcs/; revision=25673
* Added missing ChangeLog entry.
* ConstraintCollectionTest.cs :
Ignore some tests that should fail (They also fail under MS.NET).
* DataSetReadXmlSchemaTest.cs :
- Added SingleElementTreatmentDifference() and PrefixedTargetNS().
- Modified UnusedComplexTypesInored() to make sure DataSetName is set.
- Renamed DataSetElementCannotBeReferenced() to
NestedReferenceNotAllowed().
- Modified ReadElemAttrPattern() to LocaleOnRootWithoutIsDataSet()
to test msdata:Locale.
* DataSetTest.cs : Due to mcs bug #57200, csc does not allow
System.Type.GetType(), so modified them all.
svn path=/trunk/mcs/; revision=25672
* icall.c (ves_icall_System_Text_Encoding_InternalCodePage):
fix test on strstr result not that I can see anything that
relies on the result.
svn path=/trunk/mono/; revision=25667
* marshal.c (mono_marshal_get_string_encoding): New helper function.
* marshal.c (mono_marshal_get_native_wrapper): Use the new helper
function to determine which marshalling to use for strings. Fixes
#56965.
* marshal.c (mono_marshal_string_array_to_unicode): Fix warning.
svn path=/trunk/mono/; revision=25662
The change in DataSource prevents throwing ArgumentException while
setting property value to null.
The change in InstantiateItem() prevents NullReferenceException.
svn path=/trunk/mcs/; revision=25658
* Statement.cs (class if): reimplemented Emit based on fall_false.
* Equality.cs: added code generation for != and emit jumping code
only in the case we are at a global expression not statement.
* CodeGenerator.cs (fall_true, fall_false): Check if convertion to
boolean needed. Made emit_to_boolean internal. Added need_convert_to_boolean.
svn path=/trunk/mcs/; revision=25649
* ReflectionPropertyDescriptor.cs: Access internal PropertyInfo through
GetPropertyInfo(). Take into account that a component may not be sited or
not have some services.
* TypeDescriptor.cs: GetTypeFromName(): Added null check for Site property.
Other minor fixes.
2004-04-16 Joerg Rosenkranz <[email protected]>
* TypeDescriptor.cs: Fixed implementation of GetConverter.
This fixes#57137.
svn path=/trunk/mcs/; revision=25616
* threads.c (Sleep): Using div(3) with a negative (when signed)
numerator causes the quotient to be 0 and the remainder to be the
numerator. This feeds a small negative value to nanosleep(3),
which will return immediately and cause a busy wait. Fixes bug
56351.
svn path=/trunk/mono/; revision=25603
'ExplicitInterfaceName' to determine if interface name was
explicitly specified. 'InterfaceType' is not initialized at this time.
(TypeContainer.DefineIndexers): Remove use of temporary list. The
Indexers array is already in the required order. Initialize
'IndexerName' only if there are normal indexers.
(TypeContainer.DoDefineMembers): Don't initialize IndexerName.
(TypeContainer.Emit): Emit DefaultMember attribute only if
IndexerName is initialized.
Fixes#56300.
svn path=/trunk/mcs/; revision=25598
* FileStream.cs: only pass the async flag set to true when opening the
file and AIO is supported by the underlying system. Fixes bug #56883.
svn path=/trunk/mcs/; revision=25597
* exceptions-*.c (mono_arch_handle_exception): Do not overwrite the
original stack trace if an exception is rethrown. Fixes#56782. Oh,
the beauty of fixing the same thing in 5 different files...
svn path=/trunk/mono/; revision=25592
* DecimalFormatter.cs: Don't append a decimal point after the
end of a number. ((decimal)1).ToString("P0") should be "100 %", not
"100. %"
svn path=/trunk/mcs/; revision=25591
Checked delaration of Types, fields, methods as Protected if they are member of Module type
* const.cs: Checked delaration of constructor as Protected if it is member of Module type
* driver.cs: exception number is changed for "Entry point does not exist" exception
svn path=/trunk/mcs/; revision=25589
* HttpUtility.cs: return null in HtmlDecode for null input instead of
throwing an exception. Patch by Jan Jaros (bug #57083).
svn path=/trunk/mcs/; revision=25586
* SoapFormatter.cs, SoapWriter.cs, SoapReader.cs, SoapTypeMapper.cs:
Some parts of the code have been rewritten to make it easier
to understand and maintain.
AssemblyFormat and TypeFormat are implemented.
* ISoapParser.cs, ISoapReader.cs, ISoapWriter.cs, SoapCommon.cs,
ObjectReader.cs, ObjectWriter.cs, SoapParser.cs, SoapTypeMapping.cs:
Removed for the same reasons as above.
* SerializationTest.cs:
New unit test.
svn path=/trunk/mcs/; revision=25570
don't use type name for array types, since we can have different classes
that represent the same array type (for example StringCollection and
string[]).
svn path=/trunk/mcs/; revision=25557
* io-private.h:
* io.c: Rewrite FindFirstFile and FindNextFile using scandir(3)
and fnmatch(3) instead of glob(3). glob() can't cope with being
given filenames containing metachars. This fixes bug 40557.
svn path=/trunk/mono/; revision=25553
* assembly.c: load per-assembly config files.
* icall.c: decrapified code to get the config dir and moved to
mono-config.c.
* image.h, loader.c, loader.h, mono-config.c, mono-config.h: allow
per-assembly config files. When doing a dll map lookup give precedence
to the per-assembly data.
svn path=/trunk/mono/; revision=25541
* XmlSchemaMapper.cs : set parent key and foreign key info to
DataRelation when reading refkey constraints.
Supply constraint name for fkey.
svn path=/trunk/mcs/; revision=25535
attributes.
Fix for #56456.
* attribute.cs (Attribute.Resolve): Check for duplicate named
attributes.
Fix for #56463.
svn path=/trunk/mcs/; revision=25532
* iterators.cs (MarkYield): track whether we are in an exception,
and generate code accordingly. Use a temporary value to store the
result for our state.
I had ignored a bit the interaction of try/catch with iterators
since their behavior was not entirely obvious, but now it is
possible to verify that our behavior is the same as MS .NET 2.0
Fixes 54814
svn path=/trunk/mcs/; revision=25530
* iterators.cs: Avoid creating temporaries if there is no work to
do.
* expression.cs (ArrayAccess.EmitLoadOpcode): If dealing with
Enumerations, use TypeManager.EnumToUnderlying and call
recursively.
svn path=/trunk/mcs/; revision=25529
* XmlDataLoader.cs : Don't overwrite existing DataSetName. When read
mode is Auto, just ignore the schema if there is already schema info.
* DataSet.cs : Similarly ignore schema info for XmlReadMode = Auto.
svn path=/trunk/mcs/; revision=25528
* DataSetReadXmlTest.cs : Tests were incorrect. They should be done
against new dataset. So just added another sequential read tests.
svn path=/trunk/mcs/; revision=25527
* mono-debug-debugger.h (MonoDebuggerEvent): Removed
MONO_DEBUGGER_EVENT_TYPE_ADDED and MONO_DEBUGGER_EVENT_METHOD_ADDED
and added MONO_DEBUGGER_EVENT_RELOAD_SYMTABS.
* mono-debugger-debugger.c: While the debugger is locked, remember
whether the symbol tables have changes and send one single
MONO_DEBUGGER_EVENT_RELOAD_SYMTABS when releasing the lock.
svn path=/trunk/mono/; revision=25526
* expression.cs (Binary.Emit): treat boolean operator
specially. Added emit_jumping_code.
* CodeGenerator.cs: Added emit_to_boolean. Added fall_true and
fall_false, which will express all boolean expressions and control
flow conditions.
svn path=/trunk/mcs/; revision=25514
support. What started as an innocent 10-line patch turned into a big
witch hunt.
2004-04-14 Miguel de Icaza <[email protected]>
* expression.cs (This.Emit): Use EmitContext.EmitThis to emit our
instance variable.
(This.EmitAssign): Ditto.
* ecore.cs (FieldExpr.Emit): Remove RemapToProxy special
codepaths, we will move all the functionality into
Mono.CSharp.This
(FieldExpr.EmitAssign): Ditto.
This fixes several hidden bugs that I uncovered while doing a code
review of this today.
* codegen.cs (EmitThis): reworked so the semantics are more clear
and also support value types "this" instances.
* iterators.cs: Changed so that for iterators in value types, we
do not pass the value type as a parameter.
Initialization of the enumerator helpers is now done in the caller
instead of passing the parameters to the constructors and having
the constructor set the fields.
The fields have now `assembly' visibility instead of private.
svn path=/trunk/mcs/; revision=25513
* win32structs: made members internal
* FileDialog.cs
* OpenFileDialog.cs
* SaveFileDialog.cs: made methods pure internal
svn path=/trunk/mcs/; revision=25506
* DataSet.cs :
- In MS output, XML declaration looks to have standalone decl (yes).
- ReadXml(reader) just calls to ReadXml(reader, XmlReadMode.Auto)
- ReadXml(reader, mode)
1) return originally specified mode, instead of (always) Auto.
2) Check empty reader.
3) Check diffgram schema and content separately.
4) When diffgram exists, remaining (the same-level) contents
won't be consumed.
5) Similar fact should be applied, but somewhat different.
InferSchema and IgnoreSchema just skips, Fragment reads both
schema and content, others just reads schema.
- Removed unused code.
* XmlDataLoader.cs :
- Read() should skip in some ReadMode.
- Don't compare schema element name as case-insensitive (well,
should schemas be checked here?)
- Avoided BuildDocument() not to create confusing DataSet
document element.
- Don't add any tables when reader has single element.
* XmlDiffLoader.cs :
When target table was not found, MS.NET doesn't raise an error.
* XmlSchemaMapper.cs :
When XmlSchema.Read() left xml reader at </xs:schema>, read once.
svn path=/trunk/mcs/; revision=25494
* UTF8EncodingTest.cs: Ajusted test 3.3.6 and 3.3.7 because MS accept
invalid UTF8 (when it shouldn't) and Mono doesn't. Both case are now
accepted by the unit tests.
svn path=/trunk/mcs/; revision=25486
* UTF8EncodingTest.cs: Added 70 new unit tests from UTF-8-test.txt
(available from http://www.cl.cam.ac.uk/~mgk25/). Tests are adapted
so MS implementation pass them all.
svn path=/trunk/mcs/; revision=25476
* DesignerAttribute.cs: Fixed property TypeId.
* EventDescriptorCollection.cs: Added internal constructor. Added new
method Filter that removes events that do not have the specified
attributes.
* MemberDescriptor.cs: Minor fixes.
* PropertyDescriptor.cs: Implemented some missing methods.
* PropertyDescriptorCollection.cs: Added internal constructor. Implemented
Sort methods.
* ReferenceConverter.cs: Removed some TODOs.
* SyntaxCheck.cs: Implemented CheckMachineName and CheckPath.
* TypeDescriptor.cs: Implemented most of missing methods.
svn path=/trunk/mcs/; revision=25473
* monoburg.c, monoburg.h, monoburg.y: changed the grammar so that
the same emit code can be easily associated with multiple rules.
Coalesce identical emit functions to reduce code size (10 KB - 10 % -
with the current unchanged x86 JIT rules).
svn path=/trunk/mono/; revision=25460
* DataSet.cs :
- InferXmlSchema(): Throw explicit NotImplementedException now.
- Don't put XML declaration everywhere. Write just for filename arg.
- xmlns="" should not be written. Maybe WebService problem is
because default namespace is overwritten. This patch will keep
the WS problem away and actually fixes some unit tests (i.e. use
explicit String.Empty for null namespace in WriteStartElement()).
- MoveToContent() should always be called, not only when
LocalName="xml". It will ignore prolog (DTD, PI, comment etc.).
- Even XmlReadMode is DiffGram, reader might not be "diffgram"
element. As to MSDN, diffgram does not contain schema.
svn path=/trunk/mcs/; revision=25448
* security.c|h: Removed GetUserName as glib g_get_user_name does a
better (portability) job. Added ImpersonateLoggedOnUser and
RevertToSelf.
svn path=/trunk/mono/; revision=25444
* Console.cs: Use new codepage setup.
2004-04-13 Miguel de Icaza <[email protected]>
* Encoding.cs: Use new internal codepage setup.
svn path=/trunk/mcs/; revision=25434
* appdomain.c: Pass arguments to the bootstraping exceptions to
minimize JITed methods at boot
* metadata.c (mono_exception_from_name_two_strings): Allow for the
second string to be null.
* icall.c (ves_icall_System_Text_Encoding_InternalCodePage):
Change the protocol to minimize the JIT methods at startup. Now
it Returns the internal codepage, if the value of "int_code_page"
is 1 at entry, and we can not compute a suitable code page
number, returns the code page as a string.
2004-04-13 Miguel de Icaza <[email protected]>
* inssel-x86.brg (reg): Add new rules for add, sub and mul that
can use the memory directly.
* cpu-pentium.md: Update documentation from a post from Zoltan.
add x86_add_membase, x86_sub_membase, x86_mul_membase
svn path=/trunk/mono/; revision=25433
* mini-ppc.c: Remove unused definitions FLOAT_REGS and
GENERAL_REGS they were also hardcoded for all PPC ports.
(add_general): Use PPC_NUM_REG_ARGS instead of GENERAL_REGS.
Remove hard-coded limit for floating point registers, use
PPC_LAST_FPARG_REG instead in MONO_TYPE_R4 and MONO_TYPE_R8.
Notice that in MacOS X calling conventions you can fit a lot more
floating point values in registers, so I should update the PInvoke
test to excercise the passing of floating point values on the
stack (currently broken).
svn path=/trunk/mono/; revision=25429
* CapiContext.cs: Better support to create key container (when non
existing). Added machine key container support. FxCop-ized.
* CapiHash.cs: FxCop-ized for CLS compliance and GC awareness.
* CapiRandomNumberGenerator.cs: Now use properties (not fields).
* CryptoAPI.cs: Changed some uint to int for easier CLS compliance.
svn path=/trunk/mcs/; revision=25426
* ThreadTest.cs: Removed [Ignore] on WindowsPrincipal test. Adjusted
CurrentPrincipal tests to work on both Windows and Linux.
svn path=/trunk/mcs/; revision=25400
* WindowsIdentityTest.cs: Adjusted unit tests to run on both Windows
and Linux (or any POSIX compliant OS).
* WindowsPrincipalTest.cs: Removed [Ignore] from some tests.
svn path=/trunk/mcs/; revision=25398
* WindowsIdentity.cs: Implemented for both Windows and Linux. Fix bug
#52532. Class is only missing serialization bits.
* WindowsImpersonationContext.cs: Implemented for both Windows and
Linux. Fix bug #52532.
* WindowsPrincipal.cs: Implemented for both Windows and Linux. Fix
bug #52532.
svn path=/trunk/mcs/; revision=25395
* icall.c (ves_icall_Type_GetPropertiesByName): Avoid duplicate
properties when only the set accessor is overriden. Fixes#55874.
svn path=/trunk/mono/; revision=25394
if the thread already has the lock. Added readyWaitingReaders variable to
keep track of threads ready to get the reader lock.
svn path=/trunk/mcs/; revision=25390
* ConstraintCollectionTest.cs - Added Testcase for UniqueConstraint constructor
to be used with the AddRange method
svn path=/trunk/mcs/; revision=25384
* Modified UniqueConstraint.cs, ConstraintCollection.cs, DataTable.cs for
* special constructor in UniqueConstraint.cs
svn path=/trunk/mcs/; revision=25382
* Makefile.am (mcs_topdir): New variable.
(mcs-tree-safe-build,mcs-rest,remove-binaries): Work in non-srcdir
build.
(xinstall-runtime): Likewise. Use $(libgc_dir) directly, don't
grep for 'libgc'.
(fullbuild): Make ordering dependencies explicit.
svn path=/trunk/mono/; revision=25380
* XmlDataDocument.cs:
Load() should not read xml multiple time nor expect BaseURI (and it
indicates the resource location is readable).
Simplified event handling logic, and fixed missing event removal.
Quick hack to avoid new XmlDataDocument(DataSet ds).Load ().
Enabled CreateNavigator() that was commented out.
svn path=/trunk/mcs/; revision=25376
* BinaryReaderTest.cs: Changed series of bytes in
ReadDecimal to be a cleaner representation of a real
decimal, as was not a technically correct decimal.
Do we need to add some more tests for what we do with values such as those
in the old test case? With the old code, you could get a single value that
was not equal to its lexical representation. Not ideal.
> d is -18295873486192640
> d != -18295873486192640
svn path=/trunk/mcs/; revision=25372
* TimeZoneTest.cs: Make pass when in "GMT".
This probably isn't the same as MS.NET, but the CET doesn't look like it will
be either. Where does one alter the strings/dates we see?
svn path=/trunk/mcs/; revision=25371
* Compiler.cs : When BaseURI is an empty string, it should not try to
create Uri instance. This will fix bug #56832, but not sure.
* XslFunctions.cs : for XsltDocument.Resolve(), did the same.
* HtmlEmitter.cs : Environment.NewLine was incorrectly used (it
should be the TextReader's NewLine).
* MSXslScriptManager.cs : Should raise an error when the prefix which
was specified by "implements-prefix" was not found.
svn path=/trunk/mcs/; revision=25365
* SqlBoolean.cs : Allow "0" and "1" on Parse(). Allow SqlString.Null
in conversion.
* SqlString.cs : CompareOption should not be None.
svn path=/trunk/mcs/; revision=25352
lock(this) when entering the rwlock to avoid a deadlock.
* ReaderWriterLock.cs: In AcquireWriterLock, queue the thread if the queue
is not empty (even if state==0).
svn path=/trunk/mcs/; revision=25332
* expression.cs (Argument.Resolve): Check if fields passed as ref
or out are contained in a MarshalByRefObject.
* typemanager.cs, rootcontext.cs: Add System.Marshalbyrefobject as
another compiler type.
svn path=/trunk/mcs/; revision=25331
* NumberFormatInfo.cs : All GetXXXGroupSizes() should not return
internal array. Return clone as MS.NET does.
There still looks somewhere breaking CurrentInfo.
svn path=/trunk/mcs/; revision=25326
* class.cs (Indexer.Define): use the new name checking method.
Also, return false on an error.
* cs-tokenizer.cs (IsValidIdentifier): Checks for a valid identifier.
(is_identifier_[start/part]_character): make static.
svn path=/trunk/mcs/; revision=25307
* expression.cs (Binary.ResolveOperator): Do no append strings
twice: since we can be invoked more than once (array evaluation)
on the same concatenation, take care of this here. Based on a fix
from Ben (bug #56454)
svn path=/trunk/mcs/; revision=25306
Fixes for bug 56744
* System/Convert.cs: Allow + signs in strings for ToInt32, and
- if it is base 10.
* ConvertTest.cs: Tests for Convert.ToInt32(string, base), with
signs on the strings.
svn path=/trunk/mcs/; revision=25254
* chktrust.1: Added some details and documented the CAB format
restriction (not supported).
* makecert.1: Added missing options, details for existing options and
removed duplicate options.
* setreg.1: Minor changes.
* signcode.1: Added some details and documented the CAB format
restriction (not supported). Also added a warning when using both a
strongname and an Authenticode signature on a assembly.
svn path=/trunk/mono/; revision=25253
* Npgsql/NpgsqlDataAdapter.cs: Fixed DataAdapter to raise the RowUpdatin
g and RowUpdated events. This also fixes some issues in gborg 710 bug. This modi
fication may have broken CommandBuilder support. Working on that.
svn path=/trunk/mcs/; revision=25251
* certmgr.1: Update the man file to specifiy the current location and
format of the certificate files. Also added a WARNING that this info
can change anytime and that the only safe way to manipulate the stores
are by using the certmgr tool.
svn path=/trunk/mono/; revision=25249
* BitConverterLE.cs: added which always does
little endian conversion
* StrongName.cs: Use BitConverterLE
* ASN1Convert.cs: Use BitConverterLE
svn path=/trunk/mcs/; revision=25235
thread, not the one of the thread that created the instance.
* Comparer.cs: Added DefaultInvariant property and missing constructor.
Use the specified culture info to compare strings.
svn path=/trunk/mcs/; revision=25233
Removed unneded TODOs.
* ComponentResourceManager.cs: Implemented ApplyResources.
* EventDescriptorCollection.cs: Implemented several missing methods.
* LicFileLicenseProvider.cs: Implemented.
* MemberDescriptor.cs: Implemented some missing methods. Handle correctly
the creation of the Attribute list.
* TypeConverter.cs: Use null as default value for attribute array parameter.
svn path=/trunk/mcs/; revision=25229
* locales.c:
ves_icall_System_Globalization_CultureInfo_construct_number_format
Fix g_assert so it compiles on fussier compilers re int/ptr
mismatch
svn path=/trunk/mono/; revision=25225
* tramp-ppc.c (create_trampoline_code): Added
JUMP_TRAMPOLINE_SIZE.
(ppc_magic_trampoline): Follow the pattern from
x86_magic_trampoline: if code is set to zero, return.
(create_trampoline_code): Always pass MonoMethod to the jump
trampoline, before it was passing a null.
(mono_arch_create_jump_trampoline): Implement the jump stub, could
share the code with mono_arch_create_jit_trampoline.
* mini-ppc.c (mono_arch_output_basic_block): CEE_JMP opcode
implemented.
(mono_arch_patch_code): MONO_PATCH_INFO_METHOD_JUMP patch type
implemented.
* cpu-g4.md: Added length for jmp instruction, the worst case
scenario is 92 bytes (4 mandatory bytes, potential 19 registers
for save_lmf).
svn path=/trunk/mono/; revision=25224
* codegen.cs: Fix another case where CS1548 must be reported (when
delay-sign isn't specified and no private is available #56564). Fix
loading the ECMA "key" to delay-sign an assembly. Report a CS1548
error when MCS is used on the MS runtime and we need to delay-sign
(which seems unsupported by AssemblyBuilder - see #56621).
svn path=/trunk/mcs/; revision=25220
Made those serializable-compatible with MS.NET: modified fields names to
match MS.NET ones, and in CultureInfo added a flag to control when a
deserialized instance need to be initialized.
svn path=/trunk/mcs/; revision=25218
* socket-io.h:
* socket-io.c: Don't set SO_REUSEADDR on windows. Fixes bug
53992. Also rearrange the code so that the internal calls return
an error value and exceptions are thrown from managed code.
* icall.c: Add type info to the socket icalls.
svn path=/trunk/mono/; revision=25216
* expression.cs (Binary.ResolveOperator): Added special case for
Equality/Inequality between a type parameter and a null literal.
svn path=/trunk/mcs/; revision=25188
* reflection.h
(MonoReflectionGenericParam): Added `has_reference_type' and
`has_value_type' fields.
* reflection.c (mono_image_get_generic_param_info): Encode the
correct flags if we have the `class' or `struct' constraint.
svn path=/trunk/mono/; revision=25174
* GenericTypeParameterBuilder.cs
(Mono_SetReferenceTypeConstraint): New public method.
(Mono_SetValueTypeConstraint): New public method.
svn path=/trunk/mcs/; revision=25173
* generic.cs (SpecialConstraint): New public enum.
(Constraints.Resolve): Added support for the `class' and `struct'
constraints.
* cs-parser.jay (type_parameter_constraint): Added support for the
`class' and `struct' constraints.
svn path=/trunk/mcs/; revision=25172
* CompareInfo.cs: Get ICU name from a cultureinfo object instead
of looking it up in the culture map.
* RegionInfo.cs: Dont check if the LCID is neutral unless its not
found in the switch. Avoids an icall.
svn path=/trunk/mcs/; revision=25160
* icall.c: Add new icalls for contructing locales.
* locales.c: Construct CultureInfo objects from lookup tables instead of using ICU.
* locales.h: Declare new culture info construction methods.
* object.h: Add new fields used to avoid the CultureMap to
MonoCultureInfo.
* culture-info.h: Definition of structs used in the culture info
tables.
* culture-info-tables.h: Autogenerated tables that contain culture
info data. This file was generated with the locale-builder tool.
* appdomain.c: Incement corlib version number.
svn path=/trunk/mono/; revision=25159
* appdomain.c: (mono_runtime_init) move mono_thread_init
to before mono_object_new calls so critical sections
are initialized before use.
svn path=/trunk/mono/; revision=25158
* mini.c: Only set bblock->real_offset when adding a new bblock, and
before each IL instruction.
* mini.c (CEE_BOX): Fix warnings.
svn path=/trunk/mono/; revision=25154
* cs1606.pub: New file. ECMA key.
* cs1606.cs: New file. This is the same problem as cs1548-3.cs but CSC
report a different error number when the ECMA key is being used.
svn path=/trunk/mcs/; revision=25152
* System/Environment.cs:
(ExpandEnvironmentVariables): on windows, env. vars. are case
insensitive.
* Test/System/EnvironmentTest.cs: use uppercase for PATH. Added test
to check the expected substitutions.
svn path=/trunk/mcs/; revision=25151
* generic.cs
(Constraints.InterfaceConstraints): New public property.
(Constraints.Types): Make this property public
(TypeParameter): Implement IMemberContainer.
(TypeParameter.Define): Take a `GenericTypeParameterBuilder'
instead of a TypeBuilder/MethodBuilder; pass the interface
constraints to TypeManager.AddTypeParameter().
(TypeParameter.DefineType): Just take an EmitContext and no
TypeBuilder/MethodBuilder. Use the new public API.
* typemanager.cs (TypeManager.AddTypeParameter): Added
`TypeExpr[]' argument; add the interfaces to the
`builder_to_ifaces' hash.
(TypeManager.LookupMemberContainer): For
GenericTypeParameterBuilders, get the TypeParameter from the
`builder_to_type_param'.
svn path=/trunk/mcs/; revision=25144
* icall.c
(ves_icall_TypeBuilder_define_generic_parameter): Removed.
(ves_icall_MethodBuilder_define_generic_parameter): Removed.
(ves_icall_MonoGenericParam_initialize): Removed.
(monogenericparam_icalls): Removed.
(generictypeparambuilder_icalls): Added new table for
System.Reflection.Emit.GenericTypeParameterBuilder.
* reflection.c
(mono_reflection_define_generic_parameter): Removed.
(mono_reflection_initialize_generic_parameter): This is now called
from GenericTypeParameterBuilder's .ctor.
svn path=/trunk/mono/; revision=25143
* rootcontext.cs: Add new types to the boot resolution.
* ecore.cs (TypeExpr.CanInheritFrom): Inheriting from
MulticastDelegate is not allowed.
svn path=/trunk/mcs/; revision=25138
* typemanager.cs: Add new types to lookup: System.TypedReference
and ArgIterator.
* paramter.cs (Parameter.Resolve): if we are an out/ref parameter,
check for TypedReference or ArgIterator, they are not allowed.
* ecore.cs (BoxedCast): Set the eclass to ExprClass.Value, this
makes us properly catch 1510 in some conditions (see bug 56016 for
details).
svn path=/trunk/mcs/; revision=25136
* class.c (mono_class_init): Don't inflate nested classes in a
generic instance.
(mono_type_get_name_recurse): Include the generic arguments for
generic instances and generic type declarations.
(inflate_generic_type): Correctly inflate MONO_TYPE_SZARRAY.
(_mono_class_get_instantiation_name): Removed.
(mono_class_create_generic): Always use `gklass->name' as our name.
* class.h (MonoGenericInst): Removed `nested_in', and `nested'.
* icall.c (ves_icall_MonoGenericInst_GetDeclaringType): Removed.
(ves_icall_MonoGenericInst_GetNestedTypes): Removed.
(ves_icall_MonoMethod_GetGenericParameters): Renamed to
ves_icall_MonoMethod_GetGenericArguments() and correctly handle
closed generic methods here.
* reflection.c
(mono_reflection_generic_inst_get_nested_types): Removed.
(inflate_mono_method): Copy the generic parameters from the
MonoMethodHeader into out MonoGenericMethod.
svn path=/trunk/mono/; revision=25132
* MethodBase.cs
(MethodBase.GetGenericParameters): Renamed to GetGenericArguments().
* MonoGenericInst.cs (MonoGenericInst.DeclaringType): Removed.
(MonoGenericInst.GetNestedTypes): Just call
`generic_type.GetNestedTypes (bf)' here.
* MonoMethod.cs (MonoMethod.ToString): If we're a generic method,
include the type arguments.
svn path=/trunk/mcs/; revision=25131
* class.cs
(MethodCore.GenericMethod): Moved this field here from Method.
(MethodCore.IsDuplicateImplementation): Take the number of type
parameters into account if we're a generic method.
* expression.cs (Invocation.InferTypeArguments): Don't return true
if `arguments' is null; we still need to check whether we actually
don't need to infer anything in this case.
(MemberAccess): Merged the functionality from GenericMemberAccess
into this class.
* generic.cs (GenericMemberAccess): Removed.
svn path=/trunk/mcs/; revision=25130
constructors.
(ConvertPoints): New helper function. Converts a Point array to a
PointF array.
* gdipFunctions.cs (GdipCreatePath2): Fixed signature.
* pie.cs: Save to PNG, instead of BMP.
svn path=/trunk/mcs/; revision=25125
* row-indexes.h
(MONO_GENERICPARAM_DEPRECATED_CONSTRAINT): Removed.
* metadata.c (GenericParamSchema): Removed "DeprecatedConstraint".
* reflection.c (build_compressed_metadata): If we have any entries
in the GenericParam, MethodSpec or GenericParamConstraint tables,
set the header version to 1.1.
svn path=/trunk/mono/; revision=25123
* CryptoConvert.cs: Add private methods to always
handle data as little endian (GetBytesLE, ToInt32LE, ToUInt32LE).
svn path=/trunk/mcs/; revision=25118
* class.c (mono_class_init): If we're a generic instance,
initialize our nested classes, too.
(_mono_class_get_instantiation_name): Deal with the new `!%d'
suffix.
svn path=/trunk/mono/; revision=25114
* cs1548.pub: New file. Strongname file with only the public key.
* cs1548-3.cs: New file to test signing with a strongname containing
only the public key.
svn path=/trunk/mcs/; revision=25106
constructor that only takes one string as parameter to construct the
listener. The name is set using the Name property, not the constructor.
* TextWriterTraceListener.cs: In Write*, do nothing if no writer was
provided.
svn path=/trunk/mcs/; revision=25105
reading bmp files is not yet implemented, and only png files can be
written. Support for the rest will show up in the next few days.
* gdipFunctions.cs: Added stream delegate helpers for
stream loading/saving on linux
* Image.cs, Bitmap.cs: Converted to call into GDIPlus for
loading/saving image data.
* BitmapData.cs: synced up data structure with libgdiplus
* BmpCodec.cs, JPEGCodec.cs, PNGCodec.cs: Removed codec impls,
left just codecinfo getters; the codecs are in libgdiplus
* ImageCodecInfo.cs: removed encode/decode delegates
svn path=/trunk/mcs/; revision=25083
* DTDReader.cs : In ProcessDTDSubset(), 1)error message was
generated with incorrect stream character, 2)entity nest check
should not depend on line info which might not be supplied, 3)
empty PE should be skipped.
* XmlParserInput.cs : use index for StringBuilder instead of calling
Remove() many times. This highly optimizes DTD parser.
* XmlAttribute.cs : removed commented code.
* XmlEntity.cs : removed unused field.
svn path=/trunk/mcs/; revision=25070
* decl.cs (MemberCore): For generic classes, interfaces and
structs, `Name' now includes the number of type parameters
("Stack!1.Node!1").
(DeclSpace.FindType): Removed the `num_type_args' argument; we now
encode the number of type arguments in the type name.
* expression.cs (Expression.MemberLookup): Removed the
`num_type_args' argument; we now encode the number of type
arguments in the type name.
* ecore.cs (SimpleName): Encode the number of type arguments in
the type name itself.
* generic.cs (ConstructedType): Likewise.
* tree.cs (Tree.RecordDecl): Take a `string' instead of a
`MemberName'; we now include the number of type parameters in the
type name.
* typemanager.cs (TypeManager.CheckGeneric): Removed.
(TypeManager.MemberLookup): Removed the
`num_type_args' argument; we now encode the number of type
arguments in the type name.
svn path=/trunk/mcs/; revision=25067
for a thread, not only whether it has locks or not.
* LockQueue.cs: Added property for checking if a thread is waiting in
the queue. Wait now returns a boolean that set to false on timeout
expiration.
* ReaderWriterLock.cs: Started fixing bugs but I had to rewrite a lot of it.
The main change is that now it keeps a reader lock count for each
thread. This is needed since methods like ReleaseLock or
UpgradeToWriterLock need to return a per-thread status in LockCookie.
Also added support for recursive writer-lock requests.
svn path=/trunk/mcs/; revision=25059
* inssel.brg (MONO_EMIT_BOUNDS_CHECK): a new macro to emit bounds
checks.
(MONO_EMIT_BOUNDS_CHECK_IMM): the above, but when you know the
index.
(OP_GETCHR): use the above
(CEE_LDELEMA): use the above.
* inseel-x86.brg (MONO_EMIT_BOUNDS_CHECK): a faster and smaller
version of the generic impl.
(MONO_EMIT_BOUNDS_CHECK_IMM): the same
(CEE_LDELEMA): use the above.
svn path=/trunk/mono/; revision=25058
* attribute.cs (IsClsCompliant): Fixed problem with handling
all three states (compliant, not-compliant, undetected).
svn path=/trunk/mcs/; revision=25039
* decl.cs:
* expression.cs:
* pending.cs:
Several error messages and their numbers are changed in all the above four classes
svn path=/trunk/mcs/; revision=25036
* Tds.cs: Added base implementation for ITds.Reset.
* Tds70.cs: Implemented ITds.Reset().
* TdsConnectionPool.cs: Implemented connection pool that can be reused by
all Tds clients.
svn path=/trunk/mcs/; revision=25028
* DTDObjectModel.cs : (DTDAttributeDefinition) create ArrayList
only when they are required.
* DTDReader.cs,
XmlParserInput.cs : raw tag string now don't have to be kept, while
it cost so much. Removed unused code. 20% to 30% memory got saved.
* XmlNotation.cs : removed unused code.
* XmlTextReader.cs : Removed unused code. ReadString() now uses
XmlReader's internal method. Fixed BaseURI to be conformant with
W3C XML InfoSet and (subsequently) xml:base specification (i.e.
reflect xml:base attribute correctly).
svn path=/trunk/mcs/; revision=25026
* XmlAttribute.cs : get_Value should return all children's value.
* XmlCharacterData.cs : DOM's substring does not raise an error when
startIndex + count exceeds the length of Data.
* XmlNamedNodeMap.cs : SetNamedItem() returns the new child when it
does not replace another named item.
* XmlElement.cs : with related to the XmlNamedNodeMap change,
SetAttributeNode() is required to fix as to return null when it does
not replace existing attribute.
svn path=/trunk/mcs/; revision=25018
Changed default access modifier of method to Public
Bug fixed to get NotOverridable modifier working
* decl.cs: Changed exception messages and numbers
svn path=/trunk/mcs/; revision=25008
* WebConfigurationSettings.cs: "/" is the virtual root directory of
the application. This fixes a bug reported by Vlad that caused
configuration error because files were read twice when there's an
application different from "/" defined.
svn path=/trunk/mcs/; revision=25007
* decl.cs (MemberCore.ctor): Take a MemberName instead of a sting.
(MemberCore.MemberName): Moved here from MemberBase.
(DeclSpace.SetParameterInfo): Just take the constraints as an
ArrayList; we already have the type parameters in our
`MemberName'; also do the CS0080 reporting here.
* cs-parser.jay (struct_declaration): Use `member_name' instead of
`IDENTIFIER opt_type_parameter_list'; when constructing our
`MemberName', it'll already include our type parameters.
(class_declaration, interface_declaration): Likewise.
(delegate_declaration): Likewise.
(MakeName): Take a MemberName and return a MemberName.
The following two changes are required to avoid shift/reduce conflicts:
(member_name): Don't include a TypeName anymore; ie. this is now
just 'IDENTIFIER opt_type_parameter_list'.
(property_declaration, event_declaration): Use a
`namespace_or_type_name' instead of a `member_name'.
svn path=/trunk/mcs/; revision=25001
* decl.cs (MemberName): Renamed to `TypeName' and created a new
`MemberName' class.
(TypeName): Formerly known as MemberName.
* namespace.cs (NamespaceEntry.UsingAlias): Take a `TypeName'
instead of a `MemberName'.
* cs-parser.jay (namespace_or_type_name): Create a TypeName.
(member_name): New rule; create a MemberName.
svn path=/trunk/mcs/; revision=24999
2004-03-31 Joerg Rosenkranz <[email protected]>
* System.Data.OracleClient.Oci/OciDefineHandle.cs:
Changed DefineChar to allow retrieval of
multibyte characters (i.e. german umlauts).
* System.Data.OracleClient.Oci/OciStatementHandle.cs:
OciDefineHandles are now disposed in the
Dispose function.
svn path=/trunk/mcs/; revision=24996
* ecore.cs (IAlias): New public interface.
(TypeExpr, TypeExpression): Implement IAlias.
(TypeAliasExpression): New public class.
* namespace.cs (Namespace): Implement IAlias.
(Namespace.Lookup): Return an IAlias instead on an object.
(Namespace.DefineName): Take an IAlias instead of an object.
(NamespaceEntry.AliasEntry.Resolve): Return an IAlias instead of
an object.
(NamespaceEntry.UsingAlias): Take a Membername instead of an
Expression.
(NamespaceEntry.LookupAlias): Return an IAlias instead on an
object.
(NamespaceEntry.Lookup): Likewise.
* rootcontext.cs (RootContext.LookupType): Return a TypeExpr
instead of a Type.
* decl.cs (DeclSpace): Implement IAlias.
(DeclSpace.LookupAlias): Return an IAlias instead of a string.
* generic.cs (ConstructedType): Improved error checking.
svn path=/trunk/mcs/; revision=24980
* config.h.in: added HAVE_GETPWUID_R
* configure.in: check for getpwuid_r.
* mono/io-layer/security.c: use getpwuid_r if available. This one is
thread-safe.
svn path=/trunk/mono/; revision=24977
* Makefile.am: Added security.c|h.
* icall.c: Added icall for get_UserName;
* security.c: New file for security related icalls. Added function
get_UserName for System.Environment (fix#56144).
* security.h: New. Header file for security.c
svn path=/trunk/mono/; revision=24971
* Makefile.am: Added security.c|h.
* security.c: New file for security related functions. Added function
GetUserName to fix#56144.
* security.h: New. Header file for security.c
* wapi.h: Added include for security.h
svn path=/trunk/mono/; revision=24970
* icall.c: Deleted the icalls that were obsoleted some time ago
by the ICU string code, and which were mixed into the icall
rearranging. Fixes bug 55969.
* string-icalls.h:
* string-icalls.c: Deleted the code that those icalls reference.
svn path=/trunk/mono/; revision=24969
* Equality.cs: Moved the Emit and Resolve code here.
* jscript-lexer-parser.g: Build a Equality object instead of a
Binary object for equality_expr.
* expression.cs: moved equality oeprators (resolve and IL gen) to
Equality.Emit and Equality.Resolve.
svn path=/trunk/mcs/; revision=24959
* DataTable.cs : Included code to copy extended properties in CopyProperties() method
* DataTable.cs : CaseSensitive and Locale properties cannot be changedif the table belongs to a data relation
* DataTable.cs : Prefix property should not contain any specialcharacters
* DataTable.cs : Added code to BeginLoadData and EndLoadData methods tohandle tables not belonging to any data set
* DataTable.cs : Implemented an private property EnforceConstraints to enforceconstraints in EndLoadData when table is not part of any dataset
* DataTable.cs : Removed TODO tags for Clone (), Copy (), EndLoadData() and GetChanges ()
* DataTable.cs : Clear method should throw a NotSupportedException when the table is part of a DataSet bound to a XmlDataDocument
* DataSet.cs : Clear method should throw a NotSupportedException when DataSet is bound to a XmlDataDocument
* XmlDataDocument.cs : Included code to indicate to the DataSet that it is bound to this particular XmlDataDocument
* DataTableTest.cs: Included tests for the changes made in DatTable.cs
svn path=/trunk/mcs/; revision=24958
* convert.cs: Added type parameter conversions.
* ecore.cs
(UnboxCast.Emit): Emit an `unbox.any' for type params.
(ClassCast.Emit): If the source type is a type parameter, box it.
If the target type is a type parameter, emit an `unbox.any'
instead of a `classcast'.
svn path=/trunk/mcs/; revision=24952
* mini.c (handle_box): New static function; moved the
implementation of CEE_BOX here.
(mono_method_to_ir): Added `constrained_call' variable.
(mono_method_to_ir:CEE_CONSTRAINED_): Set it.
(mono_method_to_ir:CEE_CALL): If `constrained_call' is set, use
mono_method_get_constrained() to get the method.
svn path=/trunk/mono/; revision=24939
* loader.c (find_method): Added an optional `MonoClass *ic'
argument to search in a specific interface.
(mono_get_method_constrained): New public function.
svn path=/trunk/mono/; revision=24937
* expression.cs (Invocation.EmitCall): If we're invoking a method
on a type parameter, use the new `Constrained' prefix opcode.
svn path=/trunk/mcs/; revision=24929
* generic.cs (ConstructedType.CheckConstraints): Use
Convert.ImplicitStandardConversionExists(); user-defined implicit
conversions are not allowed according to the spec.
svn path=/trunk/mcs/; revision=24921
* mini.c (TYPE_PARAM_TO_TYPE, TYPE_PARAM_TO_CLASS): Removed.
(MTYPE_PARAM_TO_TYPE, MTYPE_PARAM_TO_CLASS): Removed.
(mono_method_to_ir): We don't need these macros anymore since
mono_class_get_full() already takes care of it.
svn path=/trunk/mono/; revision=24920
* class.c (mono_class_inflate_generic_type): Moved the
functionality into a new static inflate_generic_type() which
returns NULL if it didn't do anything. Only increment the
`mono_stats.inflated_type_count' if we actually inflated
something.
(mono_class_get_full): Check the classes type to see whether we
need to inflate it; also inflate MONO_TYPE_(M)VAR.
svn path=/trunk/mono/; revision=24919
Patch from Marek Safar, thanks a lot Marek for working so hard in getting
every detail right.
2004-03-30 Marek Safar <[email protected]>
* attribute.cs (Attribute): Location is now public.
(Resolve): Store resolved arguments (pos_values) in attribute class.
Attribute extractors (now GetClsCompliantAttributeValue) can reuse them.
(GetClsCompliantAttributeValue): New method that gets
CLSCompliantAttribute value.
(GetClsCompliantAttribute): Returns CLSCompliantAttribute for DeclSpace
if exists else null.
(AttributeTester): New class for CLS-Compliant verification routines.
* class.cs (Emit): Add CLS-Compliant verification.
(Method.GetSignatureForError): Implemented.
(Constructor.GetSignatureForError): Implemented
(Constructor.HasCompliantArgs): Returns if constructor has
CLS-Compliant arguments.
(Constructor.Emit): Override.
(Construcor.IsIdentifierClsCompliant): New method; For constructors
is needed to test only parameters.
(FieldBase.GetSignatureForError): Implemented.
(TypeContainer): New member for storing base interfaces.
(TypeContainer.FindMembers): Search in base interfaces too.
* codegen.cs (GetClsComplianceAttribute): New method that gets
assembly or module CLSCompliantAttribute value.
(ResolveClsCompliance): New method that resolve CLSCompliantAttribute
for assembly.
(ModuleClass.Emit): Add error 3012 test.
* const.cs (Emit): Override and call base for CLS-Compliant tests.
* decl.cs (ClsComplianceValue): New enum that holds CLS-Compliant
state for all decl types.
(MemberCore.Emit): Emit is now virtual and call VerifyClsCompliance
if CLS-Compliant tests are required.
(IsClsCompliaceRequired): New method. Analyze whether code
must be CLS-Compliant.
(IsExposedFromAssembly): New method. Returns true when MemberCore
is exposed from assembly.
(GetClsCompliantAttributeValue): New method. Resolve CLSCompliantAttribute
value or gets cached value.
(HasClsCompliantAttribute): New method. Returns true if MemberCore
is explicitly marked with CLSCompliantAttribute.
(IsIdentifierClsCompliant): New abstract method. This method is
used to testing error 3005.
(IsIdentifierAndParamClsCompliant): New method. Common helper method
for identifier and parameters CLS-Compliant testing.
(VerifyClsCompliance): New method. The main virtual method for
CLS-Compliant verifications.
(CheckAccessLevel): In one special case (System.Drawing) was TypeBuilder
null. I don't know why is null (too many public members !).
(GetClsCompliantAttributeValue). New method. Goes through class hierarchy
and get value of first CLSCompliantAttribute that found.
delegate.cs (Emit): Override and call base for CLS-Compliant tests.
(VerifyClsCompliance): Override and add extra tests.
* driver.cs (CSCParseOption): New command line options (clscheck[+|-]).
clscheck- disable CLS-Compliant verification event if assembly is has
CLSCompliantAttribute(true).
* enum.cs (Emit): Override and call base for CLS-Compliant tests.
ApllyAttribute is now called in emit section as in the other cases.
Possible future Emit integration.
(IsIdentifierClsCompliant): New override.
(VerifyClsCompliance): New override.
(GetEnumeratorName): Returns full enum name.
* parameter.cs (GetSignatureForError): Implemented.
* report.cs (WarningData): New struct for Warning message information.
(LocationOfPreviousError): New method.
(Warning): New method. Reports warning based on the warning table.
(Error_T): New method. Reports error based on the error table.
* rootcontext.cs (EmitCode): Added new Emit(s) because CLS-Compliant
verifications are done here.
* tree.cs (RecordDecl): Used new LocationOfPreviousError method.
* typemanager.cs (cls_compliant_attribute_type): New member thath holds
CLSCompliantAttribute.
(all_imported_types): New member holds all imported types from other
assemblies.
(LoadAllImportedTypes): New method fills static table with exported types
from all referenced assemblies.
(Modules): New property returns all assembly modules.
svn path=/trunk/mcs/; revision=24916
represented with DBNull instances. Deal with this.
* Mono.Data.SybaseTypes/SybaseNullValueException.cs: Use a more clarifying
error message.
svn path=/trunk/mcs/; revision=24905
classes can override to perform class specific refreshing.
* FileInfo.cs: Refresh existence flag when Refresh is called.
* TextWriter.cs: Applied patch by Benjamin Jemlich for bug #52512.
The method Write(char) should do nothing by default.
svn path=/trunk/mcs/; revision=24901
it so we can set assembly ref attributes.
* ExternTable.cs: Make the ExternAssembly public so that its
attributes can be set.
svn path=/trunk/mcs/; revision=24898
* XslVariable.cs : When evaluated variable was BaseIterator, its
iterated nodes must be collected in prior. Otherwise, it might be
evaluated later with inconsistent level of variable stack in
XslTransformProcessor. This fixes bug #55876.
svn path=/trunk/mcs/; revision=24895
* BitwiseBinary.cs: added constructor for building it according to
JSToken enum. return a new object on EvaluateBitwiseBinary (this
needs a real implementation).
* expression.cs: added code for evaluation of bitwise operators at emit_op_eval.
svn path=/trunk/mcs/; revision=24886
* aot.c: set aot_verbose to 0, fixed format string that caused sigsegv,
use @function (as doesn't accept #function here) and check the return
value of system and stop if fails.
svn path=/trunk/mono/; revision=24884
* DataColumn.cs : Setting Caption to null sets it to the empty string
(ms.net behaviour, testcase is in DataColumnTest).
* DataRow.cs : Evaluate DataColumn.Expression when such a column's value is
requested.
svn path=/trunk/mcs/; revision=24879
* StrongName.cs: Update to include new static method that can be
called from the runtime to validate strongname signatures.
Refactored the existing class to reduce code duplication.
svn path=/trunk/mcs/; revision=24868
* StrongName.cs: Update to include new static method that can be
called from the runtime to validate strongname signatures.
Refactored the existing class to reduce code duplication.
* StrongNameManager.cs: New. This class keeps the configuration
required to map a public key token to an alternative public key
(e.g. ECMA public key token -> Mono public key) and to skip
strongname validation for specific assemblies/token/users.
svn path=/trunk/mcs/; revision=24865
* BooleanType.cs, ByteType.cs, CharArrayType.cs, CharType.cs, DateType.cs, IntegerType.cs, LongType.cs, ShortType.cs:
Translated Mainsoft code by Dennis Hayes with additional revisions by me - formatting still a problem
Testing: No regressions, One advance
svn path=/trunk/mcs/; revision=24847
* AssemblyInfo.cs: Bumped version and completed some more infos
* OptionDetails.cs: Incorporated C.J. Collier patch to make help screen more Windows-ish when mode==windows
svn path=/trunk/mcs/; revision=24846
* I18N/CJK/gb2312.table:
* I18N/CJK/Gb2312Convert.cs:
* I18N/CJK/CP936.cs: Rewrote the GB2312 conversion, using the iconv
algorithm as a base. Fixes bug 53841.
svn path=/trunk/mcs/; revision=24840
* expression.cs (New): Added support for type parameters.
* typemanager.cs
(TypeManager.activator_type): New public static field.
(TypeManager.activator_create_instance): Likewise.
svn path=/trunk/mcs/; revision=24829
* generic.cs (ConstructedType.CheckConstraints): Actually follow
the spec here: the argument type must be convertible to the
constraints.
svn path=/trunk/mcs/; revision=24818
* generic.cs
(TypeParameter.Define, TypeParameter.DefineMethod): Call
TypeManager.AddTypeParameter().
(ConstructedType.CheckConstraints): Re-enable this and actually
check whether we have a constructor constraint.
* typemanager.cs
(TypeManager.builder_to_type_param): New static field.
(TypeManager.AddTypeParameter): New static method.
(TypeManager.LookupTypeParameter): New public method.
svn path=/trunk/mcs/; revision=24817
* XmlCanonicalizer.cs: New. Copy of System.Security assembly.
Original by Aleksey Sanin. Modified by Atsushi Enomoto.
svn path=/trunk/mcs/; revision=24814
* XmlDsigExcC14NTransform.cs: Updated to match current System.Security
XmlDSigC14NTransform.
* XmlDSigExcC14NWithCommentsTransform.cs: Updated to match current
System.Security XmlDSigC14NWithCommentsTransform.
svn path=/trunk/mcs/; revision=24813
* generic.cs (TypeParameter.DefineType): Return a boolean and use
the new API to actually define the constructor constraint.
* typemanager.cs
(TypeManager.new_constraint_attr_type): New static field.
(TypeManager.InitCoreTypes): Initialize it.
svn path=/trunk/mcs/; revision=24812
* reflection.c (encode_new_constraint): New static function to add
the constructor constraint attribute to a type parameter.
(encode_constraints): Call encode_new_constraint() if necessary.
* reflection.h
(MonoReflectionGenericParam): Added `guint32 has_ctor_constraint'.
* row-indexes.h: Added CUSTOM_ATTR_GENERICPAR.
svn path=/trunk/mono/; revision=24806
* StrongNameManager.cs: New. Added a check for "*" (any) assembly
when the spcific assembly isn't found for skipping.
svn path=/trunk/mcs/; revision=24789
* ecore.cs (PropertyExpr.GetAccessor): Apply patch from Patrik Reali
which removes the hardcoded get_/set_ prefixes for properties, as
IL allows for the properties to be named something else.
Bug #56013
svn path=/trunk/mcs/; revision=24788
it is an empty string.
* DataSet.cs: Support serialization of byte[] columns.
* XmlDataLoader.cs: Support deserialization of Guid columns.
Set MappingType.Attribute to columns infered from attributes.
svn path=/trunk/mcs/; revision=24783
* Reference.cs: Changed code to use CryptoConfig to create transforms.
This is "the" way to do it (e.g. to allow new transforms to be added)
but cause problems when using VS.NET for debugging. Old code is still
present, but commented, for that cause.
svn path=/trunk/mcs/; revision=24782
* FAMWatcher.cs: support monitoring subdirectories. FAM doesn't do that,
so we have to register the existing directories and add the new ones
that might be created.
* SearchPattern.cs: provide the pattern when it's wrong.
svn path=/trunk/mcs/; revision=24781
XmlSerializationReader.cs, XmlSerializationReaderInterpreter.cs:
Support deserialization of members of type XmlDocument. This fixes#56169.
svn path=/trunk/mcs/; revision=24780
* WebConfigurationSettings.cs: use FileSystemWatcher and really reload
configuration when the file is created or modified.
svn path=/trunk/mcs/; revision=24776
* attribute.cs (DefinePInvokeMethod): Fix 56148; I would like a
better approach for some of that patch, but its failing with the
CharSet enumeration. For now try/catch will do.
svn path=/trunk/mcs/; revision=24756
* delegate.cs (Delegate.VerifyMethod): Infer type arguments.
* expression.cs (Invocation.InferTypeArguments): Added overloaded
public version which takes a `ParameterData pd' instead of an
`ArrayList args'.
svn path=/trunk/mcs/; revision=24744
* MethodBase.cs (MethodBase.Mono_IsInflatedMethod): New public
virtual property.
(MethodBase.HasGenericParameters): Use the "official" behavior
here, ie. return false if we're not a generic method.
svn path=/trunk/mcs/; revision=24740
* icall.c (ves_icall_MonoMethod_get_HasGenericParameters): Show
the "official" behavior here.
(ves_icall_MonoMethod_get_Mono_IsInflatedMethod): New interncall.
svn path=/trunk/mono/; revision=24739
* Console.cs: If we fail to open stdin/stdout/stderr, create
readers with a NullStream. This can happen if our caller does not
setup stdin/stoud/stderr file handles. #56158 exposed this, but
it will happen elsewhere.
svn path=/trunk/mcs/; revision=24734
* loader.c (mono_get_method_from_token): Also call
mono_metadata_load_generic_params () for abstract and interface
methods; replace the type arguments in the method signature with
the ones which are loaded from the metadata.
svn path=/trunk/mono/; revision=24731
* class.cs (MethodBase.CheckGenericOverride): New abstract method.
(MethodCore.CheckGenericOverride): When overriding a generic
method, check whether the constraints match.
* support.cs (GenericConstraints): New public interface.
(ParameterData.GenericConstraints): New public method.
* parameter.cs (Parameter.Resolve): Check whether we're a generic
method parameter and compute our constraints if appropriate.
(Parameter.GenericConstraints): New public property.
* generic.cs (Constraints): Implement GenericConstraints.
svn path=/trunk/mcs/; revision=24728
* expression.cs (Invocation.InferTypeArguments): Added overloaded
public version of this method.
* class.cs (MethodCore.IsDuplicateImplementation): Use
Invocation.InferTypeArguments() to check this.
svn path=/trunk/mcs/; revision=24719
Single.MinValue. MS.NET don't do it. This fixes bug #56005.
* Guid.cs: Added support for guid strings in the "N" and "P" formats in
the constructor. This fixes bug #54019.
svn path=/trunk/mcs/; revision=24713
* convert.cs: Use TypeManager.IsSubclassOf() instead of comparing
types directly to make it work for generic instances.
svn path=/trunk/mcs/; revision=24711
the lock is released in case of exception (for example, a
ThreadAbortException). This also "fixes" bug #52417.
Beware, this requires a runtime update (due to a bug in Monitor.Exit).
* ServicePoint.cs: Changed method from internal to private, since it is not
called from outside the class.
svn path=/trunk/mcs/; revision=24704
of the lock is not the current thread. MS.NET don't do it, in spite of
what the documentation says. See bug #56157.
svn path=/trunk/mono/; revision=24703
* System.Data.dll.sources : added classes in Mono.Data.SqlExpressions
* Makefile : add jay-target for Mono.Data.SqlExpressions/Parser.cs
* ExpressionElements.cs : remove
* DataColumn.cs, DataRelationCollection.cs, DataTable.cs :
Integration of new Mono.Data.SqlExpressions classes used in
DataTable.{Select, Compute}.
Fixes bug #55503 and lots of failures in DataTableTest.cs.
* DataTableTest.cs : add test case for bug #55503,
comment out meaningless test cases.
* Initial implementation of Mono.Data.SqlExpressions.
svn path=/trunk/mcs/; revision=24700
* ecore.cs, typemanager.cs: Correct impl of cs1540 check.
As a regex:
s/
the invocation type may not be a subclass of the tye of the item/
The type of the item must be a subclass of the invocation item.
/g
Fixes bug #50820.
svn path=/trunk/mcs/; revision=24685
* Npgsql/NpgsqlTransaction.cs: Fixed a bug where rollback was being called when disposing NpgsqlTransaction objects even when transaction was sucessfully commited. Fixes bug 725 in gborg. Thanks melkor ([email protected]) for spotting that.
svn path=/trunk/mcs/; revision=24684
* class.c (mono_class_init): Don't call init_properties() and
init_events() for generic instances; set `prop->parent' when
inflating properties.
* reflection.c (mono_generic_inst_get_object): Call
`mono_class_init (ginst->klass)'.
(mono_type_get_object): Only create a MonoGenericInst if your
generic type is a TypeBuilder.
(do_mono_reflection_bind_generic_parameters): Only set
`ginst->is_dynamic' if our generic type is a TypeBuilder.
svn path=/trunk/mono/; revision=24677
* mini-x86.c (mono_arch_output_basic_block): Fix CEE_MUL_OVF_UN if
dreg is not EAX. Thanks to Willibard Krenn for spotting this. Also
remove unused conv_u4 opcode.
svn path=/trunk/mono/; revision=24671
* ScriptCompilerInfo.cs : #line directive now holds dummy filename
when BaseURI for msxsl:script node is not available. This fixes
bug #56070.
Don't output line number in the error message, when it is 0.
svn path=/trunk/mcs/; revision=24663
* SignedXml.cs : namespace nodes also should be supplied for enveloped
objects.
* KeyInfoRetrievalMethod.cs : Keep input element as well as others.
svn path=/trunk/mcs/; revision=24658
* HttpRequestStream.cs: patch from Jan Jaros that fixes bug #56080.
Now the posted file content does not have the boundaries and headers
included.
svn path=/trunk/mcs/; revision=24652
* OpenModeTypes.cs: Implemented according to the
Mainsoft Java implementation.
* Globals.cs:
* VBFixedArrayAttribute.cs:
* VBFixedStringAttribute: Changes made by Dennis Hayes
<[email protected]> from
studying the Mainsoft implementation.
* Utils.cs (GetResourceString): Added stub for easing the port
from the Mainsoft Java implementation.
svn path=/trunk/mcs/; revision=24651
* Manifest.cs: New. Support for <Manifest> in Xml Digital Signature.
This should help us to validate more tests from the Phaos suite.
Note: Microsoft doesn't support this and we only support it for
verification (not signature generation).
* SignedXml.cs: Added support for Manifest, including recursive
manifests. Made some changes to reuse existing code as much as
possible. Better support for local/remote files - but requires
catching an Uri exception for local files :-(.
svn path=/trunk/mcs/; revision=24645
* xmldsig.cs: Reactivated <Manifest> tests as support for them will be
present in Mono. Changed directory for Phaos tests because of some
documents' references.
svn path=/trunk/mcs/; revision=24644
* do-tests.pl: i think this fixes the problem with
tests that have comp options alway passing
* mcs-expect*: update for above.
svn path=/trunk/mcs/; revision=24642
* XmlCanonicalizer.cs :
Don't output 
 for Whitespace node.
To filter every kind of nodes, make sure node.Attributes isnot null.
This makes some phaos tests passed.
svn path=/trunk/mcs/; revision=24637
* SignedXml.cs :
- Use specified (or default) XmlResolver to get external resource,
instead of using WebRequest directly. Also modified it easier.
- ApplyTransform() : Clone only when it is required. Handle
transformation output other than Stream.
- Even if applicable key was not found in GetHash(), don't throw
crypto exception every time and just return false (MS does it).
Throw an exception only when no key was specified as KeyInfo.
* XmlDsigEnvelopedSignatureTransform.cs : Fixed get_OutputTypes which
incorrectly set InputTypes internally.
* XmlDsigXPathTransform.cs : Context namespace nodes in loaded
transform parameter (i.e. <XPath>..</XPath>) should be registered
to XsltContext. Otherwise prefix binding error occurs.
Just filter attribute node, instead of filtering attribute children.
svn path=/trunk/mcs/; revision=24636
* inssel.brg mini-ops.h mini.c: Use OP_REFANYTYPE instead of
CEE_REFANYTYPE, since CEE_REFANYTYPE needs a prefix to be unique.
* inssel.brg: Fix register allocation in OP_ARGLIST.
* inssel.brg: Fix warnings.
svn path=/trunk/mono/; revision=24633
* daemon.c (rem_fd): On solaris you seem to get an
error even after removing the input source so don't
try and rem_fd it twice.
svn path=/trunk/mono/; revision=24618
* class.c (mono_class_get_full): New public function; does a
mono_class_get(), but also takes a `MonoGenericContext *'.
* loader.c (mono_field_from_memberref): Renamed to
`field_from_memberref', made static and added `MonoGenericContext *'
argument.
(mono_field_from_token): Added `MonoGenericInst *' argument.
(method_from_memberef): Likewise.
(mono_get_method_from_token): Likewise.
(mono_get_method_full): New public function; does a
mono_get_method(), but also takes a `MonoGenericContext *'.
* verify.c (mono_method_verify): Get the method's generic context
and pass it to mono_field_from_token(), mono_get_method_full() and
mono_class_get_full().
svn path=/trunk/mono/; revision=24614
* AssemblyBuilder.cs: Changed strongname support to match MS
implementation (i.e. attributes are used by the compiler - not by
AssemblyBuilder).
svn path=/trunk/mcs/; revision=24610
* attribute.cs: Added methods to get a string and a bool from an
attribute. Required to information from AssemblyKeyFileAttribute,
AttributeKeyNameAttribute (string) and AssemblyDelaySign (bool).
* codegen.cs: Modified AssemblyName creation to include support for
strongnames. Catch additional exceptions to report them as CS1548.
* compiler.csproj: Updated include CryptoConvert.cs.
* compiler.csproj.user: Removed file - user specific configuration.
* CryptoConvert.cs: New. A COPY of the class CryptoConvert from
Mono.Security assembly. The original class is maintained and tested in
/mcs/class/Mono.Security/Mono.Security.Cryptography/CryptoConvert.cs.
* drivers.cs: Added support for /keyfile, /keycontainer and /delaysign
like CSC 8.0 (C# v2) supports.
* Makefile: Added CryptoConvert.cs to mcs sources.
* rootcontext.cs: Added new options for strongnames.
svn path=/trunk/mcs/; revision=24609
* class.c (mono_class_inflate_generic_type): Take a
`MonoGenericContext *' instead of a `MonoGenericInst *' and a
`MonoGenericMethod *'.
svn path=/trunk/mono/; revision=24608
* mini.c (mini_get_method): Take a `MonoGenericContext *' instead
of a `MonoGenericMethod *'.
(TYPE_PARAM_TO_TYPE, MTYPE_PARAM_TO_TYPE): mono_method_to_ir() has
a new local variable called `generic_context' which holds the
current `MonoGenericContext *'; use it to lookup things.
svn path=/trunk/mono/; revision=24606
* class.h (MonoGenericInst): Added `MonoGenericContext *context';
each time we create a new MonoGenericInst, we also create a new
context which points back to us.
* class.c (inflate_method): Use `ginst->context' instead of
creating a new context.
* loader.c (method_from_memberref): Use
`klass->generic_inst->context' instead of creating a new context.
svn path=/trunk/mono/; revision=24604
* class.h (MonoGenericContext): New struct.
(MonoGenericMethod): Removed `generic_inst'.
* class.c (mono_class_inflate_generic_method): Take a
`MonoGenericContext *' instead of a `MonoGenericMethod *'.
svn path=/trunk/mono/; revision=24602
* loader.h (MonoMethodInflated): New typedef.
* metadata.h (MonoMethodSignature): Removed `gen_method', make
`generic_param_count' consume just 30 bits, added `is_inflated'
and `has_type_parameters' flags (one bit each).
* class.c (mono_class_inflate_generic_method): Create a
MonoMethodInflated instead of a MonoMethodNormal and set
`is_inflated' in the method signature.
* class.h (MonoGenericMethod): Removed `generic_method'.
svn path=/trunk/mono/; revision=24600
* SignedXml.cs: Added try/catch in CheckSignatureWithKey to return
false on exceptions. Fix signature-rsa-detached-xslt-transform-bad
-retrieval-method.xml in the Phaos test suite.
svn path=/trunk/mcs/; revision=24599
* xmldsig.cs: Some of the Phaos test files uses <Manifest> with having
*manifest* in their name. Manually load certificates for Phaos tests
that requires it (as RetrievalMethod isn't support automatically).
svn path=/trunk/mcs/; revision=24598
a direct call to ReadData. In InitBuffer(), if buffering is disabled,
create a buffer of one byte, to be used in ReadByte.
This fixes bug #52361.
svn path=/trunk/mcs/; revision=24589
* xmldsig.cs: Added code to automagically ajust for presence of
HMAC-MD5 and ExC14N in the framework and to manualy skip signatures
containing <Manifest> (not supported).
svn path=/trunk/mcs/; revision=24587
stream after writing the dataset. This fixes bug #52581.
Also added several writer.Close into finally blocks, so writers are properly
closed in case of an exception.
svn path=/trunk/mcs/; revision=24580
* Makefile, do-tests.pl: A new system for testing.
* mcs-expect-no-errors, mcs-expect-wrong-error: a list
of tests that we fail on.
* CONTRIBUTORS_README: update docs.
svn path=/trunk/mcs/; revision=24562
* driver.cs: For --expect-error, report error code `2'
if the program compiled with no errors, error code `1' if
it compiled with an error other than the one expected.
svn path=/trunk/mcs/; revision=24560
* Makefile: Updated sn.exe to include StrongNameManager.cs.
* sn.cs: Updated to use StrongNameManager. This allows remapping a
public key token to another public key (e.g. ECMA key). Also added
support for -Vl.
* StrongNameManager.cs: New. First version. Allows remapping of
public key tokens to alternate public keys (e.g. ECMA) and disabling
strongname verification for specific tokens/assemblies/users combo.
svn path=/trunk/mcs/; revision=24559
* mini.c (mini_get_class): New static method; if we're inside a
generic instance, inflate the class if neccessary.
(mono_method_to_ir): Use mini_get_class() instead of mono_class_get().
svn path=/trunk/mono/; revision=24555
Use a special method to generate default values, since default enum values
will come as integers, so a special cast is needed.
* XmlSerializationReaderInterpreter.cs,
* SerializationSource.cs, SoapAttributeAttribute.cs, SoapAttributeOverrides.cs,
SoapAttributes.cs, SoapElementAttribute.cs, SoapEnumAttribute.cs,
SoapTypeAttribute.cs, XmlAnyElementAttribute.cs, XmlAnyElementAttributes.cs,
XmlArrayAttribute.cs, XmlArrayItemAttribute.cs, XmlArrayItemAttributes.cs,
XmlAttributeAttribute.cs, XmlAttributeOverrides.cs, XmlAttributes.cs,
XmlChoiceIdentifierAttribute.cs, XmlElementAttribute.cs, XmlElementAttributes.cs,
XmlEnumAttribute.cs, XmlReflectionMember.cs, XmlRootAttribute.cs,
XmlTextAttribute.cs, XmlTypeAttribute.cs: Had to change the implementation
of SerializationSource. It can't keep and use the XmlAttributeOverride
instances as key values, since those instances can be modified after the
xml map has been generated. Now, SerializationSource generates a unique
string hash from XmlAttributeOverride and uses it for comparisons.
svn path=/trunk/mcs/; revision=24553
* HttpWebRequest.cs: added the exception status to the error message.
* WebConnection.cs: add headers using SetInternal instead of Add to
bypass header name validation. Fixes bug #55994.
* WebHeaderCollection.cs: added SetInternal (string header).
svn path=/trunk/mcs/; revision=24549
* StrongName.cs: Added CanSign property for AssemblyBuilder. Current
Fx design requires an exception to know if the private key is present
in an RSA instance. In some case (inside corlib) we can do without...
svn path=/trunk/mcs/; revision=24547
* iltests.il: New regression test for #55976.
* mini.c (mono_method_to_ir): Empty the stack in endfinally. Fixes
#55976.
svn path=/trunk/mono/; revision=24546
* StrongName.cs: Added CanSign property for AssemblyBuilder. Current
Fx design requires an exception to know if the private key is present
in an RSA instance. In some case (inside corlib) we can do without...
svn path=/trunk/mcs/; revision=24545
Minor fixes in Infoset method.
* ComplexDataStructure.cs: New set of tests for testing complex object
serialization.
svn path=/trunk/mcs/; revision=24541
WriteRoot_ and ReadRoot_ methods. Cast result of ReadTypedPrimitive to
the adequate type. Set the default value of members that do have a default
value. Other minor fixes.
* SoapReflectionImporter.cs, XmlReflectionImporter.cs: All maps must derive
from typeof(object) map, even those that have another base class.
* XmlCustomFormatter.cs: Fixed generation of conversion from char to string.
It must serialize the char as number, not as character.
* XmlSerializationReaderInterpreter.cs: Set the default value of members
that do have a default value.
* XmlTypeMapping.cs: Added property MembersWithDefault, which returns a list
of members that have a default value.
svn path=/trunk/mcs/; revision=24540
* ReferenceTest.cs : Test for keeping document object identity.
* XmlDsigC14NTransformTest.cs : Fixed LoadInputAsXmlNodeList(). Here,
passed XmlNodeList means filtered (e.g. XPath) nodes, which might
contain parent and children as each node in the list.
Added LoadInputAsXmlNodeList2(), which fails in the meantime.
svn path=/trunk/mcs/; revision=24534
* Reference.cs, Signature.cs : They should keep input element and hence
keep namespace context nodes on LoadXml() as same as SignedInfo.
* SignedXml.cs : Fixed SignedInfoTransformed() to fill context
namespace nodes into the input document (unlike other classes, there
seems no other way to keep ns-nodes here).
Now some of W3C phaos xmldsig test passes.
svn path=/trunk/mcs/; revision=24532
* XmlDocumentNavigator.cs : MoveTo*Namespace() should not iterate
namespace nodes which has the same name as already-iterated nodes.
Also xmlns='' should not be selected, and once it appeared, default
namespace should not be selected anymore.
svn path=/trunk/mcs/; revision=24531
* SelectNodesTests.cs : Added test for 1) not selecting previously-
selected prefixes, and that 2) default namespace erasure (i.e.
xmlns="") should not be selected.
svn path=/trunk/mcs/; revision=24530
is a directory.
* MonoIO.cs: In ExistsDirectory, return ERROR_PATH_NOT_FOUND instead of
ERROR_FILE_NOT_FOUND, since we are looking for a directory, not a file.
svn path=/trunk/mcs/; revision=24527
* appdomain.c (ves_icall_System_AppDomain_InternalUnload): Add
MONO_NO_UNLOAD env var as a temporary workaround for unloading
problems.
svn path=/trunk/mono/; revision=24524
* compiler.csproj: Updated for Visual Studio .NET 2003.
* compiler.csproj.user: Updated for Visual Studio .NET 2003.
* compiler.sln: Updated for Visual Studio .NET 2003.
svn path=/trunk/mcs/; revision=24522
* DataColumn.cs - removed the TODOs since I had checkedin earlier
* DataViewRowState.cs - Implemented EditorAttribute
svn path=/trunk/mcs/; revision=24514
* expression.cs: Fix bug #47234. We basically need to apply the
rule that we prefer the conversion of null to a reference type
when faced with a conversion to 'object' (csc behaviour).
svn path=/trunk/mcs/; revision=24513
* XmlCharacterData.cs : ReplaceData() should reject negative integer
value for count argument.
* XmlAttribute.cs, XmlAttributeCollection.cs, XmlNamedNodeMap.cs :
On RemoveNamedItem(), default attribute value should be restored.
svn path=/trunk/mcs/; revision=24511
* XmlAttributeCollection.cs : Remove() should throw an exception when
target attribute is not included in the collection.
* XmlDocument.cs : ImportNode() should reject null node.
* XmlNode.cs : Fixed type of exception for invalid insertion.
It should throw an exception not only when the owner document of the
reference element is different but its parent element is different.
Some error message improvement.
svn path=/trunk/mcs/; revision=24509
* TypeBuilder.cs (TypeBuilder.GetEvents_internal): New internal
method; this is basically GetEvents(), but see the FIXME in that method.
svn path=/trunk/mcs/; revision=24506
* hppa/hppa-codegen.h: created
* hppa/tramp.c: changed style to be more like
other platforms.
* hppa/Makefile.am: add hppa-codegen.h
svn path=/trunk/mono/; revision=24504
* constant.cs, ecore.cs, literal.cs: New prop IsZeroInteger that
checks if we can use brtrue/brfalse to test for 0.
* expression.cs: use the above in the test for using brtrue/brfalse.
cleanup code a bit.
svn path=/trunk/mcs/; revision=24501
* expression.cs (Invocation.OverloadResolve): Added `bool
may_fail' argument and use it instead of the Location.IsNull() hack.
svn path=/trunk/mcs/; revision=24499
* CryptoConvertTest.cs: Added test case where the public key structure
is inside preceded by an header (like the one produced by "sn -e").
svn path=/trunk/mcs/; revision=24496
* liveness.c: Consider SSA stores as well as loads when making vars
volatile.
* exceptions.cs: New regression tests for register allocation.
svn path=/trunk/mono/; revision=24493
* RSAManaged.cs: CryptographicException thrown when trying to export
the private key when only the public key is present (CRT aware).
svn path=/trunk/mcs/; revision=24491
* CryptoConvert.cs: Added exception for null and bad parameters.
* RSAManaged.cs: CryptographicException thrown when trying to export
the private key when only the public key is present (CRT aware).
svn path=/trunk/mcs/; revision=24486
* ecore.cs (MethodGroupExpr.Name): Use
TypeManager.CSharpSignature() instead of just the name.
* expression.cs (Invocation.OverloadResolve): Provide better error
reporting.
(Invocation.DoResolve): OverloadResolve() never returns null
without reporting an error, so removed the error -6 reporting here.
svn path=/trunk/mcs/; revision=24484
* DateTime.cs: Allow any character for DateSeparator when parsing,
except TimeSeparator, a digit or a letter. Fixes bug 54047. Also
deleted the previous fix for 54721, because this covers it too.
svn path=/trunk/mcs/; revision=24478
internal variables to structures that are moved around methods.
Factorized some common formatting code into FormatNumberInternal.
svn path=/trunk/mcs/; revision=24475
* PrivateKey.cs: Adjusted to catch exceptions from CryptoConvert.
FromCapiPrivateKeyBlob when dealing with weakly encrypted keys.
svn path=/trunk/mcs/; revision=24471
* expression.cs: Emit shorter il code for array init.
newarr
dup
// set 1
// set 2
newarr
stloc.x
ldloc.x
// set 1
ldloc.x
// set 2
svn path=/trunk/mcs/; revision=24467
* SignedInfo.cs : It holds input element and directly returns it
unless the properties are not set.
Throw CryptographicException when Reference is empty *and* GetXml()
is *created*. (when just returning input element, no exception is
thrown).
svn path=/trunk/mcs/; revision=24465
* SignedInfoTest.cs : assure the owner document object equality /
inequality with related to LoadXml() and setting properties.
svn path=/trunk/mcs/; revision=24464
* typemanager.cs : being more carefull with null arguments in some places,
null checking in GetPertinentStandardModules() loop
* namespace.cs : a helper ToString override
* ecore.cs : Dealing with finding more than a pertinent standard module having a global member
* testmbas/WriteOk.vb : Exercising correct standard module resolution
NOTE: Almost there for Bug #52067 - just the semi-qualified case isn't working
svn path=/trunk/mcs/; revision=24463
* ecma.pub: New. ECMA key to be used for strongnaming assemblies.
* msfinal.pub: New. Microsoft public key to be used for strongnaming
assemblies.
svn path=/trunk/mcs/; revision=24460
* DataObject.cs : It now hold element instead of each parameters.
Avoid loading element content to different document unless its
properties were modified (to keep namespace node context).
svn path=/trunk/mcs/; revision=24459
* Npgsql/NpgsqlAsciiRow.cs
* Npgsql/NpgsqlBinaryRow.cs
* Npgsql/NpgsqlDataReader.cs: Fixed NpgsqlDataReader.IsDBNull(). It wasn't working for postgresql 7.4+. Thanks Glen Parker ([email protected]) for the patch.
svn path=/trunk/mcs/; revision=24447
* Npgsql/NpgsqlAsciiRow.cs
* Npgsql/NpgsqlBinaryRow.cs
* Npgsql/NpgsqlDataReader.cs: Fixed NpgsqlDataReader.IsDBNull(). It wasn't working for postgresql 7.4+. Thanks Glen Parker ([email protected]) for the patch.
svn path=/trunk/mcs/; revision=24446
* class.c: do not insert non-virtual methods in the vtable.
* icall.c, mono-debug-debugger.c, object.c: if method->slot == -1,
that means the method is non-virtual. This never would have
happened before.
svn path=/trunk/mono/; revision=24443
* PublisherIdentityPermission.cs: Now use CryptoConvert for Hexadecimal
convertions.
* PublisherIdentityPermissionAttribute.cs: Now use CryptoConvert for
Hexadecimal convertions.
svn path=/trunk/mcs/; revision=24433
* CryptoConvert.cs: Added new methods to convert [From|To]Hex. Added
new version of FromCapiPublicKeyBlob with an integer offset.
svn path=/trunk/mcs/; revision=24432
* mini.c: Removed domain lock from mono_jit_compile_method_with_opt. Use
domain lock only to protect puntual access to data structures.
Added access lock for sighash, jit_icall_hash_name,
jit_icall_hash_addr and domain->code_mp.
svn path=/trunk/mono/; revision=24427
* expression.cs (Invocation.InferParamsTypeArguments): New static
method; does type inference for params arguments.
svn path=/trunk/mcs/; revision=24423
* String.cs (System): Use the provider when converting strings to
other types.
* DateTime.cs (System): Add MM-dd-yyyy to the list of standard
date parsing formats. Fixes bug 54721.
2004-03-22 Dick Porter <[email protected]>
* DateTimeTest.cs (System): Test the MM-dd-yyyy date parse format.
svn path=/trunk/mcs/; revision=24420
* CustomAttributeBuilderTest.cs: Call GetCustomAttributes with false
so custom attributes on Object do not screw the results.
svn path=/trunk/mcs/; revision=24416
* ecore.cs : now it gets the correct list of namespaces in scope (either imported or current) Almost there for Bug #52067
svn path=/trunk/mcs/; revision=24415
* ScriptCompilerInfo.cs : Modified compilation processing. Now it uses
CodeDom. Compilation error should be caught. This fixes bug #55875.
svn path=/trunk/mcs/; revision=24398
* typemanager.cs (TypeManager.IsGenericMethod): New public static
method; checks whether a method is a generic method.
* expression.cs (Invocation.InferTypeArguments): New static method;
infer type arguments for generic method invocation.
* ecore.cs (MethodGroupExpr.HasTypeArguments): New public
property; we set this to true if we're resolving a generic method
invocation and the user specified type arguments, ie. we're not
doing type inference.
svn path=/trunk/mcs/; revision=24393
* statement.cs: Before, two switch blocks would be merged if the
total size of the blocks (end_item - begin_item + 1) was less than
two times the combined sizes of the blocks.
Now, it will only merge if after the merge at least half of the
slots are filled.
fixes 55885.
svn path=/trunk/mcs/; revision=24392
* icall.c (ves_icall_MethodInfo_get_IsGenericMethod): Use
`method->method->signature->generic_param_count != 0' to make it
work for interface methods.
svn path=/trunk/mono/; revision=24391
* Socket.cs: when Dispose (bool) is called from the finalizer, always
do the cleanup. Fixes yet another nullref with xsp.
svn path=/trunk/mcs/; revision=24387
* ThreadAbortException.cs: use same HResult as MS.
* Timer.cs: abort the running thread when disposing the Timer. This
fixes NullRefs when finishing xsp.
svn path=/trunk/mcs/; revision=24386
* class.cs (MethodData.DeclaringType): New public property.
(MethodData.Define): Set DeclaringType here.
(Operator.Define): Use OperatorMethod.MethodData.DeclaringType
instead of OperatorMethodBuilder.DeclaringType.
svn path=/trunk/mcs/; revision=24377
* cs-tokenizer.cs (xtoken): Return a special
Token.DEFAULT_OPEN_PARENS for "`default' followed by open parens".
* cs-parser.jay (default_value_expression): Switch to the new
syntax (14.5.13).
svn path=/trunk/mcs/; revision=24372
* decl.cs (MemberName): New class. We use this to "construct"
namespace_or_type_name's.
* generics.cs (TypeArguments.GetDeclarations): New public method;
returns the type arguments as a string[] and reports a CS0081 if
one of them is not an identifier.
* class.cs (MemberBase): The .ctor now takes the name as a
MemberName instead of a string.
(MemberBase.ExplicitInterfaceName): Changed type from string to
Expression.
(MemberBase.DoDefine): If we're an explicit implementation, the
InterfaceType may be a generic instance.
* cs-parser.jay (namespace_or_type_name): Return a MemberName.
(namespace_name): Call MemberName.GetName () to transform the
MemberName into a string and ensure we don't have any type
arguments.
(type_name): Call MemberName.GetTypeExpression() to transfrom the
MemberName into an expression.
(method_header): Use namespace_or_type_name instead of member_name.
svn path=/trunk/mcs/; revision=24369
* expression.cs: Make sure fp comparisons work with NaN.
This fixes bug #54303. Mig approved this patch a long
time ago, but we were not able to test b/c the runtime
had a related bug.
svn path=/trunk/mcs/; revision=24364
* mini-x86.c cpu-pentium.md: Fix floating point branch opcodes so fbxx
is different from fbxx_un. Fixes#54303. Also use constants instead of
magic numbers in a lot of places.
svn path=/trunk/mono/; revision=24362
* class.cs (MemberCore.IsDuplicateImplementation): Check whether
two overloads may unify for some type parameter substitutions and
report a CS0408 if appropriate.
svn path=/trunk/mcs/; revision=24355
* daemon.c: only call getdtablesize () once.
* processes.c: wait 500 ms to check if execve failed and throw the same
exception as MS on failure. Fixes bug #32809.
svn path=/trunk/mono/; revision=24349
* interface.cs: Completely killed this file.
(Interface): We're now a TypeContainer and live in class.cs.
* class.cs (TypeContainer.GetClassBases): Added `bool is_iface'
argument; we're now also called for interfaces.
(TypeContainer.DefineMembers): Allow this method being called
multiple times.
(TypeContainer.GetMethods): New public method; formerly known as
Interface.GetMethod(). This is used by PendingImplementation.
(TypeContainer.EmitDefaultMemberAttr): Moved here from Interface;
it's now private and non-static.
(Interface): Moved this here; it's now implemented similar to
Class and Struct.
(Method, Property, Event, Indexer): Added `bool is_interface'
argument to their .ctor's.
(MemberBase.IsInterface): New public field.
* cs-parser.jay: Create normal Method, Property, Event, Indexer
instances instead of InterfaceMethod, InterfaceProperty, etc.
(opt_interface_base): Removed; we now use `opt_class_base' instead.
(InterfaceAccessorInfo): Create `Get' and `Set' Accessor's.
svn path=/trunk/mcs/; revision=24345
* class.cs (MethodCore.IsDuplicateImplementation): New private
method which does the CS0111 checking.
(Method.CheckBase, Constructor.CheckBase, PropertyBase.CheckBase):
Use IsDuplicateImplementation().
svn path=/trunk/mcs/; revision=24339
* threads.c:
(mono_threads_manage): don't remove the finalizer thread and self
from the threads hash table so that mono_thread_manage can be called
more than once.
svn path=/trunk/mono/; revision=24335
* TlsClientKeyExchange.cs: Fixed key pair used to encrypt pre-master
secret for exportable ciphers - must use the public key received in
ServerKeyExchange.
svn path=/trunk/mcs/; revision=24331
* CipherSuite.cs: Fixed PRF generation when secret is an odd number of
bytes (section 5 in RFC2246).
* CipherSuiteFactory.cs: Added algorithms RSA_EXPORT_WITH_RC4_40_MD5,
RSA_EXPORT_WITH_RC2_CBC_40_MD5, RSA_EXPORT_WITH_DES40_CBC_SHA,
RSA_EXPORT_WITH_RC4_56_MD5, RSA_EXPORT_WITH_RC2_CBC_56_MD5,
RSA_EXPORT_WITH_DES_CBC_56_SHA and RSA_EXPORT_WITH_RC4_56_SHA to both
SSL3 and TLS1 protocols.
* SslCipherSuite.cs: Fixed key generation for exportable ciphers.
* TlsCipherSuite.cs: Fixed key generation for exportable ciphers.
svn path=/trunk/mcs/; revision=24330
* UnicodeEncoding.cs: GetCharCount(), GetChars(): Check for the
BOM at the beginning of the range of characters we're interested
in, not at the beginning of the array. Fixes bug 51531.
2004-03-19 Dick Porter <[email protected]>
* UnicodeEncodingTest.cs: Test for character counts on subranges
of arrays with a BOM at the start of the array.
svn path=/trunk/mcs/; revision=24328
* Interaction.cs:
Added MonoTODO attributes
All not implemented members are throwing NotImplementedException
Implemented IIf
Implemented Command
Implemented Environ
svn path=/trunk/mcs/; revision=24325
* ThreadTest.cs: Removed Ignore attributes from
CurrentPrincipal_PrincipalPolicy_NoPrincipal and
CurrentPrincipal_PrincipalPolicy_UnauthenticatedPrincipal
Now that bug 54041 is fixed, and they wont livelock.
svn path=/trunk/mcs/; revision=24321
* threads.c: set mono_thread_detach as a cleanup routine for every
thread. This way it's always executed upon thread termination, either
aborted or finished normally. No more xsp hangs!
svn path=/trunk/mono/; revision=24315
2004-03-19 01:36:11 +00:00
2643 changed files with 140125 additions and 58439 deletions
xsd \- Mono's utility for generating schema or class files
.SH"SYNOPSIS"
.PP
.Bxsd
<schema.xsd> /classes [options]
.PP
.Bxsd
<schema.xsd> /dataset [options]
.PP
.Bxsd
<assembly>.dll|<assembly>.exe [options]
.PP
.Bxsd
<instance.xml> [<instance.xml> ...] [options]
.PP
.SH"DESCRIPTION"
.Ixsd
is a tool for intended to complement the XML serialization support of Mono. It can do the following tasks:
.TP
Generateserializableclasses
From a given XML schema, generate a class that can be used to read and write xml documents that conform that schema (/classes option).
.TP
Generatetypeddatasets
From a given XML schema, generate a typed DataSet class that can be used to read and write xml documents that conform that schema (/dataset option).
.TP
GenerateXMLschemas
From a given assembly and an optional type name, generate an XML schema that can be used to validate the xml documents that can be obtained by serializing objects of that type. If no type is provided, xsd generates a schema for all types in the assembly. When specifying the assembly name do not include the file extension (.dll or .exe). xsd will look for the assembly using the standard assembly loading rules.
.TP
InferXMLschemas
From a given set of XML documents, infer the XML schema that can be used to validate those documents.
.SH"OPTIONS"
The following options are available:
.TP
.I"/element:name""/e:name"
Specifies the name of the XML schema element for which a class or a dataset has to be generated.
.TP
.TP
.I"/namespace:name""/n:name"
Specifies the namespace of the XML schema element for which a class or a dataset has to be generated.
.TP
.I"/language:name""/l:name"
Specifies the programming language to use for the generated code. The only supported languages are CS (C#) and VB (Visual Basic.NET).
.TP
.I"/outputdir:path""/o:path"
Specifies the directory where to generate the code or schemas.
.TP
.I"/type:name""/t:name"
Specifies the full name of the type (including namespace) for which to generate the XML schema.
Loaded 100 of 2643 files, more files were not shown because too many files have changed in this diff.
Show more
Reference in new issue
Block a user
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.