* 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
# 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
* <a href="http://bugzilla.ximian.com/buglist.cgi?product=Mono%2FClass+Libraries&component=System.Web&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=Reuse+same+sort+as+last+time&form_name=query">[Query]</a> <a href="http://bugzilla.ximian.com/enter_bug.cgi?product=Mono%2FClass%20Libraries&component=System.Web">[Add]</a> ASP.NET WebForms
* <a href="http://bugzilla.ximian.com/buglist.cgi?product=Mono%2FClass+Libraries&component=System.Web.Services&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=Reuse+same+sort+as+last+time&form_name=query">[Query]</a> <a href="http://bugzilla.ximian.com/enter_bug.cgi?product=Mono%2FClass%20Libraries&component=System.Web.Services">[Add]</a> ASP.NET Web Services
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, MD4, ARCFOUR (required for SSL)
* Convertion helpers
</ul>
*** Namespace: Mono.Security.Protocol.*
<ul>
* Tls: An 100% managed TLS implementation from Carlos Guzman
Alvarez.
* Ntlm: NTLM authentication (used for HTTP and SQL Server).
</ul>
*** Namespace: Mono.Security.X509
<ul>
* X.509 structures (certificate, CRL...) building and decoding.
* PKCS#12 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
<li><a href="http://primates.ximian.com/~atsushi/mono-jp/">Mono Japanese Translation</a>:
Mono site Japanese translation pages. Translated sources are maintained at <a href="http://forge.novell.com/modules/xfmod/project/?mono-jp">Novell Forge</a>.
</ul>
* User sites
<ul>
<li>Alp Toker's <a
href="http://www.atoker.com/mono/">site</a>: He is an
active Mono developer (gsirc, platano) and produces
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 1917 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.