* 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
* Hashtable.cs: Serialise/Deserialise to two arrays of
keys/values. This will match what MS.NET appears to be
doing.
svn path=/trunk/mcs/; revision=24308
* SoapTypeMapper.cs: Map object to xsd:anyType rather than
SOAP-ENC:anyType so we can deserialise the objects serialised
by MS.NET.
svn path=/trunk/mcs/; revision=24307
* SimpleWorkerRequest.cs: patch from Aleksey Demakov that fixes
MapPath when the virtual directory is the root virtual directory.
svn path=/trunk/mcs/; revision=24298
* decl.cs (FindMemberToOverride): New method to find the correct
method or property to override in the base class.
* class.cs
- Make Method/Property use the above method to find the
version in the base class.
- Remove the InheritableMemberSignatureCompare as it is now
dead code.
This patch makes large code bases much faster to compile, as it is
O(n) rather than O(n^2) to do this validation.
Also, it fixes bug 52458 which is that nested classes are not
taken into account when finding the base class member.
Reviewed/Approved by Martin.
svn path=/trunk/mcs/; revision=24262
* expression.cs (MemberAccess.DoResolve): Take the parent's number
of type arguments into account; use the `real_num_type_args'
approach like in DoResolveAsTypeStep().
* generic.cs (GenericMemberAccess.DoResolve): Make this work for
nested types.
svn path=/trunk/mcs/; revision=24258
* class.h (MonoGenericInst): Replaced the `GList *nested' with an
`int count_nested' and a `MonoType **nested'.
* reflection.c (mono_reflection_bind_generic_parameters): Moved
most of the functionality into a new static
do_mono_reflection_bind_generic_parameters() and don't take a
`MonoType *nested_in' argument any more. Don't compute nested
types here.
(mono_reflection_generic_inst_get_nested_types): New public method
to get nested types.
* class.c (mono_class_create_generic): Set `klass->nested_in' if
we're a nested class.
* icall.c (ves_icall_MonoGenericInst_GetNestedTypes): Call
mono_reflection_generic_inst_get_nested_types() to compute the
nested types.
svn path=/trunk/mono/; revision=24255
Merged latest changes into gmcs. Please keep this comment in
here, it makes it easier for me to see what changed in MCS since
the last time I merged.
svn path=/trunk/mcs/; revision=24254
* syntax.cs, interpreter.cs, quicksearch.cs, regex.cs, compiler.cs :
Revised support for RigthToLeft.
quicksearch has now an reverse option.
This fixes bug #54537
* regex.cs, compiler.cs :
Some code to support CILCompiler.
* regex.cs :
Added some undocumented of MS.
svn path=/trunk/mcs/; revision=24249
* PerlTrials.cs : Added many test for RightToLeft
* PerlTest.cs, RegexTrial : Modified version of regextrial to
be run all the test and to report exception.
svn path=/trunk/mcs/; revision=24248
* mini.c (get_generic_field_inst): Removed, this'll never happen.
(inflate_generic_field): Take the `MonoMethod *' instead of the
`MonoClass *' and added support for generic method.
(mono_method_to_ir): In CEE_LDSFLD and CEE_STSFLD, assert we never
have a `field->parent->gen_params', only inflate the field if it's
an open constructed type.
svn path=/trunk/mono/; revision=24245
* Mono.Security.Protocol.Tls.Handshake.Server/TlsClientCertificate.cs:
* Mono.Security.Protocol.Tls.Handshake.Server/TlsServerKeyExchange.cs:
- Initial implementation.
2004-03-16 Carlos Guzman Alvarez <[email protected]>
* Mono.Security.Protocol.Tls/SslCipherSuite.cs:
- Added changes for allow it to work as server or client.
2004-03-15 Carlos Guzman Alvarez <[email protected]>
* Mono.Security.Protocol.Tls/TlsStream.cs:
* Mono.Security.Protocol.Tls/CipherSuite.cs:
* Mono.Security.Protocol.Tls/TlsCipherSuite.cs:
* Mono.Security.Protocol.Tls/SslHandshakeHash.cs:
* Mono.Security.Protocol.Tls/RecordProtocol.cs:
* Mono.Security.Cryptography/MD5SHA1.cs:
- Use Buffer.BlockCopy instead of System.Array.Copy
svn path=/trunk/mcs/; revision=24233
* io.c (async_notifier): use "union sigval" rather
than sigval_t as Solaris doesn't have sigval_t
(which isn't in IEEE 1003.1 either).
svn path=/trunk/mono/; revision=24231
* PKCS12.cs: Fixed sequence problem in Pkcs8ShroudedKeyBag. Fixed key
bag implementation in GetBytes. Moved key bag implementation in
GetBytes to fit OpenSSL. Added NULL digest in MAC (GetBytes) to fit
OpenSSL. Added SaveToFile method.
svn path=/trunk/mcs/; revision=24224
* exceptions-x86.c (mono_arch_handle_exception): Allocate a new
exception object instead of the preconstructed ones.
svn path=/trunk/mono/; revision=24221
* mini.c:
(mono_method_to_ir): CEE_CALLVIRT, abort if no method. It hanged when
running --aot with an old assembly.
svn path=/trunk/mono/; revision=24212
* reflection.c (mono_image_get_fieldref_token): Take a
`MonoReflectionField *' instead of a `MonoClassField *' and a
`MonoClass *'; store the `MonoReflectionField *' in the hash.
svn path=/trunk/mono/; revision=24201
* expression.cs (MemberAccess.DoResolve): If `expr' resolved to a
ConstructedType, call ResolveType() on it to get the type rather
than just using `expr.Type'.
svn path=/trunk/mcs/; revision=24200
* SignedXml.cs : the result from enveloped signature transform should
be canonicalized before getting its hash.
* XmlDsigEnvelopedSignatureTransform.cs : in XPath selection,
if the node is Signature itself it is not allowed.
PreserveWhitespace is required.
svn path=/trunk/mcs/; revision=24197
Args class added get_element, Size and made Resolve behave as the
others (collect the differents Resolve's return values from each
of the arguments). Expression class, added default Resolve call
for non-Exp implementers.
svn path=/trunk/mcs/; revision=24189
* generics.cs (ConstructedType.GetMemberAccess): Take the
EmitContext instead on the TypeExpr and use
ec.TypeContainer.CurrentType/ec.ContainerType.
svn path=/trunk/mcs/; revision=24180
* XmlWhitespace.cs : Fixed WriteTo(). Whitespace nodes should be
written regardless of document's PreserveWhitespace.
svn path=/trunk/mcs/; revision=24178
* XmlDocumentTests.cs : Added PreserveWhitespace2() (whitespace nodes
should be written regardless of document.PreserveWhitespace.)
svn path=/trunk/mcs/; revision=24177
* typemanager.cs (TypeManager.MayBecomeEqualGenericInstances):
New oublic function; checks whether two generic instances may become
equal under some instantiations (26.3.1).
* class.cs (TypeContainer.Define): Call
TypeManager.MayBecomeEqualGenericInstances() and report CS0695 on
error.
svn path=/trunk/mcs/; revision=24166
* .cvsignore: Ignore temporary files.
* c14n.cs: Canonalization tool. Take any XML document (or part of it)
and output it's C14N form (C14N transformation is user selectable).
* ChangeLog: New.
* Makefile: New. Makefile to download, build and run xmldsig tests
(copied from Atsushi - actually this whoile directory is his idea).
svn path=/trunk/mcs/; revision=24160
* appdomain.c: don't add the culture to the filename we're looking for
if it's neutral or NULL. Fixes bug #53788. Removed redundant memset.
svn path=/trunk/mono/; revision=24159
* SignedXml.cs: Changed (again). This time we use the Stream when
loading the document. We now pass 14 out of 15 of the Merlin's
tests (including one that MS fails). The only failing test is the
one that use the EnvelopedTransform (unfinished).
svn path=/trunk/mcs/; revision=24158
* mini-sparc.c (mono_arch_instrument_epilog): Fix handling of floating
point values.
* mini-sparc.c: Add support for v9 branches with prediction.
svn path=/trunk/mono/; revision=24154
* class.cs (TypeContainer.GetClassBases): Moved
Error_TypeParameterAsBase() here and also check whether the base
class is not an attribute.
svn path=/trunk/mcs/; revision=24152
2004-03-16 Martin Baulig <[email protected]>
* class.cs (Error_TypeParameterAsBase): Use correct error number
here (CS0689).
svn path=/trunk/mcs/; revision=24151
* marshal.c (mono_marshal_get_native_wrapper): Char arrays are
implicitly marshalled as [Out]. Fixes#55450.
(mono_marshal_get_runtime_invoke): Zero out the result if there is
an exception.
svn path=/trunk/mono/; revision=24146
* Makefile (run-generics-local): New target to run the generics
tests.
* gmcs0246.cs, gmcs0305.cs, gmcs0305-2.cs, gmcs0308.cs,
gmcs0308-2.cs: New tests.
svn path=/trunk/mcs/; revision=24143
* reflection.c (type_get_signature_size): New static function.
Compues the size of the type in a method signature.
(method_get_signature_size): New static function; calls
type_get_signature_size() to compute the actual size of the
method's signature.
(method_encode_signature): Use method_get_signature_size() to get
the signature's size rather than using `nparams * 10'.
svn path=/trunk/mono/; revision=24140
* Test1.vb: corrected mispelling in keyword
* Test.Sources: no misc1.vb or CharacterLiteralsA.vb sources
* ConditionalCompilationC.vb: added some tests with #Const
svn path=/trunk/mcs/; revision=24128
* Contribution from Roopa Wilson - Testcases for AddRange (), CanRemove (), RemoveAt (), Remove (), Exceptions of Remove(), and Clear ()
svn path=/trunk/mcs/; revision=24122
* XmlDsigNodeList.cs : added.
* XmlDsigXPathTransform.cs : removed XmlDsigNodeList class.
* XmlDsigEnvelopedSignatureTransform.cs :
Implemented GetOutput(). However, it is totally MS behavior
dependent and not based on the spec (we can reimplement it based on
improved XmlDsigXPathTransform).
* SignedXml.cs : in GetOutput(), accept XmlNodeList input too.
svn path=/trunk/mcs/; revision=24120
* OdbcParameterCollection.cs - Implemented all the remaining methods & attributes
* OdbcParameter.cs - Included a Container property to keep track of the Collection
that it is attached
svn path=/trunk/mcs/; revision=24116
* SqlParameterCollection.cs
Corrected IndexOf method to return -1 if the parametername is not
found in the collection
svn path=/trunk/mcs/; revision=24111
* XmlDocumentNavigator.cs : Value should return concatenated string for
sequential text nodes. Considered detached nodes, the result of
MoveToParent() should be checked.
svn path=/trunk/mcs/; revision=24107
* decl.cs (DefineTypeAndParents): New helper method to define a
type's containers before the type itself is defined; This is a
bug exposed by the recent changes to Windows.Forms when an
implemented interface was defined inside a class that had not been
built yet.
svn path=/trunk/mcs/; revision=24101
* Random.cs: Corrected random value when Next is called with a
negative value. Testing indictae that our results aren't exactly the
same as MS, we have a +/- 1 (probably rounding errors due to
different implementation).
svn path=/trunk/mcs/; revision=24097
* typemanager.cs (TypeManager.GetFullName): New public method.
(TypeManager.MemberLookup): Added `int_num_type_arguments'
argument; only return members with the correct number of type
arguments.
(TypeManager.CheckGeneric): Allow -1 to bypass the check.
(TypeManager.FilterWithClosure): Call CheckGeneric() to check
whether the number of type arguments matches.
* generic.cs (GenericMemberAccess.ResolveAsTypeStep): Allow `expr'
not being a ConstructedType; we can now do "typeof (Foo.Bar<U>)".
* expression.cs (MemberAccess): Added public `NumTypeArguments'
field; it's set by the protected .ctor when we're actually a
GenericMemberAccess.
(MemberAccess.ResolveAsTypeStep): Compute the total number of type
arguments and pass it to MemberLookupFinal ().
* ecore.cs (Expression.MemberLookup): Added `int
num_type_arguments' argument; only return members with the correct
number of type arguments.
(Expression.MemberLookupFailed): Check whether the MemberLookup
failed because we did not have the correct number of type
arguments; report CS0305 in this case.
* decl.cs (DeclSpace.ResolveTypeExpr): Don't report an error if
`e.ResolveAsTypeTerminal()' already did so.
svn path=/trunk/mcs/; revision=24083
* libtest.c (mono_test_marshal_time_t): fix
for current code on 64 bit machines with 64bit time
* marshal9.cs marshal10.cs: Do arithmetic on
pointers as 64bits.
svn path=/trunk/mono/; revision=24078
* modifiers.cs (Check): Loop correctly to report errors modifiers
(UNSAFE was not in the loop, since it was the same as TOP).
* interface.cs: Every interface member now takes a ModFlags,
instead of a "is_new" bool, which we set on the base MemberCore.
Every place where we called "UnsafeOk" in the interface, now we
call the proper member (InterfaceMethod.UnsafeOK) instead to get
the unsafe settings from the member declaration instead of the
container interface.
* cs-parser.jay (opt_new): Allow unsafe here per the spec.
svn path=/trunk/mcs/; revision=24074
* ecore.cs (Expression.ResolveLValue): Allow e.type being null if
we're a ConstructedType; in this case, the caller must report an
error (for instance CS0131).
* generic.cs (TypeArguments): Added Location argument to the .ctor.
(TypeArguments.Resolve): Actually report errors here.
svn path=/trunk/mcs/; revision=24072
* corlib.dll.sources: added StreamAsyncResult and FileStreamAsyncResult.
* System/Environment.cs: updated corlib version.
* System.IO/FileStream.cs: added support for asynchronous I/O without
using the OS native libraries if available.
* System.IO/FileStreamAsyncResult.cs: IAsyncResult for asynch. I/O.
* System.IO/MonoIO.cs: added BeginRead/Write, GetSupportsAsync. Open
has now a new parameter to tell ifthe file will be used for asynch.
operations.
* System.IO/Stream.cs: BeginRead/Write do not use delegates. They just
are actually synchronous.
* System.IO/StreamAsyncResult.cs: IAsyncResult for Stream.
* System.Threading/NativeOverlapped.cs: added 2 new internal fields.
* System.Threading/Overlapped.cs: implemented, but it's not used.
* System.Threading/ThreadPool.cs: implemented BindHandle.
svn path=/trunk/mcs/; revision=24069
* System.dll.sources: added ProcessStringDictionary.
* System.Collections.Specialized/ProcessStringDictionary.cs: the same
as StringDictionary, but doesn't turn keys into lowercase.
* System.Diagnostics/Process.cs: added environment variables setting
support and also send useShellExecute to the runtime.
* System.Diagnostics/ProcessStartInfo.cs: support EnvironmentVariables.
MS uses StringDictionary, which turns keys into lowercase. We don't
do that.
svn path=/trunk/mcs/; revision=24068
* io-layer/io-private.h: added new fields for file structure. Declare
_wapi_io_add_callback.
* io-layer/io.c: added _wapi_get_win32_error, support aio_read/write
in file_read/write. Implemented _wapi_io_add_callback, which is where
BindHandle ends up.
* io-layer/io.h: added new fields for WapiOverlapped and typedef for
the callback.
* io-layer/processes.c: fixed off-by-one bug when handling environment
variables passed in.
* io-layer/threads.[ch]: implemented BindIoCompletionCallback.
* io-layer/uglify.h: added typedef for LPOVERLAPPED_COMPLETION_ROUTINE.
* metadata/appdomain.c: upgraded corlib version.
* metadata/file-io.c: implemented new icalls: GetSupportsAIO, BeginRead
and BeginWrite. Allow opening files for asynchrnous operations.
* metadata/file-io.h: new struct that maps FileStreamAsyncResult.
* metadata/icall.c: added new icalls.
* metadata/process.[ch]: support setting child process environment
variables and use the SHELL or COMSPEC when UseShellExecute is true.
* metadata/threadpool.[ch]: fixed warnings, moved ThreadPool icalls
here. The callback for async. IO is here and also BindHandle.
* metadata/threads.[ch]: added mono_thread_detach and removed
ThreadPool icalls from here.
svn path=/trunk/mono/; revision=24067
* SignedXml.cs: Now use the original Signature element before applying
the C14N transformation. Added a check for null in LoadXml.
svn path=/trunk/mcs/; revision=24066
* support.cs (SeekableStreamReader): Keep track of stream byte
positions and don't mix them with character offsets to the buffer.
Patch from Gustavo Gir�ldez
svn path=/trunk/mcs/; revision=24063
2004-03-15 Miguel de Icaza <[email protected]>
* pending.cs (TypeAndMethods): Add `get_indexer_name' and
`set_indexer_name' to the pending bits (one per type).
We fixed a bug today that was picking the wrong method to
override, since for properties the existing InterfaceMethod code
basically ignored the method name. Now we make sure that the
method name is one of the valid indexer names.
svn path=/trunk/mcs/; revision=24059
* pending.cs (TypeAndMethods): Add `get_indexer_name' and
`set_indexer_name' to the pending bits (one per type).
We fixed a bug today that was picking the wrong method to
override, since for properties the existing InterfaceMethod code
basically ignored the method name. Now we make sure that the
method name is one of the valid indexer names.
svn path=/trunk/mcs/; revision=24056
SByte.cs, Single.cs, UInt16.cs, UInt32.cs, UInt64.cs: Renamed internal
field "value" to "m_value", so it is interoperable with MS.NET when
serializing and deserializing data. Based on the patch from Daniel Keep.
svn path=/trunk/mcs/; revision=24055
* AssemblyInfo.cs: Deleted
* Control.cs: Hopefully satisfies corecompare a little more than now
* UnsafeNativeMethods.cs: Added for above
svn path=/trunk/mcs/; revision=24052
* CustomAttributeBuilderTest.cs: Force test to pass if we are running
on version 1.1 of the CLR. That version does not throw the exception.
svn path=/trunk/mcs/; revision=24045
* DataRow.cs
- Added code to set Default values in the constructor
- Removed TODO tags from HasErrors, ItemArray, SetParentRow
after adding testcases
svn path=/trunk/mcs/; revision=24044
* ConstraintCollection.cs
- Implemented EditorAttribute, AddRange and
- Removed TODO tag from Clear method after updating comments
(thanks to Roopa ([email protected]))
svn path=/trunk/mcs/; revision=24043
* XmlReader.cs : ReadInnerXml()/ReadOuterXml() should not bork when
the reader is on EndElement. Patch by Jean-Marc Andre.
svn path=/trunk/mcs/; revision=24032
* DbDataAdapter.cs : Refactoring of Fill. New private method
FillTable does most of the work now. Use int[] instead of
hashtable for mapping. Move creation of tableArray[] outside
of loop.
svn path=/trunk/mcs/; revision=24031
* XmlDocumentNavigator.cs : as for namespace node "xml", MS.NET seems
to return attribute node. It affects on IHasXmlNode.GetNode() and
SelectNodes()/SelectSingleNode().
svn path=/trunk/mcs/; revision=24020
* mini-ops.h: Add sparcv9 compare and branch instructions.
* inssel-sparc.brg mini-sparc.h mini-sparc.c cpu-sparc.md: Use some
v9 instructions if we have a v9 cpu.
* mini-sparc.c (mono_arch_get_global_int_regs): Use unused input
registers for global allocation.
* exceptions-sparc.c: Fixes.
svn path=/trunk/mono/; revision=24015
* class.cs (TypeContainer.DefineType): Call
TypeManager.AddUserType() immediately after creating the
TypeBuilder; pass all type parameters when creating the
CurrentType.
* decl.cs (DeclSpace.FindNestedType): New public method.
(DeclSpace.FindType): Added `int num_type_args' argument; only
return types with the correct number of type parameters.
(DeclSpace.CountTypeParams): New public property.
* ecore.cs (SimpleName.ctor): Added overloaded version which takes
the number of type parameters; defaults to zero.
* generic.cs (TypeArguments.Count): New public property.
(ConstructedType.DoResolveAsTypeStep): First call
ds.FindNestedType() to find out whether we're nested in the
current generic type; in this case, we inherit all type parameters
from the current class.
* rootcontext.cs (RootContext.NamespaceLookup): Added `int
num_type_args' argument.
(RootContext.LookupType): Added overloaded version which takes the
number of type arguments; only return types with the correct
number of type arguments.
* typemanager.cs (TypeManager.CheckGeneric): New public function;
checks whether `Type t' has `int num_type_args'.
svn path=/trunk/mcs/; revision=24012
* convert.cs (ExplicitConversion): We were reporting an error on
certain conversions (object_type source to a value type, when the
expression was `null') before we had a chance to pass it through
the user defined conversions.
svn path=/trunk/mcs/; revision=24007
* generic.cs (GenericMethod.DefineType): New method; calls
DefineType() on all the type parameters.
* class.cs (MethodData.ctor): Added `GenericMethod generic' argument.
(MethodData.Define): If we're a generic method, call
GenericMethod.DefineType() to define the type parameters.
svn path=/trunk/mcs/; revision=24003
* class.h (MonoGenericInst): Added `int count_ifaces'.
* iclass.c (ves_icall_MonoGenericInst_GetInterfaces): Use
`ginst->count_ifaces' instead `klass->interface_count' since we
may get called before the vtable is created.
* loader.c (mono_method_get_param_names): If we're a generic
instance, return and don't initialize the class.
* reflection.c (mono_reflection_setup_generic_class): Don't call
ensure_runtime_vtable().
(mono_reflection_bind_generic_parameters): Set
`ginst->count_ifaces'.
svn path=/trunk/mono/; revision=24001
* main.c (create_file_names): Try a few temp directories, since
Windows uses a different directory naming scheme apparently: #47696
svn path=/trunk/mcs/; revision=23994
* XmlDsigC14NWithCommentsTransformTest,cs : world.txt causes FileShare
Win32Error so it should be added only when it does not exist.
* XmlDsigXsltTransformTest.cs : embedded stylesheet should have
version attribute. EmbeddedStylesheet() should also load input doc.
svn path=/trunk/mcs/; revision=23984
* XmlDsigXsltTransform.cs : LoadInnerXml() should just load stylesheet
and LoadInput() should just load transformed document.
Transformation should be done in GetOutput() because either of the
stylesheet or input can be loaded in prior. Adjusted code format.
svn path=/trunk/mcs/; revision=23983
* xmltest.cs : timestamps are only put in my box (while it is
documented as to be written, in my standalone_tests description).
svn path=/trunk/mcs/; revision=23981
* Compiler.cs,
XslStylesheet.cs : Reject xsl element other than stylesheet and
transform. Check mandatory version attribute (only for existence).
svn path=/trunk/mcs/; revision=23980
* Npgsql/NpgsqlConnection.cs:
* Npgsql/NpgsqlClosedState.cs: Added support for SSL callbacks points. Now, client applications can provide the callbacks. Npgsql provide a default callback implementation which always assumes the certificate is ok. This allows easy use as client don't need to provide callback to use ssl connections. This also fixes bug 705 in gborg.
* NpgsqlTypes/NpgsqlTypesHelper: Applied patch to correctly parse datetimes values with timezone information. Thanks Glen Parker <[email protected]> for the patch.
svn path=/trunk/mcs/; revision=23978
* XmlReflectionImporterTests.cs: Switched the AssertEquals around
the other way, so that the expecteed value was the first parameter.
This makes the error messages you get out of it better.
svn path=/trunk/mcs/; revision=23971
* XmlTextAttribute.cs: Initialise dataType with zero-length string.
fixes test case that tests for this directly
(XmlAttributesTests/XmlTextAttribute).
* TypeTranslator.cs: Check for new zero-length dataType so we don't reject
it. Treat it as null.
svn path=/trunk/mcs/; revision=23970
* Signature.cs: KeyInfo isn't required in schema.
* SignedInfo.cs: Added support for missing HMACOutputLength.
* SignedXml.cs: Added support to download a reference (experimental).
Now throw exception for unknown hash algorithm or canonicalization
methods. Changed GetPublicKey to iterate all available keys (not just
the first one).
svn path=/trunk/mcs/; revision=23968
* Constraint.cs: DO NOT USE the consts scheme if types can be referenced directly!
* DataColumn.cs: DO NOT USE the consts scheme if types can be referenced directly!
* ColumnTypeConverter.cs: Added stub
* DefaultValueTypeConverter: Added stub
* ConstraintConverter.cs: Added stub
svn path=/trunk/mcs/; revision=23962
* DbDataPermissionAttribute.cs: Added .Net 1.1 marks
* DataColumnMapping.cs: DO NOT USE the consts scheme if types can be referenced directly!
* DataTableMapping.cs: DO NOT USE the consts scheme if types can be referenced directly!
* DataColumnMappingConverter: Added stub
* DataTableMappingConverter: Added stub
svn path=/trunk/mcs/; revision=23961
* MapCodeGenerator.cs: Do not generate base class if it is an XmlNode.
Generate types using GetDomType, so if the type is an array, it creates
the correct combination of types.
* SerializationCodeGenerator.cs, XmlTypeMapping.cs: When trying to parse
an enum, if the string is empty and the enum has [Flags], then return 0
as value. This fixes bug #55509.
* XmlSchemaImporter.cs: Added check for redefines of attribute groups. They
are not supported. Another check: a simple type cannot be enum if it does
not have any enum facet.
And another fix: use string as default type for attribtues.
* XmlSchemas.cs: Fixed search for schema elements. An schema may import
other schemas. An imported schema would not be in the table, but its
elements (although from another namespace) would be in the schema that
imported it. So, we need know to check for every schema in the table.
* XmlSerializer.cs: Added environment variable to help debugging code
generator output.
svn path=/trunk/mcs/; revision=23957
* DataColumn.cs - Implemented TypeConverterAttribute
- Removed MonoTODO tag from ToString
- Expression set - checked for null value
svn path=/trunk/mcs/; revision=23954
* Syscall.cs: Removed argument to getgid that shouldn't be there.
Added getusername, getgroupname which wrap getpwuid, getgrgid
without dealing with pointers to structures.
Removed duplicate FileMode enum nested in Syscall class.
Added stat and lstat, which use StatMode enumeration
(like FileMode but nicer and complete) and Stat struct.
* macros.c: Helper functions for getpwuid, getgrgid, stat, lstat.
svn path=/trunk/mcs/; revision=23941
* statement.cs (Switch.SimpleSwitchEmit): Deal with default labels
that are in the middle of the statements, not only at the end.
Fixes#54987
svn path=/trunk/mcs/; revision=23940
* RdpPatterns.cs : Fixed TextDeriv() to allow whitespace text nodes
except for Data and Value (though they are overridden).
svn path=/trunk/mcs/; revision=23938
* class.cs (TypeContainer.AddField): No longer set the
`HaveStaticConstructor' flag, now we call it
`UserDefineStaticConstructor' to diferentiate the slightly
semantic difference.
The situation is that we were not adding BeforeFieldInit (from
Modifiers.TypeAttr) to classes that could have it.
BeforeFieldInit should be set to classes that have no static
constructor.
See:
http://www.yoda.arachsys.com/csharp/beforefieldinit.html
And most importantly Zoltan's comment:
http://bugzilla.ximian.com/show_bug.cgi?id=44229
"I think beforefieldinit means 'it's ok to initialize the type sometime
before its static fields are used', i.e. initialization does not need
to be triggered by the first access to the type. Setting this flag
helps the JIT to compile better code, since it can run the static
constructor at JIT time, and does not need to generate code to call it
(possibly lots of times) at runtime. Unfortunately, mcs does not set
this flag for lots of classes like String.
csc sets this flag if the type does not have an explicit static
constructor. The reasoning seems to be that if there are only static
initalizers for a type, and no static constructor, then the programmer
does not care when this initialization happens, so beforefieldinit
can be used.
This bug prevents the AOT compiler from being usable, since it
generates so many calls to mono_runtime_class_init that the AOT code
is much slower than the JITted code. The JITted code is faster,
because it does not generate these calls if the vtable is type is
already initialized, which is true in the majority of cases. But the
AOT compiler can't do this."
2004-03-10 Miguel de Icaza <[email protected]>
* class.cs (MethodData.Emit): Refactor the code so symbolic
information is generated for destructors; For some reasons we
were taking a code path that did not generate symbolic information
before.
svn path=/trunk/mcs/; revision=23937
* class.cs: Create a Constructor.CheckBase method that
takes care of all validation type code. The method
contains some code that was moved from Define.
It also includes new code that checks for duplicate ctors.
This fixes bug #55148.
svn path=/trunk/mcs/; revision=23935
* KeyInfo.cs : Attribute Id was not handlded.
* KeyInfoX509Data.cs : all array members return null when there are
no such contents. Just find child elements, not descendants.
* SignedXml.cs : key is not always required when CheckSignature() is
called.
* XmlDsigXsltTransform.cs : LoadInput should allow node list.
* XmlSignature.cs : added GetChildElements().
svn path=/trunk/mcs/; revision=23934
* XmlDsigC14NTransformTest.cs : Stream2String() should consider utf-8
escaping (i.e. it must be the same as with-comments test).
Enabled example6 (encoding test).
* XmlDsigXsltTransformTest.cs :
GetXslDoc() now works (xmlns for dsig was missing).
Added EmptyXslt(), EmbeddedStylesheet() and InvalidXslt().
Activated ignored LoadInputAsXXX() and Load2() by supplying xsl.
svn path=/trunk/mcs/; revision=23933
* Stack.cs, Queue.cs: Just use `Node' for the nested class, not
`Node<T>' (which would create another type parameter `T'
overriding `T' from the outer class).
svn path=/trunk/mcs/; revision=23923
* StringBuilder.cs
(Insert int, char[]): fix by using new string(char[]) instead of
char[].ToString() and simplify.
(Insert int, string, int): add LAMESPEC note.
(Insert int char[], int, int): handle value==null according to spec.
Use a string instead of char array + Array.Copy (gonzalo)
svn path=/trunk/mcs/; revision=23920
* loader.c (mono_lookup_pinvoke_call): Call the Windows.Forms init
code when we P/Invoke the first library in Windows.Forms, instead
of when we first open the assembly.
* assembly.c: Drop the lookup from here.
svn path=/trunk/mono/; revision=23919
* reflection.c (mono_reflection_get_custom_attrs): Use the correct
class for properties, fields and events. Finally fixes#54945.
svn path=/trunk/mono/; revision=23905
* metadata.c (mono_metadata_class_equal): New static function;
checks whether two generic instances or two generic parameters are
equal.
(mono_metadata_type_equal): Use mono_metadata_class_equal() to
compare classes.
svn path=/trunk/mono/; revision=23902
* ecore.cs (FieldExpr.ctor): Use TypeManager.TypeToCoreType().
* support.cs (ParameterData.HasArrayParameter): New property.
(ReflectionParameters.ctor): Take a MethodBase instead of a
ParameterInfo[]. If we have any type parameters, get the generic
method definition and ask it whether we have variable arguments.
svn path=/trunk/mcs/; revision=23898
* Convert.cs: FromBase64 now ignore some characters (tab, LF, CR and
spaces) which fixed#54939. Changed the way that the length is
validated (multiple of 4) because the ignored characters must not be
included in the count.
svn path=/trunk/mcs/; revision=23896
* FromBase64Transform.cs: Now throws ObjectDisposedException and
return true for CanReuseTransform (as MS implementation).
svn path=/trunk/mcs/; revision=23895
* configure.in acconfig.h: Add a --with-sigaltstack option for platforms
where the sigaltstack based exception handling does not work.
svn path=/trunk/mono/; revision=23893
of errors to the base class.
* ContractSearchPattern.cs, DiscoveryDocumentLinksPattern.cs,
DiscoveryDocumentSearchPattern.cs, XmlSchemaSearchPattern.cs: Implemented.
* DiscoveryClientProtocol.cs: Do not throw exceptions in ResolveAll method,
rather add them to the errors list.
* DiscoveryReference.cs: Generate DiscoveryException where needed, so
DiscoveryClientProtocol can get the url for which an exception was thrown.
* DiscoveryExceptionDictionary.cs: Implemented.
svn path=/trunk/mcs/; revision=23892
* mini-x86.c (mono_arch_setup_jit_tls_data): Turn off the sigaltstack
stuff if SIGSEGV_ON_ALTSTACK is not defined.
svn path=/trunk/mono/; revision=23890
* FromBase64Transform.cs: Two new unit tests showing that the
transform doesn't care if it's data is invalid base64. Convert class
is on it's own.
svn path=/trunk/mcs/; revision=23889
* ConvertTest.cs: Added another test showing that input length
can't easily be used to check for valid base64 encoding.
svn path=/trunk/mcs/; revision=23888
* DataBinder.cs: allow unquoted string expressions (e.g. "[test]") and
handle single quotes and a few corner cases correctly (see test cases).
svn path=/trunk/mcs/; revision=23886
* FromBase64Transform.cs: Converted to NUnit2 format. New unit tests
for properties, Dispose, Reuse and ignored characters.
svn path=/trunk/mcs/; revision=23883
* ConvertTest.cs: Added a new unit tests for FromBase64String and
FromBase64CharArray to check for ignored characters (tab, lf, cr
and spaces). Splitted existing tests into smaller tests.
svn path=/trunk/mcs/; revision=23881
* PKCS8.cs: Added EncodeRSA, EncodeDSA and completed GetBytes() so it
is now possible to encode PKCS8 files (this is required to encode
PKCS12 files).
svn path=/trunk/mcs/; revision=23872
* MonoEvent.cs (MonoEventInfo): Replaced `parent' with
`declaring_type' and `reflected_type'.
(MonoEvent): Distinguish between declaring and reflected type.
svn path=/trunk/mcs/; revision=23862
ContentEncoding in SoapServerMessage.
* LogicalMethodInfo.cs: Implemented AsyncResultParameter, BeginInvoke and
EndInvoke. Fixed ComputeParameters, so it computes the correct parameters
for async logical methods.
* Methods.cs: Check that client proxies have one and only one
WebServiceBindingAttribute.
* PatternMatcher.cs: Implemented (in fact, just moved code from
TextReturnReader.cs)
* SoapDocumentationHandler.cs: Add soap bindings in the generated
discovery document.
* SoapHttpClientProtocol.cs: Implemented method Discover().
* SoapMessage.cs: Implemented property ContentEncoding.
* TextReturnReader.cs: Moved code to PatternMatcher.cs.
svn path=/trunk/mcs/; revision=23855
bindings) from the discovery documents.
* DiscoveryDocument.cs: Added support for additional discovery information.
* DiscoveryDocumentSerializer.cs: Updated serializer, added support for
soap bindings.
svn path=/trunk/mcs/; revision=23854
* expression.cs (ArrayCreation): Fix: More than 6 nulls in
a { ... }-style array creation invokes EmitStaticInitializers
which is not good for reference-type arrays. String, decimal
and now null constants (NullCast) are not counted toward
static initializers.
svn path=/trunk/mcs/; revision=23845
* mini.c (mono_resolve_patch_target): New function which contains the
arch independent part of the patching process.
svn path=/trunk/mono/; revision=23838
* mini.c (mono_resolve_patch_target): New function which contains the
arch independent part of the patching process.
* mini-x86.c (mono_arch_patch_code): Move arch independent parts of the
patching code to a separate function.
svn path=/trunk/mono/; revision=23837
* AssemblyBuilder.cs: The strong name key file existance will now be
checked in the current compilation directory AND in the assembly
output directory. Fix bugzilla entry #55320.
svn path=/trunk/mcs/; revision=23830
* KeyInfoX509Data.cs,
Reference.cs,
SignedInfo.cs,
XmlSignature.cs : GetElementsByTagName() should be eliminated or
at least should use namespace URI.
svn path=/trunk/mcs/; revision=23829
* loader.c, loader.h (mono_loader_wine_init): Loads the Wine/Lib
library routine if present. Notice that it will still continue
executing even if its missing, for those working on the Gtk#
edition of Windows.Forms.
* assembly.c (do_mono_assembly_open): If loading the
System.Windows.Forms call mono_loader_wini_init.
svn path=/trunk/mono/; revision=23818
* SystemException.cs: Exceptions set the HResult
* TypeLoadException.cs: Exceptions set the HResult, fixed wrong exception usage
* SByte.cs: Implemented two missing methods, fix wrong parameters for ArgumentNullException
svn path=/trunk/mcs/; revision=23816
* mini.h mini-x86.h mini-ppc.h: Add MonoCompileArch structure where
the arch specific code can store data during a compilation.
svn path=/trunk/mono/; revision=23804
* mini.c (mini_get_ldelema_ins): Instead of allways calling the same
function, register a separate icall for each arity, so the icalls can
get a wrapper.
* mini.c (mono_print_tree): Print negative offsets in a more readable
form.
* mini.c: Make signal handling work on sparc.
* mini.c (mini_init): Add emulation for lconv_to_r8_un.
svn path=/trunk/mono/; revision=23802
* SqlParameterCollection.cs - Corrected Indenting from previous checkin
* SqlParameter.cs - Implemented TypeConverterAttribute for the class and Value method
svn path=/trunk/mcs/; revision=23795
* VBCodeProviderTest.cs: On windows, do not use mono to execute
assembly. Actually, this should be if running on MS's CLR, but
for now it will do.
svn path=/trunk/mcs/; revision=23790
* Makefile.am: Removed the reference to 'x86-64'. This was the cause
of the missing Mono daily tarballs, 'make dist' wasn't working.
We do have an 'amd64' directory, but it doesn't make it in 'make
dist'.
svn path=/trunk/mono/; revision=23784
assign_exp), we must track if our expressions are at a global
scope, in which case we must pop the last result too.
svn path=/trunk/mcs/; revision=23778
from EmitContext, suffices using only one (more notes about the
change on the Functiondeclaration entry). Imitate jsc behavior for
compiled files names, aggregate the exe or dll extension after last dot.
svn path=/trunk/mcs/; revision=23777
type of the function we are generating (global function, method
from a class, etc) and attach to it the correct custom
attribute. Simplified the code for nested functions:
refactored the code so no code duplication is involved, now we
have only one function that retrieves the name of the function,
now create a new EmitContext for the body of the method.
svn path=/trunk/mcs/; revision=23774
Expression inherits from Exp as we must keep track if we must pop
the last value (this is for the comma operator), track the parent,
at Resolve we take care of the last value of the expression.
svn path=/trunk/mcs/; revision=23770
* MSXslScriptManager.cs : if extension namespace was not found in
the script, just return null. Patch by Joshua Tauberer.
svn path=/trunk/mcs/; revision=23761
* Npgsql/NpgsqlConnectorPool.cs: Fixed bug 706 in gborg. Now Max timeout will be working correctly. Thanks Sami Kuhmonen <[email protected]> for the patch.
svn path=/trunk/mcs/; revision=23757
* location.cs (SourceFile.HasLineDirective): New public field;
specifies whether the file contains or is referenced by a "#line"
directive.
(Location.DefineSymbolDocuments): Ignore source files which
either contain or are referenced by a "#line" directive.
svn path=/trunk/mcs/; revision=23747
now in the IRemotingTypeInfo object.
* ServerIdentity.cs: Added object type.
* TypeInfo.cs: Added null check for the class hierarchy.
svn path=/trunk/mcs/; revision=23732
gets the proxy type from the MonoRemoteClass (it can change if the
vtable is upgraded).
Modified GetTransparentProxy(). Now it takes the name of the type.
The name is taken from the IRemotingTypeInfo object.
* RemotingProxy.cs: The class must implement IRemotingTypeInfo.
svn path=/trunk/mcs/; revision=23731
a MarshalByRef type, inline a method that performs the check, taking into
account that the object can be a proxy. Also implemented tow new opcodes:
CEE_MONO_CISINST and CEE_MONO_CCASTCLASS.
* inssel.brg: Implemented two new opcodes, mini-ops.h: OP_CISINST and
OP_CCASTCLASS, which implement CEE_MONO_CISINST and CEE_MONO_CCASTCLASS.
svn path=/trunk/mono/; revision=23730
* domain.c: Changed hash function for proxy_vtable_hash. It now uses a
function for MonoStrings.
* icall.c: In GetTransparentProxy, assign a MonoRemoteClass to the proxy.
Added internal call for getting the proxy type.
* marshal.c: Get the type of transparent proxies from its remote_class.
Added methods that generate the IL for type checks and casts:
mono_marshal_get_isinst, mono_marshal_get_castclass,
mono_marshal_get_proxy_cancast.
* marshal.h: Declaration of the previous new methods.
* object.c: Added new moethods for creating and updating MonoRemoteClass
instances: mono_remote_class, mono_upgrade_remote_class,
* object.h: Added MonoRemoteClass reference in MonoTransparentProxy.
* verify.c: FIx transparent_proxy_fields layout.
* appdomain.c: Bump corlib version.
svn path=/trunk/mono/; revision=23729
(AddPath): Implemented.
* RectangleF.cs: Changed the internal structure from a PointF,
SizeF to floats in order to match the layout from the C API.
svn path=/trunk/mcs/; revision=23725
* KeyInfo.cs :
Fixed LoadXml() to skip text nodes as MS.NET does.
Uncommented out RSAKeyValue.
* Signature.cs : Fixed LoadXml(). Don't use GetElementsByTagName()
that incorrectly acquires descendants. Throw CryptographicException
if required elements were not found.
* Transform.cs : added internal GetResolver().
* XmlDsigXPathTransform.cs,
XmlDsigXsltTransform.cs : use XmlResolver.
svn path=/trunk/mcs/; revision=23711
* appdomain.c (unload_thread_main): Increase unloading timeout to
10 sec as a temporary workaround for Nant problems.
svn path=/trunk/mono/; revision=23707
* Makefile : made "make test" independent of "make" so that extraneous
archive extraction won't be run every time (for automated tests).
svn path=/trunk/mcs/; revision=23706
* io.c:
(GetFileAttributes): set the error depending on errno instead of
setting ERROR_FILE_NOT_FOUND always. See bug #55160.
svn path=/trunk/mono/; revision=23702
* Directory.cs: check if the error returned in Exists is different
from 'path not found' and throw the appropiate exception in that case.
See #55160.
svn path=/trunk/mcs/; revision=23701
* WebConnection.cs:
* WebConnectionGroup.cs: the requests queue is now shared for all the
connections belonging to the same connection group.
svn path=/trunk/mcs/; revision=23695
registry. Patch by Jose Cornado.
* IRegistryApi.cs: New file - Interface to a registry backend
(win32 on windows, no implementation on unix). This interface will
probably change when we write a Linux backend.
* Win32ResultCode.cs: New file - Win32 result codes needed to
check pinvoke. Patch by Jose Cornado.
* Registry.cs: Create the keys. Patch by Jose Cornado.
* RegistryKey.cs: Implement. Patch by Jose Cornado.
svn path=/trunk/mcs/; revision=23666
Constraint.cs, ForeignKeyConstraint.cs, UniqueConstraint, ConstraintCollection.cs, DataColumn.cs,
DataRow.cs, DataRowCollection.cs, DataSet.cs, DataTable.cs : Changes made for using indexes on tables.
This changes made for performance improvement.
svn path=/trunk/mcs/; revision=23644
* mini-ppc.c: if a relative branch displacement is too big
but it points to and area reachable with an absolute branch,
avoid the thunks.
svn path=/trunk/mono/; revision=23624
* sourcebeingcompiled.cs : new source/class to hold things previously contained in namespaces.cs
because in C# they were semantically tied to nested namespaces, and in VB.NET
they can occur only once per file.
* mbas.exe.sources: added sourcebeingcompiled.cs
* mb-parser.jay: reference RootContext.Sourcebeingcompiled things
* namespace.cs: move pieces to sourcebeingcompiled
* rootcontext.cs: use SourceBeingCompiled class
* decl.cs: reference RootContext.Sourcebeingcompiled things
svn path=/trunk/mcs/; revision=23621
* sourcebeingcompiled.cs : new source/class to hold things previously contained in namespaces.cs
because in C# they were semantically tied to nested namespaces, and in VB.NET
they can occur only once per file.
* mbas.exe.sources: added sourcebeingcompiled.cs
* mb-parser.jay: reference RootContext.Sourcebeingcompiled things
* namespace.cs: move pieces to sourcebeingcompiled
* rootcontext.cs: use SourceBeingCompiled class
* decl.cs: reference RootContext.Sourcebeingcompiled things
svn path=/trunk/mcs/; revision=23618
* XslLiteralElement.cs : quick fix for ArgumentNullException which
was because of the combination of non-namespaced instances and
exclude-result-prefixes.
svn path=/trunk/mcs/; revision=23603
* mini-sparc.c inssel-sparc.brg mini-ops.h: Access local variables at
negative offsets from %fp. Implement localloc. Fix local register
allocation. Fix the case when the this argument needs to be saved to
the stack. Implement some missing opcodes.
svn path=/trunk/mono/; revision=23593
* mini-sparc.c inssel-sparc.brg mini-ops.h: Access local variables at
negative offsets from %fp. Implement localloc. Fix local register
allocation. Fix the case when the this argument needs to be saved to
the stack. Implement some missing opcodes.
svn path=/trunk/mono/; revision=23591
* class.cs (Method.CheckBase): Avoid using FindMembers, we have
direct access to our parent, so check the method inline there.
svn path=/trunk/mcs/; revision=23585
* Npgsql/NpgsqlConnection.cs: Better handling of connection encoding. Added support for encoding and connection timeout in connection string.
* Npgsql/NpgsqlConnectorPool.cs: Added support for timeout and max connection pool.
svn path=/trunk/mcs/; revision=23583
* Npgsql/NpgsqlConnector.cs: Added support for connection encoding.
* Npgsql/NpgsqlConnection.cs: Better handling of connection encoding.
* Npgsql/NpgsqlCommand.cs: Fixed an Invalid Index error when executing ExecuteScalar() method with an empty resultset. Thanks Lynn A. Roth for the fix. This fixes bug 687 in gborg.
svn path=/trunk/mcs/; revision=23578
- Added loading & initialization code for new Wine patch
- Commented out font selection for DrawText until ToHfont is complete
svn path=/trunk/mcs/; revision=23575
* expression.cs (Invocation.EmitCall): Miguel's last commit
caused a regression. If you had:
T t = null;
t.Foo ();
In Foo the implict this would be null.
svn path=/trunk/mcs/; revision=23554
be done in the transport sink.
* BinaryCore.cs: Added TypeFilterLevel property.
* BinaryServerFormatterSinkProvider.cs: Added missing TypeFilterLevel property.
svn path=/trunk/mcs/; revision=23551
* wstest.cs: New feature: it generates a serviceStatus.xml file that
helps keeping track of services that are not available any more.
* client/localhost/ConvDocEncBarTest.cs, ConvDocEncWraTest.cs:
Improved tests.
* server/ConvDocLitBar.asmx: Removed inheritance from WebService, to make
sure that this works.
svn path=/trunk/mcs/; revision=23544
a generated serializer.
* HttpSoapWebServiceHandler.cs, WebServiceHelper.cs: Use the new static Fault serializer.
* Methods.cs: Include types declared with XmlInclude and SoapInclude to the
reflection importer. Moved Fault and its serializer to Fault.cs
* SoapHttpClientProtocol.cs: Removed unused method.
svn path=/trunk/mcs/; revision=23542
* HttpSimpleProtocolImporter.cs: Assign the correct set of schemas to the
schema importers (do not mix literal schemas with encoded schemas).
* ProtocolImporter.cs: Added LiteralSchemas and EncodedSchemas properties.
Separation between literal and encoded schemas is needed to avoid importing
for example a literal schema as encoded. Also implemented ClasifySchemas,
which separates literal from encoded schemas. I really don't like doing it
in this way, but I haven't found another way.
* SoapProtocolImporter.cs: Add type include attributes to the generated
proxy classes.
svn path=/trunk/mcs/; revision=23541
* MailMessage.cs: patch by John Luke that initialized the fields in
the message and makes Fields return the same as in MS.NET. Fixes bug
#54908.
svn path=/trunk/mcs/; revision=23528
2004-02-26 Miguel de Icaza <[email protected]>
* iterators.cs (IteratorHandler.IsIEnumerator, IsIEnumerable): New
routines to check if a type is an enumerable/enumerator allow
classes that implement the IEnumerable or IEnumerator interfaces.
* class.cs (Property, Operator): Implement IIteratorContainer, and
implement SetYields.
(Property.Define): Do the block swapping for get_methods in the
context of iterators. We need to check if Properties also
include indexers or not.
(Operator): Assign the Block before invoking the
OperatorMethod.Define, so we can trigger the Iterator code
replacement.
* cs-parser.jay (SimpleIteratorContainer): new helper class. Both
Property and Operator classes are not created when we parse the
declarator but until we have the block completed, so we use a
singleton SimpleIteratorContainer.Simple to flag whether the
SetYields has been invoked.
We propagate this setting then to the Property or the Operator to
allow the `yield' to function.
2004-02-25 Marek Safar <[email protected]>
* codegen.cs: Implemented attribute support for modules.
New AssemblyClass, ModuleClass and CommonAssemblyModulClass for
Assembly/Module functionality.
* attribute.cs, class.cs, cs-parser.jay, delegate.cs, driver.cs, enum.cs
interface.cs, rootcontext.cs, statement.cs, typemanager.cs:
Updated dependencies on CodeGen.ModuleBuilder and CodeGen.AssemblyBuilder.
2004-02-16 Marek Safar <[email protected]>
* interface.cs (FindMembers): The operation is performed on all base
interfaces and not only on the first. It is required for future CLS Compliance patch.
2004-02-12 Ben Maurer <[email protected]>
* statement.cs, codegen.cs:
This patch deals with patterns such as:
public class List : IEnumerable {
public MyEnumerator GetEnumerator () {
return new MyEnumerator(this);
}
IEnumerator IEnumerable.GetEnumerator () {
...
}
public struct MyEnumerator : IEnumerator {
...
}
}
Before, there were a few things we did wrong:
1) we would emit callvirt on a struct, which is illegal
2) we emited ldarg when we needed to emit ldarga
3) we would mistakenly call the interface methods on an enumerator
type that derived from IEnumerator and was in another assembly. For example:
public class MyEnumerator : IEnumerator
Would have the interface methods called, even if there were public impls of the
method. In a struct, this lead to invalid IL code.
2004-02-11 Marek Safar <[email protected]>
* const.cs: Const is now derived from FieldBase. Method EmitConstant name
renamed to Emit.
* delegate.cs (Define): Fixed crash when delegate type is undefined.
2004-02-11 Miguel de Icaza <[email protected]>
* cs-parser.jay: Fix small regression: we were not testing V2
compiler features correctly.
* interface.cs: If the emit context is null, then create one
2004-02-09 Marek Safar <[email protected]>
* decl.cs (GetSignatureForError): New virtual method to get full name
for error messages.
* attribute.cs (IAttributeSupport): New interface for attribute setting.
Now it is possible to rewrite ApplyAttributes method to be less if/else.
* interface.cs : All InterfaceXXX classes are now derived from MemberCore.
Duplicated members and code in these classes has been removed.
Better encapsulation in these classes.
2004-02-07 Miguel de Icaza <[email protected]>
* assign.cs (Assign.DoResolve): When dealing with compound
assignments, there is a new rule in ECMA C# 2.4 (might have been
there before, but it is documented here) that states that in:
a op= b;
If b is of type int, and the `op' is a shift-operator, then the
above is evaluated as:
a = (int) a op b
* expression.cs (Binary.ResolveOperator): Instead of testing for
int/uint/long/ulong, try to implicitly convert to any of those
types and use that in pointer arithmetic.
* delegate.cs (Error_NoMatchingMethodForDelegate): Compute the
method to print information for from the type, not from the
null-method we were given.
2004-02-01 Duncan Mak <[email protected]>
* cs-tokenizer.cs (get_cmd_arg): Skip over whitespace before
parsing for cmd, fixes bug #53694.
2004-02-04 Marek Safar <[email protected]>
* class.cs, decl.cs: Fixed problem where IndexerName attribute was ignored
in the member name duplication tests. Property and operator name duplication
was missing too (error tests cs0102-{2,3,4,5}.cs, cs0111-{3,4}.cs).
2004-02-03 Marek Safar <[email protected]>
* interface.cs (PopulateMethod): Fixed crash when interface method
returns not existing type (error test cs0246-3.cs).
2004-02-02 Ravi Pratap M <[email protected]>
* cs-parser.jay (interface_accessors): Re-write actions to also
store attributes attached to get and set methods. Fix spelling
while at it.
(inteface_property_declaration): Modify accordingly.
(InterfaceAccessorInfo): New helper class to store information to pass
around between rules that use interface_accessors.
* interface.cs (Emit): Apply attributes on the get and set
accessors of properties and indexers too.
* attribute.cs (ApplyAttributes): Modify accordingly to use the
right MethodBuilder when applying attributes to the get and set accessors.
2004-01-31 Miguel de Icaza <[email protected]>
* cs-tokenizer.cs: Applied patch from Marek Safar to fix bug 53386
2004-01-26 Miguel de Icaza <[email protected]>
* cs-tokenizer.cs: Handle #line hidden from PDC bits.
2004-01-25 Miguel de Icaza <[email protected]>
* cs-parser.jay: Remove YIELD token, instead use the new grammar
changes that treat `yield' specially when present before `break'
or `return' tokens.
* cs-tokenizer.cs: yield is no longer a keyword.
2004-01-23 Marek Safar <[email protected]>
* cs-parser.jay, class.cs (DefineDefaultConstructor): Fixed ModFlags
setting for default constructors.
For default constructors are almost every time set wrong Modifier. The
generated IL code has been alright. But inside mcs this values was
wrong and this was reason why several of my CLS Compliance tests
failed.
svn path=/trunk/mcs/; revision=23525
* typemanager.cs (GetFullNameSignature): Improve the method to
cope with ".ctor" and replace it with the type name.
* class.cs (ConstructorInitializer.Resolve): Now the method takes
as an argument the ConstructorBuilder where it is being defined,
to catch the recursive constructor invocations.
svn path=/trunk/mcs/; revision=23524
* iterators.cs (IteratorHandler.IsIEnumerator, IsIEnumerable): New
routines to check if a type is an enumerable/enumerator allow
classes that implement the IEnumerable or IEnumerator interfaces.
* class.cs (Property, Operator): Implement IIteratorContainer, and
implement SetYields.
(Property.Define): Do the block swapping for get_methods in the
context of iterators. We need to check if Properties also
include indexers or not.
(Operator): Assign the Block before invoking the
OperatorMethod.Define, so we can trigger the Iterator code
replacement.
* cs-parser.jay (SimpleIteratorContainer): new helper class. Both
Property and Operator classes are not created when we parse the
declarator but until we have the block completed, so we use a
singleton SimpleIteratorContainer.Simple to flag whether the
SetYields has been invoked.
We propagate this setting then to the Property or the Operator to
allow the `yield' to function.
svn path=/trunk/mcs/; revision=23523
* reflection.c (mono_reflection_bind_generic_parameters): Take a
`MonoReflectionType *' instead of a `MonoType *'.
svn path=/trunk/mono/; revision=23511
of XmlInclude attributes needed for the service class.
IsMapExported: Removed check for object type, since it can now be exported.
SetMapExported: Use the type name as key, since different importers may
be used to create a map for the same type.
GenerateClassInclude: Updated signature.
* SoapCodeExporter.cs: Moved management of IncludeMetadata to MapCodeGenerator.
GenerateClassInclude(): Updated signature.
* SoapReflectionImporter.cs: Support SoapIncludeAttribute in array members.
Implemented IncludeTypes.
* XmlCodeExporter.cs: Moved management of IncludeMetadata to MapCodeGenerator.
GenerateClassInclude(): Updated signature.
* XmlMemberMapping.cs: Added missing property.
* XmlReflectionImporter.cs: GetReflectionMembers must be private.
Implemented IncludeTypes().
* XmlSchemaExporter.cs: Added support for exporting typeof(object).
* XmlSchemaImporter.cs: Changed the implementation of ImportDerivedTypeMapping.
Now, it does a regular import and then assign the required base class to
the imported map. In this way it is possible to assign a base type for a
map that was previously imported without a base type.
* XmlTypeMapping.cs: Added internal method SetRoot().
svn path=/trunk/mcs/; revision=23510
* certmgr.1, setreg.1: New. Man files for new security tools.
* man.xml: updated to include new tools certmgr and setreg.
* Makefile.am: update to include certmgr and setreg.
svn path=/trunk/mono/; revision=23509
* DefaultCertificatePolicy.cs: New. Certificate validation
policy compatible with the documented one present in Fx. It
allows valid certificates and expired certificates to be used
for SSL connections.
* ServicePointManager.cs: Removed the DummyPolicy. Now creates
a DefaultCertificatePolicy to validate certificates.
svn path=/trunk/mcs/; revision=23493
* AssemblyInfo.cs: Ajusted versions, informations and copyrights.
* certmgr.cs: New. Very limited certificate manager. Allow to add new
certificates into the Trusted certificate store.
* Makefile: Added certmgr and setreg to the build.
* README: Updated.
* setreg.cs: New. Allow to add/remove test root certificates from the
trusted certificate store.
svn path=/trunk/mcs/; revision=23489
* X509Store.cs: Changed not to use base64 in filenames as it can
conflict with path separators. Now use plain hex. Now catch
incorrectly encoded certificates / CRL in stores. Added Name property.
svn path=/trunk/mcs/; revision=23488
* liveness.c: Make all variables uses in exception clauses volatile, to
prevent them from being allocated to registers. Fixes#42136.
svn path=/trunk/mono/; revision=23486
* DES.cs: Same fix as for SymmetricAlgorithm (get_Key is
overridden to check for weak keys). Also ensured that no weak keys
would be generated.
* SymmetricAlgorithm.cs: Return a copy of the key (and IV) so it
doesn't get destroyed when dispose is called (in this case the key
zeroization is the caller's responsability). Match MS implementation.
* TripleDES.cs: Same fix as for SymmetricAlgorithm (get_Key is
overridden to check for weak keys). Fix bugzilla #54868.
svn path=/trunk/mcs/; revision=23484
* Mono.Security.Protocol.Tls/HandshakeState.cs:
- New file.
* Mono.Security.Protocol.Tls.Alerts/TlsAlert.cs:
- Modified the level of some alerts according to the RFC.
* Mono.Security.Protocol.Tls/SslClientStream.cs:
* Mono.Security.Protocol.Tls/SslServerStream.cs:
* Mono.Security.Protocol.Tls/Context.cs:
* Mono.Security.Protocol.Tls/ClientContext.cs:
* Mono.Security.Protocol.Tls/ClientRecordProtocol.cs:
* Mono.Security.Protocol.Tls.Handshake.Client/TlsServerFinished.cs:
- Added changes for better handling of ClientHelloRequest messages.
svn path=/trunk/mcs/; revision=23482
* ServicePoint.cs: SendContinue is always false for HTTP/1.0
* WebConnection.cs: get rid of WaitForContinue() (yes!) and prevent
calling more the ContinueDelegate more than once when we get the
headers in several packets.
* WebConnectionStream.cs: removed call to WaitForContinue.
svn path=/trunk/mcs/; revision=23477
* WebConnection.cs: Update previous patch to use HttpsClientStream
(internal in Mono.Security assembly) in place of SslClientStream.
This will reduce reflection and allow to use ICertificatePolicy.
svn path=/trunk/mcs/; revision=23469
* Mono.Security.dll.sources: Added new internal class HttpsClientStream
in Mono.Security.Protocol.Tls to the build.
svn path=/trunk/mcs/; revision=23468
* HttpsClientStream.cs: New. Internal glue class between System.dll
WebConnection and SslClientStream to reduce reflection.
* SslClientStream.cs: RaiseServerCertificateValidation is now virtual
to allow HttpsClientStream to override it.
svn path=/trunk/mcs/; revision=23467
* Removed
- RngGrammar.cs
- RngNameClass.cs
- RngPattern.cs
- RngPatternType.cs
They are moved to RelaxngXXX.cs and improved
svn path=/trunk/mcs/; revision=23460
* tlstest.cs: Updated to support Basic and Digest authentication. Also
support ICertificatePolicy for WebRequests.
svn path=/trunk/mcs/; revision=23448
* Npgsql/NpgsqlDataReader.cs: Fixed a OutOfBoundsException when trying to access an element after have read all elements. Now it throws an InvalidOperationException.
* Npgsql/NpgsqlConnection.cs: Fixed Unicode handling. This also fixes bug 695 in gborg. Thanks Sami Kuhmonen <[email protected]> for the patch.
svn path=/trunk/mcs/; revision=23447
* Npgsql/NpgsqlDataReader.cs: Fixed a OutOfBoundsException when trying to access an element after have read all elements. Now it throws an InvalidOperationException.
svn path=/trunk/mcs/; revision=23446
* Npgsql/NpgsqlConnection.cs: Fixed Unicode handling. This also fixes bug 695 in gborg. Thanks Sami Kuhmonen <[email protected]> for the patch.
svn path=/trunk/mcs/; revision=23445
* decl.cs (DeclSpace.CurrentTypeParameters): New protected
property; returns the type parameters just from the current type,
ie. with the ones from outer classes.
(DeclSpace.LookupGeneric): First search in the current class, then
in outer classes.
(DeclSpace.initialize_type_params): When hiding a type parameter
from an outer class, put it into the `type_param_list' anyways.
* expression.cs (MemberAccess.expr): Made this field protected.
* class.cs (TypeContainer.Define): The `CurrentType' just contains
the type parameters from the current class.
* generic.cs (ConstructedType.ResolveType): Support nested generic
types by taking the type parameters which we inherit from outer
classes into account.
(GenericMemberAccess.ResolveAsTypeStep): Override this and added
support for nested generic types.
svn path=/trunk/mcs/; revision=23437
* class.c (_mono_class_get_instantiation_name): Added `int offset'
argument for nested types.
(mono_class_create_generic): Added support for nested generictypes.
* class.h (MonoGenericInst): Added `MonoType *nested_in' and
`GList *nested'.
* icall.c (ves_icall_MonoGenericInst_GetNestedTypes): New icall.
* reflection.c (method_encode_signature): Increase the minimum
value of `size' from 10 to 11.
(mono_reflection_bind_generic_parameters): Take `int type_argc'
and `MonoType **types' arguments instead of the `MonoArray
*types'; added `MonoType *nested_in'. Recursively instantiate
nested classes.
svn path=/trunk/mono/; revision=23435
* codegen.cs: Implemented attribute support for modules.
New AssemblyClass, ModuleClass and CommonAssemblyModulClass for
Assembly/Module functionality.
* attribute.cs, class.cs, cs-parser.jay, delegate.cs, driver.cs, enum.cs
interface.cs, rootcontext.cs, statement.cs, typemanager.cs:
Updated dependencies on CodeGen.ModuleBuilder and CodeGen.AssemblyBuilder.
svn path=/trunk/mcs/; revision=23429
* DigestClient.cs: Fixed issue with Apache server which do not use "
for specifying the digest algorithm (.e.g. algorithm=MD5 not ="MD5").
svn path=/trunk/mcs/; revision=23424
* mini.h mini-x86.c mini-ppc.c mini-sparc.c linear-scan.c:
Make the cost of allocating a variable to a register arch dependent.
svn path=/trunk/mono/; revision=23419
* mini.h mini.c tramp-x86.c mini-x86.c: Add mono_running_on_valgrind ()
helper function to cut back on the number of #ifdefs needed.
svn path=/trunk/mono/; revision=23417
* mini-sparc.c (mono_sparc_is_virtual_call): New helper function.
* tramp-sparc.c (create_specific_trampoline): Use g5 register instead
of l0 since that is callee saved.
* tramp-sparc.c (sparc_magic_trampoline): Apply unbox trampoline only
to virtual calls.
* mini-sparc.c: Ongoing work + flag virtual calls with a special kind
of delay instruction.
svn path=/trunk/mono/; revision=23400
* X509Certificate.cs: Add support for the OID "1.3.14.3.2.29" (SHA1
with RSA). Added a fix for "really" null algorithm parameters.
* X509CertificateCollection.cs: Fixed Contains and IndexOf (worked
on objects but not for the same certificate in a different object).
svn path=/trunk/mcs/; revision=23398
and writers for several maps in a single class. Added support for
XmlMemberMapping. Fixed generation of serializers that use encoded format.
* 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, XmlChoiceIdentifierAttribute.cs, XmlRootAttribute.cs,
XmlElementAttribute.cs, XmlElementAttributes.cs, XmlEnumAttribute.cs,
XmlReflectionMember.cs, XmlTextAttribute.cs, XmlTypeAttribute.cs:
Added InternalEquals method.
* XmlAttributes.cs: Removed a lot of unused code. Added InternalEquals method.
* SoapReflectionImporter.cs: Set SerializationSource to generated maps.
* XmlCustomFormatter.cs: Fixed little bug.
* XmlMapping.cs: Added Source property. This a global identifier of the map.
* XmlReflectionImporter.cs: Set SerializationSource to generated maps.
* XmlSchemaImporter.cs: Set the correct value for IsNillable when importing
mapping members.
* XmlSerializationReaderInterpreter.cs, XmlSerializationWriter.cs: Minor fixes.
* XmlSerializationWriterInterpreter.cs: WriteObject and WriteEnum were not
correctly used.
* XmlSerializer.cs: Added support for generation of serializers.
svn path=/trunk/mcs/; revision=23392
* decl.cs (DeclSpace.IsGeneric): Make this a property instead of a
field and check whether we're nested inside a generic type.
(DeclSpace.ResolveType): If we're resolving to a generic type
definition, create a ConstructedType and return its resolved type.
(DeclSpace.initialize_type_params): New private method;
initializes the `type_param_list' field from the type parameters
from this and all enclosing classes.
(DeclSpace.TypeParameters): Call initialize_type_params() unless
we're already initialized.
svn path=/trunk/mcs/; revision=23382
* TestAnchors.cs: Removed - no need to be hardcoded anymore.
* X509Chain.cs: Updated to use the new store for trusted roots.
svn path=/trunk/mcs/; revision=23379
* X509CRL.cs: New. Certificate Revocation List v1/v2 support.
* X509Store.cs: New. Managed each individual store (with or
without CRL support).
* X509StoreManager.cs: New. Certificate Store Manager to access
user and machine stores and to merge them when required.
* X509Stores.cs: New. Certificate stores group for either the
current user or the local machine.
svn path=/trunk/mcs/; revision=23377
* String.cs (Equals): Speed up this method by avoiding ABC
and by comparing by 32 bit words rather than 16 bit chars.
This gives between 0x (for 1 char) and >2x (for large strings)
factor of improvement.
A big thanks to Miguel, who suggested the integer compares.
svn path=/trunk/mcs/; revision=23369
* Mono.Security.Protocol.Tls/TlsContext.cs:
- Removed file, implementation is now present in:
Context.cs
ClientContext.cs
ServerContext.cs
* Mono.Security.Protocol.Tls/Context.cs:
* Mono.Security.Protocol.Tls/ClientContext.cs:
* Mono.Security.Protocol.Tls/ServerContext.cs:
* Mono.Security.Protocol.Tls/ServerRecordProtocol.cs:
- New classes.
* Mono.Security.Protocol.Tls/SslServerStream.cs:
- Added implementation for properties, and read/write methods
as in SslClientStream.
- doHandshake method is not implemented yet.
* Mono.Security.Protocol.Tls/SslClientStream.cs:
* Mono.Security.Protocol.Tls/RecordProtocol.cs:
* Mono.Security.Protocol.Tls/Ciphersuite.cs:
* Mono.Security.Protocol.Tls.Alerts/TlsAlert.cs:
* Mono.Security.Protocol.Tls.Alerts/TlsCloseNotifyAlert.cs:
* Mono.Security.Protocol.Tls.Handshake/TlsHandshakeMessage.cs:
* Mono.Security.Protocol.Tls.Handshake.Client/*.cs:
- Added changes for make use of the new Context implementation.
* Mono.Security.Protocol.Tls.Handshake.Server/*.cs:
- New classes with method signatures only for the server handshake
implementation.
svn path=/trunk/mcs/; revision=23363
* appdomain.h (MonoDomain): Add preallocated null_reference_ex and
stack_overflow_ex members which are used by exception handling.
* appdomain.c (mono_runtime_init): Initialize the new members.
svn path=/trunk/mono/; revision=23360
* CodeGenerator.cs, ObjectWriter.cs: When serializing the name of an
inherited field, prefix the name with the class name. This fixes#54439.
Moved check for reflection serialization variable to BinaryCommon.
svn path=/trunk/mcs/; revision=23358
* System.Web.Compilation/AspGenerator.cs: error out when <object> server
tag is not closed. Ignore any content inside it.
* System.Web.UI/ControlBuilder.cs: added SetTagName().
* System.Web.UI/ObjectTagBuilder.cs: use SetTagName so that we can
properly close <object> builders if the closing tag is provided.
svn path=/trunk/mcs/; revision=23351
* Stack.cs, Queue.cs: New files. Hmm, looks like I forgot to add
them to CVS; they're already on my hard disk since December or so.
svn path=/trunk/mcs/; revision=23347
* class.cs (Method.Define): Create the generic method before
calling DoDefine().
(Memberbase.DoDefine): Added DeclSpace argument (in addition to
the TypeContainer one); we use this for generic methods.
* decl.cs (CheckAccessLevel): If we're a GenericMethod, use our
parent's TypeBuilder.
svn path=/trunk/mcs/; revision=23346
* class.c (mono_class_inflate_generic_type): Fixed two bugs.
(mono_class_init): If we're a generic instance and an interface,
compute `class->interface_id'; also create `class->interfaces'
here and inflate them.
* metadata.c (do_mono_metadata_parse_generic_inst): Compute
`ginst->is_open'.
(mono_type_stack_size): Fix for MONO_TYPE_GENERICINST.
* reflection.c (mono_image_create_token): Allow "MonoGenericInst".
svn path=/trunk/mono/; revision=23339
* icall.c: Martin did not do what he said in the ChangeLog for
2004-02-18, but put back the changes for properties and events.
Commenting those changes out again and adding comment to bug #54518.
* process.c: removed warning.
svn path=/trunk/mono/; revision=23322
* System.Xml_test.dll.sources : Removed XmlSchemaAssertion.cs. It does
not seem to be in CVS. This was breaking the build on windows.
svn path=/trunk/mcs/; revision=23315
* TlsServerCertificate.cs: Added code to validate the server X.509
certificate (identity, usage) and it's chain to a trusted root.
Note that the verification is commented for the time being.
svn path=/trunk/mcs/; revision=23299
* mini-ppc.c: fixed clt.un, cgt.un. Optimized calls to functions
low in the address space. Correctly flush memory in thunks where we
output native code.
svn path=/trunk/mono/; revision=23295
* Mono.Security.Protocol.Tls/SslClientStream.cs:
* Mono.Security.Protocol.Tls/RecordProtocol.cs:
* Mono.Security.Protocol.Tls/TlsContext.cs:
- Added changes for handle te SecurityProtocolType enum
as a Flags enum.
* Mono.Security.Protocol.Tls.Handshake.Client/TlsClientHello.cs:
- Let the Ssl3 message to be process in the same way as the Tls1.
* Mono.Security.Protocol.Tls.Handshake.Client/TlsClientHello.cs:
- Added changes for use the Protocol version send by the server
* Mono.Security.Protocol.Tls/CipherSuite.cs:
- Compute the premaster secret using the protocol version sent in
the ClientHello message instead of the actual protocol version.
svn path=/trunk/mcs/; revision=23293
* X509Chain.cs: Added an option to use a pre-built chain (like TLS
offers) to save time rebuilding it. Added some validations and more
detailled status. Still a LOT to do!
* X509ChainStatusFlags.cs: New. Status code for the results of the
chain building and verification.
svn path=/trunk/mcs/; revision=23290
* marshal.c (emit_struct_conv): Print an error message instead of
asserting when a type does not have the StructLayout attribute.
svn path=/trunk/mono/; revision=23283
* Mono.Security.Protocol.Tls.Alerts/TlsWarningEventAgrs.cs:
- Removed no more needed file.
* Mono.Security.Protocol.Tls.Alerts/TlsAlert.cs:
- Added 4 new properties:
* Message
* IsWarning
* IsFatal
* IsCloseNotify
- Return always the same message when working in release mode
(The authentication or decryption has failed.)
* Mono.Security.Protocol.Tls/SslClientStream.cs:
- Changes to the sync code.
- Record protocol stuff moved to the new classes.
- Removed Warning event.
- Added control over the CloseNotify Alert
to BeginRead method.
- Return true in the server certificate validation method
if there are no errors.
* Mono.Security.Protocol.Tls/RecordProtocol.cs:
* Mono.Security.Protocol.Tls/ClientRecordProtocol.cs:
- New classes for handle the SSL/TLS record protocol.
svn path=/trunk/mcs/; revision=23278
* HttpWebRequest.cs: arghhh. I used the server response headers instead
of what the client is supposed to send. Thanks to Helge Hess.
svn path=/trunk/mcs/; revision=23275
* reflection.c (mono_type_get_object): Also use the cache for
generic instances.
(mono_reflection_bind_generic_parameters): Always compute
`ginst->ifaces'.
svn path=/trunk/mono/; revision=23270
* mini.c (mini_get_method): New static method; inflate all generic
methods and methods in open generic instances.
(mono_method_to_ir): Use mini_get_method() instead of mono_get_method().
(ret_type_to_call_opcode): Added support for MONO_TYPE_GENERICINST.
svn path=/trunk/mono/; revision=23269
* image.h (MonoImage): Added `GHashTable *generic_inst_cache'.
* metadata.c (mono_metadata_generic_inst_hash): New method.
(mono_metadata_generic_inst_equal): New method.
* reflection.c (mono_reflection_bind_generic_parameters): Use the
`klass->image->generic_inst_cache' cache to avoid creating
duplicate MonoGenericInst's.
* class.c (mono_class_inflate_generic_type): Use the cache.
svn path=/trunk/mono/; revision=23263
* AuthenticationManager.cs: implemented PreAuthenticate().
* HttpWebRequest.cs: once we know the version of the server, use it if
below the requested one. Remove 'Expect', 'Content-Length' and /or
'Transfer-Encoding' if appropiate due to changes in version. Fixed
'Host' header for non-standard ports. Support preauthentication. Closes
bug #50530.
svn path=/trunk/mcs/; revision=23260
* FileStream.cs: (.ctor) Path.DirectoryName can be empty and make
Path.GetFullPath crash. Fixed it.
* MonoIO.cs: fixed typo.
svn path=/trunk/mcs/; revision=23257
* helpers.c (mono_disassemble_code): use Sun's dis if not using gcc
* mini-sparc.c (flushi mono_arch_output_basic_block): make
it compile using Sun's compiler.
svn path=/trunk/mono/; revision=23255
* io-layer/error.c: fixed mapping for EPROTONOSUPPORT and
ESOCKTNOSUPPORT.
* io-layer/sockets.[ch]: retry creating the socket for AF_INET, SOCK_RAW
using IP protocol with IP over IP. Implemented WSAIoctl UNIX-style.
* metadata/icall.c: added Socket.WSAIoctl icall.
* metadata/socket-io.[ch]: implemented
ves_icall_System_Net_Sockets_Socket_WSAIoctl.
svn path=/trunk/mono/; revision=23252
* HttpWebRequest.cs: check for missing or wrong URI in Location header
when redirecting.
* WebConnection.cs: if the data read does not contain all the headers,
keep it around and read the rest until we get to the response body.
Allow response code with no description. Fixed bug #54543.
svn path=/trunk/mcs/; revision=23244
is used for setting the class or valuetype of a types instance so the class
reference isn't modified. Allows things like 'valuetype
[mscorlib]System.Object'.
svn path=/trunk/mcs/; revision=23234
* SecurityProtocolType.cs: Added missing [Serializable] to enum. Added
Default and Ssl2 to NET_1_2 profile. Enum is now internal for NET_1_0
profile (as we need it for SslClientStream).
* ServicePoint.cs: Added internal SetCertificates(client,server).
* ServicePointManager.cs: Added CheckCertificateRevocationList and
CheckCertificateRevocationList static properties (public in 1.1,
internal for 1.0).
* WebConnection.cs: Dynamically creates a SslClientStream (from
Mono.Security assembly) in case of https. Changed NetworkStream to
Stream everywhere.
svn path=/trunk/mcs/; revision=23225
* HttpWebRequest.cs: send the 'Connection: keep-alive' header when we
don't know the server version or it's 1.0.
* ServicePoint.cs: added SetVersion.
* WebAsyncResult.cs: remove ChunkAsyncResult.
* WebConnection.cs: set the ServicePoint version when getting a response
from the server.
* WebConnectionStream.cs: when posting chunked content, send the head,
body and trailer of the chunk at once instead of doing 3 separate
writes, which may cause troubles.
svn path=/trunk/mcs/; revision=23223
2004-02-18 Urs C Muff <[email protected]>
* debug-mono-symfile.c, mono-debug-debugger.c, mono-debug.c: Make
this work on PPC and other big-endian architectures.
* debug-mono-symfile.h: Prepended the names of all the `guint32'
fields with an underscore to make sure they're only accessed by
the read32() macro.
svn path=/trunk/mono/; revision=23218
* icall.c: Put the klass->refclass changes back for methods and
fields, but not for properties and events. We're currently not
distinguishing between DeclaringType and ReflectedType for
properties and events, that's what caused the regressions.
svn path=/trunk/mono/; revision=23217
* object.c:
(mono_async_result_new): the handle can be NULL.
* threadpool.c: Use an event instead of a semaphore, don't initialize
it until needed. This saves quite a few semaphores from being created
when using the threadpool.
svn path=/trunk/mono/; revision=23216
* SslClientStream.cs: Fixed (inverted) condition for ServerCertificate.
* SecurityProtocolType.cs: Added [Serializable] to enum to match MS
implementation.
svn path=/trunk/mcs/; revision=23207
* WebConnection.cs: if we get a 100 when we're not waiting for it, set
that information in the ServicePoint.
* WebConnectionStream.cs: send headers in the right order for
non-chunked POST.
svn path=/trunk/mcs/; revision=23204
* class.c (mono_class_init): If we're a generic instance and don't
come from a TypeBuilder, inflate our members here.
(mono_class_from_generic): Removed; just use `ginst->klass' instead.
(mono_class_create_generic): New public method.
(mono_class_initialize_generic): Removed.
(get_instantiation_name): Renamed to
_mono_class_get_instantiation_name() and made it public.
svn path=/trunk/mono/; revision=23201
* class.c (mono_class_inflate_generic_type): Clear the new
instance's `nginst->klass' when inflating a generic instance.
(mono_class_is_subclass_of): Added (basic) support for generic
instances.
svn path=/trunk/mono/; revision=23200
* Mono.Security.Protocol.Tls/SslClientStream.cs:
- Added changes to security properties for check that the handshake is finished.
svn path=/trunk/mcs/; revision=23198
* aot.c, mini-x86.c, mini.c: use the code manager instead of a mempool to hold native
code.
* mini-ppc.c: handle calls outside of the allowed range with thunks
allocated using the code manager.
* tramp-ppc.c: use the code manager to hold generated native code.
Fixed the magic trampoline to just patch vtable entries.
svn path=/trunk/mono/; revision=23191
* MonoGenericInst.cs (MonoGenericInst.GetMethods): Walk up the
class hierarchy and return members from the parent classes.
(GetConstructors, GetFields): Likewise.
svn path=/trunk/mcs/; revision=23189
* mono-codeman.c, mono-codeman.h: allocate extra room in memory close
to the native code for arch where calls have a limited immediate
displacement.
svn path=/trunk/mono/; revision=23188
* icall.c (ves_icall_Type_GetFields): Renamed to
ves_icall_Type_GetFields_internal() and added a
`MonoReflectionType *rtype' argument; pass it to
mono_field_get_object() to set the field's "reflected" type.
(ves_icall_Type_GetConstructors): Likewise.
(ves_icall_Type_GetEvents): Likewise.
(ves_icall_Type_GetMethodsByName): Added `MonoReflectionType *rtype'
argument; pass it to mono_method_get_object() to set the method's
"reflected" type.
svn path=/trunk/mono/; revision=23187
* MonoType.cs (GetConstructors): Renamed the interncall to
GetConstructors_internal(), made it internal and added a `Type
reflected_type' argument to it.
(GetEvents, GetFields): Likewise.
(GetMethodsByName): Added `Type reflected_type' argument.
(GetPropertiesByName): Likewise.
svn path=/trunk/mcs/; revision=23186
* LocationPathPattern.cs : Optimized Matches(). For non-positional
patterns, it never iterates predicate, just evaluate boolean.
svn path=/trunk/mcs/; revision=23182
* MonoGenericInst.cs (MonoGenericInst.initialize): Don't inflate
all the members here; we only do this for members of the current
class and only when they're actually queried for.
svn path=/trunk/mcs/; revision=23174
* class.h (MonoDynamicGenericInst): New type.
(MonoGenericInst): Added `dynamic_info' and `is_dynamic' fields.
* icall.c (ves_icall_MonoGenericInst_GetMethods): New interncall.
(ves_icall_MonoGenericInst_GetConstructors): New interncall.
(ves_icall_MonoGenericInst_GetFields): New interncall.
* class.c (mono_class_from_generic): Don't call
mono_class_initialize_generic() if this is a dynamic instance;
ie. it's being created from a TypeBuilder.
Use MONO_TYPE_GENERICINST for `class->this_arg.type' and
`class->byval_arg.type'.
* reflection.c (mono_reflection_inflate_method_or_ctor): Renamed
to `inflate_method' and made static.
(mono_reflection_inflate_field): Removed.
(mono_reflection_generic_inst_initialize): New public method.
* reflection.h (MonoReflectionGenericInst): Removed `methods',
`ctors' and `fields'; added `initialized'.
svn path=/trunk/mono/; revision=23173
is now possible to use fast IL generated classes that use direct access
to class fields instead of using reflection.
* CodeGenerator.cs: New file. Has several methods used by ObjectWriter to
generate serialization code.
svn path=/trunk/mcs/; revision=23171
* Mono.Security.Protocol.Tls/SslClientStream.cs:
- Added changes for bring async methods to work ( Thanks to Sebastien Pouliot )
- Reworked the record fragmentation.
svn path=/trunk/mcs/; revision=23169
* Mono.Security.Protocol.Tls/SslClientStream.cs:
- Fix for send the close notify alert in the Close method
only if the Handshake is fully negotiated.
svn path=/trunk/mcs/; revision=23165
* profiles/generics.make: Renamed to `martin-generics.make' and
added a comment to the file. I'll rename this back when it's
ready for public use.
svn path=/trunk/mcs/; revision=23164
if the namespace of the element is defined in the list of namespaces
provided to the XmlSerializer. This fixes bug #54427.
svn path=/trunk/mcs/; revision=23163
* HttpWebRequest.cs: on second and sucesive tries when authenticating,
don't use chunked encoding for POST, as we know the content length and
have the body. Nullify bodyBuffer always in CheckFinalStatus.
* WebAsyncResult.cs: added ChunkAsyncResult property. It holds the
IAsyncResult when writing CRLF at the end of a chunk.
* WebConnectionStream.cs: support sending chunked data.
svn path=/trunk/mcs/; revision=23153
* XslTransformProcessor.cs : Bugfix. Stored keys should be cleared.
* XslKey.cs : Added ExprKeyContainer expression type, which is
designed to be matched at any level.
* Compiler.cs : support for ExprKeyContainer.
svn path=/trunk/mcs/; revision=23145
* XmlSchema.cs,
XmlSchemaAttribute.cs
XmlSchemaAttributeGroup.cs,
XmlSchemaComplexContent.cs,
XmlSchemaComplexType.cs,
XmlSchemaContent.cs,
XmlSchemaDatatype.cs,
XmlSchemaNotation.cs,
XmlSchemaObject.cs,
XmlSchemaParticle.cs : extra TODO removal. foreach elimination.
Moved attribute group recursion check field from XmlSchemaObject
to XmlSchemaAttributeGroup.
Fixed XmlSchemaParticle.EmptyParticle class access modifier.
* XmlSchemaSimpleType.cs,
XmlSchemaSimpleTypeContent.cs,
XmlSchemaSimpleTypeList.cs,
XmlSchemaSimpleTypeRestriction.cs,
XmlSchemaSimpleTypeUnion.cs : Removed "actualBaseSchemaType" field
and the owner simpleType should hold the corresponding type info.
Collect base type info in prior to validation.
svn path=/trunk/mcs/; revision=23143
* XslKey.cs : Now it collects key and matching nodes at the first
evaluation time. After that, we can just get them from the table.
* Compiler.cs : Added KeyCompilationMode. It is used to prevent
prohibited key() usage in "match" and "use" attributes in xsl:key.
Modified accessibility of some classes.
* GenericOutputter.cs,
HtmlEmitter.cs,
TextEmitter.cs,
TextOutputter.cs,
XmlWriterEmitter.cs : made classes internal.
* XslOutput.cs : support line info for exception.
* XsltCompiledContext.cs : implemented CompareDocument() - so easily.
svn path=/trunk/mcs/; revision=23141
* mini-x86.c: Call mono_arch_get_lmf_addr instead of mono_get_lmf_addr
if we have a working __thread implementation.
svn path=/trunk/mono/; revision=23137
Those are basically methods to add custom attributes to element and
attribute members.
* SoapCodeExporter.cs: Track changes in MapCodeGenerator.
* XmlCodeExporter.cs: Better support for custom attribute generation for
method parameters.
* XmlCustomFormatter.cs: Added null check.
* XmlSchemaImporter.cs: do not set IsOptionalValueType property to
attributes that are required.
* XmlSerializationReaderInterpreter.cs: Method parameters may be serialized
as attributes.
svn path=/trunk/mcs/; revision=23131
*Npgsql/NpgsqlStartupPacket.cs: Added code to set datestyle to iso when connecting using protocol 3.0 version. Thanks Sami Kuhmonen <[email protected]> for pointing it out.
svn path=/trunk/mcs/; revision=23130
*Npgsql/NpgsqlConnection.cs:
Added support for Unicode encoding. Fix feature request 534 on gborg cvs.
Changed limit setting of max connections from unlimited to 20.
svn path=/trunk/mcs/; revision=23129
* Mono.Security.Protocol.Tls/TlsCipherSuiteFactory.cs:
- Changed ciphersuites order of preference ( Thanks to Sebastien Pouliot for his feedback ).
svn path=/trunk/mcs/; revision=23125
failure, resend the body. This fixes bug #51841.
* WebConnectionStream.cs: Added properties for getting what's been written.
svn path=/trunk/mcs/; revision=23121
* cs3001-{7,8}.cs,
cs3005-(1-22}.cs,
cs3006-{1-6}.cs,
cs3012.cs,
cs3013.cs New error tests for CLS-compliance.
* cs186-2.cs,
cs0579-2.cs New error tests.
* makefile: Added CS3005-16-lib.cs and CS3013-module.cs as helpers for errors cs3005-16.cs and cs3013.cs.
svn path=/trunk/mcs/; revision=23119
* interface.cs (FindMembers): The operation is performed on all base
interfaces and not only on the first. It is required for future CLS Compliance patch.
svn path=/trunk/mcs/; revision=23118
* ARC4Managed.cs: Removed all % 256 (modulo) because typecasting to
byte already ensure the result would be correct (as suggested by
Technoboy). Now use KeyBuilder to create new keys.
svn path=/trunk/mcs/; revision=23111
* Mono.Security.Protocol.Tls/SslClientStream.cs:
- Added specific control od available data for Network Streams
on Read ( Thanks to Francisco Figueiredo Jr. for his feedback ).
- Removed test code.
svn path=/trunk/mcs/; revision=23110
* DTDValidatingReader.cs: simple optimization. there is only
one string, skip the string builder and just return the string.
svn path=/trunk/mcs/; revision=23103
* XmlDsigC14NTransformTest.cs,
XmlDsigC14NWithCommentsTransformTest.cs:
uncommented some code blocks which should be tested.
svn path=/trunk/mcs/; revision=23098
* XmlCanonicalizer.cs: Use child nodes of entity reference nodes (it
is now correctly supported in XmlEntityReference).
svn path=/trunk/mcs/; revision=23097
* mini.c (mono_codegen): Avoid infinite loop when an icall wrapper
contains a call to the wrapped function.
* mini-ops.h cpu-pentium.md mini-x86.c inssel-x86.brg: Add
OP_<CALL>_IMM opcodes, and use them under X86.
* mini.c (mono_jit_find_compiled_method): Fix warning.
svn path=/trunk/mono/; revision=23094
* NumberFormatInfo.cs : CurrentInfo should not return clone every
time (MS.NET returns the same object; try object.ReferenceEquals()).
svn path=/trunk/mcs/; revision=23093
* Npgsql/NpgsqlCommand.cs: Fixed a bug when handling queries which retur
n no data. Thanks Morten Mertner <[email protected]> for the fix.
svn path=/trunk/mcs/; revision=23090
* Npgsql/NpgsqlCommand.cs: Fixed a bug when handling queries which return no data. Thanks Morten Mertner <[email protected]> for the fix.
svn path=/trunk/mcs/; revision=23089
* jit-icalls.c (mono_ldftn_nosync): New JIT icall.
* tramp-x86.c (mono_arch_create_jump_trampoline): Move arch independent
functionality to mini.c.
* mini.c (mono_create_jump_trampoline): New function to create a jump
trampoline. Return a compiled method instead of a trampoline if it
exists. Add a cache for jump trampolines.
* mini.c (mono_jit_find_compiled_method): New function to return a
compiled method if it exists.
* mini-x86.c: Call mono_create_jump_trampoline instead of
mono_arch_create_jit_trampoline.
* jit-icalls.c (mono_ldftn): Do not compile the method. Instead, return
a jump trampoline. Fixes#52092.
svn path=/trunk/mono/; revision=23085
* DHKeyGeneration.cs: New. Enumuration of possible key generation for
Diffie-Hellman. Contributed by Pieter Philippaerts (mentalis.org).
* DHParameters.cs: New. Structure to hold the different elements of a
Diffie-Hellman key. Contributed by Pieter Philippaerts (mentalis.org).
* DiffieHellman.cs: New. Astract class as base for all Diffie-Hellman
implementations. Contributed by Pieter Philippaerts (mentalis.org).
* DiffieHellmanManaged.cs: New. Managed implementation of the Diffie-
Hellman key agreement algorithm. Contributed by Pieter Philippaerts.
svn path=/trunk/mcs/; revision=23075
params. Fixes some unit test failures.
* BufferedStream.cs: If the stream is closed (can't read from it
or write to it) throw an ObjectDisposedException.
svn path=/trunk/mcs/; revision=23074
* DTDObjectModel.cs, DTDReader.cs, DTDValidatingReader.cs :
say goodbye to sys.collections.specialized.
(replaced the classes in that namespace with ArrayList or Hashtable)
svn path=/trunk/mcs/; revision=23073
* Added DTMXPathDocumentWriter.cs. It supports DTMXPathNavigator as
the resulting document tree.
* DTMXPathDocumentBuilder.cs : Code refactory (to get closer to dtm
writer and commonify tasks they both should do). Reduced initial
array size (400 to 200, for attribute 800 to 200), and extending
size from 2x to 4x (to reduce _times_ of allication copy).
* DTMXPathNode.cs : (and all above) added experimental "DTM_CLASS"
switch, which changes nodes from struct to class. (It will reduce
memory consumption by 2/3, but will also reduce speed by 2/3.)
svn path=/trunk/mcs/; revision=23069
* PrimeGeneratorBase.cs: Changed primality test to Rabin Miller to
fix issues #51229 (bug), #54262 (very long in same cases).
svn path=/trunk/mcs/; revision=23066
* PrimeTestingTest.cs: Added well known (and tested) primes from
RFC 2412 (http://www.faqs.org/rfcs/rfc2412.html) as suggested by
Pieter Philippaerts (#51229).
* SearchGeneratorTest.cs: Modified so this still use the (previous)
SmallPrimeSppTest primality test - because RM doesn't work for
small primes.
svn path=/trunk/mcs/; revision=23064
* PrimeGeneratorBase.cs: Changed primality test to Rabin Miller to
fix issues #51229 (bug), #54262 (very long in same cases).
svn path=/trunk/mcs/; revision=23063
gdipFunctions.cs: Added ImageCodecInfo functions and corrected
few Image class functions
Image.cs: Added few methods
svn path=/trunk/mcs/; revision=23057
* statement.cs, codegen.cs:
This patch deals with patterns such as:
public class List : IEnumerable {
public MyEnumerator GetEnumerator () {
return new MyEnumerator(this);
}
IEnumerator IEnumerable.GetEnumerator () {
...
}
public struct MyEnumerator : IEnumerator {
...
}
}
Before, there were a few things we did wrong:
1) we would emit callvirt on a struct, which is illegal
2) we emited ldarg when we needed to emit ldarga
3) we would mistakenly call the interface methods on an enumerator
type that derived from IEnumerator and was in another assembly. For example:
public class MyEnumerator : IEnumerator
Would have the interface methods called, even if there were public impls of the
method. In a struct, this lead to invalid IL code.
svn path=/trunk/mcs/; revision=23048
* XmlReader.cs : For performance reason, XmlTextReader now uses
base ReadInnerXml() and don't store currentTag array unnecessarily.
* XmlTextReader.cs :
- Fixed GetAttribute(int) that might cause index out of range.
- Now it consumes the text reader by reading blocks, as MS.NET does.
Modified GetRemainder(), PeekChar(), ReadChar() and so on.
- Now it doesn't create Value string for linked nodes, unless it
is actually required.
- some code refactory.
svn path=/trunk/mcs/; revision=23041
* metadata.h (MonoMethodHeader, MonoMethodSignature): Moved the
`gen_method' field from MonoMethodHeader to MonoMethodSignature.
* reflection.c (mono_image_get_methodspec_token): Take a
`MonoMethod *' instead of a `MonoReflectionInflatedMethod *'.
(mono_image_create_token): Check whether we have a
`method->signature->gen_method' and call
mono_image_get_methodspec_token() if appropriate.
(inflated_method_get_object): Removed.
(mono_reflection_bind_generic_method_parameters): Return a
`MonoReflectionMethod *', not a `MonoReflectionInflatedMethod *'.
(mono_reflection_inflate_method_or_ctor): Likewise.
* reflection.h (MonoReflectionInflatedMethod): Removed.
svn path=/trunk/mono/; revision=23037
* metadata.h (MonoMethodHeader, MonoMethodSignature): Moved the
`gen_method' field from MonoMethodHeader to MonoMethodSignature.
* reflection.c (mono_image_get_methodspec_token): Take a
`MonoMethod *' instead of a `MonoReflectionInflatedMethod *'.
(mono_image_create_token): Check whether we have a
`method->signature->gen_method' and call
mono_image_get_methodspec_token() if appropriate.
(inflated_method_get_object): Removed.
(mono_reflection_bind_generic_method_parameters): Return a
`MonoReflectionMethod *', not a `MonoReflectionInflatedMethod *'.
(mono_reflection_inflate_method_or_ctor): Likewise.
* reflection.h (MonoReflectionInflatedMethod): Removed.
svn path=/trunk/mono/; revision=23034
* CryptoStreamTest.cs: Added new tests for [From|To]Base64Transform
(InputBlockSize != OutputBlockSize) and for cascading CryptoStreams.
svn path=/trunk/mcs/; revision=23025
* CryptoStream.cs: Remove the _blockSize assumptions because some
Transforms could be different on Input/Output. Added a special case
for cascading CryptoStreams in FlushFinalBlock.
svn path=/trunk/mcs/; revision=23024
* HttpUtility.cs: fixed length check. Closes bug #54201.
Thanks to Michal Moskal. Use MemoryStream instead of an ArrayList when
decoding.
svn path=/trunk/mcs/; revision=23022
* const.cs: Const is now derived from FieldBase. Method EmitConstant name
renamed to Emit.
* delegate.cs (Define): Fixed crash when delegate type is undefined.
svn path=/trunk/mcs/; revision=23013
* System.Text.RegularExpressions/parser.cs: an opening brace without a
quantifier do not cause a parse error. Fixes bug #52924.
* Test/System.Text.RegularExpressions/RegexBugs.cs: added test from
bug #52924.
svn path=/trunk/mcs/; revision=23008
* BasicClient.cs:
* DigestClient.cs: use IndexOf instead of StartsWith to deal with
servers that provide several authentication schemas.
svn path=/trunk/mcs/; revision=23007
* Socket.cs: added locks around waithandle assign and comparison in
class Worker. Handle other exceptions than SocketException for
non-blocking sockets.
svn path=/trunk/mcs/; revision=23005
* ChunkStream.cs: use an array of buffers instead of a MemoryStream for
storing the chunks. This way, we won't miss traling data from the
previous chunk when a new one is received before the other is fully
read.
svn path=/trunk/mcs/; revision=23004
* debug-mini.c (mono_init_debugger): Remove call to mono_verify_corlib,
which is not up-to-date. Add check_corlib_version () instead.
svn path=/trunk/mono/; revision=22989
* Reference.cs: Added LoadInnerXml to transforms. Removed unused
variable.
* Transform.cs: Import GetInnerXml in GetXml.
* XmlDsigBase64Transform.cs: Now use a StreamWriter to avoid multiple
allocations.
* XmlDsigC14NTransform.cs: Added Stream support to LoadInput
* XmlDsigXPathTransform.cs: Fixed GetInnerXml to include xpath
expression and LoadInput. It nows match MS implementation but doesn't
work like I think it should (but neither is MS implementation).
svn path=/trunk/mcs/; revision=22985
* ReferenceTest.cs: Tests fixed if XML is different (but equivalent)
to MS implementation.
* SignatureTest.cs: Tests fixed if XML is different (but equivalent)
to MS implementation.
* XmlDsigBase64TransformTest.cs: New UnprotectedGetInnerXml class to get
results from the protected GetInnerXml. No more convertion to arrays.
* XmlDsigC14NTransformTest.cs: New UnprotectedGetInnerXml class to get
results from the protected GetInnerXml. Fixed input/output typo. Tests
fixed if XML is different (but equivalent) to MS implementation.
* XmlDsigC14NWithCommentsTransformTest.cs: New UnprotectedGetInnerXml
class to get results from the protected GetInnerXml. Fixed input/output
typo.
* XmlDsigXPathTransformTest.cs: New. Unit tests XmlDsigXPathTransform.
* XmlDsigXsltTransformTest.cs: New UnprotectedGetInnerXml class to get
results from the protected GetInnerXml. Fixed input/output typo.
svn path=/trunk/mcs/; revision=22984
* README: update to describe better how to use the doc/web stuff
* index: change layout, move old news to oldnews page, rewrite
content, add new headings, decrease size of other headings.
* jit-debug: change link to martin's page; now it points to the
dir holding the debugger files. Fix grammar in one sentence.
* oldnews: erase very old news, add slightly old news removed from
index
* web/htmlify: shrink size of newsitem headings.
svn path=/trunk/mono/; revision=22978
* threads.c (mono_thread_attach): Allow this to be called multiple
times for a thread.
* threads.c (build_wait_tids): Do not wait for ourselves.
* threads.c (mono_thread_pop_appdomain_ref): Avoid crash if the
appdomain list is empty.
svn path=/trunk/mono/; revision=22976
* mini.c (mono_runtime_install_handlers): Remove check for valgrind
since newer valgrind versions do not need it.
svn path=/trunk/mono/; revision=22975
* mini.c (mono_jit_compile_method_with_opt): New helper function to
compile a method with a given set of optimizations.
* mini.c: Compile icall wrappers on-demand instead of at startup.
* mini-sparc.c mini-ppc.c: Call mono_icall_get_wrapper to obtain the
wrapper for an icall.
2004-02-10 Zoltan Varga <[email protected]>
* mini.c (mono_method_to_ir): Handle switch with non-empty stack. Fixes
#54063.
svn path=/trunk/mono/; revision=22974
* Makefile.am, mono-codeman.h, mono-codeman.c: new support code
to deal with buffers of native code (handles exec bits and other
details).
svn path=/trunk/mono/; revision=22973
* marshal.c (mono_marshal_get_native_wrapper): Do not free the
memory returned by mono_string_builder_to_utf16, since it points into
managed memory. Thanks to Bernie Solomon for noticing this.
svn path=/trunk/mono/; revision=22972
* reflection.h (MonoReflectionMethodAux): Add 'param_cattr' field.
* reflection.c (mono_custom_attrs_from_param): Add support for dynamic
types.
* reflection.c (reflection_methodbuilder_to_mono_method): Save
custom attributes to the method_aux struct. Also fix array indexes etc.
* loader.c (mono_method_get_param_names): Make dynamic case work again.
svn path=/trunk/mono/; revision=22969
* TypeTranslator.cs: NMTOKENS, ENTITIES and IDREFS must be mapped to
string, not string[].
* XmlCodeExporter.cs: AddMappingMetadata(): improved attribute generation
for array parameters. In general, improved generation of schema Form
property.
* XmlMemberMapping.cs: Added Form property.
* XmlReflectionImporter.cs: Types that inherit from other types cannot be
simple types. Added a check for this.
* XmlSchemaExporter.cs: several fixes: better generation of IsMixed and
Form. The key used to determine if a map has been already generated must
include the XmlType, since there can be two xml types with the same CLR
type and namespace (for example, they may differ in the Form property).
* XmlSchemaImporter.cs: When getting the TypeData for a schema element,
also return the corresponding map. There can be two maps that have the
same TypeData, so given a TypeData is not always possible to get the
correct corresponding map (for example two arrays that only differ in the
Form of the item).
* XmlTypeMapping.cs: Added method to set if a map can represent a simple
type or not.
svn path=/trunk/mcs/; revision=22968
* NpgsqlTypes/NpgsqlTypesHelper.cs: Added support for datetime and time datatypes with timezone data. Thanks Sami Kuhmonen ([email protected]).
svn path=/trunk/mcs/; revision=22965
* Mono.Security.Cryptography/PKCS1.cs:
- Added little change for allow the class to be used with
hash implementations that doesn't have an oid like the MD5SHA1 hash.
svn path=/trunk/mcs/; revision=22951
* icall.c, loader.c: icall cleanup: we save quite a bit of memory
(both static and runtime) and reduce startup time.
svn path=/trunk/mono/; revision=22946
* ChunkStream.cs:
* WebConnection.cs: fixed bug that caused ChunkStream to return 0 on
Read if it have not yet received any byte of the body but is expecting
a body.
svn path=/trunk/mcs/; revision=22944
* XmlNode.cs : ChildNodes should not create XmlNodeListChildren
every time. This fix heavily improved performance.
svn path=/trunk/mcs/; revision=22937
* Iterator.cs : Added overriden Count properties for some iterators
(this fixes the half of #50678).
Added ListIterator class (which can reduce GetEnumerator()).
In some places we can omit clone for Current property, so added
some check logic (It has no effect as yet).
* Expression.cs, DefaultContext.cs :
use ListIterator instead of EnumeratorIterator.
svn path=/trunk/mcs/; revision=22934
* XmlAttributeCollection.cs : set owner element as parent on removal
events (though they are not "parent" in infoset or dom context)
* XmlElement.cs : Don't remove attributes twice (raises extraneous
removal events).
* XmlNamespaceManager.cs, XmlNodeChangedEventArgs :
Added NET_1_2 members.
svn path=/trunk/mcs/; revision=22933
* Mono.Security_test.dll.sources Added Mono.Math BigInteger unit test
to the build (as they cannot be executed with corlib).
svn path=/trunk/mcs/; revision=22926
* CacheDependency.cs: Use FileSystemWatcher instead of custom
Watcher for file dependencies.
* OutputCacheModule.cs: Make the varyby objects dependent on the
cached page.
svn path=/trunk/mcs/; revision=22924
* BigInteger.cs: Added INSIDE_CORLIB to define ModulusRing as
internal. Without this the unit tests for Mono.Math (now in
Mono.Security assembly) wont compile (see bugzilla #44845).
svn path=/trunk/mcs/; revision=22922
* class.h (MonoGenericMethod): Added `MonoMethod *declaring'.
* reflection.h (MonoReflectionInflatedMethod): Removed the
`declaring' field, it's now in the unmanaged MonoGenericMethod.
* reflection.c (method_encode_methodspec): Removed the `method'
argument; we get it from `gmethod->declaring'.
(inflated_method_get_object): Removed the `declaring' argument.
svn path=/trunk/mono/; revision=22920
* class.h (MonoGenericMethod): New type.
(MonoGenericInst): Remove `mtype_argc', `mtype_argv' and
`generic_method'.
* metadata.h (MonoMethodHeader): Replaced the `geninst' field with
a `MonoGenericMethod *gen_method' one.
* class.c (mono_class_inflate_generic_type): Take an additional
`MonoGenericMethod * argument. This is only non-NULL if we're
inflating types for a generic method.
(mono_class_inflate_generic_signature): Renamed to
inflate_generic_signature() and made static; take a
`MonoGenericMethod *' argument instead of a `MonoGenericInst *'.
(inflate_generic_header): Take a `MonoGenericMethod *' argument
instead of a `MonoGenericInst *' one.
(mono_class_inflate_generic_method): Likewise.
* reflection.c (encode_generic_method_sig): Take a
`MonoGenericMethod *' argument instead of a `MonoGenericInst *'.
(method_encode_methodspec): Likewise.
(inflated_method_get_object): Likewise.
* reflection.h (MonoReflectionGenericInst): Replaced the `ginst'
field with a `MonoGenericMethod *gmethod' one.
svn path=/trunk/mono/; revision=22919
* SymmetricAlgorithm.cs: Reintroduced the patch from 2003-08-24 to fix
IV length exception for stream ciphers (e.g. RC4). I overwrote it by
accident some time ago :(
svn path=/trunk/mcs/; revision=22915
* Makefile: Added /unsafe to compile BigInteger. Hopefully this will
only be temporary.
* Mono.Security.dll.sources: Added Mono.Math.* and PKCS1 and
RSAManaged copies (from corlib) to support TLS.
svn path=/trunk/mcs/; revision=22914
* NextPrimeFinder.cs: New. Copied from corlib. Required for PKCS1 and
RSAManaged (which are required for TLS).
* PrimeGeneratorBase.cs: New. Copied from corlib. Required for PKCS1
and RSAManaged (which are required for TLS).
* SequentialSearchPrimeGeneratorBase.cs: New. Copied from corlib.
Required for PKCS1 and RSAManaged (which are required for TLS).
svn path=/trunk/mcs/; revision=22913
* ConfidenceFactor.cs: New. Copied from corlib. Required for PKCS1 and
RSAManaged (which are required for TLS).
* PrimalityTests.cs: New. Copied from corlib. Required for PKCS1 and
RSAManaged (which are required for TLS).
svn path=/trunk/mcs/; revision=22912
* PKCS1.cs: New. Copied from corlib. Required for RSAManaged.
* RSAManaged.cs: New. Copied from corlib. Required for TLS - some
parts (MD5SHA1) cannot work with the default RSACryptoServiceProvider.
svn path=/trunk/mcs/; revision=22910
* Changed the license header to all the sources files
to remove accents.
* Mono.Security.Protocol.Tls/SslClientStream.cs:
- Try to improve record reading.
* Mono.Security.Protocol.Tls.Handshake.Client/TlsClientCertificate.cs:
- Send always the first certificate.
* Mono.Security.Protocol.Tls.Handshake.Client/TlsServerKeyExchange.cs:
- Added changes for correct verification of the signed data sent
by the server.
* Mono.Security.Protocol.Tls/RSASslSignatureFormatter.cs:
- Create RSA as an RSAManaged instance.
* Mono.Security.Protocol.Tls/RSASslSignatureFormatter.cs:
* Mono.Security.Protocol.Tls/RSASslSignatureDeformatter.cs:
- Changed key field to be of RSA type.
* Mono.Security.Protocol.Tls/RSASslSignatureFormatter.cs:
* Mono.Security.Protocol.Tls/RSASslSignatureDeformatter.cs:
- Added new classes for implement in the future RSA-SSL signatures.
* Changed #region names in all source files.
* Mono.Security.Protocol.Handshake.Client/TlsServerCertificate.cs:
- Fixed message (but not working yet - we need RSA signing
capabilitites with MD5SHA1 hash).
* Mono.Security.Protocol.Handshake.Client/TlsServerCertificate.cs:
- Retrict certificate validation to the first validation.
( real validation needs to be made using a chain )
- Improved domain validation by making a IP checking between
the target host IP and the certificate domain IP.
- Fixed error list handling on certificate validation.
* Mono.Security.Protocol.Tls/SslClientStream.cs:
- Added new exceptions.
svn path=/trunk/mcs/; revision=22909
* Changed the license header to all the sources files
to remove accents.
* Mono.Security.Protocol.Tls/SslClientStream.cs:
- Try to improve record reading.
* Mono.Security.Protocol.Tls.Handshake.Client/TlsClientCertificate.cs:
- Send always the first certificate.
* Mono.Security.Protocol.Tls.Handshake.Client/TlsServerKeyExchange.cs:
- Added changes for correct verification of the signed data sent
by the server.
* Mono.Security.Protocol.Tls/RSASslSignatureFormatter.cs:
- Create RSA as an RSAManaged instance.
* Mono.Security.Protocol.Tls/RSASslSignatureFormatter.cs:
* Mono.Security.Protocol.Tls/RSASslSignatureDeformatter.cs:
- Changed key field to be of RSA type.
* Mono.Security.Protocol.Tls/RSASslSignatureFormatter.cs:
* Mono.Security.Protocol.Tls/RSASslSignatureDeformatter.cs:
- Added new classes for implement in the future RSA-SSL signatures.
* Changed #region names in all source files.
* Mono.Security.Protocol.Handshake.Client/TlsServerCertificate.cs:
- Fixed message (but not working yet - we need RSA signing
capabilitites with MD5SHA1 hash).
* Mono.Security.Protocol.Handshake.Client/TlsServerCertificate.cs:
- Retrict certificate validation to the first validation.
( real validation needs to be made using a chain )
- Improved domain validation by making a IP checking between
the target host IP and the certificate domain IP.
- Fixed error list handling on certificate validation.
* Mono.Security.Protocol.Tls/SslClientStream.cs:
- Added new exceptions.
svn path=/trunk/mcs/; revision=22907
* Thread.cs: Add fields added to unmanaged MonoThread here as well.
Fixes random errors caused by memory corruption.
svn path=/trunk/mcs/; revision=22906
* PolicyLevelTest.cs: Ignored test Reset as the functionality isn't
yet present in Mono.
* UrlMembershipConditionTest.cs: Ignored the site related test as the
functionality isn't yet present in Mono.
* UrlTest.cs: Ignored the site related test as the functionality isn't
yet present in Mono.
svn path=/trunk/mcs/; revision=22905
* System.Web/HttpApplication.cs: ApplicationState is inited by the
factory so, return that value in the property. when we use the context
Session, cache it in the instance field.
* System.Web/HttpApplicationFactory.cs: fixed target Type for the
event when hooking application and module events. Initialize application
and session scope objects. Fixes non-aplication events hook up.
* System.Web/HttpStaticObjectsCollection.cs: added StaticItem and delay
the creation of the objects until they are requested.
* System.Web.SessionState/SessionInProcHandler.cs:
* System.Web.SessionState/SessionSQLServerHandler.cs:
* System.Web.SessionState/SessionStateServerHandler.cs: when creating
the HttpSessionStateObjets, use the session objects that we know about
in HttpApplicationFactory.
Fixes bug #53387.
svn path=/trunk/mcs/; revision=22900
* DSACryptoServiceProvider.cs: Fixed support for key pair persistence.
It now requires (like MS) to call Clear to delete an existing
container. PersistKeyInCsp default value also changes if a
CspParameters is supplied (or not) to the constructor.
* RSACryptoServiceProvider.cs: Same fixes as DSA.
svn path=/trunk/mcs/; revision=22899
* DSACryptoServiceProvider.cs: Added new unit tests for key pair
persistence.
* RSACryptoServiceProvider.cs: Added new unit tests for key pair
persistence.
svn path=/trunk/mcs/; revision=22898
* decl.cs (GetSignatureForError): New virtual method to get full name
for error messages.
* attribute.cs (IAttributeSupport): New interface for attribute setting.
Now it is possible to rewrite ApplyAttributes method to be less if/else.
* interface.cs : All InterfaceXXX classes are now derived from MemberCore.
Duplicated members and code in these classes has been removed.
Better encapsulation in these classes.
svn path=/trunk/mcs/; revision=22896
* image.h (MonoImage): Removed `generics_cache'.
* class.c (mono_class_from_generic): Take a `MonoGenericInst *'
instead of a `MonoType *' argument; removed the `inflate_methods'
argument. Don't inflate methods here.
* loader.c (find_method): If it's a generic instance, call
mono_class_init() on the `sclass->generic_inst->generic_type'.
* metadata.c (mono_type_size): Make this work on uninitialized
generic instances; call it on the `ginst->generic_type's class.
* reflection.c (mono_reflection_bind_generic_parameters): Call
mono_class_from_generic() to create the `ginst->klass'.
svn path=/trunk/mono/; revision=22892
* NumberFormatInfo.cs: When parsing the percentages, put the data
into PercentDecimalDigits/PercentGroupLengths, rather than trashing
the NumberDecimatDigits etc. This also means that the percent format
info gets set.
svn path=/trunk/mcs/; revision=22882
* HashAlgorithm.cs: Changed the ComputeHash(Stream) method to (a) not
allocate the whole stream memory (big memory saver as suggested by
Peter Williams in bugzilla entry #54022) and (b) to never use Stream.
Length and Stream.Position because they aren't implemented for every
stream class (similar issue to the CryptoStream patch).
* MD5CryptoServiceProvider.cs: Moved a buffer allocation from
ProcessBlock to constructor to reduce memory allocation. Optimization
suggested by Peter Williams in bugzilla entry #54024.
svn path=/trunk/mcs/; revision=22881
* icall.c (ves_icall_Type_BindGenericParameters): Just call
mono_type_get_object(), this is now creating a `MonoGenericInst'
for MONO_TYPE_GENERICINST.
(ves_icall_MonoGenericInst_GetParentType): Likewise.
(ves_icall_MonoGenericInst_GetInterfaces): Likewise.
* reflection.c (mono_type_get_object): Return a `MonoGenericInst'
instead instead of a `MonoType' for MONO_TYPE_GENERICINST.
(inflated_method_get_object): Added `MonoClass *refclass' argument.
(mono_reflection_inflate_method_or_ctor): Correctly set declaring
and reflected type.
* reflection.h (MonoReflectionInflatedMethod): Removed
`declaring_type' and `reflected_type'.
svn path=/trunk/mono/; revision=22877
* MonoGenericInst.cs (MonoGenericInst.GetParentType): New interncall.
(MonoGenericInst.GetInterfaces_internal): New interncall.
(MonoGenericInst): Reflect latest API changes; use GetParentType()
and GetInterfaces_internal() instead of the fields.
svn path=/trunk/mcs/; revision=22869
* assign.cs (Assign.DoResolve): When dealing with compound
assignments, there is a new rule in ECMA C# 2.4 (might have been
there before, but it is documented here) that states that in:
a op= b;
If b is of type int, and the `op' is a shift-operator, then the
above is evaluated as:
a = (int) a op b
svn path=/trunk/mcs/; revision=22854
* expression.cs (Binary.ResolveOperator): Instead of testing for
int/uint/long/ulong, try to implicitly convert to any of those
types and use that in pointer arithmetic.
svn path=/trunk/mcs/; revision=22853
* delegate.cs (Error_NoMatchingMethodForDelegate): Compute the
method to print information for from the type, not from the
null-method we were given.
svn path=/trunk/mcs/; revision=22851
* DSAManaged.cs: Added an event after key generation (so that
DSACryptoServiceProvider can persist the keypair if required). Added
PublicOnly property (like 1.2) so we do not have to catch an exception
to know if a private key is present or not. Added a Random property so
we do not always have to create a RNG instance (not always required).
* RSAManaged.cs: Added an event after key generation (so that
DSACryptoServiceProvider can persist the keypair if required). Added
PublicOnly property (like 1.2) so we do not have to catch an exception
to know if a private key is present or not.
svn path=/trunk/mcs/; revision=22843
method is taken from System.Web.Utils.UrlUtils.
* UriBuilder.cs: Do not escape fragments or queries, but do a utf8
switch on them. Do not prepend a "/" to Paths. Do not use
IPEndPoint to determine if a port is valid, UriBuilder allows
ports to be any positive integer, IPEndPoint does not. Use the
ToString () method for generate a uri in get_Uri. Only set the
port in ToString () if it is greater then 0.
svn path=/trunk/mcs/; revision=22840
* CryptoTools.cs: New. Copied from corlib to offer the sames services
to symmetric algorithms in Mono.Security assembly.
* SymmetricTransform.cs: New. Copied from corlib to offer the sames
services to symmetric algorithms in Mono.Security assembly.
svn path=/trunk/mcs/; revision=22838
* corlib.dll.sources: Moved SymmetricTransform class from System.
Security.Cryptography (SymmetricAlgorithm) to Mono.Security.
Cryptography.
svn path=/trunk/mcs/; revision=22836
* SymmetricAlgorithm.cs: Removed class SymmetricTransform from file
and moved it to Mono.Security.Cryptography namespace. The transform
class will also be included in Mono.Security assembly.
svn path=/trunk/mcs/; revision=22835
* SymmetricTransform.cs: This class was split from S.S.C.
SymmetricAlgorithm.cs so it could be reused in Mono.Security
assembly for other symmetric algorithms transforms.
svn path=/trunk/mcs/; revision=22834
* Mono.Security.dll.sources: Added KeyPairPersistence and it's
dependencies in Mono.Xml (MiniParser and SecurityParser).
* Mono.Security_test.dll.sources: Added unit tests for
KeyPairPersistence.
svn path=/trunk/mcs/; revision=22831
* KeyPairPersistance.cs: Provides a similar to CryptoAPI persistence
mechanism for keypairs (based on CspParameters).
svn path=/trunk/mcs/; revision=22829
FontCollection.cs: Used CheckStatus() method
InstalledFontCollection.cs: Used CheckStatus() method
PrivateFontCollection.cs: Used CheckStatus() method
svn path=/trunk/mcs/; revision=22823
* object.h (MonoThread): Add 'name' and 'name_len' fields.
* threads.h threads.c icall.c: New icalls for getting and setting the
threads name.
svn path=/trunk/mono/; revision=22822
* corlib_test.dll.sources: Added AppDomain unit tests in System.
Some tests are currently ignored because they produce lots of GC
Warning failures but they seems to work (nunit finishes).
svn path=/trunk/mcs/; revision=22818
* ecore.cs (FieldExpr.DoResolveLValue): If we have an
`ec.TypeContainer.CurrentType', use it instead of
`ec.ContainerType' to check whether we're in the type's ctor.
svn path=/trunk/mcs/; revision=22808
* DTDValidatingReader.cs : Fixed MoveToElement() that causes incorrect
IsDefault and Depth.
* XmlAttribute.cs : Fixed .ctor(). Omit more namespace check when
checkNamespace = false.
* XmlNamedNodeMap.cs : Fixed SetNamedItem() to raise events.
* XmlAttributeCollection.cs : Reimplemented InsertAfter to use
InsertBefore() (similar to XmlNode).
* XmlDocument.cs : Added internal .ctor(). Reimplemented ReadNode()
as recursive, to make event order compatible.
* XmlDocumentType.cs : Use SetNamedItem() (to raise events).
* XmlElement.cs : Some refactory. Fixed SetAttributeNode() with
string name to block prefixed name.
* XmlEntity.cs : Don't raise events on setting contents.
* XmlNode.cs : Some refactory. Added raiseEvent argument to internal
InsertBefore().
* XmlEntityReference.cs : related fix for XmlNode change.
* XmlTextReader.cs : When the reader is on "attributes" of xmldecl or
doctype, Depth 1 lower than usual attribute. Split large function.
svn path=/trunk/mcs/; revision=22799
* appdomain.c (ves_icall_System_AppDomain_InternalPushDomainRefByID):
Raise an exception when the domain is not found.
svn path=/trunk/mono/; revision=22787
expressions. Throw ArgumentException if the expression type is not
handled.
* CodeGenerator.cs (GenerateStatement): Add line pragmas if they
are set. Throw ArgumentException if the expression type is not
handled.
svn path=/trunk/mcs/; revision=22776
* CryptoStreamTest.cs: Added many more tests for every problem found
with CryptoStream using code samples from the internet.
svn path=/trunk/mcs/; revision=22771
* CryptoStream.cs: New implementation - should fix all known issues
with the class (Read/WriteByte, reading by non-multiple of the
block size, using Stream.Length and Stream.Position ...).
* SymmetricAlgorithm.cs: Return an empty array when there's nothing
to return (required for CryptoStream to work).
svn path=/trunk/mcs/; revision=22770
* DTDObjectModel.cs : Never expand entity on ScanEntityValue().
* DTDValidatingReader.cs : XmlDeclaration node requires attributes
to be movable.
* XmlAttribute.cs,
XmlDocument.cs,
XmlDocumentFragment.cs,
XmlElement.cs,
XmlEntity.cs,
XmlLinkedNode.cs,
XmlNode.cs,
XmlNotation.cs :
Added namespace checking flag (required for such xml readers
that holds Namespaces=false). Now only XmlNode holds LastLinkedNode.
* XmlDocumentType.cs,
XmlEntity.cs,
XmlEntityReference.cs : The children of Entity and EntityReference
became correct. They now holds parsed nodes, but it is only when
they are appended to the document.
* XmlNode.cs : Modified insertBeforeIntern() to InsertBefore() with
boolean checkNodeType argument. This method also tries to create
Entity's and EntityReference's child nodes. Also added internal
RemoveChild() with boolean checkNodeType argument.
* XmlNodeReader.cs : Quick hack for ResolveEntity() that became
broken with these changes. use InnerXml as input to entityReader.
* XmlTextReader.cs : XmlDeclaration's value LocalName should be the
same as Name. The names of DTD's pseudo attributes should be empty.
Fixed DTD node's Depth (was regarded as attribute value's depth).
svn path=/trunk/mcs/; revision=22767
* XsdValidatingReader.cs : When the reader points at XmlDeclaration,
AttributeCount counts its values (version, encoding, standalone).
svn path=/trunk/mcs/; revision=22766
* class.cs, decl.cs: Fixed problem where IndexerName attribute was ignored
in the member name duplication tests. Property and operator name duplication
was missing too (error tests cs0102-{2,3,4,5}.cs, cs0111-{3,4}.cs).
svn path=/trunk/mcs/; revision=22759
better performance.
DataSet.cs (GetTableSchema) : Add supprot for simple content columns. Change the condition for a case
when all column are attributes (elements count is 0), we still want to add the relations. No relations
can be on simple contents.
(AddUniqueConstraints) Check that the column of the constraint are not hidden.
(AddForeignKeys) Check that the relation has constraints attach to it.
XmlConstants.cs : Added constant.
svn path=/trunk/mcs/; revision=22758
value of a column.
* DataRowCollection.cs: In InsertAt(), perform the correct checks and
attach the row.
* DataSet.cs: Fixed method GetChanges(): Parent rows of modified rows must
also be added to the dataset.
In WriteTable(), do not write unchanged rows when writing the original
version of the table.
Added WriteIndividualTableContent(), for writing the contents of a single
table.
Changed BuildSchema and related methods, so it can generate a schema for
any set of tables, not just the tables of the dataset (needed for
single datatable serialization).
* DataTable.cs: Implemented serialization constructor and GetObjectData method.
Also implemented some ReadXmlSchema methods.
* XmlDiffLoader.cs: Read and process the xml document directly from XmlReader,
instead of loading the full dataset in an XmlDocument. It is faster and
saves memory. Also fixed several problems when generating the changes.
* XmlSchemaMapper.cs: Support reading schemas for single tables (used by
table serialization).
svn path=/trunk/mcs/; revision=22755
* XmlSerializationWriterInterpreter.cs: Removed unneeded code.
A member with the Any attribute can also contain text. Support this.
* XmlTypeMapMemberElement.cs: Added CanBeText property.
svn path=/trunk/mcs/; revision=22750
* ChangeLog : Fixed incorrect description that should be written for
DTDValidatingReader.cs but written for DTDReader.cs.
* DTDValidatingReader.cs : Fixes described in the last DTDReader fix.
* XmlChar.cs,
XmlConstructs.cs : Made XmlChar and XmlConstructs equivalent and
replaced XmlChar with XmlConstruts, renaming "XmlChar" to
"XmlCharCompact" and "XmlConstructs" to "XmlChar".
(XmlChar will be used for compact framework.)
* DTDReader.cs, XmlParserInput.cs, XmlTextReader.cs :
XmlChar related changes. Support for surrogate pair.
It cannot use TextReader's peek anymore (for surrogate pair).
Character range check for PI value, attribute value, text
* XmlTextWriter.cs : Change openElements from Stack to ArrayList.
(It calls ToArray() every time.)
svn path=/trunk/mcs/; revision=22741
* interface.cs (PopulateMethod): Fixed crash when interface method
returns not existing type (error test cs0246-3.cs).
svn path=/trunk/mcs/; revision=22739
* BuiltInDatatype.cs : Fixed some Parse() for token based datatypes.
* XmlSchemaAny.cs : set properties for cloned particle. This will fix
bugzilla #53668.
* XmlSchemaParticle.cs : copy occurence string after computation of
validated min/max occurence. This will fix bug #53667.
svn path=/trunk/mcs/; revision=22731
* XmlChar.cs : now GetPredefinedEntity() returns int and -1 for not
predefined entity names.
* DTDObjectModel.cs : DTDxxxCollection now derives from
- DTDCollectionBase that derives from DictionaryBase.
- "Literal value" and "replacement text" are handled differently.
- Throw XmlException when external entity could not be resolved.
- Return ReplacementText for EntityValue.
* DTDReader.cs :
- Support IXmlLineInfo.
- Fixed IGNORE section handling to be more strict.
- Compute replacement text on reading entity declarations.
- Don't expand char references before getting literal entity value.
- Check not allowed parameter entity inside internal subset.
- Added ValidateWhitespaceNode() to check whitespace's Validity
Constraints on external elementdecl and standalone document.
- When invalid data against its datatype was found, don't throw
parse error.
- Other code refactory.
* XmlTextReader.cs :
- Check for invalid Text pattern "]]>" should not depend on line
info since it might not be supported.
- Check referenced character's validity (WFC).
svn path=/trunk/mcs/; revision=22730
* XsdValidatingReader.cs : schemaLocation is not NMTOKENS. It is list
of anyURI. Just split names and handle as anyURI.
svn path=/trunk/mcs/; revision=22729
* cs-parser.jay (interface_accessors): Re-write actions to also
store attributes attached to get and set methods. Fix spelling
while at it.
(inteface_property_declaration): Modify accordingly.
(InterfaceAccessorInfo): New helper class to store information to pass
around between rules that use interface_accessors.
* interface.cs (Emit): Apply attributes on the get and set
accessors of properties and indexers too.
* attribute.cs (ApplyAttributes): Modify accordingly to use the
right MethodBuilder when applying attributes to the get and set accessors.
svn path=/trunk/mcs/; revision=22721
* gc.c threads.c: Make the finalizer thread a normal managed thread so
the finalizer code can use thread functionality.
* threads.c: Make some functions more robust.
svn path=/trunk/mono/; revision=22706
* sparc/tramp.c: Implement all floating point argument passing conventions in
Sparc V8. Also fix structure passing in V8.
svn path=/trunk/mono/; revision=22704
When adding a row to the row collection do not check the IndexOf(..). Instead check for rowId.
When adding a lot of rows to a large table this is a major improvemt.
svn path=/trunk/mcs/; revision=22689
* syntax.cs, interval.cs: Applied patch from Marco Cravairo
through Francois Beauchemin who reviewed on the mailing list.
This fixes bug #45976
svn path=/trunk/mcs/; revision=22684
* FromBase64Transform.cs: Fixes to what happens if a character in the
input stream is not in the lookup table. IndexOutOfRangeException was
wrong.
2004-01-31 David Sheldon <[email protected]>
* ConvertTest.cs: Added test for malformed Base64. Bug 52928
svn path=/trunk/mcs/; revision=22654
* FileSystemInfoTest.cs: Change tests for default times to
be TimeZone agnostic by conversion to universal time before
testing.
svn path=/trunk/mcs/; revision=22652
* cs-tokenizer.cs: Handle #line hidden from PDC bits.
2004-01-25 Miguel de Icaza <[email protected]>
* cs-parser.jay: Remove YIELD token, instead use the new grammar
changes that treat `yield' specially when present before `break'
or `return' tokens.
* cs-tokenizer.cs: yield is no longer a keyword.
svn path=/trunk/mcs/; revision=22625
* marshal.c (mono_marshal_get_native_wrapper): Add support for
custom marshalling of valuetypes.
* marshal.c: Fix some warnings.
svn path=/trunk/mono/; revision=22597
* Graphics.cs: Indentation fixes, removed long dangling lines and
extra spaces.
* Graphics.cs (IsVisible): Renamed variable to not use hungarian
notation.
* bitmap.c (gdip_bitmap_dispose): Add a check for own_scan0.
(GdipCreateBitmapFromScan0): Set own_scan0 flag if we own the
incoming buffer, scan0.
* gdip.h (GdipBitmapData): Add new field, own_scan0.
svn path=/trunk/mcs/; revision=22596
* expression.cs (Invocation.DoResolve): If we're a
`ConstructedType', then we're actually a generic method, so
rewrite the expr as a GenericMemberAccess.
* cs-parser.jay (member_name): Don't use `namespace_or_type_name'
here; manually parse it into a string.
svn path=/trunk/mcs/; revision=22594
* class.h (MonoGenericInst): Added `mtype_argc' and `mtype_argv'
for generic method parameters.
* reflection.c (method_encode_methodspec): Write the uninflated
signature into the methodspec table.
(mono_reflection_inflate_method_or_ctor): Ensure `res->declaring'
is always the uninflated method.
(reflection_methodbuilder_to_mono_method): Copy the generic
parameters from the MethodBuilder into `header->gen_params'.
svn path=/trunk/mono/; revision=22593
* System.Web/HttpApplicationFactory.cs: fixlet for session events hook.
* System.Web.Compilation/AspGenerator.cs: handle more possible errors
in global.asax file.
* System.Web.Compilation/BaseCompiler.cs: added utility methods for
creating <object> related properties and fields.
* System.Web.Compilation/GlobalAsaxCompiler.cs: keep around applications
and session scope objects builders. Also a list of imports and
assemblies added in global.asax.
* System.Web.Compilation/TemplateControlCompiler.cs: use base class
methods for <object> stuff.
* System.Web.UI/ApplicationFileParser.cs: check for error in directives.
Use GlobalAsaxCompiler.CompileApplicationType for compiling.
* System.Web.UI/ObjectTagBuilder.cs: load the Type and check for errors.
* System.Web.UI/TemplateParser.cs: add assemblies and imports from
global.asax.
Now we properly create accessors for session and application objects in
the application itself, pages and controls. First step for fixing
bug #53387.
svn path=/trunk/mcs/; revision=22584
FontCollection.cs: Implemented few methods.
InstalledFontCollection.cs: Implemented few methods.
PrivateFontCollection.cs: Implemented few methods.
svn path=/trunk/mcs/; revision=22582
* DTDReader.cs : Added Normalization. Parameter Entity declaration
should block invalid characters. (GEDecl should be fixed as well.)
* XmlConstruct.cs : Should allow surrogate chars.
* XmlNotation.cs : When prefix is empty (i.e. almost all cases)
Name should not add ':'. Patch by Boris Kirzner.
* XmlTextReader.cs : Modified private ReadCharacterReference() to
return the character (or -1 when should not return anything).
Now Text character reference are checked their character range.
Set DTDReader.Normalization as well as the reader itself.
svn path=/trunk/mcs/; revision=22580
2004-01-26 Joerg Rosenkranz <[email protected]>
* System.Data.OracleClient.Oci/OciCalls.cs:
Changed binding of OciStmtPrepare from string
to byte [].
* System.Data.OracleClient.Oci/OciDefineHandle.cs:
Character types are converted using UTF8 encoding.
* System.Data.OracleClient.Oci/OciStatementHandle.cs:
SQL statement to be prepared is converted to byte
array using UTF8 encoding.
svn path=/trunk/mcs/; revision=22579
* DateTimeTest.cs: Added a new unit test (X509Certificate) to better
detect regressions in DateTime. See bugzilla entry #53461.
svn path=/trunk/mcs/; revision=22578
* typemanager.cs (TypeManager.IsEqual): New static method.
(TypeManager.FilterWithClosure): Call TypeManager.IsEqual() to
check for equality instead of using `=='.
svn path=/trunk/mcs/; revision=22575
* XmlDocumentTypeTests.cs : Added IncorrectInternalSubset().
* XmlNodeTests.cs : Since .NET 1.1 also prohibits multiple document
element, removed extraneous test switch for InsertBefore().
* XsdParticleValidationTests.cs,
XsdValidatingReaderTests.cs : These test class names are too
ambiguous so just renamed them. (No bug reports are found on them,
but should be warned in the meantime.)
svn path=/trunk/mcs/; revision=22568
* DTDReader.cs : Make sure that parameter entities are not allowed
inside internal subset unless it appears as a markupdecl.
* DTDValidatingReader.cs : ENTITY or ENTITIES type attributes must have
a value that indicates *unparsed* entity (i.e. NDATA required).
svn path=/trunk/mcs/; revision=22567
* SecurityElementTest.cs: Added new tests for duplicate attributes
and multiple attribute order and ToString representation.
svn path=/trunk/mcs/; revision=22562
* SecurityElement.cs: Attributes are now kept in an ArrayList (but
still returned in an Hashtable) so the attributes order can be
kept like MS implementation (but Hashtable cannot guarantee this).
svn path=/trunk/mcs/; revision=22561
* Exception.cs: Changed ToString to remove the \n when no stack trace
is present (which fixed a unit test for SecurityException). Changed
all \n to Environment.NewLine.
svn path=/trunk/mcs/; revision=22558
* AspGenerator.cs: use the Cache to store compiled Types. Don't parse
pages more than once. Thanks to Eric Lindvall for pointing this out.
svn path=/trunk/mcs/; revision=22557
* NumberFormatInfo.cs: InitPatterns: it seems that the patterns in
ICU use digitPattern, not zeroPattern for the spaces after the
decimal point.
svn path=/trunk/mcs/; revision=22554
* FileIOPermissionTest.cs: Converted to NUnit2. Added a test to show a
strange behaviour (short/long path) - ignored for now.
svn path=/trunk/mcs/; revision=22548
* FileIOPermissionAttributeTest.cs: Removed GetTempPath from the tests
as the introduced failures weren't related to the class (test moved to
FileIOPermissionTest.cs).
svn path=/trunk/mcs/; revision=22546
* DefaultContext.cs : Avoid exception if possible.
* Iterator.cs : Fixed PrecedingSiblingIterator.MoveNext(). When the
nav was positioned at the first, it incorrectly points itself.
Don't add names to name table while it is useless and expensive.
svn path=/trunk/mcs/; revision=22544
* AssemblyBuilderTest.cs (TestCustomAttributes): Remove
KeyFileAttribute from the test, since it must point to a valid keyfile.
svn path=/trunk/mcs/; revision=22539
* AppDomainSetupTest.cs: When I run this on .NET the AppBase uses the
temp dir. Perhaps a different runner gives different results? I'm
using 'make run-test' from the mcs directory.
svn path=/trunk/mcs/; revision=22537
parameter of type enum.
* XmlAttributeAttribute.cs: little fix.
* XmlCodeExporter.cs: Support XmlAnyAttribute when generating attributes
for method parameters.
* XmlMemberMapping.cs: Improved support for members of type "any".
* XmlReflectionImporter.cs: Improved assignment of the attribute form.
If the namespace is explicitly specified, then the form should be
qualified. Also fixed issues with the namespace assigned to attributes.
This should fix bug #53384.
* XmlSchemaExporter.cs: ExportMembersMapping(): improved support for
methods that return values of type "any". Changed the methods
AddSchemaArrayElement and AddSchemaElement, so instead of adding the
element, return it, and the caller must add it to the collection.
Other fixes in attribute generation.
* XmlSchemaImporter.cs: ImportAnyType(): if a type name is provided,
generate the AnyType mapping from the type described in the schema.
Small fixes regarding IsMixed property of complex types (it means that
the type can contain text, so the XmlTextAttribute must be generated).
* XmlSerializationReaderInterpreter.cs: Reading of members by-order must
be only used in the bare+encoded format.
svn path=/trunk/mcs/; revision=22533
"any" as return type. In this case, the part of the return message contains
a reference to the type that describes the "any" element.
svn path=/trunk/mcs/; revision=22531
* DTMXPathDocumentBuilder.cs : Namespace nodes are incorrectly created.
This fix should make XPathDocument compatible with XmlDocument.
svn path=/trunk/mcs/; revision=22529
* Calendar.cs: when rendering days, add a LiteralControl containing the
day before OnDayRender is called. Only generate the default links for
days when IsSelectable is true after OnDayRender. Fixes bug #53372.
svn path=/trunk/mcs/; revision=22526
* CodeGroup.cs: Now use Activator for [Named]PermissionSet. Change
Equals so it can compile with mcs.
* PolicyLevel.cs: Minor changes to use the new empty constructors in
[Named]PermissionSet.
svn path=/trunk/mcs/; revision=22522
* DTMXPathDocument.cs : CreateNavigator() should return the first root
as a clone.
* DTMXPathNavigator.cs : ComparePosition() incorrectly compared
attributes and namespaces orders. Implemented IsSamePosition() more
efficient. MoveToFirstNamespace() should return false when the
current node is either attribute or namespace. Fixed IsDescendant()
which looks resulted in incorrect behavior.
svn path=/trunk/mcs/; revision=22517
switch, so we can draw simple paths (lines) now. For more complex
curves, the array is holding some NaNs, so I'll need to look into
that.
svn path=/trunk/mcs/; revision=22512
* loader.c (mono_lookup_pinvoke_call): Disable trimming of .dll
extension since it does not work with libraries named lib<FOO>.dll.so.
svn path=/trunk/mono/; revision=22510
* DTDObjectModel.cs :
- DTDNode's BaseURI should not always refer to that of DTD's.
- Use absolute URI's .ToString() instead of AbsolutePath.
* DTDReader.cs : Throw XmlException for illegal character references.
* DTDValidatingReader.cs :
- Share XmlResolver when the actual reader is XmlTextReader.
(MS's XmlValidatingReader and XmlTextReader do this.)
- Added its own EntityHandling property.
* XmlValidatingReader.cs : Share XmlResolver with XmlTextReader.
* XmlReader.cs,
XmlTextReader.cs : Added new NET_1_2 members.
* XmlElement.cs : Removed extra lines (caused by XmlTextWriter bugs).
* XmlEntityReference.cs : Forgot to add, the real fix by Boris.
svn path=/trunk/mcs/; revision=22509
* XsdParticleValidationState.cs :
- Now it uses ContentTypeParticle as inputs, so no GroupRef
should occur anymore.
- xs:any should use ResolvedProcessContents. It fixes some errors.
* XsdValidatingReader.cs :
- Attribute wildcard validation should use ResolvedProcessContents.
- Use newly added XmlResolver field to resolve external schemas
specified by xsi:schemaLocation attributes.
- Added warning handler and raise warning events when instance-
specified schemas could not be resolved.
- xs:anyType should not be treated as a primitive datatype at
xsi:type resolution.
- Schema type was incorrectly remained when the element is laxly
validated.
svn path=/trunk/mcs/; revision=22508
* XmlSchema.cs : Raise warning event when external schema could not
be resolved.
* XmlSchemaAll.cs : Fixed incorrect IsEmptiable computation.
* XmlSchemaAny.cs : Fixed incorrect occurence computation.
* XmlSchemaChoice.cs : compiledItems were incorrectly appended.
* XmlSchemaComplexType.cs : Now validatableParticle became extraneous.
* XmlSchemaGroupBase.cs : Here we should not get optimized particle
because it might cause infinite loop.
* XmlSchemaGroupRef.cs : Fixed Validate() to avoid null reference
exception (only occur with ValidationEventHandler). Fixed Occurence
embedding logic that was useless because of particle optimization.
svn path=/trunk/mcs/; revision=22507
* WebConnection.cs: patch by Yaacov Akiba Slama that fixes 100-continue
handling for the case when the same packet also contains the actual
[2-5]xx response.
svn path=/trunk/mcs/; revision=22503
* dis/main.cs (--show-tokens): New command line argument to show
type tokens in the disassembly.
* dis/get.c (get_typedef, get_typespec, get_typeref): If
`show_tokens', include the token in the type name.
(get_type): Do some type parsing here and include the token in the
returned type name if requested.
(get_method): Include tokens if requested.
svn path=/trunk/mono/; revision=22502
* decl.cs (DeclSpace.CurrentType): New public field.
* expression.cs (This.ResolveBase): If we have an
`ec.TypeContainer.CurrentType', use it instead of
`ec.ContainerType'.
* class.cs (TypeContainer.DefineType): If we're a generic type,
create the `CurrentType' (unresolved).
(TypeContainer.GenericType): New private field.
(TypeContainer.DefineMembers): If we have a `CurrentType', resolve
it and store it in `GenericType' before creating the MemberCache.
(TypeContainer.GetMembers): If we have a `GenericType', call
TypeManager.FindMembers() on it.
* interface.cs (Interface.GenericType): New private field.
(Interface.DefineType): If we're a generic type, create the
`CurrentType' (unresolved).
(Interface.DefineMembers): If we have a `CurrentType', resolve it
and store it in `GenericType' before creating the MemberCache.
(Interface.GetMembers): If we have a `GenericType', call
TypeManager.FindMembers() on it.
svn path=/trunk/mcs/; revision=22494
* graphics.c: Use C style comments instead of C++ style.
* pen.c (clone_dash_array): new helper function.
(GdipClonePen): Copy matrix and dash_array, removed the FIXME.
svn path=/trunk/mcs/; revision=22493
* AssemblyBuilder.cs: Save will now strongname the assembly is (a) a
StrongName is present and (b) the signature isn't delayed.
svn path=/trunk/mcs/; revision=22492
DataColumn.cs : Added a method to retrive AutoIncrement value.
XmlDataLoader.cs : Set the value of the foriegn key column, according to the value of the
parent table column.
XmlDiffLoader.cs : Convert the value comming from the xml.
XmlSchemaMapper.cs (Read) : Set the DataSet namespace.
ReadXmlSchemaSequence) : Change the logic that decides if this element is a column or a table.
(ReadXmlSchemaElement) : Set the locale of the dataset.
(ReadColumn) : Set the column type. Find if the column is AutoIncrement.
(GetColumnType) : New method to get the column type from the attribute value.
(ReadXmlSchemaUnique) : Improve parsing of XPath. Set the constraint as a PK if needed,
and add the constraint to the table.
(ReadXmlSchemaKeyref) : Improve parsing of XPath. Create the FK constraint and add it to
the table.
DataSet.cs : Improving writing of unique constraints, and foriegn key constraint. Givving them the correct names.
Writing more information to the schema for interoperability with ms.net.
Improve diffgarm writing mode.
svn path=/trunk/mcs/; revision=22491
* class.c (mono_class_inflate_generic_type): Added support for
MONO_TYPE_GENERICINST.
* reflection.c (mono_reflection_inflate_method_or_ctor): Also
inflate methods on open constructed types.
svn path=/trunk/mono/; revision=22474
* Test/System.Security.Policy/PublisherTest.cs, SiteTest.cs:
Changed "\r\n" in strings to use Environment.NewLine.
* System.Security/SecurityElement.cs: Changed indentation in ToString, it seems
MS indent by 3 spaces, not 4. Also added NewLine to childless
elements.
svn path=/trunk/mcs/; revision=22473
* Socket.cs: handle WSAEWOULDBLOCK for non-blocking sockets. Fixes
bug #53168. Avoid the creation of the ManualResetEvent in class Worker
whenever possible.
svn path=/trunk/mcs/; revision=22470
* SecurityElement.cs: Changed newline distribution in ToString.
Matches MS better.
* CodeAccessPermissionTest.cs (To_String): Compared
Environment.NewLine rather than "\r\n"
svn path=/trunk/mcs/; revision=22465
* Socket.cs: if we have a pending async event, delay socket closing
until EndX is called. Fixes bug #53229. Check parameters and if the
socket has been disposed. Implemented IDisposable explicitly. The
threads created have IsBackground = true now.
svn path=/trunk/mcs/; revision=22464
* FileSystemTest.cs:
Correcting expected exception type in TestDir to match MS' behaviour
* CollectionTest.cs
Correcting expected exception type in Exception #E19 to match MS' behaviour
* DateAndTimeTest.cs:
Correcting expected WeekDay values for many asserts to match MS' behaviour
Correcting expected exception type in DateValue "#DV03" to match MS' behaviour
WeekdayName Test assumed FirstDayOfWeek.System to always be the same, but it is user configurable,
test with FirstDayOfWeek.Monday instead
TimeValue Test wrongly wanted to receive the parsed time as happening today,
instead it comes in day 1/1/1 (timescale-zero)
svn path=/trunk/mcs/; revision=22461
to be derived types of the one that has the attribute.
* XmlReflectionImporter.cs: Recursively register the derived maps of a given
map to the parent map. This fixes#53246.
* XmlSerializationWriter.cs: Some fixes regarding empty namespaces.
svn path=/trunk/mcs/; revision=22457
* Methods.cs: Default binding for a method must be null.
* SoapHeaderDirection.cs: Added missing enum value.
* SoapMessage.cs: Added missing property.
* TypeStubManager.cs: Removed unneded check from AddBinding.
In GetBinding(), return default binding if name is null.
* ValueCollectionParameterReader.cs: IsPrimitive must be internal.
svn path=/trunk/mcs/; revision=22455
un one soap extension.
* HttpSimpleProtocolImporter.cs: Made class internal.
* HttpSimpleProtocolReflector.cs.cs: ReflectMethodBinding(): GET and POST
do not use method bindings. Return null.
* ProtocolReflector.cs: Several fixes: do not generate binding if it doesn't
have any operation, avoid port and binding name colisions, and other minor
fixes.
* ServiceDescription.cs: Collect the namespaces to be added to the root
element of a serializaed wsdl document from the soap extensions.
* ServiceDescriptionSerializerBase.cs: Made classes internal.
* SoapAddressBinding.cs, SoapFaultBinding.cs, SoapOperationBinding.cs,
SoapProtocolImporter.cs: Class should not be sealed.
* SoapBodyBinding.cs: Set the correct class attributes.
* SoapHeaderBinding.cs: Class should not be sealed. Added missing method.
* SoapHeaderFaultBinding.cs: Fixed class attributes.
svn path=/trunk/mcs/; revision=22454
* jscript-lexer-parser.g: formal_param_list receives a parent too.
* SymbolTable.cs: added size and current_symbols properties.
* JSLocalField.cs: don't throw not ImplementedException from
constructor (same reason, testing purposes, must get implemented
for real).
* IdentificationTable.cs: added num_of_locals and current_locals properties.
* FunctionDeclaration.cs: added a LocalBuilder and DictionaryEntry
as fields. Not throw NotImplementedException for
JScriptFunctionDeclaration (testing purposes, must get implemeted
for real). Let's build our function closures! Added functions:
build_closure and build_closure_nested, build_local_fields. Keep
track of current parameters and locals defs.
* FormalParameterList.cs: made FormalParam inherit from
AST. Implement the Emit for parameters, yeah!
* CodeGenerator.cs: added a ModuleBuilder reference. New constructor.
* Closure.cs: do not throw the exception (this allow me to run the
tests at mcs/jtests and check that at least i'm not generating
invalid CIL). Be aware that this must be really implemented.
* Block.cs: renamed field, and implement the double pass for
nested function declarations code emittion, yeah!.
svn path=/trunk/mcs/; revision=22449
* configure.in, acconfig.h: check for truncl. Disable
version script on MacOSX (see bug #51590 if a check becomes
necessary).
svn path=/trunk/mono/; revision=22445
* socket-io.c: include the new socket-wrappers.h header.
Use the wrappers instead of the unix socket functions to make the code
more clear.
svn path=/trunk/mono/; revision=22444
* XmlWriter.cs, XmlTextWriter.cs :
Several namespace related fixes.
- Current element's NamespaceURI should be immediately available
after the call of WriteStartElement() for LookupPrefix(), so
AddMissingElementXmlns() only affects on output. This is
now identified by shouldCheckElementXmlns field.
- Attribute's overraped xmlns should be ignored for LookupPrefix(),
Especially, when the owner element is written with the default
namespace. HOWEVER, the attribute should be *written*. This is
identified by shouldAddSavedNsToManager field.
- In AddMissingElementXmlns(), non-empty prefix namespace was not
checked user-written attributes.
- XmlWriter.WriteAttributeString() never supplies namespace URI for
xmlns attributes for other versions than NET_1_0. Instead, added
ns check logic in WriteStartAttribute() only with NET_1_0.
- WriteEndAttribute() should reject zero-length namespace for
non-default xmlns declarations.
- LookupPrefix() should reject argument null and empty.
svn path=/trunk/mcs/; revision=22442
* jit-icalls.c (mono_fconv_ovf_i8): Call truncl before comparison, so
we don't throw exceptions when converting 1.1 to a long. Fixes#53250.
svn path=/trunk/mono/; revision=22437
* FileStreamTest.cs: CtorArgumentOutOfRangeException4, we were
testing for this ecveption, but the other parameters were also
invalid. Made them correct. We don't care that MS throw
exceptions in a different order do we?
svn path=/trunk/mcs/; revision=22424
* DirectoryTest.cs: Added Ignore to the CreationTime tests,
as Unix filesystems don't support them. Should we only ignore
them on Unix?
svn path=/trunk/mcs/; revision=22414
* AppDomainSetupTest: Changed test 3 to test that the
appdomain is relative to the current dir, rather than
the temp dir. This is what the MS runtime appears to
give, and handily is what we do too.
svn path=/trunk/mcs/; revision=22413
* reflection.c (mono_image_create_pefile): Handle the case when the
entry point is not a MethodBuilder. Hopefully I get it right this time.
* reflection.h (MonoReflectionAssemblyBuilder): Change 'entry_point'
field to ReflectionMethod since it is not allways a builder.
* reflection.c (type_get_fully_qualified_name): New helper function to
return the fully qualified name of a type.
* reflection.c (encode_marshal_blob): Always emit the fully qualified
type name for custom marshallers.
* reflection.c (mono_marshal_spec_from_builder): Ditto.
svn path=/trunk/mono/; revision=22409
* BuiltInDatatype.cs : On parsing QName, we don't have to spend costs
on Add()ing parsed name to name table.
* XmlSchemaUtil.cs : Added IsBuiltInDatatypeName().
* XmlSchemaAttribute.cs, XmlSchemaComplexType.cs,
XmlSchemaElement.cs, XmlSchemaSimpleContentExtension.cs,
XmlSchemaSimpleContentRestriction.cs, XmlSchemaSimpleTypeList.cs :
Use the method above instead of Namespace string comparison.
(it will be required to validate schema for schemas.)
* XmlSchemaComplexType.cs : Type Derivation OK (3.4.6) should also
treat null base type as anyType. Derivation Valid Restriction
(3.4.6) should allow base type wildcard absense in case of anyType.
svn path=/trunk/mcs/; revision=22406
* Added UtilsTest.cs:
More tests (with bidimensional arrays) for Utils.CopyArray undocumented runtime function,
they are still failing tests
svn path=/trunk/mcs/; revision=22404
* class.c (mono_class_setup_vtable): If a parent class already
implements an interface, use the implementing methods from that class.
Fixes#53148.
svn path=/trunk/mono/; revision=22399
* XmlSchema.cs : When we have schema A which includes schema B which
includes schema C (i.e. A->B->C), C components should be compiled.
Here, same URL inclusions are ignored.
* XmlSchemaElement.cs : Hack for missing substitution-group fix.
* XmlSchemaSimpleTypeContent.cs : make actualBaseSchemaType private
and initialize. This fixes bug #53178.
* XmlSchemaSimpleTypeUnion.cs : Forgot to commit ;)
svn path=/trunk/mcs/; revision=22389
* io-layer/io.c:
(FindFirstFile): unlock the handle if FindNextFile fails.
(FindNextFile): g_free a couple of pointers before retrying.
* io-layer/wait.c:
(WaitForMultipleObjects): if only one handle provided, use
WaitForSingleObject.
* utils/strenc.c:
(mono_unicode_from_external): UTF8 is the default, not the preferred
encoding, ie, try MONO_EXTERNAL_ENCODINGS first. When "default_locale"
was passed in the env. var., it always failed because we were passing
"default_locale" to g_convert. Also fixed the byte count for non-UTF8
conversions.
(mono_utf8_from_external): UTF8 is the default, not the preferred one.
Fixes bug #53166.
svn path=/trunk/mono/; revision=22385
* cs-parser.jay (namespace_or_type_name): Return an Expression,
not a QualifiedIdentifier. This is what `type_name_expression'
was previously doing.
(type_name_expression): Removed; the code is now in
`namespace_or_type_name'.
(qualified_identifier): Removed, use `namespace_or_type_name'
instead.
(QualifiedIdentifier): Removed this class.
svn path=/trunk/mcs/; revision=22382
* Thread.cs: delayed thread creation until Start is called. If we
don't do that and Start() is not called, the thread is leaked. First
step towards fixing bug #53078.
svn path=/trunk/mcs/; revision=22377
* Fixed a bug with protocol version handling from connections coming from pool. Actual protocol version used wasn't being reset. Thanks Jackson Harper (jackson at ximian dot com) for getting it!!
svn path=/trunk/mcs/; revision=22370
* ecore.cs (FieldInfo.AddressOf): Revert patch from previous
#52730 bug, and instead compute correctly the need to use a
temporary variable when requesting an address based on the
static/instace modified of the field and the constructor.
svn path=/trunk/mcs/; revision=22363
* DefaultWatcher.cs: implemented.
* FAMWatcher.cs: don't stop the thread when we add a new watch.
* FileSystemWatcher.cs: on windows we use the default watcher by now.
svn path=/trunk/mcs/; revision=22362
* XmlHierarchyData.cs: Make this compile with csc.
* BulletedList.cs (BulletedList.SelectedItem): Removed the `set'
accessor since the base class doesn't have one.
svn path=/trunk/mcs/; revision=22360
* ecore.cs (SimpleName.ResolveAsTypeStep): Lookup in the current
class and namespace before looking up aliases. Fixes#52517.
svn path=/trunk/mcs/; revision=22358
importers to make sure that no data classes are created with the same
name as the web service.
* ProtocolImporter.cs: Use port name as class name only if there is more
than one port using the same protocol. This fixes big #52742.
svn path=/trunk/mcs/; revision=22341
* icall.c (ves_icall_System_Reflection_Module_Close): Prevent assertion
when closing resource modules.
* reflection.c (mono_image_create_pefile): Handle the case when the
entry point is not a MethodBuilder.
* reflection.h (MonoReflectionAssemblyBuilder): Change 'entry_point'
field to ReflectionMethod since it is not allways a builder.
svn path=/trunk/mono/; revision=22332
* typemanager.cs (CSharpSignature): Now reports also inner class name.
(CSharpSignature): New method for indexer and property signature.
svn path=/trunk/mcs/; revision=22330
Do not set the child column to be AutoIncrement.
Create the new column for the relation as MappingType.Hidden so they will not be serialized
when writing the dataset to xml.
svn path=/trunk/mcs/; revision=22328
* cs-parser.jay: Fixed problem where the last assembly sttribute
has been applied also to following declaration (class, struct, etc.)
svn path=/trunk/mcs/; revision=22325
* XmlSchema.cs :
- Removed extra property Language. Fill substitution-group info
before ContentTypeParticle is computed.
* XmlSchemaComplexType.cs : ContentType and ContentTypeParticle are
now computer before Validate() (to exclude 3.4.2 from 3.4.6
component constraint check).
* XmlSchemaObject.cs, XmlSchemaParticle.cs :
Added CopyInfo() for cloning objects.
* XmlSchemaObjectTable.cs :
Add() doesn't have to reject same named items.
* XmlSchemaParticle.cs :
- Renamed internal class XmlSchemaParticleEmpty to EmptyParticle
(for ease of post compilation infoset comparison).
- GetMinEffectiveTotalRange() should return max occurs for element and
any.
* XmlSchemaParticle.cs,
XmlSchemaAll.cs,
XmlSchemaAny.cs,
XmlSchemaChoice.cs,
XmlSchemaElement.cs,
XmlSchemaGroupBase.cs,
XmlSchemaGroupRef.cs,
XmlSchemaSequence.cs :
- Removed ActualParticle property.
- Added GetOptimizedParticle() to get ContentTypeParticle.
- ContentTypeParticle is now created as different object from
user-specified "Particle" property.
- Return Empty particle when model groups contains no Items.
- When Items contains exactly 1 item, return the item (unless it is
top level choice model group - it causes DBR problem).
- ValidateDerivationValidRestriction() and related WXS 3.9.6 DBR
check methods such as ValidateNSRecurseCheckCardinality() now
returns a bool value and avoids exceptions on each failure time.
- ValidateRecurse() now doesn't progress base particle incorrectly.
(it caused incorrect order-preserving-mapping error.)
- 3.9.6 Recurse, RecurseLax, MapAndSum are now treated as different.
* XmlSchemaAll.cs : occurence validation shoud be done against values
after computation (ValidatedMaxOccurs).
* XmlSchemaChoice.cs : When Items is empty, then invoke warning event.
* XmlSchemaElement.cs :
- Consider referencedElement also for SubstitutionGroupElement.
- Removed SubstitutingChoice which is not in use.
- when it was targeted as substitution group by other elements, its
ContentTypeParticle should be substitution choice (see 3.9.6
Particle Valid (Restriction) term 2.1).
- Added FillsubstitutionElementInfo() (see XmlSchema.cs above).
* XmlSchemaGroup.cs : Removed extra check on model group (because it
is impossible to specify non-model-group particle).
* XmlSchemaIdentityConstraint.cs,
XmlSchemaKey.cs,
XmlSchemaKeyRef.cs,
XmlSchemaUnique.cs : Removed extraneous MonoTODO.
* XmlSchemaSimpleContent.cs : Made actualSchemaType as internal.
* XmlSchemaSimpleType.cs : Removed extraneous new Datatype property.
* XmlSchemaSimpleTypeRestriction.cs : Renamed actualBaseSchemaType to
ActualBaseSchemaType.
* XmlSchemaSimpleTypeList.cs, XmlSchemaSimpleTypeUnion.cs :
Removed unused actualBaseSchemaType code.
* XmlSchemaType.cs : use recently introduced BaseXmlSchemaType.
* XmlSchemaUtil.cs : Removed unused CheckLanguage().
svn path=/trunk/mcs/; revision=22323
* XsdKeyTable.cs : Matching evaluation is incorrect when path is more
than depth 2.
* XsdValidatingReader.cs : Should clear LocalTypeDefinition when no
xsi:type was specified.
Moved character validation inside AssessEndElementSchemaValidity().
svn path=/trunk/mcs/; revision=22319
* StreamWriter.cs, TextWriter.cs: comply with the documented
behaviour and use a decode buffer to improve performance.
svn path=/trunk/mcs/; revision=22315
* codegen.cs (EmitContext): Removed `InTry', `InCatch',
`InFinally', `InLoop', `TryCatchLevel', `LoopBeginTryCatchLevel'
and `NeedExplicitReturn'; added `IsLastStatement'.
(EmitContext.EmitTopBlock): Emit the explicit "ret" if we either
have a `ReturnLabel' or we're not unreachable.
* flowanalysis.cs (FlowBranching.MergeChild): Actually merge the
child's reachability; don't just override ours with it. Fixes
#58058 (lluis's example).
(FlowBranching): Added public InTryOrCatch(), InCatch(),
InFinally(), InLoop(), InSwitch() and
BreakCrossesTryCatchBoundary() methods.
* statement.cs (Return): Do all error checking in Resolve().
Unless we are the last statement in a top-level block, always
create a return label and jump to it.
(Break, Continue): Do all error checking in Resolve(); also make
sure we aren't leaving a `finally'.
(Block.DoEmit): Set `ec.IsLastStatement' when emitting the last
statement in a top-level block.
(Block.Flags): Added `IsDestructor'.
(Block.IsDestructor): New public property.
svn path=/trunk/mcs/; revision=22311
Merge a few bits from the Anonymous Method MCS tree.
* statement.cs (ToplevelBlock): New class for toplevel methods,
will hold anonymous methods, lifted variables.
* cs-parser.jay: Create toplevel blocks for delegates and for
regular blocks of code.
svn path=/trunk/mcs/; revision=22310
* marshal.c (mono_marshal_get_managed_wrapper):
mono_marshal_alloc takes native int so CONV_I
the arg for 64bits.
svn path=/trunk/mono/; revision=22307
* statement.cs (Statement.ResolveUnreachable): New public method.
(If, While): Do the dead-code elimination in Resolve(), not in Emit().
(Block.Resolve): Resolve unreachable statements.
svn path=/trunk/mcs/; revision=22294
* Added set of Post Schema Compilation Information tests, i.e.
xs-psci-compare.cs and psci-ms-all.zip.
* Makefile: Added test-psci target.
* README: Added notes on PSCI tests (however it is not for today's
implementation, but for the very near future with bunch of fixes)
svn path=/trunk/mcs/; revision=22290
* SchemaDataValueType.cs : UriValueType.ToString() should return
actual URI string (as MS's XmlSchemaUri class does).
* XmlSchemaReader.cs : Make it internal.
svn path=/trunk/mcs/; revision=22288
* XsdParticleValidationState.cs : Use ValidatedMaxOccurs instead of
MaxOccurs. (in the meantime)
* XsdValidatingReader.cs : "fixed" should not be treated as default.
* XsdWildcard.cs : several Wildcard Subset constraint related fixes.
svn path=/trunk/mcs/; revision=22287
* XmlNode.cs : When adding a node to child list, it should reject its
ancestors. Patch by Boris Kirzner.
* XmlNodeReader.cs : Related fix to the fix above. It should not move
to children of XmlEntityReference nodes.
* XmlTextWriter.cs : FixedWriteStartElement() not to write default
namespace when ns is null (while ns is "", it writes default ns).
* XmlElement.cs : Fixed WriteTo() to call WriteStartElement(localName)
when NamespaceURI is an empty string.
svn path=/trunk/mcs/; revision=22286
* System.IO/Path.cs: add the trailing directory separator only for
volumes. Fixes bug #53035.
* Test/System.IO/PathTest.cs: tests for bug 53035 and 52735.
svn path=/trunk/mcs/; revision=22283
release, so I haven't been spending a lot of time on
GraphicsPath. Rather than letting my changes go stale, I'll commit
them now while they are still in a compilable state.
* GraphicsPath.cs: Implemented. Still needs testing, though.
Particular the PathPoints property, I ran into a P/Invoke problem,
I need to first fix that before I can go on with the rest of the testing.
* gdipFunctions.cs: Import functions for GraphicsPath.
* graphics-path.c (GdipGetPathPoints): Fixed.
(GdipCreatePath): Remember to initialize the arrays instead of
just setting them to NULL.
(GdipGetPathTypes, GdipGetPathPoints): Fix signature.
* Makefile (local_sources): Add graphics-path.c to the build.
* Matrix.cs (Matrix): Removed reference to GpRect/GpRectF.
* Bitmap.cs (LockBits):
* Graphics.cs (DrawString): Removed reference to GpRectF.
* gdipStructs.cs (GpRectF, GpRect, GpPointF, GpPoint):
Removed. Didn't know that structs are laid out sequentially by
default. We don't need these anymore.
svn path=/trunk/mcs/; revision=22282
* loader.c: don't trim ".dll" before looking up in the config file.
Don't leak orig_scope. Reopened bug #22532 in the meanwhile.
svn path=/trunk/mono/; revision=22279
service.
* TypeStubManager.cs: When adding a binding, ignore it if it has already
been added. Changed WebServiceLiteralNamespace by the method
GetWebServiceLiteralNamespace. The literal namespace depends on the binding
namespace, so it has to be provided as parameter.
* XmlReturnReader.cs, XmlReturnWriter.cs: Use GetWebServiceLiteralNamespace
instead of WebServiceLiteralNamespace.
svn path=/trunk/mcs/; revision=22273
Use GetWebServiceLiteralNamespace instead of WebServiceLiteralNamespace.
* ProtocolReflector.cs: Port names must be unique in a service description.
This fixes bug #53019.
* ProtocolImporter.cs: Little fix.
svn path=/trunk/mcs/; revision=22272
* Assembly.cs (GetManifestResourceStream): Make the IntPtrStream keep
a reference on the Module object which contains the resource.
svn path=/trunk/mcs/; revision=22267
* icall.c (ves_icall_System_Reflection_Assembly_GetManifestResourceInternal):
Return the module which contains the resource as well.
(ves_icall_System_Reflection_Module_Close): New icall.
* appdomain.c: Bump corlib version number.
svn path=/trunk/mono/; revision=22264
* expression.cs: We need to fix the case where we do
not have a temp variable here.
* assign.cs: Only expression compound assignments need
temporary variables.
svn path=/trunk/mcs/; revision=22260
* mini-ppc.h: export ppc_patch().
* mini-ppc.c: call convention fixes. Added assert in ppc_patch().
* tramp-ppc.c: call convention fixes: Linux/PPC support should be
on par or better than on MacOSX.
svn path=/trunk/mono/; revision=22256
* flowanalysis.cs: Reduce memory allocation in a few ways:
- A block with no variables should not allocate a bit
vector for itself.
- A method with no out parameters does not need any tracking
for assignment of the parameters, so we need not allocate
any data for it.
- The arrays:
public readonly Type[] VariableTypes;
public readonly string[] VariableNames;
Are redundant. The data is already stored in the variable
map, so we need not allocate another array for it.
- We need to add alot of checks for if (params | locals) == null
due to the first two changes.
svn path=/trunk/mcs/; revision=22254
* object.h: Added async_callback field in MonoAsyncResult.
* marshal.c: In mono_delegate_begin_invoke, set the value of async_callback.
* verify.c: Added async_callback in MonoAsyncResult layout.
svn path=/trunk/mono/; revision=22250
uses IsAssignableFrom(o.GetType()), which is not always valid for
transparent proxies (because GetType will not return the type of the remote
object if its assembly is not present).
svn path=/trunk/mcs/; revision=22249
I thought that async_delegate was the callback, but it is not, it is the
delegate upon which the async call was invoked. This fixes bug #53020.
* StackBuilderSink.cs: If the target object is a proxy, make the call
using the Invoke method of the real proxy.
svn path=/trunk/mcs/; revision=22246
of a new identity. This fixes bug #52921.
* ServerIdentity.cs: Allow the creation of server identities that
represent a custom proxy instead of a real object.
svn path=/trunk/mcs/; revision=22245
* mini.c (optimize_branches): Add an upper bound to the number of
iterations to prevent infinite loops on strange loops. Fixes#53003.
svn path=/trunk/mono/; revision=22240
* ecore.cs (FieldExpr.AddressOf): For ValueTypes that do not
implement IMemoryLocation, we store a copy on a local variable and
take the address of it. Patch from Benjamin Jemlich
svn path=/trunk/mcs/; revision=22234
* cs-parser.jay: Applied patch from Ben Maurer to the "type" rule
to use a special "type_name_expression" rule which reduces the
number of "QualifiedIdentifier" classes created, and instead
directly creates MemberAccess expressions.
svn path=/trunk/mcs/; revision=22225
* FileStream.cs: Locking from bug #32344 removed. This is not
necessary because the correct fix was actually in the console.
This fixes bug #53026. Miguel de Icaza reviewed/approved this
patch.
svn path=/trunk/mcs/; revision=22224
* FloatingPointFormatter.cs: Skip the decimal point if we have an
integer mantassa. So: 1E+15, rather than 1.E+15.
svn path=/trunk/mcs/; revision=22221
* Array.cs (GetValue/SetValue): Throw NullRef exception like .NET 1.1,
even though docs say it should be an ArgumentNull. Two test cases now
pass. See also nickd's commit of 2003-12-24.
svn path=/trunk/mcs/; revision=22220
* convert.cs: Applied patch from Benjamin Jemlich ([email protected])
that fixes#52853 Null literal assignment to ValueType
svn path=/trunk/mcs/; revision=22211
* class.cs (MethodData.Emit): Instead of checking the name of the
method to determine if its a destructor, create a new derived
class from Method called Destructor, and test for that.
* cs-parser.jay: Create a Destructor object instead of a Method.
Based on a fix from Benjamin Jemlich ([email protected])
Fixes: 52933
svn path=/trunk/mcs/; revision=22209
* Added initial support for connection pool.
* Fixed Connection testsuite for nested transactions with connection pool.
* Removed some finalizers which were causing segmentation fault.
svn path=/trunk/mcs/; revision=22203
2004-01-16 Miguel de Icaza <[email protected]>
* expression.cs (Binary.ResolveOperator): Perform an implicit
conversion from MethodGroups to their delegate types on the
Addition operation.
* delegate.cs: Introduce a new class DelegateCreation that is the
base class for `NewDelegate' and `ImplicitDelegateCreation',
factor some code in here.
* convert.cs (Convert.ImplicitConversionStandard): Add an implicit
conversion from MethodGroups to compatible delegate types.
* ecore.cs (Expression.Resolve): Do not flag error 654
(Methodgroupd needs parenthesis) if running on the V2 compiler, as
we allow conversions from MethodGroups to delegate types now.
* assign.cs (Assign.DoResolve): Do not flag errors on methodgroup
assignments in v2 either.
svn path=/trunk/mcs/; revision=22197
* VsaEngine.cs: added an Stack, a VsaScriptScope, do not throw exceptions for:
CreateEngineAndgetGlobalScope, GetGlobalScope, InitVsaEngine,
PopScriptObject, PushScriptObject, the reason is for being able to
run the tests at jtests. Be aware that this must get implemented yet.
svn path=/trunk/mcs/; revision=22193
* UnaryOp.cs: inherit from Exp now.
* Plus.cs: Don't throw the exception when calling constructor, let
it build the default handler. Return a new object when calling
EvaluatePlus until properly implemented.
* NumericUnary.cs: added new Resolve.
* NumericBinary.cs: assign operator val at ctr. Return a new
object when calling EvaluateNumericBinary until properly
implemented. Added Resolve.
* Equality.cs: added ctr and return false for EvaluateEquality
until properly implemented. Added Resolve's functions.
* Block.cs (Resolve): That check was not necessary.
svn path=/trunk/mcs/; revision=22190
[NOTE: This change is only forward binary compatible !
This means that this version of the symbol writer can still read
symbol files from the last mono release, but an older version of
the symbol writer can't read the new symbol files.
* MonoSymbolFile.cs (MonoSymbolFile): Removed 'FindMethod' and
'MethodLookup'.
* MonoSymbolTable.cs (MethodEntry): Don't write the method's full
name into the symbol file.
[NOTE: For the moment, the corresponding fields are still being
written into the symbol file. They'll be removed shortly before
the next mono release.]
svn path=/trunk/mcs/; revision=22179
* MonoSymbolFile.cs (MonoDebuggerSupport): As suggested by Ben
Maurer, create a delegate type for each of the methods and then
store the method.
svn path=/trunk/mcs/; revision=22178
* class.c (mono_bounded_array_class_get): New function which takes
a 'bounded' bool argument to distinguish vectors from one dimensional
arrays.
* icall.c (ves_icall_System_Array_CreateInstanceImpl): Call
bounded_array_class_get if the array has bounds.
svn path=/trunk/mono/; revision=22168
to write, but the last offset to be written. Thus, in WriteAndReadBack,
since "read" is not an offset but the number of bytes, it must be added to
the offset. Maybe it would be a good idea to change the name of the
parameter, since it is confusing. This should fix bug #52591.
svn path=/trunk/mcs/; revision=22161
* System.Text.RegularExpressions/parser.cs: an opening brace without a
quantifier do not cause a parse error. Fixes bug #52924.
* Test/System.Text.RegularExpressions/RegexBugs.cs: added test from
bug #52924.
svn path=/trunk/mcs/; revision=22160
* IdentificationTable.cs, ScriptBlock.cs: deleted debugging messages.
* jscript-lexer-parser.g: deleted debugging messages. Create a
Assign object instance of a simple Binary obj. Same case for Equality.
* expression.cs: added Exp abstract class. Classes that are ast of
language constructions that can appear as global expressions that
get evaluated and then the result is discarded inherit from this
new class. This let meee keep track of things that must get Popped
or can even avoid the evaluation of it. Wrote real Resolve method
for classes: Unary, Binary.
Implemted Emit method for some binary operations (+, -, / and *),
for other operators some more code is still missing.
Identifier: handle assignment cases and global exp cases.
Added class Assign (compisite assignment still missing tough :-(
* driver.cs: deleted debug messages, added "Compilation Succeeded"
message ;-).
* VariableStatement.cs, VariableDeclaration.cs: wrote real Resolve method.
* Literal.cs (BooleanLiteral, NumericLiteral): now inherits from
Exp and handle the case for global expressions that must be popped
after evaluation. no more invalid IL being generated! yeah!
* Block.cs: wrote real Resolve method, erased debug messages.
* BitwiseBinary.cs, InstanceOf.cs, UnaryOp.cs: : add new Resolve inherited from Exp.
* BinaryOp.cs, Conditional: now inherits from Exp.
svn path=/trunk/mcs/; revision=22151
* Handlers.cs: added aliases table.
* Manager.cs: when an encoding is not found, try its aliases if any.
Fixes bug #52852.
svn path=/trunk/mcs/; revision=22145
* System/Environment.cs: increased corlib version.
* System.Reflection/MonoProperty.cs: changed get_property_info so that
it only gets the values needed. Reduces the allocations needed.
svn path=/trunk/mcs/; revision=22141
* appdomain.c: increased corlib version.
* filewatcher.c: removed g_print.
* icall.c:
(get_property_info): only allocate what is actually requested.
(ves_icall_Type_GetInterfaces): free the bitset in case of early error.
svn path=/trunk/mono/; revision=22140
* System.dll.sources: added new files.
* System_test.dll.sources: added new test.
* System.IO/DefaultWatcher.cs: stub for the default watcher.
* System.IO/WindowsWatcher.cs: stub for the windows watcher.
* System.IO/FAMWatcher.cs: FAM watcher.
* System.IO/FileAction.cs: enum with event types.
* System.IO/FileSystemEventArgs.cs: added SetName property.
* System.IO/FileSystemWatcher.cs: added support for the 3 watchers.
* System.IO/IFileWatcher.cs: interface implemented by the watchers.
* System.IO/SearchPattern.cs: copied from corlib.
* Test/System.IO/FileSystemWatcherTest.cs: new test.
svn path=/trunk/mcs/; revision=22139
* jit-icalls.c (helper_stelem_ref_check): New jit icall for array type
checking in Array.Set ().
* mini.c (method_to_ir): Add array type checking in Array.Set (). Fixes
#52590.
* object.cs (test_0_multi_array_cast): New regression test.
svn path=/trunk/mono/; revision=22120
* AssemblyBuilder.cs (Save): If the entry point is in a module, create
a new entry point which calls the real one, since the entry point must
be in the module which contains the manifest.
* ModuleBuilder.cs (Save): Create the global type automatically if not
already done.
svn path=/trunk/mcs/; revision=22111
* XmlSchemaComplexContentExtension.cs,
XmlSchemaSimpleContentExtension.cs,
XmlSchemaSimpleContentExtension.cs,
XmlSchemaSimpleContentRestriction.cs,
XmlSchemaContent.cs : Added IsExtension. GetXXX() became nonvirtual.
* XmlSchemaType.cs :
- Added NET_1_2 BaseXmlSchemaType (other members are commented out).
- Now BaseSchemaType redirects to new property BaseXmlSchemaType.
* XmlSchemaComplexType.cs :
- Now it fully uses BaseXmlSchemaType above.
- Since ValidateXXX() became too huge, I divided them into
CollectXXX() [spec 3.4.1] and ValidateXXX() [spec 3.4.3 / 3.4.6].
Schema Components are contributed before constraint check.
- Now ContentTypeParticle is distinguished from validating particle
which is newly introduced as "ValidatableParticle" (only used in
XsdValidatingReader).
* XmlSchemaSimpleType.cs : Now it uses BaseXmlSchemaType.
capitalized internal members a bit.
svn path=/trunk/mcs/; revision=22108
postback script (ie user hit submit on a input type=submit) call
Validate so page validation occurs. This fixes bug #52770.
svn path=/trunk/mcs/; revision=22105
removed yet.
* OutputCacheModule.cs: Handle sliding expirations. Remove hacks
checking if the item is expired, the cache no longer returns
expired items.
svn path=/trunk/mcs/; revision=22103
expires time as well as the expires entry expire time because the
objects expire time is checked when objects are pulled out. This
fixex bug #52778.
svn path=/trunk/mcs/; revision=22100
* UrlTest.cs: New. Unit tests for Url. Site test still fails.
* UrlMembershipConditionTest.cs: New. Unit tests for
UrlMembershipCondition. Site test still fails.
svn path=/trunk/mcs/; revision=22094
* MonoSymbolFile.cs (MonoDebuggerSupport): New public class
containing static wrappers for calling the `MonoDebugger_*'
function in S.R.Assembly.
svn path=/trunk/mcs/; revision=22093
cacheability is updated. The response uses this to determine
whether or not it needs to cache itself.
* HttpResponse.cs: When the cacheability is updated either create
or dispose of the cached raw response based on whether or not we
wil need it. This allows output caching to be controlled
programatically.
svn path=/trunk/mcs/; revision=22089
52840.
2004-01-14 David Sheldon <[email protected]>
* BuiltInDatatype.cs:
XsdAnySimpleType - Added Length that returns the string length.
XsdBase64Binary - Added Length, and used more direct, less fussy,
Base64 decoder.
XsdHexBinary - Added Length method
* XmlSchemaSimpleTypeRestriction: use DataType Length method to
determine length to compare against. Stop testing Lenght facets on
QName and Notation types (as per errata)
svn path=/trunk/mcs/; revision=22077
* XslVariable.cs : Use new GenericOutputter.ctor() to indicate it is
created for variable. (It is required not to output "PI for xmldecl"
incorrectly.)
* XslNumber.cs : trivial code refactoring.
* XslCopy.cs : comment out WriteLine().
svn path=/trunk/mcs/; revision=22073
* XmlWriterEmitter.cs : It now uses WriteProcessingInstruction() to
write XML declaration. It means that output supports non document
entity. This fixes bug #52729.
* Emitter.cs, TextEmitter.cs, HtmlEmitter.cs, XmlWriterEmitter.cs :
modified WriteStartDocument() signature to receive Encoding.
* GenericOutputter.cs :
- Added .ctor() which receives Encoding. (It is used for TextWriter
output to get actual encoding.)
- Added .ctor() to take an boolean argument which indicates it is
variable content or not. (When variable, it does not call
WriteStartDocument().)
* XslKey.cs,
XsltCompiledContext.cs : comment out WriteLine().
* XslOutput.cs : set default encoding utf-16.
svn path=/trunk/mcs/; revision=22072
operations (those don't have output message).
* SoapProtocolReflector.cs: Set the correct element name and
namespace for headers (those are not managed like other data classes).
svn path=/trunk/mcs/; revision=22066
default namespace for members.
* XmlCodeExporter.cs: Fixed generation of XmlRootAttribute.
* XmlReflectionImporter.cs: Fixed the assignment of root and type
namespaces.
* XmlSchemaExporter.cs: Use type namespace instead of root namespace as
default namespace for members. In AddSchemaElement, if the element is
a root element never use a "ref" attribute.
* XmlSchemaImporter.cs: Fixed issue when importing root elements.
svn path=/trunk/mcs/; revision=22064
* debug-mini.c: Modify the debug info serialize/deserialize code so it handles
negative values as well. This is needed for the encoding of the line number
info, since sometimes the line numbers are not in increasing order.
svn path=/trunk/mono/; revision=22062
* XmlSchemaComplexType.cs : forgot to commit ;)
* XmlSchemaUtil.cs : Fixed IsSchemaDatatypeEquals() to return false
for comparison between ID and IDREF.
svn path=/trunk/mcs/; revision=22060
* XsdIdentityState.cs :
Now takes xsi:nil value into consideration for comparison.
nsname:* was not handled correctly.
Reject complexType as key value type (it is dynamic instance error).
* XsdKeyTable.cs : remoed unused code.
* XsdValidatingReader.cs :
ID comparison was not done.
{final} value of attribute definition was not used for default value.
Get xsi:nil value from non-default value.
svn path=/trunk/mcs/; revision=22059
* XmlAttribute.cs : when set a value, it is no longer default
(even if the value is the same as default value).
* XmlAttributeCollection.cs : Remove() should recover default attribute
value to default, not specified value.
Patch by Boris Kirzner (modified a bit)
* XmlDocument.cs : Reference to undeclared entity is not allowed in
Load(), while allowed in ReadNode(). Added such distinguishing logic.
svn path=/trunk/mcs/; revision=22052
attribute build a PartialCachingControl in the parents __Build method.
* BaseCompiler.cs: Add a method for adding class attributes to the
class.
* UserControlCompiler.cs: If caching is enabled on a user control
add the PartialCachingAttribute to it.
svn path=/trunk/mcs/; revision=22034
properties. These are not assigned yet.
* TemplateControlParser.cs: Do not ignore the OutputCache
attribute.
* BasePartialCachingControl.cs: Initial implementation. Keys are
still not created properly.
* StaticPartialCachingControl.cs: Assign properties in base class,
implement CreateControl.
svn path=/trunk/mcs/; revision=22033
* ecore.cs (FieldExpr.AddressOf): Fix generated IL for accessing
static read-only fields in ctors.
Applied patch from Benjamin Jemlich
* expression.cs (UnaryMutator): Avoid leaking local variables.
svn path=/trunk/mcs/; revision=22028
* XmlSchemaSimpleTypeUnion.cs : The same reason as the previous patch.
* XmlSchemaComplexType.cs : Now it handles ContentTypeParticle and
ContentType much more presise than before.
* XmlSchemaElement.cs :
Simplified property handling for reference element.
svn path=/trunk/mcs/; revision=22024
* XmlSchema.cs, XmlSchemaComplexType.cs, XmlSchemaElement.cs :
Invalid attribute should raise an error, not a warning.
svn path=/trunk/mcs/; revision=22014
* XmlSchemaObject.cs : Fixed error() not to set severity as Warning.
* ValidationHandler.cs,
XmlSchemaSet.cs,
XmlSchemaCollection.cs : Throw exception only in case of errors.
* XmlSchemaCollection.cs : Remove schema from schemaset if exist.
(It might not be good to use schemaset, but keep for a while)
* XmlSchemaContent.cs,
XmlSchemaComplexContentExtension.cs,
XmlSchemaComplexContentRestriction.cs,
XmlSchemaSimpleContentExtension.cs,
XmlSchemaSimpleContentRestriction.cs,
: added GetBaseTypeName() and GetParticle() (not used yet).
svn path=/trunk/mcs/; revision=22013
* ChangeLog, MonoSymbolTable.cs: Reviewed Ben's patches. For
those which are not ok, I'll add detailed comments to the source
code.
svn path=/trunk/mcs/; revision=21997
* object.h (MonoStringBuilder) : Changed layout to support our
new stringbuilder class.
* marshal.c: Change marshalling to support the new layout of
string builder.
* appdomain.c: increased version number because new layout of
string builder.
svn path=/trunk/mono/; revision=21985
* Environment.cs: Bump corlib version number due to new StringBuilder
* String.cs: New internal method to support the new StringBuilder that
uses the string as a buffer (until ToString is called)
svn path=/trunk/mcs/; revision=21983
* appdomain.c (ves_icall_System_AppDomain_LoadAssembly): Receive the
assembly name as an string instead of an AssemblyName, since it is
easier to extract info from it.
* appdomain.c (mono_domain_assembly_preload): Look for assemblies in
the culture subdirectories too. Fixes#52231.
svn path=/trunk/mono/; revision=21981
* AppDomain.cs (LoadAssembly): Pass the assembly name as a string to
the runtime, so it can take into account the Culture etc.
* Environment.cs: Bump corlib version number.
svn path=/trunk/mcs/; revision=21980
* MonoType.cs: GetMethods renamed to GetMethodsByName. It takes a
new parameter with the method name and a boolean for ignoring case.
Removed some string comparisons no longer needed.
svn path=/trunk/mcs/; revision=21974
* icall.c: renamed ves_icall_Type_GetMethods to GetMethodsByName.
It takes 2 new parameters with an optional name for the method to look
for and case ignoring info.
* threadpool.c: removed unused variable.
svn path=/trunk/mono/; revision=21973
* System.Web.dll.sources: added new files in S.W.Configuration.
* System.Web/HttpContext.cs: add setter for ConfigTimeout.
* System.Web/HttpException.cs: added Description property and HTML
encode some unescaped values.
* System.Web/HttpRequest.cs: support request validation.
* System.Web/HttpRequestValidationException.cs: added message and
description.
* System.Web/HttpServerUtility.cs: implemented ScriptTimeout.
* System.Web.Compilation/PageCompiler.cs: invoke Request.ValidateInput
if required.
* System.Web.Configuration/GlobalizationConfiguration.cs: undo old fix.
* System.Web.Configuration/PagesConfiguration.cs:
* System.Web.Configuration/PagesConfigurationHandler.cs: new files for
processing system.web/pages section.
* System.Web.UI/ApplicationFileParser.cs: adde DefaultBaseTypeName
property.
* System.Web.UI/PageParser.cs: support validateRequest.
* System.Web.UI/TemplateControlParser.cs: get default values from
system.web/pages section.
* System.Web.UI/TemplateParser.cs: added separate method for changing
base type (Inherits or system.web/pages).
* System.Web.UI/UserControlParser.cs: support system.web/pages defined
base type.
svn path=/trunk/mcs/; revision=21971
* Uri.cs : should not escape already-escaped string (Patch by
Boris Kirzner). File LocalPath should unespace return value.
ToString() should be unescaped only when it is not an UNC path.
(UNC looks not to be unescaped).
svn path=/trunk/mcs/; revision=21968
more raw responses that belong to them.
* CachedRawResponse.cs: Keep a reference to the VaryBy object that
this response belongs to this is so the varyby can be cleaned up.
* CachedVaryBy.cs: Keep a reference to the keys that belong to the
varyby and a reference to the varyby's key.
svn path=/trunk/mcs/; revision=21966
more raw responses that belong to them.
* CachedRawResponse.cs: Keep a reference to the VaryBy object that
this response belongs to this is so the varyby can be cleaned up.
* CachedVaryBy.cs: Keep a reference to the keys that belong to the
varyby and a reference to the varyby's key.
svn path=/trunk/mcs/; revision=21965
* SignedXml.cs: Fixed class signature (for 1.1+) by adding public to
Resolver property.
* Transform.cs: Fixed class signature (for 1.1+) by adding public to
Resolver property.
svn path=/trunk/mcs/; revision=21962
* MonoType.cs: GetProperties renamed to GetPropetiesByName. It takes a
new parameter with the property name and a boolean for ignoring case.
Fixes bug #52753.
svn path=/trunk/mcs/; revision=21956
* icall.c: renamed ves_icall_Type_GetProperties to GetPropertiesByName.
It takes 2 new parameters with an optional name for the property to look
for and case ignoring info.
Fixes bug #52753.
svn path=/trunk/mono/; revision=21955
2004-01-11 David Sheldon <[email protected]>
* BuiltInDatatype.cs : Added XsdOrdering enum, and Compare methods
to the data-types. Changed AllowedFacets to be a bitfield.
* XmlSchemaFacet.cs : Added Facet enumeration to represent bitfield.
* XmlSchemaEnumerationFacet.cs,
XmlSchemaFractionDigitsFacet.cs,
XmlSchemaLengthFacet.cs,
XmlSchemaMaxExclusiveFacet.cs,
XmlSchemaMaxInclusiveFacet.cs,
XmlSchemaMaxLengthFacet.cs,
XmlSchemaMinExclusiveFacet.cs,
XmlSchemaMinInclusiveFacet.cs,
XmlSchemaMinLengthFacet.cs,
XmlSchemaNumericFacet.cs,
XmlSchemaPatternFacet.cs,
XmlSchemaTotalDigitsFacet.cs,
XmlSchemaWhiteSpaceFacet.cs : Added ThisFacet Property to return facet type
* XmlSchemaSimpleTypeRestriction.cs: Inherited facets from base types,
checked which which were allowed on different types. Validated fixed
facets, duplicated facets and derivation by restriction. Added checking
for min/max Inclusive/Exclusive, totalDigits and fractionDigits facets in
validation.
svn path=/trunk/mcs/; revision=21934
* xml-classes : added v2 info. schema status updates.
Added ChangeLog. (There are reason not to keep ChangeLog for
documents, at least for not a little changes ;-)
svn path=/trunk/mono/; revision=21933
file but not on the page.
* TraceManager.cs: Get settings from the configuration object.
* HttpRuntime.cs: Create trace manager in the first request start
so it can get configuration settings.
svn path=/trunk/mcs/; revision=21928
* TraceData.cs: Add RequestPath property, make some rendering
methods internal static so the TraceHandler can use them.
* TraceManager.cs: Expose trace data, add a method for clearing
trace data.
svn path=/trunk/mcs/; revision=21921
* System.Reflection.Emit/ModuleBuilder.cs: 'types' array is normally larger than number of itens in it,
so searchs have to stop at 'num_types' limit (as it was it was throwing exceptions inside mbas that needs the case insensitive scan)
svn path=/trunk/mcs/; revision=21906
* TraceManager.cs: New class for handling trace configuration and
storing trace data objects.
* TraceContext.cs: Save trace data to the trace manager. Fix
typo.
svn path=/trunk/mcs/; revision=21903
here instead of the trace context so it can be saved and accessed
from the trace handler.
* TraceContext.cs: Save data in the TraceData object, let the
trace data object handle the rendering.
svn path=/trunk/mcs/; revision=21896
* System.Web.Services/WebService.cs: added SetContext ().
* System.Web.Services.Protocols/HttpSoapWebServiceHandler.cs:
* System.Web.Services.Protocols/HttpSimpleWebServiceHandler.cs: set
base.Context property.
* System.Web.Services.Protocols/WebServiceHandler.cs: added set_Context
and set the context for the WebService when creating the instance.
Fixes bug #52615.
svn path=/trunk/mcs/; revision=21894
* get.c: When stringifying methods show the method token if the
show-method-tokens flag is set.
* get.h: Add show_method_tokens flag
* main.c: Add --show-method-tokens switch
svn path=/trunk/mono/; revision=21893
* CSharpCodeCompiler.cs: when generating files from DOM, set the
encoding to UTF-8 with BOM marker. Fixes bug #52604.
svn path=/trunk/mcs/; revision=21892
* cs-tokenizer.cs (IsCastToken): Allow the various native types
here to return true, as they can be used like this:
(XXX) int.MEMBER ()
Fixed 49836 and all the other dups
svn path=/trunk/mcs/; revision=21888
* WebConnection.cs: Data.Init is a bad boy. Lluis realized. He also
tidied up the end of ReadDone. Disabled relaunching the request if 2
InitRead are called, since now we don't throw everything into
RegisterWaitForSingleObject but one request at a time.
* WebConnectionGroup.cs: when checking available connections, allow them
not to be Connected but allocated to honor the connection limit.
* WebConnectionStream.cs: CheckComplete() now checks for nextReadCalled
too. ReadAll don't mess contentLength if it's provided in the headers.
BIG thanks to Lluis. Turns out that we were debugging the same stuff and
his Data.Init discovery was THE thing I was missing.
Fixes bug #51277.
svn path=/trunk/mcs/; revision=21883
* XmlSchemaSet.cs : implemented some members.
* XmlSchemaCollection.cs : modified to use internal schema set (This
class provides more precise schema validation feature and will be
commonly used for XPathNavigator2).
Added .NET 1.1 .ctor() which takes XmlResolver.
* XmlSchema.cs : fix related to above changes.
Use validation event handler on Read() at all required places.
Added .NET 1.1 .ctor() which takes XmlResolver.
* XmlSchemaComplexType.cs : content type comparison was incorrect.
Renamed confusing method.
* XmlSchemaElement.cs : don't use ContentTypeParticle in
CheckRecursion(), where that property might not be determined yet.
* XmlSchemaGroupBase.cs : Modified ValidateRecurse() a bit (currently
no effect)
* XmlSchemaGroupBase.cs,
XmlSchemaChoice.cs,
XmlSchemaAll.cs,
XmlSchemaSequence.cs : moved CheckRecursion to XmlSchemaGroupBase.
* XmlSchemaObjectTable.cs : Fixed missing error info.
* BUGS-MS.txt : Added info a bit.
svn path=/trunk/mcs/; revision=21880
2004-01-09 Joerg Rosenkranz <[email protected]>
* System.Data.OracleClient.Oci/OciCalls.cs:
Added. It contains all external OCI calls which are
removed from all other files.
* System.Data.OracleClient/OciGlue.cs:
Fix for #52699 (OCI not thread safe).
* System.Data.OracleClient.Oci/OciHandle.cs:
Introduced special handling for Bind, Define and
Environment handles in FreeHandle. Revised the handling for
other types. Minor change in Dispose.
Replaced OCI calls.
* System.Data.OracleClient.Oci/OciDescriptorHandle.cs:
Special handling for Parameter handles in FreeHandle.
Replaced OCI calls.
* System.Data.OracleClient.Oci/OciDefineHandle.cs:
Character types are converted using the DefaultEncoding.
Replaced OCI calls.
* System.Data.OracleClient/OracleCommand.cs:
Dispose created OciStatementHandles.
* System.Data.OracleClient/OracleDataReader.cs:
Dispose used OciStatementHandle.
* System.Data.OracleClient/OracleTransaction.cs:
Dispose transaction handle.
* System.Data.OracleClient.Oci/OciStatementHandle.cs:
OCI_INVALID_HANDLE results in exception "Invalid handle."
Replaced OCI calls.
* System.Data.OracleClient.Oci/OciTransactionHandle.cs:
Introduced DetachFromServiceContext which is called in Commit
and Rollback (Fix for #52702).
* System.Data.OracleClient/OracleParameter.cs:
* System.Data.OracleClient.Oci/OciEnvironmentHandle.cs:
* System.Data.OracleClient.Oci/OciErrorHandle.cs:
* System.Data.OracleClient.Oci/OciLobLocator.cs:
* System.Data.OracleClient.Oci/OciServerHandle.cs:
* System.Data.OracleClient.Oci/OciServiceHandle.cs:
* System.Data.OracleClient.Oci/OciSessionHandle.cs:
Replaced OCI calls.
svn path=/trunk/mcs/; revision=21877
* Win32Resources.cs: Organize win32 resources into a class hierarchy
with the class Win32Resource as the abstract superclass. Add
Win32ResFileReader and Win32IconFileReader classes and the
corresponding resource types.
svn path=/trunk/mcs/; revision=21850
* BUGS-MS.txt : added list derivation and facet case.
* XmlSchemaComplexType.cs :
Added some description. Avoided null reference exception in
some places.
Fixed incorrect 3.4.6 Derivation Valid (Extension) 1.4.1.2.2 and
3.9.6 Particle Valid (Extension) 2.
* XmlSchemaGroupBase.cs : Fixed ParticleEquals() which didn't work
properly against sequence and all.
svn path=/trunk/mcs/; revision=21842
* metadata/appdomain.c:
* metadata/assembly.c: escape the uri before passing it to
g_filename_from_uri.
* utils/Makefile.am: added mono-uri.[ch]
* utils/mono-uri.[ch]: slightly modified static function from glib used
to escape URIs.
Fixes bug #52630.
svn path=/trunk/mono/; revision=21832
* expression.cs (Binary.ResolveOperator): My previous bug fix had
the error reporting done in the wrong place. Fix.
svn path=/trunk/mcs/; revision=21819
* icall.c (ves_icall_get_enum_info): Store the value of the enum fields
in field->def_value, as done in all other cases.
* reflection.c (mono_reflection_get_custom_attrs): Add support for
TypeBuilders.
* reflection.c (mono_reflection_create_runtime_class): Remove
errorneous assignment to klass->element_class, since it is already
done in mono_reflection_setup_internal_class.
svn path=/trunk/mono/; revision=21808
* XmlAttribute.cs, XmlDocument.cs, XmlElement.cs :
set_Prefix should atomize to name table.
Avoided extraneous atomization attempt a bit.
svn path=/trunk/mcs/; revision=21803
* expression.cs (Binary.ResolveOperator): Catch the
operator + (E x, E y) error earlier, and later allow for implicit
conversions in operator +/- (E e, U x) from U to the underlying
type of E.
svn path=/trunk/mcs/; revision=21786
* class.cs (TypeContainer.DefineDefaultConstructor): Fix bug
52596, if the container class is abstract, the default constructor
is protected otherwise its public (before, we were always public).
* statement.cs (Fixed.Resolve): Catch a couple more errors in the
fixed statement.
(Using.EmitLocalVariableDecls): Applied patch from Benjamin
Jemlich that fixes bug #52597, MCS was generating invalid code for
idisposable structs. Thanks to Ben for following up with this
bug as well.
svn path=/trunk/mcs/; revision=21779
* CodeAccessPermissionTest.cs: Added a new test for calling Demand on
custom code access permission.
Ref: http://bugzilla.ximian.com/show_bug.cgi?id=52626
* SecurityExceptionTest.cs: New. Unit tests for SecurityException.
svn path=/trunk/mcs/; revision=21775
* CodeAccessPermission.cs: Fixed Demand for custom permissions
(permissions that do not implement, the internal, IBuiltInPermission).
Ref. http://bugzilla.ximian.com/show_bug.cgi?id=52626
* SecurityException.cs: Fixed ToString() which could, when no
PermissionType where specified, throws a NullReferenceException.
Ref. http://bugzilla.ximian.com/show_bug.cgi?id=52626
svn path=/trunk/mcs/; revision=21774
* Makefile: handle win32 paths and copy Mono.Posix.dll to Mono.Posix
directory so that MS runtime finds it.
* Mono.Posix/Syscall.cs: moved the assembly attribute to a proper place
and added 'signal.h'
* Mono.Posix/make-map.cs: use reflection to invoke the properties, as it
fails under MS runtime.
svn path=/trunk/mcs/; revision=21767
* typemanager.cs : correcting translation of System types to language types,
also temporarily circunventing a exception in ModuleBuilder.GetType inside LookupTypeReflection,
corrected many ` characters to ' in error messages
* testmbas/WriteOK.vb : testing newly implemented IsNumeric global function
svn path=/trunk/mcs/; revision=21760
* Console.cs: Test for UTF-8 being present anywhere on the
string, also do ToUpper instead of ToLower, which will work even
around the ICU bug with different locales (#52065), and addresses #52101
svn path=/trunk/mcs/; revision=21759
* appdomain.c: Use messages in NotImplementedException.
* exception.c (mono_get_exception_not_implemented): Now this takes
a message argument.
* marshal.c (emit_str_to_ptr_conv): g_warning and throw an
exception instead of g_asserting an aborting when something is not
implemented.
Add some inline docs.
svn path=/trunk/mono/; revision=21758
* Console.cs: Test for UTF-8 being present anywhere on the
string, also do ToUpper instead of ToLower, which will work even
around the ICU bug with different locales (#52065), and addresses #52101
svn path=/trunk/mcs/; revision=21746
XmlDataLoader.cs : Set the DataSet.enforceConstraints to false before loading the tables.
XmlDiffLoader.cs : Reading nested tables.
XmlSchemaMapper.cs : Reading the relation.
XmlConstants.cs : Adding some constants.
svn path=/trunk/mcs/; revision=21742
* CodeGroup.cs: (temp) Commented lines 126-127 because it doesn't
compile with mcs. This should fix the build for corlib.
svn path=/trunk/mcs/; revision=21738
* corlib_test.dll.sources: Added CodeAccessPermission unit tests in
in System.Security namespace. Added CodeGroup related and PolicyLevel
unit tests to System.Security.Policy.
svn path=/trunk/mcs/; revision=21736
* CodeGroupTest.cs: Updated to NUnit2. Added new tests for exceptions
and for ToXml/FromXml methods.
* FileCodeGroupTest.cs: New. Unit tests for FileCodeGroup. Missing
Resolve unit tests.
* FirstMatchCodeGroupTest.cs: New. Unit tests for FirstMatchCodeGroup.
Missing Resolve unit tests.
* NetCodeGroupTest.cs: New. Unit tests for NetCodeGroup. Missing
Resolve unit tests.
* UnionCodeGroupTest.cs: New. Unit tests for NetCodeGroup. Missing
Resolve unit tests.
* PolicyLevelTest.cs: New. Unit tests for PolicyLevel. Missing Resolve
unit tests.
svn path=/trunk/mcs/; revision=21735
* CodeAccessPermissionTest.cs: New. Unit tests on a non-abstract
CodeAccessPermission class.
* SecurityManagerTest.cs: Removed .Policy from namespace.
svn path=/trunk/mcs/; revision=21734
* CodeGroup.cs: Added internal constructor for PolicyLevel. Complete
FromXml. Various small fixes to match the unit tests.
* FileCodeGroup.cs: Added internal constructor for PolicyLevel.
Implemented GetHashCode (may not be exactly the same as MS).
* FirstMatchCodeGroup.cs: Added internal constructor for PolicyLevel.
Copy method now returns a deep copy (as documented).
* NetCodeGroup.cs: Added internal constructor for PolicyLevel. Fixed
"Same site Web" (as documented) to "Same site Web." (as real life).
Copy method now returns a deep copy (as documented).
* PolicyLevel.cs: Added missing ChangeNamedPermissionSet. Implemented
FromXml method. Added internal methods to load from file or string.
Added/changed lots of things to match unit tests.
* StrongNameMembershipCondition.cs: Added internal constructor for
PolicyLevel. Fixed Equals.
* UnionCodeGroup.cs: Added internal constructor for PolicyLevel.
Copy method now returns a deep copy (as documented).
svn path=/trunk/mcs/; revision=21733
* CodeAccessPermission.cs: Fixed Union to match 1.1/1.2 documentation.
Simplified ToString to match MS implementation. Added LAMESPEC to
Assert, Demand, Deny and PermitOnly as they aren't virtual.
* NamedPermissionSet.cs: Added internal constructor for PolicyLevel.
* PermissionSet.cs: Added internal constructor for PolicyLevel.
* SecurityManager.cs: Moved some stuff to PolicyLevel class (e.g. Load).
svn path=/trunk/mcs/; revision=21732
* UriTest.cs :
Derived from Assertion.
Added ConstructorsRejectRelativePath ().
"file://cygwin" means machine name cygwin, not top directory cygwin.
* UriTest2.cs : added relative constructor tests and manually created
absolute uri tests (rejected by MS.NET).
* uri-test-generator.cs : added relative test generator.
* added test-uri-props-manual.txt, test-uri-relative-list.txt,
test-uri-relative-props.txt for relative path test and
manually added tests.
svn path=/trunk/mcs/; revision=21731
2004-01-05 Miguel de Icaza <[email protected]>
* cs-parser.jay: Add rules to improve error reporting if fields or
methods are declared at the namespace level (error 116)
* Add rules to catch event add/remove
svn path=/trunk/mcs/; revision=21727
* CachedRawResponse.cs: Expose a ref to the date header, so it can
be easily set/updated. Remove unused methods and vars.
svn path=/trunk/mcs/; revision=21700
* XmlDocument.cs : Fixed Load() to set XmlResolver correctly. Patch
by Benjamin Jemlich.
Assure closing XmlTextReader which are internally used.
svn path=/trunk/mcs/; revision=21682
* Path.cs: Remove defined but unused variable, and also got rid of
some unreachable code. Eliminates some build warnings.
svn path=/trunk/mcs/; revision=21674
* SecurityManager.cs: Added some basic stuff to make some security unit
tests works (mostly when using PolicyHierarchy).
svn path=/trunk/mcs/; revision=21666
* ecore.cs, expression.cs, statement.cs:
Total rewrite of how we handle branching. We
now handle complex boolean expressions with fewer
jumps. As well if (x == 0) no longer emits a ceq.
if (x is Foo) is much faster now, because we generate
better code.
Overall, we get a pretty big improvement on our benchmark
tests. The code we generate is smaller and more readable.
I did a full two-stage bootstrap. The patch was reviewed
by Martin and Miguel.
svn path=/trunk/mcs/; revision=21655
* cs-parser.jay: Make primary_expression not take a QI.
we dont need this because the member_access rule covers
us here. So we replace the rule with just IDENTIFIER.
This has two good effects. First, we remove a s/r conflict.
Second, we allocate many fewer QualifiedIdentifier objects.
svn path=/trunk/mcs/; revision=21654
* attribute.cs: Handle MarshalAs attributes as pseudo, and
set the correct information via SRE. This prevents
hanging on the MS runtime. Fixes#29374.
svn path=/trunk/mcs/; revision=21653
* corlib.dll.sources: Added SiteMembershipCondition to
System.Security.Policy namespace.
* corlib_test.dll.sources: Added Site and SiteMembershipCondition
unit tests in System.Security.Policy namespace.
svn path=/trunk/mcs/; revision=21649
* convert.cs: correctly handle conversions from value types
to Enum and ValueType as unboxing conversions.
Fixes bug #52569. Patch by Benjamin Jemlich.
svn path=/trunk/mcs/; revision=21645
* ExpiresBuckets.cs: set _intPos when expanding the array. Fixes bug
52541. Patch by Jan Jaros ([email protected]).
svn path=/trunk/mcs/; revision=21634
* Page.cs: removed a couple of MonoTODO on methods we're not gonna
implement. Applied patch from Jan Jaros ([email protected]) to
ensure that Unload event is raised. Fixes bug #52555.
svn path=/trunk/mcs/; revision=21632
* ChangeLog:
Start ChangeLog in this directory
* DynamicAssembly.cs ObjectList.cs ObjectReader.cs ObjectSet.cs
* ObjectSources.cs PersistenceError.cs PersistenceOptions.cs:
More implementation of these classes
svn path=/trunk/mcs/; revision=21615
* EvidenceTest.cs: Upgraded tests to NUnit2. Added new tests.
* StrongNameTest.cs: Class now inherits from Assertion.
svn path=/trunk/mcs/; revision=21613
* expression.cs (BetterConversion): Prefer int -> uint
over int -> ulong (csc's behaviour). This fixed bug #52046.
svn path=/trunk/mcs/; revision=21607
* decl.cs (MemberCache.FindMembers): now returns a
MemberInfo [].
* typemanager.cs: In general, go with with ^^.
(CopyNewMethods): take an IList.
(RealMemberLookup): Only allocate an arraylist
if we copy from two sets of methods.
This change basically does two things:
1) Fewer array lists allocated due to CopyNewMethods.
2) the explicit cast in MemberList costed ALOT.
svn path=/trunk/mcs/; revision=21601
* cs-tokenizer.cs (consume_identifier) driver.cs: Cache identifiers in
a hashtable to avoid needless string allocations when an identifier is
used more than once (the common case).
svn path=/trunk/mcs/; revision=21596
* pending.cs: MS's TypeBuilder.GetInterfaces ()
is broken, it will not return anything. So, we
have to use the information we have in mcs to
do the task.
* typemanager.cs: Add a cache for GetInterfaces,
since this will now be used more often (due to ^^)
(GetExplicitInterfaces) New method that gets the
declared, not effective, interfaces on a type
builder (eg, if you have interface IFoo, interface
IBar, Foo : IFoo, Bar : Foo, IBar, GetExplInt (Bar) ==
{ IBar }.
This patch makes MCS able to bootstrap itself on
Windows again.
svn path=/trunk/mcs/; revision=21589
* ServicePointManagerTest.cs: Use the nunit v2 paradigm, and stop this
test from outputting its debug info with WriteLines.
* ServicePointTest.cs: Make sure MaxServicePoints weren't set to some
other limit in another test or whatever. Suppress debug output.
svn path=/trunk/mcs/; revision=21585
* expression.cs: fix the error from cs0121-2.cs
(a parent interface has two child interfaces that
have a function with the same name and 0 params
and the function is called through the parent).
svn path=/trunk/mcs/; revision=21572
* ServiceContainerTest.cs: Eliminate unused variable that was giving us
a warning. Also did a little nunit version 2 house cleaning.
svn path=/trunk/mcs/; revision=21570
* System_test.dll.sources: added SocketTest.cs
* System.Net.Sockets/Socket.cs: fix for several asynchronous methods to
delay exception throwing.
* Test/System.Net.Sockets/SocketTest.cs: new test for asynchronous
connection failure.
Test+fix by Brad FitzpatrickBrad Fitzpatrick <[email protected]>.
svn path=/trunk/mcs/; revision=21562
* bug-42136.cs: invalid liveness analyse for locals
used in try and catch block. (exceptions not counted
for in the liveness analyse)
* Makefile.am: added bug-42136.cs
svn path=/trunk/mono/; revision=21557
* DnsTest.cs: Update with new IP address for www.go-mono.com and make
test failure output more informative. All Tests pass for me on
.NET 1.1.
* HttpWebRequestTest.cs: Get rid of WriteLines and use Asserts to make
it a proper unit test.
svn path=/trunk/mcs/; revision=21556
* DbDataAdapter.cs: handle MissingShemaAction.AddWithKey, call
AcceptChanges in Update when a CommandBuilder is used and
correctly fill information about primary keys in FillSchema.
Patch from Sergei Malinin ([email protected]).
svn path=/trunk/mcs/; revision=21553
* DiagnosticsConfigurationHandlerTest.cs: Inherit from Assertion to
make it a bit simpler.
* SwitchesTest.cs: Make the tests pass on .NET 1.1
svn path=/trunk/mcs/; revision=21551
* System_test.dll.config: Nunit loads configs with the same name as the
test assembly. This is for the Swithes test.
svn path=/trunk/mcs/; revision=21550
* WindowsIdentityTest.cs: New. Partial unit test for WindowsIdentity.
* WindowsPrincipalTest.cs: New. Partial unit test for WindowsPrincipal.
svn path=/trunk/mcs/; revision=21545
* PrincipalPolicy.cs: Added missing [Serializable] to enum.
* WindowsAccountType.cs: Added missing [Serializable] to enum.
* WindowsBuiltInRole.cs: Added missing [Serializable] to enum.
* WindowsIdentity.cs: Updated to match the unit tests.
* WindowsPrincipal.cs: Return false for a null role.
svn path=/trunk/mcs/; revision=21544
* EnvironmentPermission.cs: Fixed return value to match unit tests.
* EnvironmentPermissionAttribute.cs: Updated CreatePermission for
Unrestricted permission. Updated AttributeUsage using 1.2 documentation.
* FileDialogPermissionAttribute.cs: Updated CreatePermission for
Unrestricted permission. Updated AttributeUsage using 1.2 documentation.
* FileIOPermissionAttribute.cs: Updated CreatePermission for
Unrestricted permission. Updated AttributeUsage using 1.2 documentation.
* IsolatedStorageFilePermissionAttribute.cs: Implemented
CreatePermission method. Updated AttributeUsage using 1.2 documentation.
* IsolatedStoragePermissionAttribute.cs: Updated AttributeUsage using
1.2 documentation.
* PermissionSetAttribute.cs: Prepared CreatePermissionSet. Updated
AttributeUsage using 1.2 documentation.
* PrincipalPermissionAttribute.cs: Updated CreatePermission for
Unrestricted permission. Fixed AttributeUsage (more limited than others).
* PublisherIdentityPermissionAttribute.cs: Updated CreatePermission to
throw ArgumentException for Unrestricted permission. Updated
AttributeUsage using 1.2 documentation.
* ReflectionPermissionAttribute.cs: Updated CreatePermission for
Unrestricted permission. Updated AttributeUsage using 1.2 documentation.
* RegistryPermission.cs: Implemented IsUnrestricted for unit tests.
* RegistryPermissionAttribute.cs: Implemented CreatePermission method.
Updated AttributeUsage using 1.2 documentation.
* SecurityAttribute.cs: m_Action is now assigned in constructor.
* SecurityPermission.cs: Completed class.
* SecurityPermissionAttribute.cs: Updated CreatePermission for
Unrestricted permission. Added missing [Serializable] attribute and
UnmanagedCode property. Changed -= to &= to preserve flags (e.g.
setting a flags to false more than one time).
* SecurityPermissionFlag.cs: Cleanup unused XML tags.
* SiteIdentityPermission.cs: Fixed exception for constructor and Site
property to match unit tests.
* SiteIdentityPermissionAttribute.cs: Updated CreatePermission for
Unrestricted permission. Updated AttributeUsage using 1.2 documentation.
* StrongNameIdentityPermission.cs: Fixed default values for Name and
Version to match unit tests.
* StrongNamePermissionAttribute.cs: Updated CreatePermission to
throw ArgumentException for Unrestricted permission. Updated
AttributeUsage using 1.2 documentation.
* UIPermission.cs: Fixed default values in constructor to match unit
tests.
* UIPermissionAttribute.cs: Updated CreatePermission to throw
ArgumentException for Unrestricted permission. Fixed strange case for
null URL. Updated AttributeUsage using 1.2 documentation.
* UrlIdentityPermission.cs: Url property now throws an exception to
match unit tests.
* UrlIdentityPermissionAttribute.cs: Updated CreatePermission to throw
ArgumentException for Unrestricted permission. Updated AttributeUsage
using 1.2 documentation.
* ZoneIdentityPermissionAttribute.cs: Updated CreatePermission to throw
ArgumentException for Unrestricted permission. Updated AttributeUsage
using 1.2 documentation.
svn path=/trunk/mcs/; revision=21543
* EnvironmentPermissionAttributeTest.cs: Updated to test default
properties, Actions, get for All (1.1) and Unrestricted.
* FileDialogPermissionAttributeTest.cs: Updated to test default
properties, Actions and Unrestricted.
* FileIOPermissionAttributeTest.cs: Updated to test default
properties, Actions, get for All (1.1) and Unrestricted.
* IsolatedStorageFilePermissionAttributeTest.cs: New.
* PermissionSetAttributeTest.cs: New.
* PrincipalPermissionAttributeTest.cs: Updated to test default
properties, Actions and Unrestricted.
* PublisherIdentityPermissionAttributeTest.cs: Updated to test default
properties, Actions and Unrestricted.
* ReflectionPermissionAttributeTest.cs: Updated to test default
properties, Actions and Unrestricted.
* RegistryPermissionAttributeTest.cs: New.
* SecurityPermissionAttributeTest.cs: New.
* SiteIdentityPermissionAttributeTest.cs: New.
* StrongNameIdentityPermissionAttributeTest.cs: New.
* StrongNamePublicKeyBlobTest.cs: Converted to NUnit2 format.
* UIPermissionAttributeTest.cs: New.
* UrlIdentityPermissionAttributeTest.cs: New.
* ZoneIdentityPermissionAttributeTest.cs: New.
svn path=/trunk/mcs/; revision=21542
* MethodBase.cs: Internal method to get param count (this
way we can get the info for the ilgen without creating
an array, if we override the method).
svn path=/trunk/mcs/; revision=21537
* System.Data.SqlXml.dll.sources:
Remove XmlDataSourceResolver as it is broken.
* System.Data.Mapping/DataSource.cs:
Fix property name
* System.Xml.Query/XmlViewSchemaDictionary.cs:
Remove "private" from some properties
svn path=/trunk/mcs/; revision=21532
* BinaryWriter.cs: use one encoding buffer for writing
strings rather than allocting one/string. HUGE perf
boost when writing many strings.
svn path=/trunk/mcs/; revision=21518
* MonoSymbolTable.cs: Done make the MethodIndexEntry
part of the method entry class, because it just
takes up extra space.
svn path=/trunk/mcs/; revision=21515
* typemanager.cs (LookupType):
- Use a static char [], because split takes
a param array for args, so it was allocating
every time.
- Do not store true in a hashtable, it boxes.
svn path=/trunk/mcs/; revision=21507
* ArrayList.cs: Add class `SimpleEnumerator' this handles the
.GetEnumerator We are able to remove fields by doing this, the
sizeof the simple version is 75% of that of the complex one, so we
get a pretty nice saving.
svn path=/trunk/mcs/; revision=21506
* XslDecimalFormat.cs : implemented format-number() other than number
grouping.
* XsltCompiledContext.cs : Modified XsltFormatNumber.Evaluate() to
catch ArgumentException which will be thrown by formatting process.
svn path=/trunk/mcs/; revision=21500
* WindowsIdentity.cs: Added ISerializable (for 1.1+) and default
implementation for constructors/properties.
* WindowsImpersonationContext.cs: Added MonoTODO on class and
NotImplementedException in constructor.
* WindowsPrincipal.cs: New. Basic implementation (mostly a stub).
svn path=/trunk/mcs/; revision=21498
* modifiers.cs: Add a new set of flags for the
flags allowed on explicit interface impls.
* cs-parser.jay: catch the use of modifiers in
interfaces correctly.
* class.cs: catch private void IFoo.Blah ().
All related to bug #50572.
svn path=/trunk/mcs/; revision=21496
* decl.cs: Rewrite the consistant accessability checking.
Accessability is not linear, it must be implemented in
a tableish way. Fixes#49704.
svn path=/trunk/mcs/; revision=21495
* Path.cs : Fixed GetFullPath() (and CanonicalizePath()),
HasExtension(), GetPathRoot() and IsPathRooted() to fit with tests.
svn path=/trunk/mcs/; revision=21489
to avoid calling the Elements property repeatedly.
* graphics-path.c (GdipAddPathLine): Use append instead of
append_point.
(GdipTransformPath): Remember to reset the points after the
transformation.
svn path=/trunk/mcs/; revision=21485
* Multiplexer.cs : Now we use managed XSLT engine by default.
Added obsolete attribute to Transform()s without xmlresolver.
svn path=/trunk/mcs/; revision=21484
* Type.cs (IsNotPublic): One would normally assume that
IsNotPublic == !IsPublic, but this is not the case (note to MS,
make better names ;-). Fixes#52547, `Type.IsNotPublic not
correct for Nested types'
svn path=/trunk/mcs/; revision=21482
that the code was incorrect before. After Christmas, I'm gonna
hook up the GraphicsPath code and work on testing and making sure
this stuff is correct. I'm pretty sure, in a first pass, there are
lots of littles bugs waiting to be fixed.
* graphics-path.c (new_point): Removed, we now pack the point
inside the append functions.
(append): New function that takes the X, Y coordinates directly.
(append_bezier): Take coordinates instead of GpPointFs. Use the
new append function instead of append_point.
svn path=/trunk/mcs/; revision=21481
* jscript-lexer-parser.g: keep track of parent reference for
IDENTIFIER, STRING_LITERAL.
* expression.cs: Added 'binding' field. Added 'parent' parameter
to constructor. Now we emit the proper code for the identifier.
* VariableStatement.cs: updated to field names instead of the old
property's name.
* VariableDeclaration.cs: Added class Decl, it constains the
references to the static field or LocalBuilder that are created
when a declaration is emitted. Deleted unuseful properties (Id,
InitValue, Type).
* SymbolTable.cs: Deleted Retrieve method. Contains now returns an
object instead of a boolean.
* StringLiteral.cs: Deleted unuseful properties. Use ig instead of ec.ig.
* IdentificationTable.cs: Deleted Retrieve method. Contains method
now return an object instead of a boolean, that reference is the
binding associated with the identifier being searched.
svn path=/trunk/mcs/; revision=21478
* Array.cs (CreateInstance): Throw NullRef exception like .NET 1.1,
even though docs say it should be an ArgumentNull. Sent email to MS
about this "bug".
svn path=/trunk/mcs/; revision=21475
* driver.cs : added stubs for options "/netcf /sdkpath:path"
* namespace.cs, decl.cs, rootcontext.cs : use hashtable to avoid duplicate importation of namespaces
(especially between command-line option /imports and explicit Import clauses), what manifested itself as
error messages for ambiguous names that where in truth identical
* statement.cs : trying to fix the 'exit' statement DoEmit, for "Exit Sub"
* mb-parser.jay, mb-tokenizer.cs : initial support for type_characters (dim az$ = dim az as string)
svn path=/trunk/mcs/; revision=21473
* class.cs: Ignore static void main in DLLs.
* rootcontext.cs: Handle the target type here,
since we are have to access it from class.cs
* driver.cs: account for the above.
svn path=/trunk/mcs/; revision=21467
try to attach the object identity to the return message.
* AppDomainLevelActivator.cs: Catch exceptions when execution remote
activation.
* ConstructionLevelActivator.cs: Do not store next activator. This is
always the last one.
* ContextLevelActivator.cs: Renamed _next member to match MS.NET
implementation.
svn path=/trunk/mcs/; revision=21451
_size, _items and _version, to make it compatible with MS.NET (needed for
remoting interoperability). This fixes bug #52438.
svn path=/trunk/mcs/; revision=21450
for remoting interoperability): set a default value for hresult, added
initialization of class_name, serialization field RemoteStackTrace must
be RemoteStackTraceString, added ser. field ExceptionMethod.
* IndexOutOfRangeException.cs: Added serialization constructor.
svn path=/trunk/mcs/; revision=21449
* FileStream.cs: (.ctor) do not set handle
in object until after it is validated via
GetFileType so finalizer doesn't see bad handles
svn path=/trunk/mcs/; revision=21437
* threads.c, timed-thread.c, timed-thread.h: use mach
semaphores on Darwin (MacOSX) since the posix ones
are mostly broken there (threads are not created suspended
and they can start executing before they are fully initialized
like in tests/thread-static.cs).
svn path=/trunk/mono/; revision=21432
* assembly.h assembly.c (mono_assembly_loaded): New public function to
search the list of loaded assemblies.
* reflection.c (mono_reflection_type_from_name): Use
mono_assembly_loaded instead of mono_image_loaded.
* reflection.c: Fix warnings.
svn path=/trunk/mono/; revision=21430
* test-221.cs: Add some regression tests relating to
52408 (these dont test the actual bug, but regressions I
created while writing the code for it).
svn path=/trunk/mcs/; revision=21427
* mini.h, mini-ppc.c, mini-ppc.h: small cleanups and
supports for cond branches that overflow the immediate
overflow offset. mcs can compile simple programs.
svn path=/trunk/mono/; revision=21401
up to the GDI+ implementation.
(RotateTransform): Uncommented.
* gdipFunctions.cs (DrawArc, DrawArcI): Import from
libgdiplus.so.dll.
* graphics.c (C1): Made it more precise.
(make_pie): Fixed.
(make_arc): New helper function for getting the right Bezier for an
elliptical arc, based on an algorithm found in the comp.text.pdf FAQ.
svn path=/trunk/mcs/; revision=21396
* MonoType.cs (GetMethodImpl): Only call FindMostDerivedMatch if the
user supplied no parameter info, but not when the user supplied an
empty parameter list. This fixes IKVM.
svn path=/trunk/mcs/; revision=21390
* image.h (MonoImage): Add a new 'dynamic' field to denote that the image
is dynamic. This is needed since an assembly can contain both dynamic and
non-dynamic images.
* class.c loader.c metadata.c object.c: Use image->dynamic instead of
assembly->dynamic.
* icall.c reflection.c: Add new AssemblyBuilder:AddModule icall.
* reflection.h (MonoReflectionAssemblyBuilder): Add 'loaded_modules' field
to store modules loaded using AddModule.
* reflection.c (mono_image_fill_file_table): Generalize this so it works
on Modules.
* reflection.c (mono_image_fill_export_table_from_class): New helper function.
* reflection.c (mono_image_fill_export_table_from_module): New function to
fill out the EXPORTEDTYPES table from a module.
* reflection.c (mono_image_emit_manifest): Refactor manifest creation code
into a separate function. Also handle loaded non-dynamic modules.
* reflection.c (mono_image_basic_init): Fix memory allocation.
* appdomain.c (MONO_CORLIB_VERSION): Bump corlib version.
* assembly.c (mono_assembly_load_references): Make this public.
svn path=/trunk/mono/; revision=21383
* CompareInfo.cs: Replace blah == "" with blah.Length == 0.
MUCH faster. Note, we dont need to check for nulls, because
the properties were used in other places.
svn path=/trunk/mcs/; revision=21382
* XslLiteralElement.cs : considering xsl:imports, we have to evaluate
namespace aliases at the first evaluation.
* XslNumber.cs : Fixed incorrect "any" level numbering (and
optimization), format string handling, grouping-separator.
svn path=/trunk/mcs/; revision=21381
* XslStylesheet.cs : considering xsl:imports, we can't handle namespace
aliases at compilation time, so evaluate at the first run-time.
svn path=/trunk/mcs/; revision=21380
* class.cs (TypeContainer.DefineMembers): Don't do the CS0649 check here.
(FieldBase.IsAssigned): Removed this field.
(FieldBase.SetAssigned): New public method.
(TypeContainer.Emit): Make the CS0169/CS0649 checks actually work.
svn path=/trunk/mcs/; revision=21378
* expression.cs (LocalVariableReference.DoResolve): Don't set
`vi.Used' if we're called from DoResolveLValue().
* statement.cs (Block.DoResolve): `ec.DoEndFlowBranching()' now
returns the usage vector it just merged into the current one -
pass this one to UsageWarning().
(Block.UsageWarning): Take the `FlowBranching.UsageVector' instead
of the `EmitContext', don't call this recursively on our children.
svn path=/trunk/mcs/; revision=21376
* typemanager.cs (TypeManager.IsEqualGenericType): New public
static method; see documentation in the method.
(TypeManager.IsSubclassOrNestedChild): Allow IsEqualGenericType().
svn path=/trunk/mcs/; revision=21372
* class.c (mono_class_initialize_generic): Made this static, take
a `MonoGenericInst *' instead of a `MonoClass *'.
(mono_class_from_generic): Call mono_class_initialize_generic()
unless we're already initialized or being called from
do_mono_metadata_parse_generic_inst().
* class.h (MonoGenericInst): Added `initialized' and
`init_pending' flags.
* metadata.c (do_mono_metadata_parse_generic_inst): Don't call
`mono_class_init (gklass)' or mono_class_initialize_generic()
here; set `generic_inst->init_pending' while parsing the
`type_argv'.
svn path=/trunk/mono/; revision=21364
* embed.h, main.c: new files to enable embedding
the interpreter
* interp.c: make main callable from main.c
rearrange main for embedding
* Makefile.am: changes now most code is in a library
svn path=/trunk/mono/; revision=21361
* convert.cs (Convert.ImplicitReferenceConversion,
Convert.ImplicitReferenceConversionExists): Add support for
generic type declarations; see gen-36.cs.
svn path=/trunk/mcs/; revision=21347
* Mono.Data.PostgreSqlClient/PgSqlPermission.cs:
Change constructor so it does not use base
constructor without arguments. That constructor
becomes obsolete in .NET 1.2, but it doesn't hurt
to do it in other builds too.
svn path=/trunk/mcs/; revision=21344
* Mono.Data.PostgreSqlClient/PgSqlPermission.cs:
Change constructor so it does not use base
constructor without arguments. That constructor
becomes obsolete in .NET 1.2, but it doesn't hurt
to do it in other builds too.
svn path=/trunk/mcs/; revision=21342
* String.cs: Added Compare shortcut for length==0.
2003-12-19 Dick Porter <[email protected]>
* CompareInfo.cs: Added assorted shortcuts when comparing empty
strings. Fixed offset and length range checks to flag when <0.
Broke test that offset >= string length to match actual ms
behaviour (sigh.) Fixes bug 52310.
2003-12-19 Dick Porter <[email protected]>
* StringTest.cs: Added Compare test for length==0.
2003-12-19 Dick Porter <[email protected]>
* CompareInfoTest.cs: Added some Compare tests
svn path=/trunk/mcs/; revision=21341
* icall.c (ves_icall_MonoField_GetValueInternal): Do not run the class
constructor when accessing literal fields.
svn path=/trunk/mono/; revision=21340
* PathTest.cs: Make tests pass on .NET 1.1. Probably still
need to handle different directory and volume separators for
other OS's.
svn path=/trunk/mcs/; revision=21338
* class.cs : case-sensitiveness when tracking the entry-point removed
* driver.cs : IsSWFApp would try to pass a null 'mainclass' to the hashtable indexer, throwing an exception
(even for correct programs because of the bug above). Now this condition is tested before
svn path=/trunk/mcs/; revision=21332
* support.cs (CharArrayHashtable): New helper class.
* cs-tokenizer.cs: Store keywords in a hashtable indexed by
char arrays, not strings, so we can avoid creating a string in
consume_identifier if the identifier is a keyword.
svn path=/trunk/mcs/; revision=21324
* ILGenerator.cs: Applied patch from Ben Maurer
([email protected]). Allocate arrays holding label data
lazily and reduce their size.
svn path=/trunk/mcs/; revision=21321
* DataGridColumn.cs: stylized LoadViewState.
* DataGridColumnCollection.cs: when TrackViewState is called, also
call it on all the existing columns. Fixes bug #52334.
svn path=/trunk/mcs/; revision=21315
* Compiler.cs, XslTransformProcessor.cs :
Use XmlValidatingReader to support id() for external stylesheets.
* XslKey.cs, XsltCompiledContext.cs :
to evaluate MatchPattern and UsePattern, SetContext() is required.
* XslTemplate.cs : Forgot to commit. Change is below(12/16).
svn path=/trunk/mcs/; revision=21312
* DTMXPathDocumentBuilder.cs : Removed supportsID argument and always
assumes to support IDs when specified XmlValidatingReader.
Quick fix for NullReferenceException when type was null.
svn path=/trunk/mcs/; revision=21311
* XsdValidatingReader.cs : When source Reader has schema context, it
should return source's schema type if this class cannot provide it.
svn path=/trunk/mcs/; revision=21308
* jscript-lexer-parser.g: Keep track of parent for numeric_literal.
* VariableDeclaration.cs: now I handle initialization (ex. var x =
2; or function f () { var x = 4; }) at global scope or at
function's body.
* Literal.cs: Added parent param to NumericLiteral constructor.
* FunctionDeclaration.cs: Added Ret opcode for all function declaration bodies.
svn path=/trunk/mcs/; revision=21306
* ChallengeResponse.cs: Sorry I must have a profesionnal problem with
weak passwords ;-). Anyway I corrected the CR for null passwords (which
would produce a weak key for the first DES key) and added clean up :).
However it (null password) doesn't work for SQL Server authentication ?
svn path=/trunk/mcs/; revision=21300
for Daniel Morgan <[email protected]>
* Makefile: added Mono.Security.dll as a reference so we can get
NTLM support via Mono.Security.Protocol.Ntlm
svn path=/trunk/mcs/; revision=21298
* X509SpcTest.cs: Now use Path.GetFullPath for all filenames as
X509Certificate.CreateFromSignedFile sometimes (like on Nick's
computer) didn't "see" the file and returned an empty certificate.
svn path=/trunk/mcs/; revision=21295
* LosFormatter.cs: new ctor for 1.1. The default ctor is public.
* Page.cs: added ViewStateUserKey and made RegisterclientScriptFile
internal.
* PageParser.cs: the ctor is public.
* PartialCachingAttribute.cs: added new ctor and Shared property.
svn path=/trunk/mcs/; revision=21290
* System.Xml_test.dll.sources : Added XmlSchemaBuiltInDatatypeTests.cs
* Added XmlSchemaBuiltInDatatypeTests.cs : Currently fails due to
bug 52274.
This tests the changes to BuiltInDatatype that I checked in this morning.
svn path=/trunk/mcs/; revision=21288
* System.Web.dll.sources: added CustomErrorsConfigHandler.cs
* System.Web/HttpContext.cs: implemented IsCustomErrorEnabled and
IsDebuggingEnabled. Added internal ErrorPage property.
* System.Web/HttpRuntime.cs: on error, check if we have a custom error
page enabled to handle it and redirect.
* System.Web/HttpResponse.cs: added RedirectCustomError (), which
actually does the redirection to the error page.
* System.Web.Compilation/PageCompiler.cs: assign the ErrorPage property
if provided.
* System.Web.UI/Page.cs: assign the ErrorPage to the context if we get
an exception when processing the page which only calls Unload.
* System.Web.UI/PageParser.cs: handle ErrorPage.
* System.Web.Configuration/CustomErrorsConfigHandler.cs: handle
<system.web><customErrors />..
Closes bug #51979.
svn path=/trunk/mcs/; revision=21286
* PathTest.cs :
Added more GetPathRoot and GetFullPath tests for windows.
Fixed incorrectly specified arguments in the previous patch.
svn path=/trunk/mcs/; revision=21283
* appdomain.c (MONO_CORLIB_VERSION): Bump corlib version.
* reflection.c (assembly_add_resource_manifest): New function to fill
the MANIFESTRESOURCE table.
* reflection.c (mono_image_build_metadata): Emit MANIFESTRESOURCE table.
* reflection.h: Update to changes in class layout.
svn path=/trunk/mono/; revision=21281
* AssemblyBuilder.cs (MonoResource): New 'offset' field used by the
runtime.
* ModuleBuilder: Implement DefineResource.
svn path=/trunk/mcs/; revision=21279
* String.cs: Fix StartsWith and EndsWith when the argument is the
empty string. Fixes bug 52283.
2003-12-17 Dick Porter <[email protected]>
* StringTest.cs: Add a String.Empty test to EndsWith. Changed the
StartsWith and EndsWith tests to use the attribute declaration.
svn path=/trunk/mcs/; revision=21277
* icall.c (ves_icall_System_Environment_get_HasShutdownStarted):
Reenable call to mono_runtime_is_shutting_down ().
* appdomain.c (mono_runtime_is_shutting_down): New helper function to
determine if the runtime is shutting down.
svn path=/trunk/mono/; revision=21273
* mini.h, mini.c, mini-ppc.c, mini-sparc.c, mini-x86.c:
move to arch-specific code the choice of arch-specific
intrinsics (from Laurent Morichetti ([email protected])).
* mini.c: ensure emulation calls will not interleave
with other calls.
svn path=/trunk/mono/; revision=21271
* tramp-ppc.c, basic-calls.cs: rework trampolines so that
the magic trampoline stack frame is dropped before executing
the new method.
svn path=/trunk/mono/; revision=21269
* BuiltInDatatype.cs : Added whitespace=collapse to data types
such as date, dateTime, .... gDay. I think I have them all now.
I can't think of a good way of writing test cases for this at the moment, sorry.
svn path=/trunk/mcs/; revision=21268
* DataSet.cs, XmlDataLoader.cs : Table name should be encoded before
they take shape of xml. This fixed bug #52240
svn path=/trunk/mcs/; revision=21265
* FileStreamTest.cs: Ok, it wasn't a 1.1 thing. The test simply would
fail randomly because location 12 was sometimes a file handle.
svn path=/trunk/mcs/; revision=21263
* icall.c (ves_icall_System_Reflection_Assembly_GetManifestResourceInternal): Add support for loading resources from modules.
(ves_icall_System_Environment_get_HasShutdownStarted): New icall.
svn path=/trunk/mono/; revision=21254
already encoded by the MimeParameterWriter.
* MatchAttribute.cs: Set default value for Group to 1.
* TextReturnReader.cs: Implemented. With this it is possible to create an
XML web service that parse the contents of a web page.
svn path=/trunk/mcs/; revision=21248
* ObjectStateFormatter.cs: added formatters for Unit and FontUnit, which
are not [Serializable]. Fixes bug #52244.
svn path=/trunk/mcs/; revision=21246
to check if a type is primitive, instead of Type.IsPrimitive, since CLR
primitive types are not the same as XML primitive types. Patch proposed
by Mordechai Taitelman. This fixes bug #52228.
* XmlSerializationWriter.cs: Fixes in WriteNullTagEncoded and WriteNullTagLiteral.
svn path=/trunk/mcs/; revision=21244
* Emitter.cs, HtmlEmitter.cs, XmlWriterEmitter.cs :
Added WriteWhitespace().
* GenericOutputter.cs, XslTemplate.cs : Call above.
* XslTransformProcessor.cs : Changed NodesetStack to ArrayList since
CurrentNode in for-each context have to be pulled at evaluation.
svn path=/trunk/mcs/; revision=21236
Both methods add additional empty table row in the head of each item table
when the variable named isTable equals true (happenes with the default instantiation
of RepeatInfo).
These additional rows should be added when isTable equals false.
svn path=/trunk/mcs/; revision=21234
* Makefile.am: In a Makefile.am, comments are started with `#' and
not with `dnl' - I must have been an idiot ...
svn path=/trunk/mono/; revision=21232
* statement.cs (LocalInfo.Assigned): Removed this property.
(LocalInfo.Flags): Removed `Assigned'.
(LocalInfo.IsAssigned): New public method; takes the EmitContext
and uses flow analysis.
(Block.UsageWarning): Made this method private.
(Block.Resolve): Call UsageWarning() if appropriate.
* expression.cs (LocalVariableReference.DoResolve): Always set
LocalInfo.Used here.
svn path=/trunk/mcs/; revision=21231
* shared.c: (_wapi_shm_open) make scratch file
not have to immediately regrow to avoid remaps
(HPUX can't cope with these).
(_wapi_shm_attach) use actual size of file
to set scratch data_len for the creating process.
* handles.c: (_wapi_handle_new_internal) make
sure mutex & cond var are initialized even for
non process shared ones.
(_wapi_handle_unref) always call destroy
routines on mutex & cond var
svn path=/trunk/mono/; revision=21227
* Iterator.cs : On its iteration, moving Current must not affect to
MoveNext(). To assure this, Current must be a clone of navigator.
Removed unused code.
svn path=/trunk/mcs/; revision=21225
* XsltCompiledContext.cs : Temporarily allow incorrectly resolved
function for bugzilla #52144. It should be reverted soon.
svn path=/trunk/mcs/; revision=21222
* .cvsignore: added browscap.ini
* Makefile.am: handle browscap.ini.gz
* browscap.ini.gz: browser capabilities and detection data by Gary J.
Keyth from http://www.GaryKeith.com/browsers.
svn path=/trunk/mono/; revision=21218
* Makefile: added browsercaps-updater directory.
* browsercaps-updater/ChangeLog:
* browsercaps-updater/Makefile:
* browsercaps-updater/browsercaps-updater.exe.sources:
* browsercaps-updater/BrowserCapsUpdater.cs: new tool to update
browscap.ini file. For those users who just can't wait for the next
mono release.
* corcompare/mono-api-diff.cs:
* corcompare/mono-api-info.cs: fix comment and remove WriteLine.
svn path=/trunk/mcs/; revision=21216
* System.Web.dll.sources: added CapabilitiesLoader.cs
* System.Web/CapabilitiesLoader.cs: loads browser detection and
capabilities data from browscap.ini file by Gary J. Keith.
* System.Web/HttpBrowserCapabilities.cs: removed almost all TODOs.
* System.Web/HttpRequest.cs: fixed Browser property.
* System.Web.Configuration/HttpCapabilitiesBase.cs: use the new loader.
svn path=/trunk/mcs/; revision=21214
* ChallengeResponseTest.cs: Added the sample from L0phtCrack for a
small password (WELCOME).
* Type3MessageTest.cs: Added a new test for small password (smaller
than 8 characters).
svn path=/trunk/mcs/; revision=21208
* ChallengeResponse.cs: Pre-calculated second part of the LM hash for
small password. Otherwise we get a DES weak key - which isn't
supported (exception) by the framework.
svn path=/trunk/mcs/; revision=21207
* Applied patch from Alberto Fernandez with the following changes...
* Added Shorcut to MenuItem.
* Changed demo.cs to work with new FileDialog.
* Created dialogs (Basic funcionality).
* Added new:
Timer.cs (?)
* Removed function ControlLocationChanged
(the code has been moved to Control.OnLocationChanged, and now works from
child Control, instead from parent.)
* MenuItem
* Menu
* ContextMenu
* MainMenu
* Fixed Control.Size bug
* New Samples:
ButtonEvents2.cs
ChangeParentDemo.cs (works with Gtk-Warnings)
LabelClickDemo.cs (doesn't work for now)
Menu.cs
* Added new:
CommonDialog.cs
OpenFileDialog.cs
SaveFileDialog.cs
FolderBrowserDialog.cs
PageSetupDialog.cs
PrintDialog.cs
* Changed:
FileDialog.cs (now Inherits from CommonDialog, and is an abstract class).
* Control.Parent works now.
* Added - copied from current System.Windows.Forms (wine based):
ApplicationContext.cs
BindingContext.cs
BoundsSpecified.cs
ComVisible.cs
ControlBindingsCollection.cs
ControlStyles.cs
CreateParams.cs
DragAction.cs
DragDropEffects.cs
DragEventArgs.cs
DragEventHandler.cs
DrawItemEventHandler.cs
FlatStyle.cs
FormBorderStyle.cs
FormStartPosition.cs
FormWindowState.cs
GiveFeedbackEventArgs.cs
GiveFeedbackEventHandler.cs
HelpEventArgs.cs
HelpEventHandler.cs
IDataObject.cs
ImageList.cs
ImeMode.cs
IMessageFilter.cs
IWin32Window.cs
InputLanguageChangedEventArgs.cs
InputLanguageChangedEventHandler.cs
InputLanguageChangingEventArgs.cs
InputLanguageChangingEventHandler.cs
InputLanguageCollection.cs
InputLanguage.cs
InvalidateEventArgs.cs
InvalidateEventHandler.cs
LayoutEventHandler.cs
LeftRightAlignment.cs
MdiLayout.cs
MeasureItemEventArgs.cs
MeasureItemEventHandler.cs
MenuMerge.cs
Message.cs
MouseEventHandler.cs
QueryAccessibilityHelpEventArgs.cs
QueryAccessibilityHelpEventHandler.cs
QueryContinueDragEventArgs.cs
QueryContinueDragEventHandler.cs
SizeGripStyle.cs
UICues.cs
UICuesEventArgs.cs
UICuesEventHandler.cs
* Added (new, incomplete):
Cursor.cs
Menu.cs
ContextMenu.cs
* Changed (to be compatible, now have empty methods):
MainMenu.cs
MenuItem.cs
* Added (provides static conversion methods):
SWFGtkConv.cs
* Work on:
Control.cs - Completed stub, connected some events.
Forms.cs - Completed stub.
Button.cs - Some methos overriden, some property changes have
to be aplied to the contained Gtk.Label (instead to the Gtk.Button)
* Others minor changes...
svn path=/trunk/mcs/; revision=21206
* CryptoConfig.cs: Now use internal Environment.GetMachineConfigPath()
to find machine.config. Initialization removed from static constructor
to speed up 98% of software that do not requires it.
svn path=/trunk/mcs/; revision=21198
Fixed bug when routing style is RequestElement.
Removed GetMethodFromAction. This is done now in the type stub.
Other minor fixes.
* Methods.cs, WebServiceHelper.cs: Faults are always serialized using
literal format. Removed unneded code.
svn path=/trunk/mcs/; revision=21197
* X509CapiTest.cs: New. Unit test for loading a certificate using a
(CryptoAPI) handle.
* X509SpcTest.cs: Changed the code signing sample for an assembly
signed by a valid (not a test) certificate so the test should run fine
under Windows (without changing any configuration).
svn path=/trunk/mcs/; revision=21187
* AuthenticodeDeformatter.cs: Now throw a COMException for invalid
signature. Added a SigningCertificate property (to be independant of
the certificate collection ordering).
svn path=/trunk/mcs/; revision=21184
* mini-ppc.c, cpu-g4.md, inssel-ppc.brg: fixed some opcode lengths
and integer to fp conversions. Added support for overflowing
arguments on the stack. Reserve a couple more registers as temps.
Added support for aot compilation (as output still needs to be
tweaked, though).
svn path=/trunk/mono/; revision=21183
Both methods add to rendered Header a colspan attribute according to the rows count.
After the change the colspan is added according to the columns count.
svn path=/trunk/mcs/; revision=21179
* daemon.c: change channel data structure so
input sources are removed from glib event loop
properly. xsp works better on Solaris and
fixes#51278
svn path=/trunk/mono/; revision=21178
* XmlUrlResolver.cs : GetEntity() does not return direct network stream
that may hold up connection. Now it reads up all the content stream.
svn path=/trunk/mcs/; revision=21173
* reflection.c (mono_image_add_decl_security): New function to emit
declarative security.
* reflection.h reflection.c: Add support for declarative security.
* appdomain.c (MONO_CORLIB_VERSION): Bump version number.
svn path=/trunk/mono/; revision=21168
In .NET if the checkbox is disabled ,its text appears disabled too.
In Mono the text appears enabled. the fix is in Render().
svn path=/trunk/mcs/; revision=21167
need to be derived types of the includer. This fixes bug #52152.
Added null check for Name property of XmlEnumAttribute. This fixes
bug #52155.
* XmlSerializationReader.cs: Fixed some error messages.
* XmlSerializationReaderInterpreter.cs: Check that the root element has
the correct local name and namespace. This fixes bug #52038.
Throw exception if enum value can't be parsed.
* XmlTypeMapping.cs: Don't try to parse numeric enum values. This fixes
bug #52041.
svn path=/trunk/mcs/; revision=21166
* MACAlgorithm.cs: Fixed difference between 1.0 and 1.1 framework.
The 1.0 framework is adding an additional padding block (empty)
to MAC when MACing an exact multiple of the TripleDES block size.
svn path=/trunk/mcs/; revision=21163
* SymmetricAlgorithm.cs: Fixed padding for None and Zeros modes. Unit
tests for padding modes are now in PaddingModeTest.cs.
svn path=/trunk/mcs/; revision=21162
* PaddingModeTest.cs: New. Unit tests to check every padding modes for
symmetric algorithms.
* MACTripleDESTest.cs: Updated unit tests for NUnit2 and to work for
both 1.0 and 1.1 framework.
svn path=/trunk/mcs/; revision=21160
* ProviderSectionHandler.cs: use XPath to get the providers to avoid
getting an exception when there's whitespace, comments... Patch by Marco
Canini <[email protected]>.
svn path=/trunk/mcs/; revision=21136
* Mono.Http.Modules/AuthenticationModule.cs:
* Mono.Http.Modules/BasicAuthenticationModule.cs:
* Mono.Http.Modules/DigestAuthenticationModule.cs: new modules to do
Basic and Digest authentication.
* samples/auth.xml: sample user/password file for the modules.
svn path=/trunk/mcs/; revision=21131
* AspGenerator.cs: ignore <tbody> when we're inside a server table and
fail when runat="server" is applied to <tbody> with a parse error
instead of waiting for a compilation error. Fixes bug #52157.
svn path=/trunk/mcs/; revision=21129
* BuiltInDatatype.cs : Added code to tell which facets were valid on
types derived from each basetype.
* XmlSchemaSimpleTypeRestriction.cs : Complain if an invalid facet
has been added to a restriction.
svn path=/trunk/mcs/; revision=21128
* System.Xml.Schema/XmlSchemaSimpleTypeRestriction.cs : Check that
min/max/lengths specified are integers. Also made some error messages more
useful.
* Test/System.Xml.Schema/XmlSchemaLengthFacetTests.cs : Tests for
non-integers failing as length facets, and changed the assert for the
correct type.
svn path=/trunk/mcs/; revision=21127
* SignedXmlTest.cs: Added a new unit test to verify both bugs (no
key assigned on verification and GetElementId) found when fixing
#52084.
svn path=/trunk/mcs/; revision=21125
* DateTime.cs: Be sure that the array access is not out of range
when looking for ArgumentOutOfRangeException in the year value.
svn path=/trunk/mcs/; revision=21124
* SignedXml.cs: Now load the public key when verifying (bug #52084)
and can find an element by it's Id when Id isn't defined in DTD or XSD.
svn path=/trunk/mcs/; revision=21123
* ChangeLog XmlCommand.cs XmlQueryArgumentList.cs
* XmlQueryCompileException.cs XmlQueryException.cs XsltProcessor.cs:
Move classes from the System.Data.SqlXml assembly where they
did not belong.
svn path=/trunk/mcs/; revision=21114
* statement.cs (Statement.DoEmit, Statement.Emit): Don't return
any value here; we're now using flow analysis to figure out
whether a statement/block returns a value.
svn path=/trunk/mcs/; revision=21104
* flowanalysis.cs (UsageVector.MergeFinallyOrigins): Made this
working again.
(FlowBranching.MergeFinally): Don't call
`branching.CheckOutParameters()' here, this is called in
MergeTopBlock().
(FlowBranchingException.AddSibling): Call MergeFinallyOrigins()
when adding the `finally' vector.
svn path=/trunk/mcs/; revision=21102
* appdomain.c verify.c: Moved corlib version checking into its own
function in appdomain.c since it needs to create vtables etc.
svn path=/trunk/mono/; revision=21097
* flowanalysis.cs
(UsageVector.MergeJumpOrigins, FlowBranching.Label): Make this
actually work and also fix#48962.
svn path=/trunk/mcs/; revision=21095
* decl.cs: Do not check System.Object for nested types,
since we know it does not have any. Big bang for buck:
BEFORE:
Run 1: 8.35 seconds
Run 2: 8.32 seconds
corlib: 17.99 seconds
AFTER:
Run 1: 8.17 seconds
Run 2: 8.17 seconds
corlib: 17.39 seconds
svn path=/trunk/mcs/; revision=21085
*Reorganized files with astyle utility.
*NpgsqlState.cs, NpgsqlClosedState.cs, NpgsqlReadState.cs, NpgsqlStartupState.cs:
Changed code to use a buffered stream on demand instead of using the cached BufferedStream. It as giving hangs.
*NpgsqlEventLog.cs:
Removed the obsolete warning from file and changed the signature of the method from public to private. This make the building cleaner.
*NpgsqlCommand.cs, NpgsqlDataReader.cs:
Added support for CloseCommand behavior.
*NpgsqlConnection.cs:
Removed the cached BufferedStream. Now only uses the raw Stream.
*NpgsqlParameter:
Fixed a small bug which prevented the parameter name and its value from being set if the value of parameter was null.
svn path=/trunk/mcs/; revision=21079
* inssel-ppc.brg, mini-ppc.h, mini-ppc.c: support for passing
structures by value. Misc fixes.
* objects.cs: more tests.
svn path=/trunk/mono/; revision=21078
* sbperf1,sbperf2.cs: Added performance test for StringBuilder
* Makefile.am: Added StringBuilder perf test to build
svn path=/trunk/mono/; revision=21077
without element name (use anyType in this case).
In GetOutMimeFormatter(), support MimeContentBinding.
* ProtocolImporter.cs, SoapProtocolImporter.cs: Improved error and warning
handling. Minor fixes.
* DiscoveryReference.cs: In FilenameFromUrl(), improved name generation
for some common cases.
svn path=/trunk/mcs/; revision=21073
* XmlCodeExporter.cs: Do not add XmlElement attributes if the member is Any.
* XmlSchemaImporter.cs: Implemented ImportAnyType(). Improved import of
encoded array type. Added support for enums with [Flags].
In encoded format, unqualified types are schema types by default.
svn path=/trunk/mcs/; revision=21072
* ScriptCompilerInfo.cs : SecurityManager.ResolvePolicy() was not
implemented yet.
* MSMslScriptManager.cs : modified generated assembly class to be unique
through running AppDomain.
* XsltCompiledContext.cs : XsltExtensionFunction.Invoke() has to cast
arguments to actual argument types. Bugzilla #51450 should be fixed.
svn path=/trunk/mcs/; revision=21063
* XmlAttributeCollection.cs,
XmlElement.cs : Fixed bug #51415.
When adding attribute to an element using Attributes, it failed.
svn path=/trunk/mcs/; revision=21059
* Control.cs: remove a few dangling ^M, don't set values for fields
that has the default value. If Visible is modified and we're tracking
viewstate, save and restore it. Fixes bug #48689.
svn path=/trunk/mcs/; revision=21056
* class.cs (FindMembers): Allocate arraylists on demand. Most of the
time we are returning 0 members, so we save alot here.
svn path=/trunk/mcs/; revision=21047
* XmlSchemaExporter.cs: In rpc format, make sure that parameters with the
same name have the same type.
* XmlSchemaImporter.cs: Support xml:lang.
* XmlSerializationReader.cs, XmlSerializationWriterInterpreter.cs:
fixed wrong namespace for the arrayType attribute.
svn path=/trunk/mcs/; revision=21034
* flowanalysis.cs (UsageVector.MergeResult): Renamed this back to
`MergeChild()', also just take the `FlowBranching' as argument;
call Merge() on it and return the result.
(FlowBranching.Merge): We don't need to do anything if we just
have one sibling.
svn path=/trunk/mcs/; revision=21029
* flowanalysis.cs: Use a list of `UsageVector's instead of storing
them in an `ArrayList' to reduce memory usage. Thanks to Ben
Maurer for this idea.
svn path=/trunk/mcs/; revision=21026
* flowanalysis.cs (MergeResult): This class is now gone; we now
use the `UsageVector' for this. The reason for this is that if a
branching just has one sibling, we don't need to "merge" them at
all - that's the next step to do.
(FlowBranching.Merge): We now return a `UsageVector' instead of a
`MergeResult'.
svn path=/trunk/mcs/; revision=21024
Reworked flow analyis and made it more precise and bug-free. The
most important change is that we're now using a special `Reachability'
class instead of having "magic" meanings of `FlowReturns'. I'll
do some more cleanups and optimizations and also add some more
documentation this week.
* flowanalysis.cs (Reachability): Added `Throws' and `Barrier';
largely reworked this class.
(FlowReturns): Removed `Unreachable' and `Exception'; we now use
the new `Reachability' class instead of having "magic" values here.
(FlowBranching): We're now using an instance of `Reachability'
instead of having separate `Returns', `Breaks' etc. fields.
* codegen.cs (EmitContext.EmitTopBlock): Set `has_ret' solely
based on flow analysis; ignore the return value of block.Emit ().
svn path=/trunk/mcs/; revision=21021
* XmlDocument.cs : Fixed ReadNode() to call AppendChild() to document
after setting all attribute nodes. Modified ReadNode() to handle
Depth comparison and error handling (!= to <). It allows MS's
SgmlReader bug that returns incorrect Depth.
svn path=/trunk/mcs/; revision=21014
* AssemblyBuilder.cs (GetFiles): Get rid of unneccessary override.
* AssemblyBuilder.cs (ImageRuntimeVersion): Add override to keep
signature compatibility with MS.NET.
* TypeBuilder.cs (MemberType): Get rid of unneccessary override.
svn path=/trunk/mcs/; revision=20998
* jscript-lexer-parser.g: added 'tokens { IN = "in"; INSTANCE_OF =
"instanceof"; }' in order to be able to parse both keywords. When
generating the parser, one warning about nondeterminism
(k==1:"in") is generated ignore it.
svn path=/trunk/mcs/; revision=20994
* Process.cs: if there's an error when starting the process, the 'pid'
field contains the GetLastError code. Use that for the Win32Exception.
svn path=/trunk/mcs/; revision=20976
Added some text constans for transport keys.
* HttpServerChannel.cs: Add SdlChannelSinkProvider to the default
sink provider chain. Removed unused ErrorMessage class.
svn path=/trunk/mcs/; revision=20966
* exceptions-x86.c, exceptions-ppc.c: allow the exception object
to be any type per the spec. Fix abnormal memory usage when
the same object is repeatedly thrown.
svn path=/trunk/mono/; revision=20934
* flowanalysis.cs (FlowBranching.MergeChild, MergeTopBlock):
Changed return type from `FlowReturns' to `Reachability'.
svn path=/trunk/mcs/; revision=20921
* flowanalysis.cs (FlowBranching.Reachability): New sealed class.
(FlowBranching.MergeResult): Replaced the `Returns', `Breaks' and
`Reachable' fields with a single `Reachability' one.
svn path=/trunk/mcs/; revision=20918
* class.cs (FindMembers): Remove foreach's.
Bootstrap times:
BEFORE
Run 1: 8.74 seconds
Run 2: 8.71 seconds
AFTER
Run 1: 8.64 seconds
Run 2: 8.58 seconds
svn path=/trunk/mcs/; revision=20916
* cs-parser.jay:
* gen-treedump.cs:
* statement.cs:
This patch does a few things:
1. EmptyStatement is now a singleton, so it is never reallocated.
2. All blah is EmptyStatement constructs have been changed to
blah == EmptyStatement.Value, which is much faster and valid
now that EmptyStatement is a singleton.
3. When resolving a block, rather than allocating a new array for
the non-empty statements, empty statements are replaced with
EmptyStatement.Value
4. Some recursive functions have been made non-recursive.
Mainly the performance impact is from (3), however (1) and (2) are needed for
this to work. (4) does not make a big difference in normal situations, however
it makes the profile look saner.
Bootstrap times:
BEFORE
9.25user 0.23system 0:10.28elapsed 92%CPU (0avgtext+0avgdata 0maxresident)k
9.34user 0.13system 0:10.23elapsed 92%CPU (0avgtext+0avgdata 0maxresident)k
Total memory allocated: 56397 KB
AFTER
9.13user 0.09system 0:09.64elapsed 95%CPU (0avgtext+0avgdata 0maxresident)k
8.96user 0.24system 0:10.13elapsed 90%CPU (0avgtext+0avgdata 0maxresident)k
Total memory allocated: 55666 KB
svn path=/trunk/mcs/; revision=20915
* support.cs: Rewrite DoubleHash to use its own impl. Is faster
than the hashtable in a hashtable version
* decl.cs: Right now, whenever we try to lookup a type inside a namespace,
we always end up concating a string. This results in a huge perf
loss, because many strings have to be tracked by the GC. In this
patch, we first use a hashtable that works with two keys, so that
the strings do not need to be concat'ed.
svn path=/trunk/mcs/; revision=20914
* generics.cs (Constraints.Types): Removed.
(Constraints.Resolve): Just resolve everything to TypeExpr's, not
to Type's.
(Constraints.ResolveTypes): New public method; resolves the
TypeExpr's to Type's.
(TypeParameter.Define): TypeBuilder.DefineGenericParameter() no
longer takes the constraints.
(TypeParameter.DefineMethod): Likewise.
(TypeParameter.DefineType): New public method. Calls
`TypeBuilder/MethodBuilder.SetGenericParameterConstraints()' to set
the constraints.
svn path=/trunk/mcs/; revision=20899
* cs-parser.jay, cs-tokenizer.cs: `where' is not a keyword, it
just has some special meaning in some situations. For instance,
it is allowed to use `where' as the name of a variable etc.
svn path=/trunk/mcs/; revision=20896
* icall.c (ves_icall_TypeBuilder_define_generic_parameter): Return
a MonoReflectionGenericParameter, also take the parameter index
and name as arguments.
(ves_icall_MethodBuilder_define_generic_parameter): Likewise.
(ves_icall_MonoGenericParam_initialize): New interncall.
(ves_icall_Type_make_byref_type): New interncall.
* reflection.h (MonoReflectionGenericParam): Derive from
MonoReflectionType, not just from MonoObject. Added `refobj' and
`index' fields.
* reflection.c (mono_reflection_define_generic_parameter): Create
and return a new MonoReflectionGenericParam; don't initialize the
constraints here.
(mono_reflection_initialize_generic_parameter): New public method;
initializes the constraints and creates the `param->pklass'.
svn path=/trunk/mono/; revision=20893
* TypeBuilder.cs (TypeBuilder.MonoGenericParam): Removed; use the
new `MonoGenericParam' class instead (in S.R/MonoGenericInst.cs).
svn path=/trunk/mcs/; revision=20892
* codegen.cs (Init): Create the dynamic assembly with
AssemblyBuilderAccess.Save, to enable some optimizations in the runtime.
svn path=/trunk/mcs/; revision=20884
* reflection.h reflection.c: Use the new fields 'num_types',
'num_fields' and 'num_methods' to track the number of types etc.
svn path=/trunk/mono/; revision=20883
* ModuleBuilder.cs: Double the size of the types array during insertion
do avoid excessive memory allocation and copying. Track the number of
types in a separate variable.
* TypeBuilder.cs: Same for the 'fields' and 'methods' arrays.
svn path=/trunk/mcs/; revision=20882
* Environment.cs: Add a version number for the corlib-runtime interface
to make it easier to diagnose problems resulting from a mismatch
between the two.
svn path=/trunk/mcs/; revision=20879
* Type.cs (GetMethod): Check type arguments within array
* MonoType.cs (GetMethodImpl): Handle methods with a new slot
(same signature but different classes (derived level)
svn path=/trunk/mcs/; revision=20875
* Binder.cs: Added internal helpers to get derived level and select the
most derived methodbase (used in GetMethodImpl)
svn path=/trunk/mcs/; revision=20873
* Uri.cs : more fixes. More presice UNC handling, opaque part
handling for non-standard uri (e.g. urn:go-mono.com), ToString()
fix (that returns AbsoluteUri, which is not escaped any more),
and so on.
svn path=/trunk/mcs/; revision=20871
* Added uri-test-generator.cs, test-uri-list.txt, test-uri-props.txt
and UriTest2.cs. They are test generator files.
svn path=/trunk/mcs/; revision=20869
XmlSchemaImporter.cs, XmlTypeMapElementInfo.cs, XmlTypeMapping.cs:
When using rpc format on a web service, members don't need to have any
specific namespace. Added a flag for turning namespace check on/off.
svn path=/trunk/mcs/; revision=20868
* DataRelationCollection.cs (IndexOf) : Added new method sensetive to case differences in relation name.
(Contains, IndexOf, this[], Add) : Call new IndexOf when needed.
* DataRow.cs (this[]) : Fix the condition for throwing RowNotInTableException.
(RejectChanges) : Detach row when state was Added.
(CollectionChanged) : Fix a bug.
* ExpressionElement (ValidateExpression) : Fix a bug.
* ForeignKeyConstraint.cs (AssertConstraint) : Added implementation. Check all rows from child table have
a parent row in the parent table.
(_validateColumns) : Fix bugs.
* MergeManager.cs (AdjustSchema) : Fix a bug.
* XmlDataLoader.cs (ReadModeInferSchema) : Change implementation. Now we can read nested xml, and we generate the relations
between the tables.
svn path=/trunk/mcs/; revision=20866
build:
2003-12-08 Peter Williams <[email protected]>
* config-default.make: Don't check for / define
ECHO_ESCAPE: the check isn't smart enough and
apparently OS X's shell somehow doesn't support
escape characters.
* library.make: Use embedded tab instead of
$(ECHO_ESCAPE). Fixes OS X build.
* executable.make: Same.
class/corlib:
2003-12-08 Peter Williams <[email protected]>
* Makefile: Use embedded tab instead of $(ECHO_ESCAPE).
Fixes build on OS X.
class/Microsoft.Web.Services:
2003-12-08 Peter Williams <[email protected]>
* Makefile: Update Makefile to use embedded tabs instead
of ECHO_ESCAPE. Fixes build on OS X.
svn path=/trunk/mcs/; revision=20858
* Uri.cs : Several fixes, including Unc problem, Host and LocalPath
fixes, null reference check for .ctor(Uri, string). This fixes
bug #51844.
svn path=/trunk/mcs/; revision=20857
* Mono.Security.dll.sources: Added PKCS#12 support for X.509 certificates.
* Mono.Security_test.dll.sources: Added unit tests for PKCS#12.
svn path=/trunk/mcs/; revision=20850
* PKCS12Test.cs: New. Unit test for PKCS#12 files (with/without
passwords, weak/strong encryption) and PKCS#12 password based key
derivation.
svn path=/trunk/mcs/; revision=20849
* UTF8Encoding.cs (GetBytes string): Do not call base
The version in Encoding will call string.ToCharArray (),
allocating an extra array. By calling the better method
in our own class we can save memory.
svn path=/trunk/mcs/; revision=20846
* PublicKey.cs: New (1.2). Class that encapsulate an ASN.1 encoded
public key.
* X509BasicConstraintsExtension.cs: New (1.2). X.509 certification
extension for BasicConstraints.
* X509CertificateEx.cs: New (1.2). Augmented class to use X.509
certificates.
* X509CertificateExCollection.cs: New (1.2). Collection class for
X509CertificateEx.
* X509CertificateExEnumerator.cs: New (1.2). Enumerator class for
X509CertificateEx.
* X509ChainElement.cs: New (1.2). Information (certificate, status,
informations) for a member of a certificate chain.
* X509ChainElementCollection.cs: New (1.2). Collection class for
X509ChainElement.
* X509ChainElementEnumerator.cs: New (1.2). Enumerator class for
X509ChainElement.
* X509ChainStatus.cs: New (1.2). Chain status (many can apply to a
single X509ChainElement).
* X509Extension.cs: New (1.2). Base class for all certificate
extensions.
* X509ExtensionCollection.cs: New (1.2). Collection class for
X509Extension.
* X509ExtensionEnumerator.cs: New (1.2). Enumerator class for
X509Extension.
svn path=/trunk/mcs/; revision=20845
* ContentInfoTest.cs: Changed test for GetContentType.
* EnvelopedPkcs7Test.cs: New. Unit tests for EnvelopedPkcs7
(encryption).
* KeyTransRecipientInfoTest.cs: New. Unit tests for
KeyTransRecipientInfo.
* Pkcs7RecipientTest.cs: New. Unit tests for Pkcs7Recipient.
* SignedPkcs7Test.cs: New. Unit tests for SignedPkcs7 (signatures).
* SignedInfoTest.cs: New. Unit tests for SignedInfo.
* SubjectIdentifierTest.cs: New. Unit tests for SubjectIdentifier.
svn path=/trunk/mcs/; revision=20844
* ContentInfo.cs: Modified default Oid not to include description.
Added basic support for static GetContentType.
* EnvelopedPkcs7.cs: New. Partial implementation of PKCS#7 envelopes
(encrypted data).
* KeyAgreeRecipientInfo.cs: New. Stub for key agreement informations.
Note that key agreement algorithms (DH) are absent from the framework.
* KeyTransRecipientInfo.cs: New. Implementation for key transport
informations.
* Pkcs7Recipient.cs: New. Implementation of "recipients" - how it
links to a X.509 certificate (issuer and serial key or subject key
info).
* Pkcs7RecipientCollection.cs: New. Collection of Pkcs7Recipient.
* Pkcs7RecipientEnumerator.cs: New. Enumerator for Pkcs7Recipient.
* Pkcs7AttributeCollection.cs: New. Collection of Pkcs9Attributes.
* Pkcs7AttributeEnumerator.cs: New. Enumerator for Pkcs9Attributes.
* PublicKeyInfo.cs: New. Handle public key informations.
* RecipientInfoCollection.cs: New. Collection of RecipientInfo (and
inherited classes).
* RecipientInfoEnumerator.cs: New. Enumerator for RecipientInfo (and
inherited classes).
* SignedPkcs7.cs: New. Partial implementation of PKCS#7 signed
structures.
* SignerInfo.cs: New. Information (certificate and attributes) about
the signer. Actual signature/verification stuff is missing.
* SignerInfoCollection.cs: New. Collection of SignerInfo.
* SignerInfoEnumarator.cs: New. Enumerator for SignerInfo.
* SubjectIdentifier.cs: New. Contains the type of identifier linking
to a subject.
* SubjectIdentifierOrKey.cs: New. Contains the subject's public key or
an information linking to a subject public key.
svn path=/trunk/mcs/; revision=20843
* MonoSymbolTable.cs: It is faster to do a linear search
than it is to make a hashtable. Even though the linear
search is O(n^2) while the hashtable is O(n), the allocation
cost for a hashtable is *very* high, especially when only
a few members will be added.
svn path=/trunk/mcs/; revision=20842
* jscript-lexer-parser.g: things like 'new Point (10, 20).x' were
not parsable now they are. Mozilla's and Janet's test suites are
being really helpful.
svn path=/trunk/mcs/; revision=20837
* XmlUrlResolver.cs : Update with recent System.Uri change. This fixes
bugzilla #51808 (patch by Jeroen Zwartepoorte, a bit modified).
svn path=/trunk/mcs/; revision=20835
This has been moved to mini.c
* mini.c: in mono_method_to_ir, CEE_ISINST and CEE_CASTCLASS cases, if the
type being casted is marshalbyref it could be a proxy, so instead of
emitting the type check code, emit a call to a runtime method that will
perform the check by calling CanCastTo if needed.
svn path=/trunk/mono/; revision=20834
* icall.c: in, ves_icall_Remoting_RealProxy_GetTransparentProxy set
the custom_type_info flag of the transparent proxy.
* object.c: Added method mono_object_isinst_mbyref for casting mbyref
objects that supports IRemotingTypeInfo.
* object.h: Added custom_type_info field in transparent proxy.
svn path=/trunk/mono/; revision=20833
* Compiler.cs : Check stylesheet recursion. Check decimal-format name.
* GenericOutputter.cs, Outputter.cs, TextOutputter.cs :
Added WriteWhitespace() to assure not writing whitespaces as cdata.
* XslAttributeSet.cs : Error check if attribute-set contains other than
xsl:attribute. Error should be XsltException.
* XslDecimalFormat.cs : Complete equality check. Allow just one
character value for some attributes.
* XslStylesheet.cs : Made whitespace control setting overridable.
Added Version property (for the future compatibility mode).
Check unrecongnized top level element.
* XslTemplate.cs : Check priority as a number.
* XslTransformProcessor.cs : PushCDataState is now PushElementState,
for xsl:preserve-space and xsl:strip-space support.
* XsltCompiledContext.cs : Implemented PreserveWhitespace() (far from
incomplete), PushScope and Pop
svn path=/trunk/mcs/; revision=20827
* XslAttribute.cs, XslElement.cs, XslVariable.cs : Check name.
* XslChoose.cs : Check content validity (xsl:when or xsl:otherwise).
* XslComment.cs, XslCopy.cs, XslProcessingInstruction.cs,
XslValueOf.cs : Check content and attributes.
* XslCompiledElement.cs : Added ParentType to check content validity.
* XslCopy.cs : Check attribute set existence.
* XslCopy.cs, XslCopyOf.cs Don't output whitspace as cdata.
* XslLiteralElement.cs : Added extension element prefixes as
namespace exclusion target. Consider namespace-aliases.
* XslNumber.cs : level="any" should also be emptiable. MatchesCount()
should also consider node type. Reverted a little formatting stuff.
* XslTemplateContent.cs : Check if content nodes are containable.
* XslText.cs : New .ctor() argument, specifying if it is whitespace.
Never output whitespace as cdata.
svn path=/trunk/mcs/; revision=20826
* class.c (mono_class_create_from_generic): Removed.
(mono_class_from_generic): Check `ginst->klass' before doing
anything else. This is important to fully support "recursive"
generic types.
* metadata.c (do_mono_metadata_parse_generic_inst): Create an
empty `generic_inst->klass' before doing anything else.
svn path=/trunk/mono/; revision=20822
* ecore.cs : problems trying to implicit convert OMITTED arguments, solved
* mb-tokenizer.cs, mb-parser.jay, typemanager.cs : support for the date primitive type and date literals
* testmbas/WriteOK.vb: testing date type and date literal
svn path=/trunk/mcs/; revision=20821
* String.cs: Don't use CompareInfo for non-culture-sensitive
IndexOf and LastIndexOf methods.
2003-12-06 Dick Porter <[email protected]>
* CompareInfo.cs: Don't build strings in Compare, IndexOf and
LastIndexOf methods. Avoid the icall in IndexOf and LastIndexOf
if the search parameter is a char and the CompareOptions include
Ordinal.
svn path=/trunk/mcs/; revision=20820
* verify.c:
* object.h:
* icall.c:
* locales.c: Use C structs to access class fields. Don't do a
conversion between MonoString and UChar because both are
platform-endian UTF-16. Compare now takes startindex and count
parameters. Add a char overload for IndexOf. Speed up the
invariant string IndexOf.
svn path=/trunk/mono/; revision=20819
* mini-x86.c (mono_arch_emit_prolog): Fix stack space allocation for
methods with large stack frames under Win32.
svn path=/trunk/mono/; revision=20818
sessions. This fixes bug #51647.
* SessionInProcHandler.cs:
* SessionSQLServerHandler.cs:
* SessionStateServerHandler.cs: Cleanup params for
HttpSessionState ctor. Make sure to always set is new, cookieless,
and readonly properly.
svn path=/trunk/mcs/; revision=20811
* profiles/net_1_2.make: New profile; uses the .NET 1.2 API's, but
without generics and with mcs instead of gmcs.
* profiles/bootstrap.make: New profile; already use the newly
compiled mcs to compile corlib.
svn path=/trunk/mcs/; revision=20807
* jscript-lexer-parser.g: Now I keep track of the parent for most
of the syntatic constructs. Fixed object_literal rule.
* ast.cs: Added field parent. This will help me to track nested
blocks for all of the syntatic constructs and will allow to Emit
everything in one single pass.
* FunctionDeclaration.cs, FunctionExpression.cs: Rearranged the
parent stuff.
* Block.cs, FunctionObject.cs: deleted parent field as AST will
hold it. Delete parent parameter from constructor.
* CodeGenerator.cs: Add field gc_ig (global code IL generator) to
EmitContext class. The idea is Emitting everything in one pass (decls
and 'Global Code' method, the parent reference let me know which IL
generator use, gc_ig or ig).
* Equality.cs, BooleanLiteral, Relational.cs: Added new parameter to
constructor. Use new parent reference for choosing the IL
generator. NumericLiteral a 'hard coded' int32 IL emittion added
for testing.
* StringLiteral.cs, Literal.cs (BooleanLiteral.Emit): now I use
the parent reference to infere which IL generator to use.
* VariableDeclaration.cs: deleted parent field. At Emit, now I use the parent
reference to infer which IL generator to use.
* expression.cs: Added paramenter parent to constructor of: Unary,
Binary, Conditional, Call.
svn path=/trunk/mcs/; revision=20804
ConvertCodeSourceFileToAssemblyFile().
* MetaDataCodeGenerator.cs, MetaDataExporter.cs: Many fixes.
Added support for delegates, base classes, implemented interfaces,
methods, properties, ISerializable, enums, etc.
svn path=/trunk/mcs/; revision=20798
* SqlXmlTextReader.cs: applied patch from Chris Masters <[email protected]>
fix peek so it checks if it is at the end and also to make sure that if Read()
advances the position past the end of the localBuffer array, it makes
a call to GetNextBuffer(). fixes bug #40253 System.IndexOutOfRangeException when
using SqlCommand.ExecuteXmlReader()
svn path=/trunk/mcs/; revision=20797
* Uri.cs: applied patch from Chris Masters <[email protected]>
fixes bug #51510. ftp uses port 21, https uses 443 and
parse the host name properly for UNC path.
svn path=/trunk/mcs/; revision=20796
* Multiplexer.cs : set_XmlResolver is marked as obsolete.
Added new Transform() methods introduced in .NET 1.1.
CRLF and LF are desparately mixed, so adjusted to LF.
* XslTransform.cs :
CRLF and LF are desparately mixed, so adjusted to CRLF.
svn path=/trunk/mcs/; revision=20795
* HttpApplication.cs: ThreadAbortException is ok on Redirect.
* HttpContext.cs: added TimeoutPossible property.
* HttpResponse.cs: throw ThreadAbortException if End () is called within
a step in which is possible to timeout.
Fixes bug #51703.
svn path=/trunk/mcs/; revision=20791
* XmlTextWriter.cs : WriteComment() should block "--", not full "-->".
* XmlDocumentNavigator.cs : Added null check in MoveToNextAttribute().
This may fix bug #51415.
svn path=/trunk/mcs/; revision=20778
* CompareInfo.cs: Implement the deserialization callback
* CultureInfo.cs: Allow CompareInfo to see the CultureMap so that
it can construct the ICU collator itself
svn path=/trunk/mcs/; revision=20776
* mini-x86.c (mono_arch_get_allocatable_int_vars): Sort the var list
at the end instead of inserting each variable into the sorted list.
* linear-scan.c (mono_varlist_sort): New helper function.
svn path=/trunk/mono/; revision=20774
* image.c (mono_image_load_file_for_image): Cache loaded images in the
image->files array.
* image.c (load_class_name): Load class names from the EXPORTEDTYPES
table as well.
* assembly.c (mono_assembly_load_references): Only load references
once.
* class.c (mono_class_from_name): Avoid linear search of the
EXPORTEDTYPE table.
* loader.c (mono_field_from_token): Cache lookups of fieldrefs as well.
svn path=/trunk/mono/; revision=20768
value. This is because radio button groups are created by setting
the name to the same value with each button, then on postback the
value of the name is the id of the selected radio button.
svn path=/trunk/mcs/; revision=20761
onbegin request handler that parsers out session ids and rewrites
the path. Also redirect to a url with an embedded session id if we
are creating a new cookieless session.
* SesionInProcHandler.cs:
* SessionSQLServerHandler.cs:
* SessionStateServerHandler.cs: Use SessionId::Lookup to lookup session
ids, don't set the session id cookie anymore. That is handled by
the SessionStateModule.
* SessionId.cs: Add method for looking up session ids, add
some constants.
svn path=/trunk/mcs/; revision=20759
ApplyAppPathModifer and add a method to set the app path modifier.
* HttpRequest.cs: Add utility method for setting a request
header.
svn path=/trunk/mcs/; revision=20758
* ConfigurationSettings.cs: initialize config in
ChangeConfigurationSettings if it has not been done yet. Patch by
George Kodinov [email protected]). Fixes bug #51643.
svn path=/trunk/mcs/; revision=20744
* tramp-x86.c (x86_class_init_trampoline): Avoid patching when running
under valgrind.
* mini-x86.c (mono_arch_local_regalloc): Do not allocate transient
memory from the memory pool.
* driver.c (main_thread_handler): Turn on all optimizations when
--aot is used.
* mini.c (mono_find_jit_opcode_emulation): Turn emul_opcode_hash into
an array for better performance.
* regalloc.c (mono_regstate_assign): Fix memory leak.
svn path=/trunk/mono/; revision=20732
* icall.c (ves_icall_get_enum_info): Update after changes to
mono_metadata_get_constant_index ().
* icall.c: Get rid of get_type_info icall, use a separate icall for
each type property to avoid needless memory allocations. Fixes#51514.
svn path=/trunk/mono/; revision=20729
* metadata.c (mono_metadata_get_constant_index): Add a 'hint' parameter
to avoid needless binary searches.
* class.c (class_compute_field_layout): Move the initialization of
field->def_value to mono_class_vtable ().
* class.c (mono_class_layout_fields): Enable GC aware auto layout for
non-corlib types.
* object.c (mono_object_allocate): Make it inline.
* object.c (mono_object_allocate_spec): Make it inline.
svn path=/trunk/mono/; revision=20728
* debug-mini.c (mono_debug_serialize_debug_info): New function to
serialize the debug info.
* debug-mini.c (mono_debug_add_aot_method): New function to load the
debug info from the serialized representation.
* aot.c: Save debug info into the generated file and load it when
loading a method.
* mini.h (MONO_AOT_FILE_VERSION): Bump version number.
svn path=/trunk/mono/; revision=20727
* Expression.cs : XPathSorters.Compare() should compare document
position. See last sentence of XSLT 1.0 secion 10.
svn path=/trunk/mcs/; revision=20720
* XslNumber.cs : Fixed GetFormatNumber() not to emit number (0) in
case of count 0. Improved format-string, but still wondering.
svn path=/trunk/mcs/; revision=20719
* DefaultContext.cs : Overrode all functions' ToString().
XPathFunctions.ToNumber() trims whitespaces at both side.
Fixed NullReferenceException in normalize-space().
* Iterator.cs : Fixed AncestorOrSelfIterator.MoveNext() didn't handle
attribute or namespace node correctly.
SlashIterator.Clone() didn't clone "next node iterator" correctly.
EnumeratorIterator.ctor() should raise an error (not at Clone())
when the target IEnumerator is not ICloneable.
svn path=/trunk/mcs/; revision=20711
* HttpWebRequest.cs: when building the redirect URI, use the previous
one as the base URI, which makes relative URIs work.
svn path=/trunk/mcs/; revision=20704
* DigestClient.cs: merged in code from Sebastien Pouliot and Greg
Reinacker that Supports cnonce and preauthentication.
svn path=/trunk/mcs/; revision=20703
* pen.c (GdipSetPenLineCap): fix arg type so it compiles
using HP compiler.
* gdip.h: fix spelling of GdipSetPenLineJoin and add
prototype for GdipGetPenLineJoin
svn path=/trunk/mcs/; revision=20702
* System.Web/HttpApplication.cs: handle FileNotFound and
DirectoryNotFound exceptions when creating the handler to generate
a better error page.
* System.Web/HttpException.cs: display the http_code if available.
Changed all \n by \r\n to make the hidden stack trace readable.
* System.Web/StaticFileHandler.cs: don't send the real path in th
eerror.
* System.Web.Compilation/AspGenerator.cs: basic checking of ID validity.
Throw a ParseException when mixing languages.
* System.Web.UI/TemplateParser.cs: basic check for 'classname' attribute
and added patch by [email protected] for bug #51568, which fixes automatic
class names for pages starting with a number.
svn path=/trunk/mcs/; revision=20695
* NumberFormatInfo.cs: Helper called by runtime locale
construction from ICU. Patch by Mohammad DAMT ([email protected]).
svn path=/trunk/mcs/; revision=20688
* Compiler.cs : In FromListString(), it should use default ns,
not unqualified one.
* GenericOutputter.cs : CheckState() - attribute's Prefix should take
precedence. Doctype should be written even if SYSTEM id is absent.
Fixed possible multiple xmlns output.
* HtmlEmitter.cs :
- Encoding output using META element.
- Doctype name is fixed (html).
- Double quotation on PUBLIC and SYSTEM missing.
- Fixed incorrect tag name check for IMG.
- '>' should not be escaped.
* XmlWriterEmitter.cs :
Added newline before doctype. In WriteComment(), "--" and tail
'-' are not allowed (it escapes, while XmlWriter simply rejects).
* XslTransformProcessor.cs : cdata-section-elements should enclose
direct child tests only. Added PreserveWhitespace() (incomplete).
* XsltCompiledContext.cs : Implemented PreserveWhitespace() (incomplete).
svn path=/trunk/mcs/; revision=20686
* System.Web.dll.sources: added WebConfigurationSettings.
* System.Web/HttpContext.cs: updated GetConfig and GetAppConfig to new
API.
* System.Web/HttpResponse.cs: separate initialization of the HttpWriter,
as it tries to read configuration settings while the config. system is
not available (ie, before the first request).
* System.Web/HttpRuntime.cs: delayed queueManager and response writer
initialization until the configuration system is working.
* System.Web.Configuration/GlobalizationConfiguration.cs: return null
when the configuration is not available.
* System.Web.Util/WebEncoding.cs: use the Default encoding when the
globalization configuration is not available.
* System.Web.Configuration/WebConfigurationSettings.cs: handle
configuration for System.Web. It replaces the default
IConfigurationSystem with itself and handles web.config files
oddities.
* System.Web.UI.WebControls/WebControl.cs: don't create the attributes
when GetAttribute is called.
svn path=/trunk/mcs/; revision=20681
* quicksearch.cs: Create and use hashtable only for "long" search
strings.
(Search): Use simple scan for a single-character search strings.
(GetChar): Simplify case sensitivity handling.
svn path=/trunk/mcs/; revision=20680
* ConfigurationSettings.cs: handle allowdefinition and allowlocation,
added locks, don't reopen the file for every new section to be read,
but keep them as strings and build the section handlers with that.
svn path=/trunk/mcs/; revision=20678
* ChallengeResponseTest.cs: New. Unit tests for NTLMv1 challenge response.
* Type1MessageTest.cs: New. Unit tests to encode/decode negotiation messages.
* Type2MessageTest.cs: New. Unit tests to encode/decode challenge messages.
* Type3MessageTest.cs: New. Unit tests to encode/decode authentication message.
svn path=/trunk/mcs/; revision=20677
(Add) : Find if the new column name is the same as the one found in IndexOf.
(IndexOf) : New method.
(Contains) : Use new IndexOf.
(IndexOf) : Use new IndexOf.
* DataRelationCollection.cs (DataRelationCollection.AddCore) : Add The Relation to the collection.
(DataSetRelationCollection.AddCore) : First add the UniqueConstraint.
* DataRow.cs (this[int columnIndex, DataRowVersion version]) : Change exceptions.
(Delete) : Detach row if the RowState was Added.
(GetChildRows) : Get the array form the ChildTable.
(GetParentRows) : Get the array from the ParenTable.
* DataRowCollection.cs (Remove) : Check if row state is Detached to avoid exception.
* DataSet.cs (IXmlSerializable.ReadXml) : Do not call MoveToContent and ReadEndElement - the XmlSerializationReader does it.
* DataTable.cs (PrimaryKey) : Fix bugs.
(Compute) : First call Select. Then create ExpressionAggregate to aggregate the Select result.
* DataTableCollection.cs (Add) : Fix a bug.
* ForeignKeyConstraint.cs (_validateColumns) : Throw correct exception.
* MergeManager.cs (AdjustSchema) : Fix a bug.
svn path=/trunk/mcs/; revision=20666
(Result) : Added new interface to AggregateExpression that get DataRow[] as a param.
Some code style changes (tab instead of whit spaces, alignment, etc...).
svn path=/trunk/mcs/; revision=20665
* wapi-private.h:
* mutexes.c (CreateMutex):
* mutex-private.h (struct _WapiHandle_mutex):
* handles.c: Look up certain handle types by name, in a shared
namespace. Currently only mutex handles have this implemented.
Fixes bug 51089.
* semaphores.c (CreateSemaphore):
* events.c (CreateEvent): Fix signature
2003-12-01 Dick Porter <[email protected]>
* threads.c: Fix signature and call in CreateMutex and
CreateEvent.
svn path=/trunk/mono/; revision=20664
* String.cs: Make Compare, IndexOf, LastIndexOf, StartsWith,
Replace, ToLower, ToUpper and Equals use the correct CultureInfo.
2003-12-01 Dick Porter <[email protected]>
* CultureInfo.cs: Culture name creation is case-insensitive.
Implemented CurrentCulture and CurrentUICulture.
* CompareInfo.cs: Fix IndexOf and LastIndexOf so that they work
for combining characters.
2003-12-01 Dick Porter <[email protected]>
* Thread.cs: Implement CurrentCulture and CurrentUICulture
2003-12-01 Dick Porter <[email protected]>
* CaseInsensitiveComparer.cs: Construct the default comparers when
they're needed, to avoid a dependency loop with CultureInfo's
constructor.
svn path=/trunk/mcs/; revision=20663
* Queue.cs: patch from Carlos Barcenilla.
public class Queue
- method: ICollection.Clone()
- Optimized. Removed unneeded instructions.
- method: public static Queue Synchronized (Queue queue)
- ArgumentNullException.ParamName must be "queue", not null.
- method: public virtual void TrimToSize()
- Must increment modCount.
private class SyncQueue
- method: public override object Clone ()
- Must return a synchronized (SyncStack) instance.
- method: public override void TrimToSize ()
- Not implemented.
svn path=/trunk/mcs/; revision=20644
# echo "This is a list of pending classes, and links to their documentation on MSDN.Microsoft.com<p><p>" > pending-classes
# for i in `cat pending-classes.in`; do x=`echo $$i | sed s/\\\.//g`; link=`echo http://msdn.microsoft.com/library/default.asp?url=/library/en-us/cpref/html/frlrf@@@ClassTopic.asp | sed "s/@@@/$$x/"`; echo " <a href=\"$$link\">$$i</a><br>" >> pending-classes; done
The Mono C# compiler is considered feature complete at this
point and relatively mature. MCS is able to compile itself
and many more C# programs (there is a test suite included that
you can use). It is routinely used to compile Mono, roughly
half a million lines of C# code.
* Pending tasks
There are a few known bugs in the Mono C# compiler, but
they are very very few at this point,
you can also browse the MCS <a href="http://bugzilla.ximian.com/buglist.cgi?product=Mono%2FMCS&bug_status=NEW&bug_status=ASSIGNED&bug_status=REOPENED&email1=&emailtype1=substring&emailassigned_to1=1&email2=&emailtype2=substring&emailreporter2=1&changedin=&chfieldfrom=&chfieldto=Now&chfieldvalue=&short_desc=&short_desc_type=substring&long_desc=&long_desc_type=substring&bug_file_loc=&bug_file_loc_type=substring&keywords=&keywords_type=anywords&op_sys_details=&op_sys_details_type=substring&version_details=&version_details_type=substring&cmdtype=doit&newqueryname=&order=Reuse+same+sort+as+last+time&form_name=query">bugs</a> from Bugzilla.
A test suite is maintained to track the progress of
the compiler and various programs are routinely compiled and
ran.
** Slides
Slides for the Mono C# Compiler presentation at .NET ONE are
The <b>educational</b> way is an interesting one, because you
pick a technology you are interested in, and work on that
technology to learn the technology.
Those are just broad things that need to be worked on, but
something that would help tremendously would be to help with
small duties in the project that need to be addressed.
You can see what needs to be done in the class libraries <a href="class-status.html">here</a>
* IRC Channel
Many developers get together on the <b>#mono</b> irc channel
on the <b>irc.gnome.org</b> server.
** To start contributing
As a programmer, you can contribute in three different scenarios to Mono:
<ul>
* If you only have Linux/Unix.
* If you only have Windows.
* If you have both Linux and Windows.
</ul>
You might also want to check our <a href="#setup">common
setups</a> section that describes some common setups that people
use while working on Mono.
*** Contributing to the class library, regression tests or the compiler
This only requires Windows currently.
To start developing classes or to contribute to the compiler,
you only need Windows and the .NET Framework 1.0 SDK. Please notice
that you do not need Visual Studio (although you can use it if
you want). The .NET Framework SDK requires some version of
Windows XP or Windows NT. If you are running Windows 98, 95
or Me, you could use instead the <a
href="http://msdn.microsoft.com/downloads/default.asp?url=/downloads/sample.asp?url=/msdn-files/027/001/829/msdncompositedoc.xml">.NET Redist package</a>, but it
lacks the documentation browser and the ildasm program (C#, VB, JScript and IL
assembler are included).
You can get it <a href="http://msdn.microsoft.com/downloads/default.asp?url=/downloads/sample.asp?url=/msdn-files/027/000/976/msdncompositedoc.xml&frame=true">here</a>
If you are new to .NET, writing regression tests is a good way
of starting to contribute: it will help you get used to C# as
well as getting comfortable with the .NET APIs.
This helps because at this point you might be the best
qualified person to fix a problem found by the regression
test, or you might have a new class to implement in the .NET
world that only has a test suite.
To get started writing tests see the <a href="testing.html">Test Suite</a>
section. <a href="mono-contribution-howto.html">Here</a> there is a good All-In-One introduction to the art of writing tests.
*** Contributing to the runtime engine
This only requires Linux, currently some tasks are easier if you
have access to Windows as well.
Here are a few things you can do:
<ul>
* Port the runtime to other architectures.
* Port the runtime to other operating systems.
* Finish the IL code verifier in the runtime.
* Hack the JIT, improve the code generator, add new
pattern rules, improve the register allocator.
* Implement the debugging interfaaces
</ul>
** Bug reporting
If you find bugs in Mono, please make sure you enter a bug
report so we can keep track of problems in Mono.
To enter bug reports go to <a href="http://bugzilla.ximian.com">
http://bugzilla.ximian.com</a> and enter bug reports against
your favorite component (Mono, Runtime, C# compiler).
You can review the list of current bugs by going <a href="http://bugzilla.ximian.com/buglist.cgi?product=Mono%2FClass+Libraries&product=Mono%2FMCS&product=Mono%2FRuntime&bug_status=NEW&bug_status=ASSIGNED&bug_status=REOPENED&email1=&emailtype1=substring&emailassigned_to1=1&email2=&emailtype2=substring&emailreporter2=1&changedin=&chfieldfrom=&chfieldto=Now&chfieldvalue=&short_desc=&short_desc_type=substring&long_desc=&long_desc_type=substring&bug_file_loc=&bug_file_loc_type=substring&keywords=&keywords_type=anywords&op_sys_details=&op_sys_details_type=substring&version_details=&version_details_type=substring&cmdtype=doit&order=%27Importance%27&form_name=query">here</a>
Check our <a href="bugs.html">Bugs</a> that contains links to
easily add a bug report, or to query the existing bugs.
<a name="goodbugreport"/>
** How to make good bug reports
A mail from Paolo to mono-devel-list contained this check list:
<ol>
* Submit a test case, the smaller it is, the better
* Use <a href="http://bugzilla.ximian.com">
http://bugzilla.ximian.com</a> to report the bug.
<p>In <b>addition</b> to bugzilla, posting to the list is
fine if the bug merits larger exposure or design
discussions to solve; posting to the list twice or more
is just a way to annoy people and make them waste time,
specially when you start a new thread about it.
* If the test involves libraries or assemblies that are
not part of mono, add info about where to download all
the dependencies, and how to compile/install them.
* If compiling the test case requires more than:
<pre> mcs test.cs </pre>
provide the <b>full command line</b> you used to compile
the test.
* If running the test requires more than:
<pre> mono test.exe </pre>
provide the <b>full command line</b> needed to replicate
the bug.
* Provide info about the version of the software you're
using (both mono and the operating system or relevant
libraries).
* Provide the output you expect the test case to produce.
* Provide the actual output <b>you</b> get from the test case.
</ol>
A good bug report complies with at least 6 items from the list.
If your bug report complies with 3 or less items, it is very
poor and it means it will take much more time to fix (when it's
not ignored).
** Small tasks
A few smaller tasks are here, dropped in no particular order:
<ul>
* <b>Mono/doc and web site:</b> They need to be
packaged up in the official `distribution'
* Adding serialization support to all the classes.
We have many classes, but we have not implemented in
many cases the serialization and re-incarnation support in
them (this is pretty straight forward code, and simple,
This namespace implements the <a href="http://www.w3.org/TR/xmldsig-core/">
XML Digital Signature</a> specification from
<a href="http://www.w3.org/">W3C</a>.
**** Status
<ul>
* All classes are present but some Transforms are only stubbed.
* We now have a fully managed C14N implementation.
* Most classes have their unit tests.
</ul>
**** TODO
<ul>
* Complete all Transform derived classes.
</ul>
<hr>
** Assembly: Mono.Security
<b>Rational: </b>
This assembly provides the missing pieces to .NET security. On Windows
CryptoAPI is often used to provide much needed functionalities (like
some cryptographic algorithms, code signing, X.509 certificates). Mono,
for platform independance, implements these functionalities in 100%
managed code.
*** Namespace: Mono.Security
<ul>
* Structures (ASN1, PKCS7) and primitives (PKCS1).
</ul>
*** Namespace: Mono.Security.Authenticode
<ul>
* Code signing and verification.
* Support for SPC (Software Publisher Certificate) files and
PVK (Private Key) files.
</ul>
*** Namespace: Mono.Security.Cryptography
<ul>
* Additional algorithms: MD2, ARCFOUR (required for SSL)
* Convertion helpers
</ul>
*** Namespace: Mono.Security.Protocol.Tls
<ul>
* An 100% managed TLS implementation from Carlos Guzman Alvarez.
</ul>
*** Namespace: Mono.Security.X509
<ul>
* X.509 structures (certificate, CRL...) building and decoding.
</ul>
*** Namespace: Mono.Security.X509.Extensions
<ul>
* X.509 extensions (from public X.509 to private PKIX, Netsapce,
Microsoft, Entrust...).
</ul>
**** Status
<ul>
* A big part of this assembly is also included inside Mono's
corlib. The classes are duplicated in this assembly so the
functionalities can be used without a dependency on Mono's
corlib (which depends on Mono's runtime).
* Unit test coverage isn't (yet) complete.
</ul>
<hr>
** Assembly: Mono.Security.Win32
<b>Rational: </b>
This assembly goal is to provide maximum compatibility with CryptoAPI
to application running with Mono's runtime on the Windows operating
system.
<b>This assembly should NEVER be used directly by any application</b>
(e.g. referecing the assembly from a project).
The classes should only be used by modifying the <code>machine.config
</code> configuration file (and then only if this increased
compatibility is required by an application).
See the file <code><a href="http://cvs.hispalinux.es/cgi-bin/cvsweb/~checkout~/mcs/class/Mono.Security.Win32/README?rev=1.1&content-type=text/plain&cvsroot=mono">/mcs/class/Mono.Security.Win32/README</a></code>
for complete instructions.
*** Namespace: Mono.Security.Cryptography
**** Status
<ul>
* A RNGCryptoServiceProvider built on top of CryptoAPI. This
allows Windows users to get around the limitation of the
When it comes to Mono and PostgreSQL, there are many ways
you can handle your data. You have many Mono Data Providers which can be used
to access data from a application written for Mono.
Then there is the future goal of having the ability to host Mono within PostgreSQL to
have the applications run on the server which makes things much faster.
* Hosting Mono in PostgreSQL
There is a project to <a href="http://gborg.postgresql.org/project/plmono/projdisplay.php">host Mono within PostgreSQL</a>.
plMono is a PostgreSQL language using the embedded Mono runtime. It provides support for writing functions in C#, or any other language that supports .NET.
* Data Providers
There are many ADO.NET data providers for <a href="http://www.postgresql.org/">PostgreSQL</a>:
There are two providers created specifically for PostgreSQL included with Mono:
<li>a .NET Managed Data Provider for PostgreSQL</li>
<li>Written in 100% C#</li>
<li>does not require a client library</li>
<li>works on Mono and Microsoft .NET</li>
<li>created by Francisco Figueiredo jr. and has many developers working on it
<li>works in the SQL# (command-line and GTK# GUI versions)</li>
<li>in namespace Npgsql and assembly Npgsql and is found in mcs
at mcs/class/Npgsql</li>
</ul>
</li>
<li>Mono.Data.PostgreSQL (deprecated)
<ul>
<li>included with Mono</li>
<li>Deprecated in favor of Npgsql</li>
<li>Exists in namespace Mono.Data.PostgreSql and assembly Mono.Data.PostgreSql</li>
<li>Is a Mono Data Provider for the <a href="http://www.postgresql.org/">PostgreSQL</a>
client/server database management system.</li>
<li>Written in C# and has C# bindings to the PostgreSQL C Client library pq.dll on Windows
and libpq.so on Linux.</li>
</ul>
</li>
<li><a href="http://sourceforge.net/projects/mysqlnet/">ByteFX.Data</a> has a provider for PostgreSQL too, but I do not know how well it works with Mono.</li>
<li>There is another .NET data provider for PostgreSQL named <a href="http://sourceforge.net/projects/pgsqlclient/">PgSqlClient</a>, but I do not know if it works with Mono.</li>
<li>If none of the above providers meet your needs. There is the ODBC and OLEDB providers included with Mono.</li>
<li>Bugs with Mono or the data provider should be reported
in Mono's Bugzilla <a href="http://bugzilla.ximian.com/">here</a>. If you
do not have Bugzilla user account, it is free
and easy to
create one <a href="http://bugzilla.ximian.com/createaccount.cgi">here</a>.</li>
</ul>
Below, see separate Testing sections for Npgsql and Mono.Data.PostgreSqlClient.
** Current Status
<ul>
<li>Npgsql
<ul>
<li>Builds and Runs on both Microsoft .NET and Mono.</li>
<li>Works using SQL# (command-line and GTK# versions)</li>
<li>You can send insert, update, delete queries
through NpgsqlCommand.ExecuteNonQuery() method.</li>
<li>You can send queries like, select count(*) from table, select version()
with NpgsqlCommand.ExecuteScalar() method.</li>
<li>There is logging support. (Thanks Dave Page)
To use it, place code like that in your program:</li>
DataSet ds=DataTools.FillDataSet(conn, "select * from author");
</pre>
<p>Here's some sample code on displaying a list <br>
of configured ADO.NET providers:
<pre>
Console.WriteLine("Configured Providers:");
foreach (Provider p in ProviderFactory.Providers)
Console.WriteLine(p.Description);
</pre>
<p>A Super lazy overload to the FillDataSet method (in <br>
DataTools.cs) that will fill a dataset in one line of code.
<pre>
DataSet ds=DataTools.FillDataSet("PubsConnStr", "select * from authors");
</pre>
** About Configuration Files
<p>Information about <a href="http://msdn.microsoft.com/library/en-us/vbcon/html/vboriintroductiontoapplicationsettingstorage.asp?frame=true">app.config</a> files
can be found at <a href="http://msdn.microsoft.com/">MSDN</a>.
<p>See the mcs/class/Mono.Data/app.config for sample configuration file in<br>
mcs source. Basically, if your application is named blah.exe, <br>
you would create an app.config file named blah.exe.config
<p>Here's a sample app.config file showing the provider <br>
declarations along with sample connection strings:
The new JIT engines uses three intermediate representations:
the source is the CIL which is transformed into a forest of
trees; This is fed into a BURS instruction selector that
generates the final low-level intermediate representation.
The instruction selector is documented in the following
papers:
<ul>
* <a href="http://research.microsoft.com/copyright/accept.asp?path=http://www.research.microsoft.com/~drh/pubs/interface.pdf&pub=wiley">A code generation interface for ANSI C</a>
* <a href="http://research.microsoft.com/copyright/accept.asp?path=http://www.research.microsoft.com/~drh/pubs/iburg.pdf&pub=ACM">Engineering efficient code generators using tree matching and dynamic programming.</a>
</ul>
** Garbage Collection
We are using the Boehm conservative GC. We might consider
adopting other GC engines in the future, like the Intel ORP GC
engine. The Intel ORP GC engine as it provides a precise
garbage collector engine, similar to what is available on the
Loaded 100 of 4932 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.