* XmlNamespaceManager.cs : GetEnumerator() should return all of the
available pairs (of prefix and namespace).
* XmlQualifiedName.cs : Quick fix for NullReferenceException in case
of name (or ns) is null. (The description of the immediate previous
changes will be inserted below.)
* XmlTextWriter.cs : Fixed WriteDocType(). Removed CheckValidName().
* XmlUrlResolver.cs : Changed not to call WebClient.Dispose() which
will release resources it had allocated.
svn path=/trunk/mcs/; revision=17996
* mini.c (mono_print_tree_nl): New function callable while debugging.
* mini.c (mono_print_code): Export this.
* mini.h (MonoCompile): Added 'jit_info' field.
* mini.c (mini_method_compile): Save the generated MonoJitInfo into
the cfg structure, since it is needed by the AOT compiler.
* mini.h (MONO_AOT_FILE_VERSION): Bump version number.
* aot.c: A major rewrite. Changes include:
- save exception tables for methods which have them.
- cache failed lookups in aot_get_method () to avoid the (slow) calls
to g_module_symbol.
- reworked the file format so it is now much smaller and needs
fewer relocation entries.
svn path=/trunk/mono/; revision=17993
* image.c (load_class_names): Use a temporary hash table to hold the
namespaces in order to avoid doing many string comparisons.
* image.h: Fix typo.
* image.c class.c rawbuffer.c reflection.c threads.c verify.c domain.c:
Pass NULL instead of g_direct_equal to the GHashTable constructor
since the NULL case is short-circuited inside g_hash_table_lookup,
leading to better performance.
svn path=/trunk/mono/; revision=17992
* metadata.c (mono_metadata_custom_attrs_from_index): New function to
obtain the first custom attribute for a given index. Depends on the
CustomAttribute table being sorted by the parent field.
* reflection.c (mono_custom_attrs_from_index): Use the new function
for better performance.
svn path=/trunk/mono/; revision=17991
* Context.cs: Added constructor and Document field.
* DocumentContext.cs: Added Name field.
* JSParser.cs: Integration of antlr's generated parser with
JSParser public API. ScriptBlock is now the principal data structure that
represents a Jscript .Net program.
* JSScanner.cs: Integration of antlr's generated lexer with
JSScanner public API.
svn path=/trunk/mcs/; revision=17988
* Referral.cs: Oops - didn't compile when WSE1 was defined
* ReferralCollection.cs: Oops - didn't compile when WSE1 was defined
svn path=/trunk/mcs/; revision=17984
* report.cs (Error, Warning): Added overloaded versions which take
a `params object[] args' and call String.Format().
svn path=/trunk/mcs/; revision=17977
* decl.cs (DeclSpace..ctor): Don't call
NamespaceEntry.DefineName() here; do it in RecordDecl() which is
called from Tree.RecordDecl(). Fixes the CS0101 reporting.
(DeclSpace.RecordDecl): New method.
* tree.cs (Tree.RecordDecl): Call ds.RecordDecl().
svn path=/trunk/mcs/; revision=17976
* class.c (mono_class_init): If we're a generic instance, inflate
all our methods instead of loading them from the image.
(mono_class_from_generic): Set `class->methods = gklass->methods'.
svn path=/trunk/mono/; revision=17970
* Microsoft.Web.Services.dll.sources: Added stubbed input/output soap
filters for Routing and Referral so Configuration can be compiled.
svn path=/trunk/mcs/; revision=17962
* DefaultContext.cs, Expresssion.cs, Parser.jay: Rewrite so that
system functions are actually expressions. Will allow for some
nice optimizations.
svn path=/trunk/mcs/; revision=17947
* EncryptedKey.cs: Fixed typo.
* Security.cs: Fixed compilation issues.
* SignedXml.cs: Fixed compilation issues.
* SignedXmlSignature.cs: Copied from System.Security assembly (where
it is known as Signature.cs) as MS duplicate the class (in WSE) to
fixed some issues.
* XmlSignature.cs: Added more missing string used in System.Security.
svn path=/trunk/mcs/; revision=17940
* Makefile: Added reference to System.Security assembly and a define
for WSE1 (required for classes shared between SS and WSE).
* Microsoft.Web.Services.dll.sources: Added (shared) files from
System.Security assembly.
svn path=/trunk/mcs/; revision=17897
* Reference.cs: Copied from System.Security assembly as MS duplicate
the class (in WSE) to fixed some issues.
* SignedInfo.cs: Copied from System.Security assembly as MS duplicate
the class (in WSE) to fixed some issues.
* SignedXml.cs: Copied from System.Security assembly as MS duplicate
the class (in WSE) to fixed some issues.
* TransformChain.cs: Copied from System.Security assembly as MS duplicate
the class (in WSE) to fixed some issues.
svn path=/trunk/mcs/; revision=17894
* BitVector32.cs (CreateSection): Check that the new
calculated offset isn't more than 32 and not that the sum of the
new offset and the number of set bits is more than 32.
(this): Perform bitwise and with the complement of the mask
shifted version (~(section.Mask << section.Offset)) and not with
the shifted version of the mask's complement (~section.Mask <<
section.Offset).
(this): Currently doesn't return the correct value when the data
in the BitVector32 instance is negative.
* ListDictionary.cs (CopyTo): If the array is null, it should
throw ArgumentNullException. If the index is less than 0, it
should throw ArgumentOutOfRangeException.
(Remove): Throw ArgumentNullException when the parameter is null.
* BitVector32Test.cs (TestNegativeIndexer, TestSectionIndexer,
TestCreateSection): new tests from Alon Gazit <[email protected]>.
* ListDictionaryTest.cs (CopyTo1, CopyTo2, Remove): New file, with
tests from Alon Gazit <[email protected]>.
svn path=/trunk/mcs/; revision=17885
* decl.cs (DeclSpace.LookupGeneric): New method.
(DeclSpace.CheckAccessLevel): Ignore generic parameters for the
moment.
* generic.cs (TypeParameterExpr): Take a TypeParameter as
argument, not just a string.
(TypeParameter.Define): New public method; this is called to
actually define the generic parameter; after this, you can use the
new `Type' property to get the type.
svn path=/trunk/mcs/; revision=17881
* decl.cs (DeclSpace.SetParameterInfo): The `constraints' argument
is now an ArrayList; initialize the result of the `TypeParameters'
property here.
(DeclSpace.GetGenericData): Removed.
(DeclSpace.LookupGeneric): Temporarily removed; we need to
implement this in a different way.
(DeclSpace.GetTypeParameters): Removed; there's now a
`TypeParameters' property.
(DeclSpace.TypeParameters): New public property.
* ecore.cs (SimpleName.ResolveAsTypeStep): Removed the generic
lookup for the moment.
* generic.cs (Constraints): Make this class public.
(TypeParameter): New public class.
svn path=/trunk/mcs/; revision=17874
* decl.cs (DeclSpace.GetTypeParameters): New method to return the
generic parameters.
* class.cs (TypeContainer.DefineType): Call
TypeBuilder.DefineGenericParameter () on all generic parameters if
this is a generic type.
svn path=/trunk/mcs/; revision=17873
* metadata.c (mono_type_size): Added MONO_TYPE_VAR and MONO_TYPE_MVAR.
* reflection.h (MonoReflectionGenericParam): New typedef.
(MonoReflectionTypeBuilder): Added `num_generic_params' and
`generic_params' fields to get the generic parameters from the
managed TypeBuilder.
* reflection.c (mono_reflection_define_generic_parameter): New function.
(mono_reflection_create_runtime_class): Encode generic parameters.
(mono_reflection_setup_generic_class): New function; this is
called after adding adding all generic params to the TypeBuilder.
(encode_type): Added MONO_TYPE_VAR.
svn path=/trunk/mono/; revision=17871
* TypeBuilder.cs (TypeBuilder.DefineGenericParameter): New public
method. We can now create generic types.
(TypeBuilder.GetGenericTypeDefinition): Override this; call the
`setup_internal_class' interncall before calling our base impl.
svn path=/trunk/mcs/; revision=17870
* aot.c: Move AOT module loading logic here from mono_assembly_open.
* aot.c: Save the optimization flags used to compile the code into
the AOT module.
* mini.h mini-x86.c mini.c aot.c: Added new types of relocations to
support emitting domain specific code.
* mini.h mini.c aot.c: Modified the JIT so the generated AOT code is
no longer domain neutral. It can be made domain neutral by compiling
with --optimize=shared.
* aot.c (mono_aot_get_method_inner): Allow sharing of AOT methods
between appdomains.
* driver.c mini.h mini.c: New --no-aot debugging option which disables
loading of AOT code.
* inssel-x86.brg: Added missing AOTCONST -> OUTARG_VT rule.
svn path=/trunk/mono/; revision=17867
* tramp-x86.c (x86_magic_trampoline): Avoid patching the calling method
if there is no domain neutrality information.
svn path=/trunk/mono/; revision=17866
* class.h class.c (mono_class_needs_cctor_run): Moved this method
here from the JIT.
* assembly.h assembly.c: Moved the AOT loading code into an assembly
load hook.
svn path=/trunk/mono/; revision=17865
* ServiceDescriptionImporter.cs: initial implementation.
* ServiceDescriptionReflector.cs: Added support for bare parameter style.
Added support for encoded format.
svn path=/trunk/mcs/; revision=17855
* reflection.h reflection.c class.h class.c: Delete duplicate
definition of mono_type_get_name () from reflection.c and export the
one in class.c.
* class.c: Class loading fixes from Bernie Solomon
([email protected]).
svn path=/trunk/mono/; revision=17841
* class.cs (MethodCore.LabelParameters): Make static and more
generic so that it can be used from other places - like interface
methods, for instance.
* interface.cs (Interface.Emit): Call LabelParameters before
emitting attributes on the InterfaceMethod.
svn path=/trunk/mcs/; revision=17833
* attribute.cs (CheckAttributeTarget): Ensure that we allow return
value attributes to be applied to ParameterBuilders.
svn path=/trunk/mcs/; revision=17831
* AssemblyInfo.cs: Updated version to 0.26.99 (all tools).
* cert2spc.cs: Updated to use Mono.Security.X509.
* chktrust.cs: Tool to validate Authenticode(tm) signatures on PE
files (including assemblies).
* signcode.cs: Tool to sign and timestamp PE files using
Authenticode(tm) compatible certificates.
* README: Updated to include a small tutorial on how to use
Authenticode(tm) to sign/verify assemblies.
* Makefile: Updated to build chktrust.exe and signcode.exe
svn path=/trunk/mcs/; revision=17813
* ITrustAnchors.cs: New. Interface to trust anchors.
* TestAnchors.cs: New. Include 2 tests anchors: Microsoft Root Agency
(for Windows compatibility) and Mono Test Root.
* TrustAnchors.cs: New. Include some widely used (commercial) code
signing root certificates.
* X509CertificateCollection.cs: New. Collection for Mono's X509
certificates.
* X509Chain.cs: New. MINIMAL certificate chaining engine to support
Authenticode(tm). VERY PARTIAL IMPLEMENTATION!!!
svn path=/trunk/mcs/; revision=17811
* AuthenticodeBase.cs: New. Base class including how to hash a
PE file.
* AuthenticodeDeformatter.cs: New. Class to decode Authenticode(tm)
signatures.
* AuthenticodeFormatter.cs: New. Class to encode a Authenticode(tm)
signature, and optionally a timestamp, into a PE file.
* SoftwarePublisherCertificate.cs: Now use Mono.Security.X509.
X509Certificate class.
svn path=/trunk/mcs/; revision=17810
* Encoding.cs (UTF8Unmarked): make it also not error out on
invalid input, that is what the Microsoft default is for the
StreamReader and BinaryReader expect (our main consumers).
svn path=/trunk/mcs/; revision=17807
* aot.c (mono_compile_assembly): Emit a symbol containing the file
format version into the generated library.
* mini-x86.c (mono_arch_patch_code): Do not emit the address of the
callee method into the caller since one of them could be shared.
* mini.h mini-x86.c aot.c: Added two new relocations so throwing
system exceptions from AOT code now works.
* tramp-x86.c (x86_magic_trampoline): Avoid patching the calling
method if it is domain neutral and the callee is not.
* graph.c (cfg_emit_one_loop_level): Fix warning.
svn path=/trunk/mono/; revision=17800
* assembly.h assembly.c: Define a file format version for AOT
libraries.
* assembly.c (mono_assembly_open): Fix leaking of MonoImage-s.
* appdomain.h (MonoJitInfo): New field to determine whenever the
code is domain neutral.
svn path=/trunk/mono/; revision=17799
* aot.c (mono_compile_assembly): Emit a symbol containing the file
format version into the generated library.
* mini-x86.c (mono_arch_patch_code): Do not emit the address of the
callee method into the caller since one of them could be shared.
* mini.h mini-x86.c aot.c: Added two new relocations so throwing
system exceptions from AOT code now works.
* tramp-x86.c (x86_magic_trampoline): Avoid patching the calling
method if it is domain neutral and the callee is not.
* graph.c (cfg_emit_one_loop_level): Fix warning.
svn path=/trunk/mono/; revision=17798
* assembly.h assembly.c: Define a file format version for AOT
libraries.
* assembly.c (mono_assembly_open): Fix leaking of MonoImage-s.
* appdomain.h (MonoJitInfo): New field to determine whenever the
code is domain neutral.
svn path=/trunk/mono/; revision=17796
- New questions & answers
- revised answers for compatibility questions
- moved some questions to more sensible categories (e.g. VB questions moved
to "Compatibility" section, away from "Mono & Microsoft").
- Spelling Fixes
Alas, all my editors (gedit & gvim) "fixed" the spelling of some names,
probably because those editors assume UTF-8 encoding... This was seen for
Carlos Perell�� and Lluis S��nchez.
svn path=/trunk/mono/; revision=17780
* win32functions.cs: Added GetUpdateRect function.
* Control.cs: Make sure to call OnPaint even if UserPaint style is not
enabled. Get the appropriate DC for WM_PAINT operations.
svn path=/trunk/mcs/; revision=17769
* interp.c: Use mono_field_from_token () in the appropriate places.
This simplifies the code and also fixes#48051.
svn path=/trunk/mono/; revision=17752
* icall.c (ves_icall_System_Web_Util_ICalls_get_machine_install_dir):
(ves_icall_System_Configuration_DefaultConfig_get_machine_config_path):
Avoid caching the result since strings must be domain specific. Fixes
#48050.
svn path=/trunk/mono/; revision=17743
* mini.c (mini_init): Call mono_marshal_init () explicitly since it
is needed by code which is executed before mono_runtime_init ().
Thanks to Bernie Solomon ([email protected]) for noticing this.
svn path=/trunk/mono/; revision=17727
* marshal.c (mono_marshal_init): Make this callable multiple times
since it is hard to find a correct place to call it.
svn path=/trunk/mono/; revision=17726
* object.c (mono_runtime_class_init): Execute static constructors in
the correct appdomain.
* image.c (build_guid_table): Handle the case when multiple images have
the same GUID.
svn path=/trunk/mono/; revision=17725
* HttpApplication.cs: ensure we do all the EndRequest steps. Don't
filter the output on error.
* HttpResponse.cs: modified DoFilter to allow bypassing filtering.
svn path=/trunk/mcs/; revision=17713
* inssel.brg (OP_UNBOXCAST): Add support for the AOT case.
* cpu-pentium.md: Fix the length of call opcodes so they include the
ESP restoring instruction. Fixes#47968.
svn path=/trunk/mono/; revision=17700
* icall.c (ves_icall_Type_BindGenericParameters): Use
`klass->generic_inst' instead of `&klass->byval_arg' in the
mono_type_get_object() call. The returned type must be
MONO_TYPE_GENERICINST and not MONO_TYPE_CLASS.
svn path=/trunk/mono/; revision=17698
* critical-sections.c: Patch from Bernie Solomon <[email protected]> to emit a warning if locking a critical section fails.
svn path=/trunk/mono/; revision=17697
* OperationMessage.cs: Added default value attribute for Name property.
* ServiceDescription.cs: Changed order of some properties, so they are
serialized in the right order.
Added GetNamespaceList(), which returns the namespaces to add when serializing
the document.
Implemented classes ServiceDescriptionSerializer and ServiceDescriptionWriter,
that extends the XmlSerializer by adding suport for XmlFormatExtensions.
* ServiceDescriptionReflector.cs: Basic implementation (no support for
extensions yet).
* SoapBinding.cs: Fixed namespace name.
* SoapBodyBinding.cs: Added null check in PartsString property.
* SoapOperationBinding.cs: Fixed namespace name.
svn path=/trunk/mcs/; revision=17693
* Methods.cs: Added SoapBindingStyle, SoapBindingUse, InputMembersMapping
and OutputMembersMapping properties in MethodStubInfo.
Use default value defined in TypeStubInfo for RequestNamespace,
ResponseNamespace and other properties.
Added class BindingInfo to store information about class bindings.
In TypeStubInfo added SoapBindingStyle, DefaultBinding, Methods and
Bindings properties.
* SoapRpcMethodAttribute.cs: Use WebServiceAttribute.DefaultNamespace constant
instead of hardcoded namespace name.
* WebServiceHandlerFactory.cs: Create new SoapDocumentationHandler for
documentation requests.
* SoapDocumentationHandler.cs: new handler that generates WS documentation.
svn path=/trunk/mcs/; revision=17692
* XmlSchemas.cs: Find method: make sure the returned object belongs to
the requested type.
* XmlSerializationReader.cs: Removed unneded virtual ReadObject method.
Add null checks for eventSource.
* XmlSerializationReaderInterpreter.cs: ReadObject is not virtual any more.
* XmlSerializationWriter.cs: In Initialize method, initialize the provided
namespece declarations. Virtual method WriteObject not needed any more.
In WriteStartElement, write the provided namespaces.
* XmlSerializationWriterInterpreter.cs: Write object is not virtual any more.
Added GetTypeMap method, that returns the map for a given type. Added some
virtual methods, so writer behavior can be extended at several places by
derived classes.
* XmlSerializer.cs: Changed behavior to match what MS.NET does. The virtual
methods CreateReader and CreateWriter are not called unless no type or
type mapping was provided in the constructor.
svn path=/trunk/mcs/; revision=17690
* mini-x86.c (mono_arch_call_opcode): Added support for
MONO_TYPE_GENERICINST.
* mini.c (check_call_signature): Added support for MONO_TYPE_GENERICINST.
svn path=/trunk/mono/; revision=17682
* cs-parser.jay (opt_type_argument_list): Use
`OP_GENERICS_LT type_arguments OP_GENERICS_GT'.
(primary_expression): Replace `qualified_identifier' with `type_name'.
(type_parameter_list): Use `OP_GENERICS_LT type_parameters OP_GENERICS_GT'.
* cs-tokenizer.cs (is_punct): When reading a `<', invoke a custom
parser to check whether it is syntactically a type parameter list;
return OP_GENERICS_LT/OP_GENERICS_GT instead of OP_LT/OP_GT in
this case.
svn path=/trunk/mcs/; revision=17675
* Makefile.am (BUILT_SOURCES): Fix compilation on platforms without
a JIT. Patch by Bernie Solomon ([email protected]).
svn path=/trunk/mono/; revision=17670
* interp.c (main): Fix the order of initialization calls so it maches
the order in the JIT.Patch by Bernie Solomon ([email protected]).
Also remove the unused ms mutex.
svn path=/trunk/mono/; revision=17669
* object.c appdomain.h: Get rid of metadata_section.
It is no longer needed and it was causing deadlocks with domain->lock.
* appdomain.c (add_assemblies_to_domain): Make it thread safe.
svn path=/trunk/mono/; revision=17661
* System.Web/HttpApplication.cs: when the request is completed or an
error happens, execute all the delegates attached to EndRequest, not
only the last one. This makes xsp/test/authtest work again.
* System.Web/HttpMethodNotAllowedHandler.cs: fixed description for http
status code.
* System.Web.Security/UrlAuthorizationModule.cs: fixed description for
status code.
* System.Web.Util/UrlUtils.cs: made Reduce work when a "/" is passed.
svn path=/trunk/mcs/; revision=17655
* statement.cs (Using.DoResolve): This is internally emitting a
try/finally clause, so we need to set ec.NeedExplicitReturn if we
do not always return. Fixes#47681.
svn path=/trunk/mcs/; revision=17634
* mini.c (get_basic_blocks): Added `unsigned char **pos' argument;
when reporting an error, set this to the actual error location.
(mono_method_to_ir): Report the correct error location if
get_basic_blocks() returned an error.
svn path=/trunk/mono/; revision=17630
* decl.cs (MemberCore): Moved WarningNotHiding(),
Error_CannotChangeAccessModifiers() and CheckMethodAgainstBase()
into MemberBase.
(AdditionResult): Make this nested in DeclSpace.
(DeclSpace.ctor): The .ctor now takes an additional NamespaceEntry
argument; call NamespaceEntry.Define() unless we're nested in a
class or struct.
* namespace.cs (Namespace.DefineName): New public function. This
is called from DeclSpace's .ctor to add
(Namespace.Lookup): Include DeclSpaces in the lookup.
* class.cs (Operator): Derive from MemberBase, not MemberCore.
* const.cs (Const): Derive from MemberBase, not MemberCore.
svn path=/trunk/mcs/; revision=17627
* mono-hash.h mono-hash.c (mono_g_hash_table_remap): New function used
to remap hashtable values during a copying collection. Not used at the
moment.
* mono-hash.c (g_hash_node_new): Restructured to avoid the global lock
in the common case.
* mono-hash.c (mono_g_hash_table_new_full): Enable the optimization of
the key function even if the client supplied g_direct_equal instead of
NULL.
svn path=/trunk/mono/; revision=17624
* DbDataAdapter.cs: provide a Type for ToArray to avoid invalid cast
exception. Thanks to Mark Easton <[email protected]>.
svn path=/trunk/mcs/; revision=17622
* System.Web.UI.WebControls/CheckBox.cs: in LoadPostData, only return
true when the new data is different from the one we had. Fixed
conditions to save Checked state. Thanks to [email protected]
(Yaron Shkop).
* System.Web.UI/Page.cs: check if controls that require postback have
been changed by an event and register them to be notified of data
changed event.
Fixes bug #47869.
svn path=/trunk/mcs/; revision=17621
* assembly.c: Reworked assembly loading to make it really thread safe.
After these changes, the assembly returned by mono_assembly_open is
fully initialized, i.e. all its references assemblies are loaded.
* assembly.c (mono_image_load_references): Renamed to
mono_assembly_load_references, and made private, since clients no
longer need to call it.
* class.c: Removed calls to mono_assembly_load_references, since it was
a source of deadlocks.
* loader.h loader.c class.h class.c: Protect data structures using a
new lock, the loader lock.
* class.c (mono_class_setup_vtable): Create temporary hash tables and
GPtrArrays only when needed.
* class.c (mono_class_layout_fields): Ignore the dummy field inserted
into empty structures by mcs. Fixes pinvoke7.cs.
* domain.c (mono_init): Call a new initialization function.
svn path=/trunk/mono/; revision=17617
* appdomain.c (mono_runtime_init): Call the new initializer function
of the marshal module.
* marshal.c (mono_marshal_load_type_info): Ignore the dummy field
inserted into empty structures by mono. Fixes pinvoke7.cs.
* marshal.h marshal.c: Added locks around the wrapper caches to make
this module thread safe.
svn path=/trunk/mono/; revision=17616
* XPathNavigator.cs: "Smart" behavior in Matches. Nice 8x speed
improvement in the method (5ms/call -> .7 ms / call) measured by
monodoc's rendering of N:System.
* Expression.cs: Utility methods to support above.
svn path=/trunk/mcs/; revision=17596
* convert.cs (Convert.ExplicitReferenceConversion): When
converting from an interface type to a class, unbox if the target
type is a struct type. Fixes#47822.
svn path=/trunk/mcs/; revision=17588
enumeration of values. Removed fields to store remote call output values in
MonoAsyncResult. Not needed any more.
* object.c: Initialize call_type and async_result fields in mono_message_init.
* marshal.c: mono_delegate_begin_invoke(): for proxies, set call_type before
dispatching the message.
mono_delegate_end_invoke (): delegate to the proxy the work of waiting for the
async call to finish. To do it use a message with EndInvoke call type.
svn path=/trunk/mono/; revision=17580
* CallContext.cs: Clean current logical context before setting the new
values form LogicalCallContext (SetCurrentCallContext).
* MonoMethodMessage.cs: Added new CallType field and enum.
* StackBuilderSink.cs: Improved error message.
svn path=/trunk/mcs/; revision=17578
* mini.c (mono_type_blittable): OBJECT is not blittable.
(mono_method_blittable): Methods which have marshalling descriptors
are not blittable either. Fixes#47842.
svn path=/trunk/mono/; revision=17573
* XmlValidatingReader.cs : Implemented SchemaType. Added support for
ValidationType.Schema. Added support for XmlResolver. Fixed
ReadTypedValue() not to consume EndElement.
svn path=/trunk/mcs/; revision=17561
* SymmetricAlgorithm.cs: Fixed IV length exception for stream ciphers
(e.g. RC4) which don't uses IV. This needs more tests for small IV...
svn path=/trunk/mcs/; revision=17551
* System.Drawing.dll.sources: Add Cairo implementation.
2003-08-24 Duncan Mak <[email protected]>
Initial checkin of System.Drawing.XrImpl ported to use Cairo.
* Graphics.cs (DrawCurve):
(DrawImageUnscaled):
(IsVisible):Implement the overloads in terms of the other overloads.
(FillClosedCurve): Implement the simple APIs, the default tension
is 0.5, the default FillMode is FillMode.Alternate.
* cairo.cs: A copy of the CairoAPI class from the Mono.Cairo
assembly, with some method parameter/return type changed to better
fit the usage within System.Drawing.
* gdk-helpers.cs: Emulate some of Gdk.Pixbuf's API here,
basically the same as XrImpl's GDKfunctions.cs, but the names of
the functions are nicer, with the help of the DllImportAttribute's
EntryPoint field.
svn path=/trunk/mcs/; revision=17546
* HttpRequest.cs: quick way of checking that the path is within the
root for the application. Thanks to Johannes for reporting.
* HttpRuntime.cs: use the status code from teh exception when it'ss a
HttpException.
* StaticFileHandler.cs: forbidden is 403.
svn path=/trunk/mcs/; revision=17525
* class.cs (MethodData.Define): While checking if a method is an
interface implementation, improve the test a bit more to fix#47654.
svn path=/trunk/mcs/; revision=17523
* get.c (dis_stringify_method_signature): New argument specifying
whenever to return a fully qualified method name.
* dump.c main.c: Updated to work with the new function.
* main.c (dis_property_methods): Print fully qualified method names
for property methods. Fixes#46221.
svn path=/trunk/mono/; revision=17519
to MS.NET).
Removed try/catch from AsyncProcessRequest. If there is an exception it must
flow to the caller.
in AsyncRequestHandler, improved management of exceptions. HttpWebRequest
throws an exception if the result code is 400, 500. Is is not a communication
error, but an application or server error. The content of the body must be
deserialized like in normal responses.
In CreateWebRequest, if the stream being sent is a MemoryStream, use a more
efficient way of writing the content.
In SendAndRecieve, same as in AsyncRequestHandler. Also moved some code to a
new method named ReceiveResponse, so it can be reused from AsyncRequestHandler.
* HttpHelper.cs: Removed some debugging code that is not needed.
* HttpServer.cs: Improved formatting of some code.
In CheckRequest method, send a 100-continue response if the request has
the header: expect:100-continue.
Method SendResponse: the remoting formatter may include the result code and
reason phrase to use in the transport headers. Used them if provided.
* HttpServerChannel.cs: Use ThreadPool to create the thread that will answer
a request.
svn path=/trunk/mcs/; revision=17515
* SoapMessageFormatter.cs: Fixed some problems with out and ref parameters.
* SoapServerFormatterSink.cs: Improved catching of exceptions.
svn path=/trunk/mcs/; revision=17511
to avoid reuse of client proxies.
* CallSeq.cs: Now, "domain ID" is set manually.
* ContextsTest.cs: Added initialization of common domain id. Other small fixes.
* ReflectionCalls.cs: Get the method for the invoke for the correct type.
GetType() for a proxy to interface always return MarshalByRefObject.
* TcpCalls.cs, HttpCalls.cs: Added delegate tests.
* DelegateCalls.cs: New test suite for calls using delegates.
svn path=/trunk/mcs/; revision=17507
The following two fixes bug #40315.
* Tds.cs (ProcessEndToken): RecordsAffected was not filled
correctly. I've found out that the record count was submitted for
TdsPacketSubType.Done. So I changed the behaviour to include this
(without deeper knowledge of the TDS protocol). Patch from J�rg
Rosenkranz <[email protected]>.
* SqlCommand.cs (ExecuteNonQuery): Return
Connection.Tds.RecordsAffected if it is successful. Patch from
J�rg Rosenkranz <[email protected]>.
* ListControl.cs (DataSource): Implementation by Brian Takita
<[email protected]>.
svn path=/trunk/mcs/; revision=17498
* expression.cs (UnaryMutator.ResolveVariable): If the target is a
LocalVariableReference, ensure it's not read-only. Fixes#47536.
* statement.cs (Fixed.DoResolve): Make all variables read-only.
svn path=/trunk/mcs/; revision=17494
* ecore.cs (FieldExpr.DoResolveLValue): Static read-only fields
can only be assigned in static constructors. Fixes#47161.
svn path=/trunk/mcs/; revision=17493
Rewrote and improved the flow analysis code.
* flowbranching.cs (FlowBranching): Make this class abstract.
(FlowBranching.CreateBranching): New static function to create a
new flow branching.
(FlowBranchingBlock, FlowBranchingException): New classes.
(FlowBranching.UsageVector.Type): New public readonly field.
(FlowBranching.UsageVector.Breaks): Removed the setter.
(FlowBranching.UsageVector.Returns): Removed the setter.
(FlowBranching.UsageVector): Added Break(), Return(),
NeverReachable() and Throw() methods to modify the reachability.
(FlowBranching.UsageVector.MergeChildren): Removed, this is now
done by FlowBranching.Merge().
(FlowBranching.UsageVector.MergeChild): New method; merges the
merge result into the current vector.
(FlowBranching.Merge): New abstract method to merge a branching.
svn path=/trunk/mcs/; revision=17491
* XslVariable.cs : use newly introduced XmlNodeWriter.ctor(false) to
support for tree fragment, not only for single element.
svn path=/trunk/mcs/; revision=17476
* inssel.brg: 64bit fixes from Laurent Morichetti <[email protected]>.
* linear-scan.c, mini-ppc.h, mini-sparc.h, mini-x86.h, mini.h,
regalloc.c, regalloc.h: specify available registers in arch-specific
code and support floats in the regallocator (patch by Laurent Morichetti
<[email protected]>)
svn path=/trunk/mono/; revision=17474
* object.c (mono_object_isinst): Fix casts to TransparentProxy in
the interpreter. Patch by Bernie Solomon ([email protected]).
svn path=/trunk/mono/; revision=17467
* String.cs: Created method FormatHelper that does formatting,
using a StringBuilder.
* StringBuilder.cs
(AppendFormat) Use FormatHelper in System.String to avoid
allocating an extra StringBuilder.
(Append string, int, int), (Append char, int): Both were
allocating extra strings.
svn path=/trunk/mcs/; revision=17466
* rawbuffer.c rawbuffer.h: Make this module thread safe.
* domain.c: Make this module thread safe.
* domain.c (mono_init): Call new initialization function.
svn path=/trunk/mono/; revision=17465
* image.c (mono_image_init): Fixed warnings.
* class.c (mono_class_from_typeref): Handle assembly load failure
correctly.
* appdomain.c (add_assemblies_to_domain): Handle the case when
the references of an assembly are not yet loaded.
* metadata.c image.c assembly.c: Moved initialization of global
variables to a separate function called at startup since lazy
initialization of these variables is not thread safe.
* image.c assembly.c: Made this module thread safe by adding locks in
the appropriate places.
* domain.c (mono_init): Call the new initialization functions of the
three modules.
svn path=/trunk/mono/; revision=17458
* mini.c: mono_thread_current() can be called only after
mono_runtime_init(): rearrange code to not call it early on.
svn path=/trunk/mono/; revision=17448
make a direct call. It is proxy's work to make the call asynchronous.
mono_delegate_end_invoke(): If the targe is a proxy, just collect
the return values.
* object.cs: mono_method_call_message_new(): read AsyncResult and
state object from parameters list, if this info is requested.
* object.h: Added fields to store remote call output values in
MonoAsyncResult. Added AsyncResult field in MonoMethodMessage.
svn path=/trunk/mono/; revision=17446
TcpCalls.cs: new test suite for remoting. It tests sync calls, async calls
and reflection calls using tcp and http channels.
* CallSeq.cs, ContextHookAttribute.cs: Add methods for getting a context and
domain ids that are the same between tests runs.
* ContextsTest.cs: unregister channel on test shutdown.
svn path=/trunk/mcs/; revision=17441
* object.h: add needed fields to MonoThread.
* threads.c, threads.h: allow registering a function to cleanup data
allocated per thread by the JIT.
svn path=/trunk/mono/; revision=17437
* FieldDef.cs: Stub method for adding data values
* TypeDef.cs: Implement long form overrides, fix some backwords
variable naming, add a method to lookup data definitions.
svn path=/trunk/mcs/; revision=17434
Rosenkranz <[email protected]>. Currently, if a connection is
closed by an external event (network problem, etc.) it is pushed
back into the connection pool. The next Open call retrieves this
invalid connection which leads to exceptions when executing
statements.
This patch fixes this problem. This closes bug #47429.
svn path=/trunk/mcs/; revision=17431
* Hashtable.cs (PutImpl): Fix my previous checkin, see details
posted on bug #47692.
I really hope I don't mess up this time, because, if I do again,
it will be really embarrassing.
svn path=/trunk/mcs/; revision=17430
* ControlCollection.cs:
* EmptyControlCollection.cs: create a minimum ArrayList for this.
* BaseParser.cs: added setter for BaseVirtualDir.
* Page.cs: fixed message when restoring view state fails.
* UserControlParser.cs: set the BaseVirtualDirectory to handle the case
when a relative path to the control is given. Fixes bug #47685.
svn path=/trunk/mcs/; revision=17424
* Style.cs: the MARKED bit is not send set in ViewState unless something
is changed. Fixed TrackViewState condition.
* WebControl.cs: save the base ViewState *after* ControlStyle is done,
because it uses the same ViewState as the control. Fixes bug #47725.
svn path=/trunk/mcs/; revision=17421
* XmlDocumentNavigator.cs : Fixed MoveToFirstNamespace() that arose
infinite loop.
* XmlNamespaceManager.cs : Renamed AtomStrEq to AtomicStringEquals.
Commented out Console.Error.WriteLine().
* XmlUrlResolver.cs : Fixed ResolveUri() and GetEntity() to support
escape and unescape for relative URI string.
svn path=/trunk/mcs/; revision=17414
* Compiler.cs : Fixed XslNameUtil.FromString() so that unprefixed name
won't have default namespace. See http://www.w3.org/TR/xslt#qname
svn path=/trunk/mcs/; revision=17412
* XslTransformProcessor.cs: add support for resolving documents.
* XsltCompiledContext: add support for document () function.
svn path=/trunk/mcs/; revision=17410
* Outputter.cs, TextOutputter.cs, XmlOutputter.cs: Implement some
of the abstract methods in Outputter, making them call other
functions with default values, remove impl's in derived classes.
svn path=/trunk/mcs/; revision=17407
* Outputter.cs: s/Close/Done
* TextOutputter.cs, XmlOutputter.cs: Flush, don't close the backing.
* XslTransformProcessor.cs: Flush output when popping, pop at end.
svn path=/trunk/mcs/; revision=17406
* Outputter.cs: Add support for namespaces.
* XslCopyOf.cs, XslLiteralElement: Use namespace support in Outputter.
svn path=/trunk/mcs/; revision=17405
* Compiler.cs, XslOutput.cs, XslStylesheet.cs,
XslTransformProcessor.cs: move output logic from XslStylesheet to
Compiler.
* XslVariable.cs: sync to API changes
* ManagedXslTransform.cs: sync to API changes
svn path=/trunk/mcs/; revision=17404
* XslOutput.cs: add support for encoding.
* ManagedXslTransform.cs, XslTransformImpl.cs: Add support for
encoding.
svn path=/trunk/mcs/; revision=17395
* MethodDef.cs: Make some properties public, Add method to get a
list of parameter types. This is used to build signatures. Alow
sentinels in signatures and in param lists. Fix some tabbing.
* ParamDef.cs: Expose the parameters type so they can be used when
building signatures.
* TypeDef.cs: Add and emit overrides.
svn path=/trunk/mcs/; revision=17391
* HttpException.cs: make the unhandled error more like the MS one.
* HttpRuntime.cs: set a 500 error code on unhandled exceptions.
svn path=/trunk/mcs/; revision=17390
* HttpResponse.cs: flush headers when the body length is 0.
* StaticFileHandler.cs: added If-Modified-Since handling patch slightly
modified from the original by Piers Haken <[email protected]>.
svn path=/trunk/mcs/; revision=17387
* System.Xml.dll.source: add System.Xml/HighWaterStack.cs
* XmlChar.cs (IsWhitespace): Spare enumerator allocation.
* XmlTextWriter.cs (WriteWhitespace): Enumerators are very high in
fat, use low-fat loops instead. Even better, call the function
inside XmlChar for code reuse.
* HighWaterStack.cs (added): New class that acts like a Stack, but
helps with memory allocation.
* XmlNamespaceManager.cs, XmlParserContext.cs: Rewrote to use
HighWaterStack.
* XmlTextReader.cs: Remove orderedAttributesEnumerator variable,
use a variable that stores the position in the ArrayList.
svn path=/trunk/mcs/; revision=17385
* XmlTextWriter.cs: Begin diet. String.Format has too much
saturated fat, lets replace with the fat-free .Write ()
calls. Effects best seen when Paolo's StreamWriter patch is
applied.
svn path=/trunk/mcs/; revision=17384
* Control.cs: when we load the viewstate for a control that has children
viewstates and the child is not found, keep its viewstate around and
wait until the child is added to load the viewstate. Fixes bug #47697.
svn path=/trunk/mcs/; revision=17381
* interp.c: Get rid of duplicate definition of CHECK_MUL_OVERFLOW.
* interp.h interp.c: Get rid of VAL_VALUETA, use VAL_MP instead. Fix
the INITOBJ opcode which was the only user of VALUETA.
svn path=/trunk/mono/; revision=17380
Currently Hashtable.PutImpl has an incorrect test which causes the
key chain search to terminate as soon as a free slot is found,
causing key duplication.
svn path=/trunk/mcs/; revision=17376
* XslComment.cs, XslTemplateContent.cs: remove dead variables.
* XsltCompiledContext.cs, Compiler.cs: copy the XPathNavigator
from the stylesheet for correct namespace resolution.
* XslTransformImpl.cs: close XmlTextWriter when we create it.
svn path=/trunk/mcs/; revision=17374
* reflection.h reflection.c (mono_param_get_objects): Changed this to
return a MonoArray. This simplifies the code and also ensures that
the cache allways contains an object reference as a value.
* icall.c (ves_icall_get_parameter_info): Simplified using the new
function.
svn path=/trunk/mono/; revision=17367
* interp.c (ves_exec_method): Implemented mul.ovf correctly for int32
and int64. Implemented the conv.ovf opcodes for all argument types.
2003-08-15 Zoltan Varga <[email protected]>
(ves_exec_method): Added support for the synchronized flag to the
interpreter. Also fixed the CALLI opcode, and made exception handling
work though the managed-unmanaged barrier.
svn path=/trunk/mono/; revision=17366
* HyperLinkColumn.cs: patch from David Pickens <[email protected]>
that fixes databinding when only DataTextField or DataNavigateUrlField
is set.
svn path=/trunk/mcs/; revision=17365
* socket-io.c: patch by Bernie Solomon <[email protected]> that
fixes a problem with byte ordering when getting the address family for
a socket.
svn path=/trunk/mono/; revision=17364
* Microsoft.CSharp/CSharpCodeGenerator.cs:
- fixed support for method references where target
object is null
- fixed CodeThrowExceptionStatement
- disabled member access modifiers for private method
implementations
- disabled generation of empty method body for interface
declarations
- disabled generation of empty property accessor bodies
in interface declarations
- added support for indexers (properties named "Item")
- added support for chained constructor arguments and
base constructor arguments
* System.CodeDom/CodeTypeDeclaration.cs:
- TypeAttributes of CodeTypeDeclaration now defaults to
TypeAttributes.Public (same as MS implementation)
svn path=/trunk/mcs/; revision=17363
correct ByteFX.Data.MySqlClient (note the change in
capitalization). Thanks to Tom Wagner <[email protected]> for
spotting the error.
svn path=/trunk/mono/; revision=17360
* reflection.h reflection.c loader.c: Added support for parameter
marshalling to dynamically created types. Fixes#47295.
svn path=/trunk/mono/; revision=17356
* Report.cs: New file - All error/warning/progress reporting will
go through here.
* ilasm.exe.sources: Add report to build
svn path=/trunk/mcs/; revision=17353
* HttpResponse.cs: another patch from totte and me. This one prevents
writing output if the client have disconnected and filters the data
when there's a non-final Flush in the middle of the process.
svn path=/trunk/mcs/; revision=17343
ContextLevelActivator.cs, RemoteActivationAttribute.cs,
RemoteActivator.cs: Changed class from public to internal.
svn path=/trunk/mcs/; revision=17336
* ListControl.cs: patch by Yaacov Akiba Slama <[email protected]> that
fixes selection of values before assigning a data source and other
issues.
svn path=/trunk/mcs/; revision=17333
2003-07-17 Peter Williams <[email protected]>
* DTMXPathDocumentBuilder.cs: csc.exe is more stringent about namespaces
than mcs. We need to disambiguate System.Math from Mono.Math here.
svn path=/trunk/mcs/; revision=17331
* DTDValidatingReader.cs : Added SchemaType.
Read() Assures to return to element.
* DTDObjectModel.cs : Removed DTDEntityDeclaration.BaseURI.
* XmlReader.cs : ReadString() should be virtual in NET_1_1.
* XmlTextReader.cs : 1) Depth should consider Attribute and its values.
Introduced insideAttribute field to support them.
2) ReadAttributeValue() should consider empty string.
* XmlValidatingReader.cs :
Fixed several properties which premised as if it was already read.
Encoding and Namespaces now throws NotSupportedException for other
than XmlTextReader.
Implemented ReadTypedValue() based on IHasXmlSchemaInfo.SchemaType.
svn path=/trunk/mcs/; revision=17330
* DTMXPathDocument.cs,
DTMXPathDocumentBuilder.cs,
DTMXPathNavigator.cs :
- Implemented ID support using XmlValidatingReader.
- Prefix should be String.Empty even if XmlReader.Prefix is null.
svn path=/trunk/mcs/; revision=17328
* Compiler.cs : 1) Changed public .ctor() to receive Evidence argument
introduced in .NET 1.1. 2) XmlResolver object is required for 'res'.
svn path=/trunk/mcs/; revision=17324
* XslApplyTemplates.cs,
XslCallTemplate.cs : Should accept other than element content such
as comment and PI.
* XslNumber.cs : In Compile(), 'value' might not exist. (Think about
it later if how it should be.)
* XslTemplateContent.cs : "comment" and "number" support. (I know they
are still incomplete.)
svn path=/trunk/mcs/; revision=17323
* mb-parser.jay: ReDim statement parses many variables now (but initializers aren't allowed)
Erase statement implemented
Lots of garbage (never reduced rules) deleted
Reduce/Reduce problems eliminated (where due to having opt_modifiers duplicated inside property_declaration rule)
* statement.cs : class Redim is prepared to have ReDim Preserve copying code called,
but we need to check if that code is lying in Microsoft.VisualBasic.dll
New class Erase
svn path=/trunk/mcs/; revision=17309
* expression.cs (Indirection.CacheTemporaries): Create the
LocalTemporary with the pointer type, not its element type.
svn path=/trunk/mcs/; revision=17301
name (Cairo) is the same as the class name (also Cairo). To resolve
this ambiguity while keeping the code looking decent, the Cairo.Cairo
class is now Cairo.CairoAPI.
svn path=/trunk/mcs/; revision=17295
the enums no longer need to be nested inside the Cairo class.
* Mono.Cairo/Matrix.cs:
* Mono.Cairo/Object.cs:
* Mono.Cairo/Surface.cs: I never liked having the word 'Object' in
the name of a class, esp. now that we have namespaces. So I have
decided to rename them.
svn path=/trunk/mcs/; revision=17284
* HttpApplicationFactory.cs: use the correct Delegate.CreateDelegate
overload. The previous one only admits static methods.
svn path=/trunk/mcs/; revision=17267
* threadpool.c: when mono_async_invoke was called, no one took care of
monitoring the queue. So if the method invoked took some time and we
got new async invoke requests after 500 ms (the thread created waited
that long in WaitForSingleObject), the new async invoke was not called
until the previous one finished.
This is fixed now. Thanks to Totte for helping with it.
svn path=/trunk/mono/; revision=17266
* UdpClient.cs (Receive): Fix Bug 45633; We should do a blocking
call until a datagram is arrives from the remote host. This
removes the 512 "magic" buffer size when we did not have any data.
svn path=/trunk/mcs/; revision=17237
* Array.cs: Applied patch from Thong (Tum) Nguyen; Removed
replicated tests, and have a routine that does the heavy lifting.
2003-08-10 Miguel de Icaza <[email protected]>
* ArrayTest.cs: New test from Thong (Tum) Nguyen.
svn path=/trunk/mcs/; revision=17236
* ModifiableType.cs: Modify a types signature when the type is
modified instead of waiting untill the end. Signatures need to be
modified immediatly because they are used in method signatures and
would fail for overloaded operations if sigs weren't modified
right away.
* ExternTypeRef.cs: Add signature modifications, fix some tabbing
* GenericTypeInst.cs: Use ModifiableType as a base
* GenericTypeRef.cs: Use ModifiableType as a base
* PeapiTypeRef.cs: No longer take or modify type names.
* PrimitiveTypeRef.cs: Add signature modifications, fix some tabbing.
* Sentinel.cs: Add signature modifications, fix some tabbing.
* TypeRef.cs: Add signature modifications, fix some tabbing.
svn path=/trunk/mcs/; revision=17231
* cs-parser.jay: FIRST_KEYWORD, LAST_KEYWORD: used to know if a
token was a keyword or not.
Add `error' options where an IDENTIFIER was expected; Provide
CheckToken and CheckIdentifierToken convenience error reporting
functions.
Do not use `DeclSpace.Namespace', use `DeclSpace.NamespaceEntry'.
* decl.cs: Rename `NamespaceEntry Namespace' public field into
NameSpaceEntry NameSpaceEntry.
(LookupInterfaceOrClass): Avoid creating a full qualified name
from namespace and name: avoid doing lookups when we know the
namespace is non-existant. Use new Tree.LookupByNamespace which
looks up DeclSpaces based on their namespace, name pair.
* driver.cs: Provide a new `parser verbose' to display the
exception thrown during parsing. This is turned off by default
now, so the output of a failure from mcs is more graceful.
* namespace.cs: Track all the namespaces defined in a hashtable
for quick lookup.
(IsNamespace): New method
svn path=/trunk/mcs/; revision=17230
* DTDObjectModel.cs : added XmlResolver related members. Added
invalid entity recursion logic. Added encodingdecl check on textdecl.
* DTDValidatingReader.cs : It now implements IHasXmlParserContext.
* XmlChar.cs : IsPubidChar() should not allow TAB(	).
* XmlDocumentType.cs : 1) internal CreateDocumentType() was now changed
to receive DTDObjectModel to support other than XmlTextReader.
2) Most of its public member is now based on DTDObjectModel.
* XmlDocument.cs : 1) Synchronous change with XmlDocumentType.
2) ReadNode() now considers XmlParserContext's DTDObjectModel for
other than XmlTextReader (such as XmlValidatingReader).
* XmlNode.cs : code cleanup only.
* XmlParserInput.cs : added HasPEBuffer, used to check illegal nesting.
* XmlTextReader.cs : 1) Illegal entity reference check logic was moved
from ReadContent() to SetEntityReferenceProperties(). 2) Indentation
change on ReadEntityReference(). 3) ReadAttribute() now checks
reference to external entity reference. 4) Added textdecl encoding
check. 5) DTDObjectModel fields are now set correctly. 6) added
PERef markup nest check. 7) If PEDecl was not found, it might be WFC
violation, not only be VC violation. 8) ReadEntityDecl() now receives
its declared entity itself, and this method checks IsInternalSubset.
* XmlValidatingReader.cs : 1) Added GetInternalPerserContext().
2) ValidationType.None should be the same as Auto, not DTD (in the
future it should keep xml schema's default values).
Pending Stuff in XmlTextReader which breaks some NUnit tests;
1) SetEntityReferenceProperies() has check for illegal references.
2) ReadAttribute(bool) has similar check for illegal references.
svn path=/trunk/mcs/; revision=17218
* namespace.cs: Remove redundant call; Avoid using MakeFQN when
we know that we need to concatenate (full typename can never be
null).
* class.cs: ditto.
svn path=/trunk/mcs/; revision=17205
* XmlTextReader.cs : Checked and fixed all TryExpandPERef() invokation
and supplied SkipWhitespace() as they needed. It broke monodoc.
Fixed ReadEntityValueDecl() to get correct value.
svn path=/trunk/mcs/; revision=17203
* XmlInputStream.cs :
Fixed Initialize() that might result in incorrect buffer.
CanRead and Position should consider buffer (especially when the
stream was EOF).
CanSeek should use stream's CanSeek.
* XmlChar.cs : added GetPredefinedEntity().
* DTDObjectModel.cs :
- Modified ComputeDefaultValue() to use it.
- Fixed NormalizedDefaultValue not to expect parsed value as string.
- ResolveExternalEntity now detects invalid standalone specification.
- DTDParameterEntityDeclaration.Value is now changed to property and
keep its resolved value of literal value of external value using
new Resolve (XmlResolver) method (called only by XmlTextReader).
* DTDValidatingReader.cs :
- It now handles entity-expanded Whitespace and SignificantWhitespace
correctly. Does not raise unexpected text not allowed error.
- Fixed MoveToAttribute()s to move internal reader correctly, and
should be able to move in other cases than on element node.
- On Read()ing document type and ResolveEntity(), it now sets
XmlResolver on text reader.
- On ID constraints check and type verification, it now uses
normalized attribute or its tokenized value(s).
- Fixed ValidateAttributes() to add default values when
ValidationType is Auto.
* XmlParserContext.cs : added internal Dtd setter.
* XmlParserInput.cs :
InsertParameterEntityBuffer() should add surrounding whitespaces.
Removed unused code block.
* XmlTextReader.cs :
- Modified ReadReference(), ReadAttribute() and Dereference() to use
XmlChar.GetPredefinedEntity().
- When returning entity reference, it checks extity declaration
existence in certain conditions.
- ReadAttribute() now skips general entity replacement on reading
entity value.
- ReadText() now handles whitespace texts as XmlNodeType.Whitespace.
- ReadXmlDeclaration() holds isStandalone, which might be used in
entity reference's well-formedness check.
- internal 'DTD' now uses XmlParserContext.Dtd.
- isInternalSubset was meaningless. Now uses input stack's Count.
- Added some required SkipWhitespace().
- Several parameter entity handling changes. Added GetPEValue(name).
TryExpandPERef() now uses ImportAsPERef(). ReadParameterEntityDecl()
now uses its Resolve() when it was external PE. Now it uses value
buffer instead of currentTag, to efficiently read (included) PE.
CompileDeclaration() now uses ImportAsPERef instead of ExpandPERef().
ImportAsPERef() simply inserts the value to currentInput.
ReadEntityDecl() also uses value buffer. Removed non-used methods.
- Default attributes are now stored in normalized form.
- Dereference() now considers non-expanding predefined entities.
* XmlValidatingReader.cs : now holds Schemas, and ValidationType.Auto
is more correctly supported.
* XmlAttributeCollection.cs :
When removing default attribute, it immediately inserts the attribute.
RemoveAll() should consider default (not-removable) attributes.
* XmlDocument.cs :
Should have its default XmlResolver. Added Internal Resolver.
Some Load() should use its XmlResolver.
ImportNode() should copy its children in node level, not value level.
It also have to consider not to copy default attribute on importing
XmlElement.
* XmlDocumentType.cs : Now uses document's XmlResolver to read DTD.
* XmlAttribute.cs,
XmlDocumentFragment.cs.
XmlElement.cs : use XmlResolver on InnerXml. Removed some MonoTODO.
* XmlNodeReader.cs : GetInternalParserConext() should provide its DTD.
ResolveEntity() uses XmlResolver on entityReader.
svn path=/trunk/mcs/; revision=17202
* cs-parser.jay: bug fix, parameter was 4, not 3.
* expression.cs: Just use the property;
* statement.cs: No need for GetVariableInfo method.
svn path=/trunk/mcs/; revision=17199
the return type of a method. Since parameter positions are
zero-based, the position of the return type must be is -1.
svn path=/trunk/mcs/; revision=17192
* TypeTranslator.cs: Added support for more primitive types. Added
GetDefaultPrimitiveTypeData, which returns the type data to which a clr type
maps by default.
* XmlCodeExporter.cs: Generate XmlRoot attribute only if root element name and ns
are different from the type ns and name.
Generate class and field comments.
Fixed default attribute generation. In elements with ref attribute, it has to be
generated in the referred attribute.
* XmlReflectionImporter.cs: Added check: simple type extensions can't add new elements.
Added suport for text nodes in members of type "any".
* XmlSchemaExporter.cs: Several fixes. Fixed generation of complex types with simple
content.
* XmlSchemaImporter.cs: Several fixes. The importer now collects documentation info.
* XmlSerializationWriter.cs: WriteNamespaceDeclarations(): do not declare namespaces
that have already been declared.
WriteStartElement(): elements from schema namespace are always written with ns prefix.
* XmlTypeMapMember.cs: Added documentation property.
* XmlTypeMapping.cs: Added documentation property. Added property to check if a class map
represents a simple type.
svn path=/trunk/mcs/; revision=17175
* flowanalysis.cs (FlowReturns): This is now nested in the
`FlowBranching' class.
(MyBitVector): Moved this here from statement.cs.
(FlowBranching.SiblingType): New enum type.
(FlowBranching.CreateSibling): Added `SiblingType' argument.
svn path=/trunk/mcs/; revision=17172
a given id is a C# keyword, and returns the same if if it is not,
or @id if it is a keyword. This method is used everywhere
a name is rendered.
svn path=/trunk/mcs/; revision=17168
* DTDObjectModel.cs :
- Added validation error check (and AddError(), Errors).
- Fixed ComputeDefaultValue() to handle various references correctly.
- DTDEntityDeclaration.EntityValue became property, and added
LiteralEntityValue. The new one holds resolved value.
Added ResolveExternalEntity(). It now required root in .ctor().
* DTDValidatingReader.cs :
- Now it handles namespaced attributes (as input to xsd validator).
- Added XmlResolver property as usual XmlReader.
- Added currentEntityHandling field so that it can stand changing
XmlValidatingReader's EntityHandling dynamically.
- FilterNormalization() now requires name for getting datatypes and
can stand for non-current attribute normalization.
- Splitted ReadContent() from Read() that can be called recursively
when expanding entities.
- Now handles Entity not found error *after* resolution of entities,
as MS.NET does.
- Read()ing DTD checks its Errors and raises validation error events.
In some situations, DTD parsing may detect VC error, not WFC error.
It also strictly checks NData existence.
- Handling of entity-resolved text is a bit changed and Read()ing
element, endElement, cdata now changed to switch collecting text
and collected text.
- content type ANY should allow texts.
- Added enumerated attribute validity check.
- Added Name/Names creation rule check for ID/IDREF/IDREFS.
- Added entity existence check for ENTITY/ENTITIES attributes.
- Added NMTOKEN creation rule check for NMTOKEN/NMTOKENS.
- Fixed to remove extraneous #REQUIRED check.
- Contributing default attribute is now only applied to the case
ValidationType is DTD or None.
- ResolveEntity() now handles external entities.
Added Mono.Xml.IXmlParserContext interface support.
* XmlDocumentType.cs : Fixed to use BaseURI to build DTD model.
* XmlTextReader.cs :
- Fixed ReadAttributeValue() to reset returnEntityReference.
- Added bool MaybeTextDecl only for ResolveEntity().
- Fixed ReadWhitespace(). In fact its value is considered even if it
is in the end of the XML.
- Fixed ReadXmlDeclaration(). Now skips text declaration.
- CompileDTDSubset() now checks IGNORE/INCLUDE section end balances.
- ReadContentSpec() should set OrderType = OR for mixed model.
Fixed to set content element name correctly.
- ImportAsPERef() now skips Text declaration.
- Type of enumerated default attributes shold be string.
- Undeclared PE error is now handled as DTD's VC error, not
XmlTextReader's WFC error.
* XmlValidatingReader.cs : BaseURI should provide that of
original XmlReader's when read was not started yet.
Fixed XmlResolver to delegate to DTDValidatingReader.
* XmlAttributeCollection.cs : Acquiring attList declaration is
insufficient especially in case of lack of elementdecl.
* XmlChar.cs : (Maybe this is compact than XmlConstructs.)
added IsWhitespace(),IsNCNameChar(),IsName(),IsNCName(),IsNmToken(),
IsPubid(). Copies IsValidIANAEncoding() from XmlConstructs.
* XmlInputStream.cs : Removed "version" declaration check. It should
be done by XmlTextReader.
* XmlNodeReader.cs : added internal GetInternalParserContext() and now
it can be used in XmlValidatingReader.ResolveEntity().
ResolveEntity() sets XmlTextReader.MaybeTextDecl.
svn path=/trunk/mcs/; revision=17167
* flowanalysis.cs (FlowBranchingType): This is now nested in the
`FlowBranching' class and called `BranchingType'.
svn path=/trunk/mcs/; revision=17163
* assign.cs (Assign.DoResolve): `target' must either be an
IAssignMethod or an EventAccess; report a CS0131 otherwise. Fixes
#37319.
svn path=/trunk/mcs/; revision=17160
* XslTransformProcessor.cs: Add a table to detect when an object
is busy.
* XslAttributeSet.cs: Use the above table. Dont throw nullref
exception when no use-attribute-sets are specified.
svn path=/trunk/mcs/; revision=17159
* expression.cs (BinaryMethod): This kind of expression is created by the
Binary class if it determines that the operator has to be handled
by a method.
(BinaryDelegate): This kind of expression is created if we are
dealing with a + or - operator on delegates.
(Binary): remove method, argumetns, and DelegateOperator: when
dealing with methods,
* ecore.cs (EventExpr.EmitAddOrRemove): Update to new layout.
* statement.cs (Block): use bitfields for the three extra booleans
we had in use. Remove unused topblock parameter.
* codegen.cs: Remove unecessary argument to Block.EmitTopBlock
* assign.cs: Drop extra unneeded tests.
svn path=/trunk/mcs/; revision=17153
corresponding explicit interface implmentations.
* wine/Bitmap.cs (InitFromStream): cast to an IImage before calling
properties defined in the interface.
* wine/Bitmap.cs:
* wine/Image.cs: Reformatted.
svn path=/trunk/mcs/; revision=17152
commented out. Added missing methods that were in
System.Drawing.Image but not the interface.
* ItfBitmap.cs: Reformatted.
* Image.cs: Reformatted. Make all methods defined in the interface
non-public, and expose them only as explicit interface implementations.
* Graphics.cs (FromImage): cast xrImage to IImage.
* Bitmap.cs (InitFromStream): cast to an IImage before calling
properties defined in the interface.
* Image.cs: Reformatted.
* Graphics.cs (DrawImage): Cast wineImage to IImage before calling
interface properties.
svn path=/trunk/mcs/; revision=17148
* iterators.cs (Mapvariable): provide a mechanism to use prefixes.
* statement.cs (Foreach): Use VariableStorage instead of
LocalBuilders.
* codegen.cs (VariableStorage): New class used by clients that
require a variable stored: locals or fields for variables that
need to live across yield.
Maybe provide a convenience api for EmitThis+EmitLoad?
svn path=/trunk/mcs/; revision=17108
* CryptoStream.cs: Closing bug #40689. The Write method was re-written.
* SymmetricAlgorithm.cs: Removed Lluis previous patch (it fails a unit
test) and corrected a bug in FinalDecrypt.
* RSACryptoServiceProvider.cs: Fixed different exceptions from .NET 1.0
and 1.1.
svn path=/trunk/mcs/; revision=17090
* codegen.cs (RemapLocal, RemapLocalLValue, RemapParameter,
RemapParameterLValue): New methods that are used to turn a
precomputed FieldInfo into an expression like this:
instance.FieldInfo
The idea is to use this instead of making LocalVariableReference
have more than one meaning.
* cs-parser.jay: Add error production to BASE.
* ecore.cs: Deal with TypeManager.GetField returning null, which
is now a valid return value.
(FieldExprNoAddress): New expression for Fields whose address can
not be taken.
* expression.cs (LocalVariableReference): During the resolve
phases, create new expressions if we are in a remapping context.
Remove code that dealt with remapping here.
(ParameterReference): same.
(ProxyInstance): New expression, like the `This' expression, but
it is born fully resolved. We know what we are doing, so remove
the errors that are targeted to user-provided uses of `this'.
* statement.cs (Foreach): our variable is now stored as an
Expression; During resolution, follow the protocol, dont just
assume it will return this.
svn path=/trunk/mcs/; revision=17087
* mono-debug-debugger.c: Don't store the MonoString's vtable to
make this work for applications with multiple application domains.
svn path=/trunk/mono/; revision=17085
* StrongNameMembershipCondition.cs:
* UrlMembershipCondition.cs: (FromXml): Throw exceptions when the
headers do not match.
svn path=/trunk/mcs/; revision=17083
* StreamReader.cs (DiscardBufferedData): Do the same like on the
ms runtime: just discard the buffered data, but don't modify the
BaseStream.Position.
svn path=/trunk/mcs/; revision=17081
* support.cs (SeekableStreamReader.cs): New public class.
* cs-tokenizer.cs, cs-parser.jay, driver.cs: Use the new
SeekableStreamReader instead of the normal StreamReader.
svn path=/trunk/mcs/; revision=17080
stuff.
* SoapReflectionImporter.cs: Set the type namespace parameter when creating a map.
* TypeData.cs: Added property that returns a TypeData that represents an array of
the given TypeData.
* TypeTranslator.cs: Added GetArrayName() method.
Added TypeDatas for missing primitive types.
* XmlCodeExporter.cs: Implemented ExportMembersMapping. Fixed generation of
XmlRootAttribute. Added the namespace to all attributes being generated.
Other fixes in the generation of code.
* XmlReflectionImporter: store the namespace of the type in the maps.
* XmlSchemaExporter.cs: Several fixes. Only set the "mixed" attribute if the
class can generate text. Do not export inherited attributes of a class.
Use the new root namespace stored in the map when generating the root element.
* XmlSerializationWriter: Always write a prefix when writing a qname, even if the
namespace is the default namespace.
* XmlSerializationWriterInterpreter.cs: fixed missing "else".
* XmlTypeMapElementInfo.cs: In DataTypeNamespace property, return the type
namespace instead of the map namespace (which can be different if the type
has a XmlRoot element).
* XmlTypeMapMember.cs: Set the default value of the DefaultValue property
to System.DBNull.Value.
* XmlTypeMapMemberElement.cs: ElementInfo property: In the getter Create
the collection if it has not yet been created.
* XmlTypeMapping.cs: Added property XmlTypeNamespace which stores the namespace
of the type. It may be different from the namespace of the map if the type
has a XmlRoot element. Also added IsSimpleType property.
In ClassMap, added AllMembers property.
svn path=/trunk/mcs/; revision=17075
In Compile(): ignore included schemas that do not have a value
in SchemaLocation. It means that FindElement can return null
if the referred schema was ignored. Added check for that case.
Compile schema after reading it.
* XmlSchemaCollection.cs: The targetNamespace of a schema may
be null. Make XmlSchemaCollection work for this case.
* BuiltInDataType.cs, XmlSchemaDataType.cs: added new primitive
types: float, base64Binary, boolean.
svn path=/trunk/mcs/; revision=17074
* XmlReaderCommonTests.cs : Its XmlValidatingReader.EntityHandling
should be ExpandCharEntities.
* XmlValidatingReaderTests.cs : added ResolveEntity(),
ResolveEntity2() and ResolveEntityWithoutDTD().
svn path=/trunk/mcs/; revision=17073
* DTDValidatingReader.cs :
Added full ExpandEntities support for text node and entity reference
node (although require many usage tests). Almost all methods and
properties now have currentTextValue != null check, that field means
that there are cached (entity-resolved) text.
Implemented default attribute aware XmlLang and XmlSpace.
* XmlNodeReader.cs : ResolveEntity() should not require DTD.
svn path=/trunk/mcs/; revision=17072
Demakov <[email protected]> to fix formatting for Big power of 10
floating point values. This fixes bug #46175.
* FloatingPointFormatterTest.cs: New file. Added with one test by
Aleksey Demakov <[email protected]>.
svn path=/trunk/mcs/; revision=17057
* cs-parser.jay (CLOSE_PARENS_CAST, CLOSE_PARENS_NO_CAST,
CLOSE_PARENS_OPEN_PARENS, CLOSE_PARENS_MINUS): New tokens to
deambiguate casts and delegate invocations.
(parenthesized_expression): Use the new tokens to ensure this is
not a cast of method invocation.
* cs-tokenizer.cs (is_punct): Return one of the new special tokens
when reading a `)' and Deambiguate_CloseParens () was previously
called.
* expression.cs (ParenthesizedExpression): New class. This is
just used for the CS0075 test.
(Binary.DoResolve): Check for CS0075.
svn path=/trunk/mcs/; revision=17052
* mono-debug-debugger.c: Completely reworked the type support; the
most important thing is that we're now just using one single
`MonoType' instance per type.
svn path=/trunk/mono/; revision=17049
* ExternTypeRef.cs: Add functionality for valuetypes
* MethodDef.cs: Handle Vararg signatures individually. Fixes for
new Sentinel type in vararg signatures
* MethodRef.cs: Use new SentinelTypeRef instead of Sentinel type
ref constant.
* ParamDef.cs: New method to check if this parameter is the sentinel
* TypeRef.cs: Add some functionality for creating valuetypes
* Sentinel.cs: New type represents the sentinel
svn path=/trunk/mcs/; revision=17042
* Compiler.cs: Add method LocalNameOf, to get the local name of a
string.
* XslTransformProcessor.cs: Support for setting the XmlResolver.
* XslElement.cs, XslAttribute.cs: Better support for namespaces.
* XslAvt.cs: When precalculating, if the AVT is null (ie, the
attribute was not specified), just return null, that will be the
result.
* ManagedXslTransform.cs: use the resolver given.
svn path=/trunk/mcs/; revision=17040
* ArrayList.cs: added / so that gvim syntax highlight doesn't go crazy.
* CollectionBase.cs: fixed several bugs reported by Carlos Barcenilla
([email protected]). Most of the patch is also his.
svn path=/trunk/mcs/; revision=17036
types use LabelInfos for label references now.
* BranchInstr.cs: Take a LabelInfo instead of information on a label.
* HandlerBlock.cs: Take a LabelInfo instead of information on a label.
* MethodDef.cs: Return LabelInfo from AddLabel methods. New method for
adding a reference to a label.
svn path=/trunk/mcs/; revision=17022
* DTDObjectModel.cs : Added BaseURI (but not used yet).
DTDAttListDeclaration.ctro() now requires root dtd object model.
* DTDValidatingReader.cs : Read() now expands EntityReference if
entity handling of validating reader is ExpandEntities.
* XmlReader.cs,
XmlTextReader.cs,
XmlNodeReader.cs,
XmlValidatingReader.cs : Implemented "virtual" ReadInnerXml and
ReadOuterXml which are modified in MS.NET 1.1.
* XmlConstructs.cs : added int version of IsValid, IsInvalid,
IsContent, IsMarkup and IsNCNameStart.
Fixed int version of IsXXX() to check array index range.
Added IsValidName (string).
* XmlTextReader.cs :
- Read() handles document with non document element as an error.
- ReadText() and ReadCharacterReference() checkes illegal characters.
- ReadEntityReference() checks name validity.
- ReadProcessingInstruction() rejects such name that starts with
"xml" ignoring case, and checks attributes more strictly.
- ReadDeclaration() rejects unrecognized kind of declaration.
- In many places, added "required whitespace" check in DTD markup.
- DTD content model now disallows mixing use of '|' and ','.
svn path=/trunk/mcs/; revision=17012
* MethodDef.cs: Less elegant but more bugfree method of doing explicit
offsets for labels. Just put the offset labels in another list and
define them in another loop.
svn path=/trunk/mcs/; revision=17007
needed so the call conv can be modified for the newobj operation which
is implicitly instance.
* ExternMethodRef.cs: Expose call conv. Don't resolve vararg methods
more then once.
* GlobalMethodRef.cs: Expose call conv
* TypeSpecMethodRef.cs: Expose call conv
* MethodInstr.cs: For newobj operations set the call conv to instance
svn path=/trunk/mcs/; revision=17005
shift the words of a float64 value on ARM.
* icall.c: new icall ves_icall_System_Double_AssertEndianity to utilise
above macro.
svn path=/trunk/mono/; revision=17002
* XmlDocumentFragment.cs : I missed to add it in relation to the
previous XmlParserContext patch. Similar to XmlAttribute/XmlElement.
* XmlNodeReader.cs : removed some TODO attributes.
* DTDValidatingReader.cs,
XmlValidatingReader.cs : Implemented ResolveEntity().
svn path=/trunk/mcs/; revision=17001
* XmlSchema.cs :
- Changed missingElementTypeRefs from Hashtable to ArrayList.
- Added internal XmlSchemas for keeping imported schemas.
- Added private Compile() that takes the original rootSchema and
schema location stack for nested inclusion check.
- Added basic xs:import and xs:include support.
- Compile() is now aware of included XmlSchemaObject items.
- Changed Compile() to fill missing elements' types and that of
referencing elements.
- Read() now adds SourceUri property (although only to itself).
* XmlSchemaCollection.cs : Implemented Add().
* XmlSchemaCollectionEnumerator.cs :
Changed .ctor() to use schema collection as its argument.
Fixed Current to return hashtable's Value, instead of Current
(which returns DictionaryEntry).
* XmlSchemaComplexType.cs :
Added internal static AnyType.
Compile() is now searches for its base type into other schemas.
* XmlSchemaElement.cs : anyType is supported.
It now searches for type information after Compile().
SetReferedElementInfo() is now changed to SetSchemaType().
* XmlSchemaObjectTable.cs :
It had problems similar to schema collection. Now it uses internal
class XmlSchemaObjectTableEnumerator to support GetEnumerator().
* XmlSchemaParticle.cs : added internal class XmlSchemaParticleEmpty
and internal static Empty.
svn path=/trunk/mcs/; revision=17000
the site name.
* IsolatedStorageInfo.cs (CreateAssemblyFilename):
(CreateDomainFilename): Replace String.Format with Path.Combine.
svn path=/trunk/mcs/; revision=16967
NET_1_1.
* DBConcurrencyException.cs: Added new NET_1_1 no-param constructor.
* XmlDataDocument.cs (BaseURI):
(InnerXml):
(IsReadOnly):
(this):
(LocalName):
(Name):
(OwnerDocument):
(WriteContentTo):
(WriteTo): Removed, these do not need to be redefined, as
they are inherited from XmlDocument already.
svn path=/trunk/mcs/; revision=16966
* Compiler.cs: Add support for key, utility function to parse
QName's from the XsltContext. Store keys in the CompiledStyle, not
in the Stylesheet.
* XslKey.cs: Real implementation
* XslStylesheet.cs: Move the keys to CompiledStyle.
* XsltCompiledContext.cs: Implement the key function
* Iterator.cs: Allow creation of an EnumeratorIterator with an
XmlNamespaceManager
svn path=/trunk/mcs/; revision=16959
* unicode.c (ves_icall_System_Char_IsPunctuation): The set of
classes that are a punctuation character in .NET is not the same a
g_unichar_ispunct.
svn path=/trunk/mono/; revision=16958
* CryptoStreamTest.cs: New. Very basic test for CryptoStream + the
test case from bugzilla #46143 from Joerg Rosenkranz.
* RSACryptoServiceProviderTest.cs: Fixed some exceptions that are
different from .NET 1.0 and 1.1.
svn path=/trunk/mcs/; revision=16954
* Parser.jay:
Nested predicates (uses ExprFilter instead)
more type safety
make grammar look more like w3c spec
* Expression.cs:
remove ExprStep, ExprPredicates
NodeTest is now a NodeSet
more type-safety
* Iterator.cs:
PredicateIterator now only takes a single predicate expression
more type-safety
* XPathNavigator.cs:
simplified SelectTest
* XPathException.cs:
fixed indenting
svn path=/trunk/mcs/; revision=16953
* XmlParserContext.cs,
XmlAttribute.cs,
XmlElement.cs : Added internal Dtd and new internal XmlParserContext
.ctor() that takes DTDObjectModel. And then rewrote classes which
uses DTD information. Changed DocTypeName, InternalSubset, PublicId
and SystemId to use DTDObjectModel.
* DTDObjectModel.cs :
Added DTDObjectModel.InternalSubsetHasPEReference.
Added DTDEntityDeclaration.IsInternalSubset.
* XmlTextReader.cs :
Added internal GetInternalParserContext (to build entity reader).
Added private isIntSubset to check if the DTD subset is internal or
external, which might affect well-formedness constraints.
Changed GenerateDTDObjectModel to return the resulting DTD model.
* XmlEntityReference.cs : implemented BaseURI.
* XmlNodeReader.cs :
- Implemented ResolveEntity() and CanResolveEntity(). In fact
it leads too many changes on almost all methods and properties,
since they now must be aware of entityReader.
- fixed ownerElement that might be used to return from attribute
value to the element through parent attribtues.
- Now changed indexer to call GetAttribute() and moved actual logic
to the matching GetAttribute() methods.
svn path=/trunk/mcs/; revision=16946
* XslVariable.cs: Add IsEvaluated.
* Compiler.cs: To resolve a variable you now need to pass the
processor, so that it can be passed to IsEvaluated. A local will
only be resolved if it has already been evaluated.
* XsltCompiledContext.cs: Pass along the processor.
svn path=/trunk/mcs/; revision=16942
* configure.in, etc.: portability fixes and support for
buidling outside the srcdir from Laurent Morichetti <[email protected]>.
svn path=/trunk/mono/; revision=16937
* ManagedXslTransform.cs: Hold reference to CompiledStyle, not the
XslTransformProcessor. Will help with thread safty.
* Compiler.cs, XslTemplate.cs, XslTransformProcessor.cs: Store
variable values in the XslTransformProcessor.
* XsltCompiledContext.cs: If the scope is null, don't look there!
* Debug.cs: New method Assert
* XslApplyTemplates.cs, XslCallTemplate.cs, XslCompiledElement.cs,
XslTemplateContent.cs, XslVariable.cs:
Store variable values in the XslTransformProcessor
svn path=/trunk/mcs/; revision=16917
(GetStore): Update storage_scope accordingly.
(GetUseStoreForAssembly): Include IsolatedStorageScope.User.
(GetUseStoreForDomain): Include IsolatedStorageScope.User and
IsolatedStorageScope.Assembly.
* IsolatedStorage.cs:
(CurrentSize):
(MaximumSize): throw InvalidOperationExceptions. This is a
subclass responsibility.
(Scope): Implemented using a static field, storage_scope.
(SeparatorInternal)
(SeparatorExternal): Implemented. Use Path.DirectorySeparatorChar
for SeparatorExternal.
svn path=/trunk/mcs/; revision=16915
* CryptoStream.cs: Fixed bug #46143 (exception) - however we dont
returns the same result as MS. Class needs to be re-written.
svn path=/trunk/mcs/; revision=16908
a TypeData without a Type. Added ListItemTypeData property.
* XmlTypeMapping.cs: Added property for checking if a ListMap represents an
array of arrays. Added also a property to get the nested array map.
* XmlCodeExporter.cs: First implementation of code exporter.
svn path=/trunk/mcs/; revision=16901
* AssemblyInfo.cs: Updated version to 0.25.99 (all tools).
* MakeCert.cs: Added support for Extended Key Usage (-eku).
It's now possible to create SSL certificate with the tool.
svn path=/trunk/mcs/; revision=16897
* Makefile.am, cpu-sparc.md, exceptions-sparc.c, mini-sparc.c,
mini-sparc.h, tramp-sparc.c: Beginning of sparc support
from Mark Crichton <[email protected]> and Christopher Taylor
([email protected]).
svn path=/trunk/mono/; revision=16892
* UserControl.cs: Added attribute
* BasePartialCachingControl.cs: New class and paritally implemented
* DesignerDataBoundLiteralControl.cs: New class and implemented
* DesignTimeTemplateParser.cs:
* PartialCachingControl.cs:
* StaticPartialCachingControl.cs: New class and paritally implemented
svn path=/trunk/mcs/; revision=16883
* IntPtrStream.cs (Read): Use correct offset here; Change the
code to use a byte* instead of an IntPtr to reduce the number of
casts used.
svn path=/trunk/mcs/; revision=16858
* expression.cs (Invocation.MakeUnionSet): Patch from Lluis
Sanchez : use TypeManager.ArrayContainsMethod instead of a direct
reference comparison.
(TypeManager.ArrayContainsMethod): When we have a MethodInfo, also
examine the ReturnType for equality - this is necessary in the
cases of implicit and explicit operators whose signature also
includes the return type.
svn path=/trunk/mcs/; revision=16857
* conv-lib.cs: New Multi stage compilation test for bug #47043.
* conv-main.cs: Main for the above.
* Makefile: Update.
svn path=/trunk/mcs/; revision=16856
* ArrayList.cs: Deployed ArrayList from Tum; Fixed iterator to
allow nulls, and inline a few calls to make profiling more useful.
svn path=/trunk/mcs/; revision=16849
* IntPtrStream.cs (Read): Use Marshal.Copy instead of the now
deprecated MemCopy.
(IntPtrStream): New stream implementation, it maps to a region in
memory.
svn path=/trunk/mcs/; revision=16846
* icall.c: Add new MemCopy internalcall.
(ves_icall_System_Reflection_Assembly_GetManifestResourceInternal):
Simplified code; It is not necessary to handle all the cases here,
as the C# code takes care of it. Only handle the case of the name
resource embedded into the assembly.
Changed signature to return the data pointer and the size of the
data.
2003-07-26 Miguel de Icaza <[email protected]>
* reflection.c (mono_image_get_method_info): Allow for 0x40 to be
encoded. (Partition II.22.1.7: PInvokeAttribute:SupportsLastErr).
svn path=/trunk/mono/; revision=16843
doesn't have the mehod, look at the parent of the parent.
* object.c: mono_message_init(): use the attribute PARAM_ATTRIBUTE_OUT
to check if a parameter is an in or out parameter
(PARAM_ATTRIBUTE_IN is not set by default).
mono_method_return_message_restore(): Use mono_class_value_size to
get the size of a value type. mono_type_stack_size (parameterType)
does not return the correct value if parameterType is byRef.
mono_load_remote_field(), mono_load_remote_field_new(),
mono_store_remote_field(), mono_store_remote_field_new():
raise exception if the remote call returns an exception.
svn path=/trunk/mono/; revision=16837
* Type.cs, MonoType.cs, ArgIterator.cs: pass the handles values
to icalls, to avoid special cases in some call conventions.
svn path=/trunk/mcs/; revision=16832
makes it easier to create filters using braces, labels, or offsets
* HandlerBlock.cs: Allow handler blocks to be created using positions,
offsets, and labels.
* MethodDef.cs: Add methods to create labels all 3 ways, and emit
labels created by each of the methods.
* TryBlock.cs: Use a handler block instead of label strings. This
allows all three methods of label creation to be used.
svn path=/trunk/mcs/; revision=16828
2003-07-26 Miguel de Icaza <[email protected]>
* namespace.cs: Cache the result of the namespace computation,
instead of computing it every time.
2003-07-24 Miguel de Icaza <[email protected]>
* decl.cs: Use a global arraylist that we reuse over invocations
to avoid excesive memory consumption. Reduces memory usage on an
mcs compile by one meg (45 average).
* typemanager.cs (LookupTypeReflection): In .NET pointers are
private, work around that.
2003-07-23 Miguel de Icaza <[email protected]>
* literal.cs (IntLiteral): Define Zero and One static literals.
* cs-parser.jay (integer_literal): use static literals to reduce
memory usage for the most used literals (0, 1 and -1). 211kb
reduced in memory usage.
Replace all calls to `new ArrayList' with `new
ArrayList(4)' which is a good average number for most allocations,
and also requires only 16 bytes of memory for its buffer by
default.
This reduced MCS memory usage in seven megabytes for the RSS after
bootstrapping.
svn path=/trunk/mcs/; revision=16808
* DefaultContext.cs: count() should return a double
* Expression.cs: better support for handling non-double numbers
svn path=/trunk/mcs/; revision=16799
grammar changes
2003-07-28 Miguel de Icaza <[email protected]>
* codegen.cs: Compute IsGeneric correctly.
* cs-parser.jay: Introduce OP_GENERIC_LT for the grammar ambiguity
resolution.
Bring back (temporarily) OP_LEFT_SHIFT, OP_RIGHT_SHIFT,
OP_SHIFT_RIGHT_ASSIGN, OP_SHIFT_LEFT_ASSIGN. There were too many
regressions, and I was chasing more bugs than I required.
* interface.cs: Use expressions for base type names (like classes
and structs have been doing for a while now), and resolve that.
This patch should probably go into head as well.
This makes it one less user of FindType.
svn path=/trunk/mcs/; revision=16794
* UnionCodeGroup.cs:
* Url.cs: Added to CVS, basic functionality implemented, except
for CreateIdentityPermission (Site, Url) and the Resolve methods
in UnionCodeGroup.
svn path=/trunk/mcs/; revision=16789
* expression.cs (Invocation.OverloadResolve): Fix the algorithm to
handle params methods the correct way by forming only one
applicable set with params and normal methods in them. Earlier we
were looking at params methods only if we found no normal methods
which was not the correct thing to do.
(Invocation.BetterFunction): Take separate arguments indicating
when candidate and the best method are params methods in their
expanded form.
This fixes bugs #43367 and #46199.
svn path=/trunk/mcs/; revision=16788
* System.Xml.dll.sources: Add new files
* XslTransform.cs: Use the new XslTransformImpl class
* XslTransformImpl.cs: An abstract class for Xsl transforms
* UnmanagedXslTransform.cs: Contains the code that was in
XslTransform.cs
svn path=/trunk/mcs/; revision=16786
* DTDValidatingReader.cs : (Read,ValidateAttributes,ReadAttributeValue)
attribute declaration should be got independently of elementdecl.
* XmlAttribute.cs :
Added internal SetDefault() to mark as default.
Removed InnerText implementation that is just the same as XmlNode.
* XmlDocument.cs : id shouldn't be removed from table at 'trying' to
get matching elements. ReadAttributeNode() now sets default mark.
* XmlElement.cs : WriteTo() should ignore default attributes.
* XmlTextWriter.cs : shuold allow valid name char such as digits.
svn path=/trunk/mcs/; revision=16783
* class.cs (TypeContainer.DefineMembers): Use the base type's full
name when looking up the base class of a nested class. Fixes#46977.
svn path=/trunk/mcs/; revision=16782
* mono-debug-debugger.c (mono_debugger_runtime_invoke): New
method. This is a wrapper around mono_runtime_invoke() which
boxes the instance object if neccessary.
svn path=/trunk/mono/; revision=16779
* cs0075.cs: This test case was incorrect; according to the spec,
`(double) -1' is allowed since `double' is a builtin type.
However, `(A) -1' is not allowed where `A' is a valuetype and has
an implicit conversion from int.
svn path=/trunk/mcs/; revision=16776
* cs-parser.jay: Solve the abiguities with casts; fixes bugs
#46923 and #35459.
(CAST_FOLLOWING_TOKEN, NO_CAST_FOLLOWING_TOKEN): New tokens;
they're returned by the tokenizer in some cases to resolve
ambiguities with casts.
(invocation_expression): Tell the tokenizer to check whether the
following token may follow a cast.
(cast_expression): A cast is only a cast if it's followed by a
token which may actually follow a cast.
* expression.cs (ParenthesizedExpression): New class.
(Binary.DoResolve): Fix#35459.
svn path=/trunk/mcs/; revision=16774
* XmlDsigC14NTransformTest.cs: Corrected test for .NET 1.1 (that was a
bug in .NET 1.0). There are no more unit test failures on Windows.
svn path=/trunk/mcs/; revision=16773
fixes the problem with ilasm creating blank files if their is a
failure in the parsing phase.
* ExternTable.cs: Do not reference the assemblies untill after the
PEFile untill the Resolve phase.
svn path=/trunk/mcs/; revision=16765
sure to not resolve more then once.
* ExternMethodRef.cs: Resolve as a typespec method if neccasary
* ExternTypeRef.cs: Use modifiable type as base class
* FieldRef.cs: Make sure to not resolve more then once.
* GlobalFieldRef.cs: Make sure to not resolve more then once.
* GlobalMethodRef.cs: Make sure to not resolve more then once.
* ITypeRef.cs: Types no longer need the AsClassRef method
* MethodDef.cs: Only decriment param count for vararg methods if there
is an ellipsis on the end of the param list.
Fix little bug so return types allways get resolved.
* PeapiTypeRef.cs: Use TypeRef.Ellipsis for a place holder in bound
arrays instead of null
* PrimitiveTypeRef.cs: Use modifiable type as a base
* TypeRef.cs: Use modifable type as base, and let it do all the
modifications
* TypeSpecFieldRef.cs: Make sure to not resolve more then once.
* ModifiableType.cs: New base class for all types. This class will
handle all of the typemodification and determine whether methods
should be added to the type or the types typespec.
svn path=/trunk/mcs/; revision=16764
sure to not resolve more then once.
* ExternMethodRef.cs: Resolve as a typespec method if neccasary
* ExternTypeRef.cs: Use modifiable type as base class
* FieldRef.cs: Make sure to not resolve more then once.
* GlobalFieldRef.cs: Make sure to not resolve more then once.
* GlobalMethodRef.cs: Make sure to not resolve more then once.
* ITypeRef.cs: Types no longer need the AsClassRef method
* MethodDef.cs: Only decriment param count for vararg methods if there
is an ellipsis on the end of the param list.
Fix little bug so return types allways get resolved.
* PeapiTypeRef.cs: Use TypeRef.Ellipsis for a place holder in bound
arrays instead of null
* PrimitiveTypeRef.cs: Use modifiable type as a base
* TypeRef.cs: Use modifable type as base, and let it do all the
modifications
* TypeSpecFieldRef.cs: Make sure to not resolve more then once.
* ModifiableType.cs: New base class for all types. This class will
handle all of the typemodification and determine whether methods
should be added to the type or the types typespec.
svn path=/trunk/mcs/; revision=16761
* XmlQualifiedName.cs : fields should never be null
* Expression.cs:
* Tokenizer.cs:
don't pass null to XmlQualifiedName constructor
* XsltArgumentList.cs:
fix type conversions in ValidateParam
allow creating params with null namespaceUri
svn path=/trunk/mcs/; revision=16753
* jscript-lexer-parser.g: Changed the namespace to
Microsoft.JScript.Tmp.
* jscript-lexer-parser.g: Fixwd a typo at source_elements rule.
* jscript-lexer-parser.g: Got the name of a
global_function_declaration and also its return type if
available.
* jscript-lexer-parser.g: Added syntatic rule for print_statement.
* jscript-lexer-parser.g: Initial construction of AST for
enum_statement and package_statement.
* jscript-lexer-parser.g: Fixed the enum_statement to accept
empty enum declarations.
* jscript-lexer-parser.g: Got the type of a
veriable_declaration.
* jscript-lexer-parser.g: Initial construction of AST for
primary_expression (in particular literal).
svn path=/trunk/mcs/; revision=16738
* driver.cs: Modified the driver structure to be compatible
with our new CodeGenrator and SemanticAnalizer. I
removed the builders from Reflection.Emit to the
CodeGenerator. Added an ASTList, SemanticAnalizer and
CodeGenerator here. Adde methods Run, GenerateCode
svn path=/trunk/mcs/; revision=16737
* Decided to change temporarly namespace name
Microsoft.JScript to Microsoft.JScript.Tmp in order to be able
to run the code generated by our CIL code generator (on next
commit will come). The problem is that we don't have the
runtime support for our compiler, this involve VsaEngine class
and its "friends", which I have not found a lot of
doumentation for. If someone knows a docs place for them,
don't hesitate to send me a email pointing to them.
* Changed from public to internal Visit function at some
classes.
* Package.cs: Added Name and Members fields.
* SemanticAnalizer.cs: Added methods VisitPrint and
VisitStringLiteral.
* VariableDeclaration.cs: Added Type field.
* Visitor.cs: Changed from public to internal. Added
VisitPrint and VisitStringLiteral methods.
* VsaEngine.cs: Fixed namespace name from Microsoft.JScript to
Microsoft.JScript.Vsa and then to Microsoft.JScript.Vsa.Tmp.
svn path=/trunk/mcs/; revision=16731
for OwnerElement.IsRooted to fix the build..
* SoapServices.cs (XmlNsForClrTypeWithNsAndAssembly):
Fixed typo. It's 'Ns', but 'Ms'.
svn path=/trunk/mcs/; revision=16721
* DTDValidatingReader.cs :
- Added ID support in ValidateAttributes().
- More refined ReadAttributeValue() support for non-expanding entity
situation
- It should handle LocalName, Name, Prefix, NamespaceURI and Value
correctly when the reader is on each of the value nodes of an
attribute. Now XmlDocument.ReadNode() should work well.
* XmlDocument.cs :
- added idTable, AddIdenticalAttribute(), GetIdenticalAttribute() and
RemoveIdenticalAttribute()
- Implemented GetAttributeById().
* XmlAttributeCollection.cs :
- added private ownerDocument property and replaced
ownerElement.OwnerDocument with it.
- Added AdjustIdenticalAttribute() and it is used in SetNamedItem().
It calls XmlDocument.{Add|Remove}IdenticalAttribute().
- Added RemoveIdenticalAttribute() and it is used in Remove().
(I also added AddIdenticalAttribute() but is not used.)
svn path=/trunk/mcs/; revision=16717
* XmlDocumentType.cs :
modified private DTD to dtd and added internal DTD (the same thing).
* XmlElement.cs :
Fixed SetAttributeNode() to check if specified attribute is already
set to the other element. In fact it is W3C DOM's specification but
MS.NET 1.0 failed to catch it.
* XmlTextReader.cs :
ReadAttributeValue() should check if the value of the attribute is
already read when the whole value is entity reference.
Also, Name of text nodes should be "", not "#text"
svn path=/trunk/mcs/; revision=16716
* BuiltInDatatype.cs : XsdIDRefs.ParseValue () should be implemented.
* XmlSchemaDatatype.cs : public Whitespace and protected Normalize()
should be internal.
svn path=/trunk/mcs/; revision=16715
* error-6.cs: New test for bug #46907.
* Makefile.am (test-multi-local): Run the multi-test tests.
(all-local): Run run-test-local and test-multi-local.
svn path=/trunk/mcs/; revision=16711
* expression.cs (Indexers.Indexer): New nested struct; contains
getter, setter and the indexer's type.
(Indexers.Properties): This is now an ArrayList of
Indexers.Indexer's.
(IndexerAccess.DoResolveLValue): Correctly set the type if the
indexer doesn't have any getters.
* assign.cs (Assign.DoResolve): Also do the implicit conversions
for embedded property and indexer assignments.
svn path=/trunk/mcs/; revision=16709
* cs-tokenizer.cs (Tokenizer.xtoken): Report a CS1040 if a
preprocessor directive is not the first non-whitespace character
on a line.
svn path=/trunk/mcs/; revision=16707
* namespace.cs (NamespaceEntry.Lookup): New method; rewrote the
namespace parsing, follow the spec more closely.
* rootcontext.cs (RootContext.NamespaceLookup): Use the new
NamespaceEntry.Lookup().
svn path=/trunk/mcs/; revision=16706
* FormatterServices.cs:
(GetSerializableMembers): check that all base types are serializable
when getting their fields. Fixes bug #46875.
svn path=/trunk/mcs/; revision=16705
* XmlAttribute.cs : .ctor() shouldallow localName "xml" (not prefix)
with http://www.w3.org/XML/1998/namespace.
* XmlEntity.cs : patch by Aleksey Sanin. InnerText is now supported.
* XmlNode.cs : InnerText should handle CDATA and whitespaces.
* XmlTextReader.cs : Should allow " (#PCDATA)* " in ReadContentSpec().
* XmlTextWriter.cs : Quick fix for accepting (and writing) same-named
attributes (as MS.NET does). It isn't good way and I may change it.
svn path=/trunk/mcs/; revision=16702
a toplevel 'make run-test' doesn't recurse through all the directories twice
(once to make test, once to run-test).
svn path=/trunk/mcs/; revision=16692
* expression.cs (Invocation.OverloadResolve): Perform the check
which disallows Invoke to be directly called on a Delegate.
(Error_InvokeOnDelegate): Report error cs1533.
svn path=/trunk/mcs/; revision=16683
* everywhere: Remove uses of direct invocation of the 'Invoke'
method on a delegate type - that is error cs1533 now flagged by
mcs.
svn path=/trunk/mcs/; revision=16681
* cpu-g4.md, cpu-pentium.md: updates for new instructions.
* mini.c, mini.h: first cut at generics support: some new instructions
added and changed the behaviour of some of the existing ones.
svn path=/trunk/mono/; revision=16678
* MethodCore.cs (OverridesSomething): New public field; it's set
from TypeContainer.DefineMembers if this method overrides
something (which doesn't need to be a method). Fix#39462.
svn path=/trunk/mcs/; revision=16673
* expression.cs (Indexers.GetIndexersForType): Only look in the
interface hierarchy if the requested type is already an
interface. Fixes#46788 while keeping #46502 fixed.
svn path=/trunk/mcs/; revision=16667
* interface.cs (Populate*): Get rid of code which emits attributes
since the stage in which we emit attributes is the 'Emit' stage,
not the define stage.
(Emit): Move attribute emission for interface members here.
svn path=/trunk/mcs/; revision=16665
out parameter.
* MethodCall.cs: Improved checking if the requested client type for the target
object can be casted to the server type. Now not only checks type name,
but also the type hierarchy and implemented interfaces. Also implemented
method ToString().
* MethodResponse.cs: Imlemented ToString().
* ReturnMessage.cs: In the exception constructor, allow the request to be null.
Implemented ToString().
* StackBuilderSink.cs: Check type of parameters before calling the target method.
(a wrong type would make the runtime to crash).
svn path=/trunk/mcs/; revision=16659
* class.cs (TypeContainer.DefineMembers): Check whether all
readonly fields have been assigned and report warning CS0649 if
not.
* statement.cs (LocalInfo.IsFixed): Always return true if this is
a valuetype.
svn path=/trunk/mcs/; revision=16655
* XmlDsigC14NTransformTest.cs: New tests from Aleksey Sanin.
* XmlDsigC14NWithCommentsTransformTest.cs: New tests from
Aleksey Sanin.
svn path=/trunk/mcs/; revision=16636
* decl.cs (MemberCache.AddMethods): Reverse the order of the array
returned from GetMethods to make things consistent with the
assumptions MCS makes about ordering of methods.
This should comprehensively fix bug #45127 and it does :-)
* ecore.cs (MethodGroupExpr.DeclaringType): Correct bug - the
ordering is actually reverse.
* Clean up some debug messages I left lying around.
svn path=/trunk/mcs/; revision=16627
This compiler can not self host currently. Need to fix that.
* Makefile: compile to `gmcs.exe'
* driver.cs: Turn on v2 by default on gmcs.
* generic.cs (ConstructedType): Does no longer take a container
type argument; That will be taken care of later.
(ConstructedType.DoResolve, ConstructedType.ResolveAsTypeStep):
Use SimpleName to resolve for now, so we can continue the work on
the parser, until we get Type.GetType that understands generics.
(ConstructedType.ToString): Implement
(TypeArguments.Resolve): Resolve the child expressions as types.
* cs-parser.jay: Rename interface_constraints to
type_parameter_constraints
(namespace_or_type_name): Only use constructed types for the basic
construction, we will deal with identifier<...> later.
(type/type_name): No longer call DecomposeQI, as
namespace_or_type_name is always decoded now.
svn path=/trunk/mcs/; revision=16624
* DTDObjectModel.cs : Added DTDEntityDeclarationCollection and
DTDNotationDeclarationCollection and replaced Hashtables with them.
Added NormalizedDefaultValue property for DTDAttributeDefinition.
* DTDValidatingReader.cs :
- It now reads attribute values into value collection.
- Renamed consumedDefaultAttribute to consumedAttribute, and
inContent to insideContent.
- GetAttribute() should allow reader's other node state than element.
- MoveToNextAttribute() should move when reader is placed other than
the first attribute.
- HandleError() now supports ValidationType.None (i.e. does nothing).
- ValidateAttribute() now collects and resolves attribute value
entity references. (On the other hand, it doesn't support
EntityHandling.ExpandCharEntity.)
- NodeType shouldn't return Attribute after ReadAttributeValue().
Now only Text is supported, but must also support EntityReference.
- Add FilterNormalization() and partially support Normalization.
svn path=/trunk/mcs/; revision=16615
2003-07-20 Miguel de Icaza <[email protected]>
* cs-parser.jay (namespace_name): do not use
namespace_or_type_name, use qualified_identifier, because
namespace_or_type_name will soon return a composed expression
instead of a string.
(namespace_or_type_name): Instead of returning a string, now this
production returns an expression.
* codegen.cs (EmitContext): Setup IsGeneric property based on
whether our DeclSpace is generic, our the method is generic.
* modifier.cs (Modifiers.METHOD_GENERIC): New definition, use if
the method is generic.
* cs-parser.jay (type_arguments, opt_type_argument_list,
type_parameters, type_parameter_list, opt_type_parameter_list,
type_parameter,, opt_type_parameter_constraints_clauses,
type_parameter_constraints_clauses,
type_parameter_constraint_clause, type_parameter_constraint,
interface_constraints): Add new production
* decl.cs (DeclSpace): IsGeneric, flag to track whether this
DeclSpace is generic or not.
(DeclSpace.SetParameterInfo): New routine, used to set the
parameter info for a type.
(DeclSpace.LookupGeneric): Lookups a name, and if it is a generic,
returns a GenericTypeExpr
* ecore.cs (SimpleName.ResolveAsTypeStep): If our container is
generic, lookup the generic argument.
* attribute.cs: Do not allow TypeParameterExpressions in
Attributes.
* class.cs: Do not allow the Main method to be defined in a
Generic container.
* expression.cs (SizeOf): Do not allow generic types to be used as
arguments to sizeof.
* typemanager.cs (IsGeneric): Wrapper for Reflection when we have
it: whether a type is generic or not. Only works for types we are
currently building for now.
2003-01-21 Miguel de Icaza <[email protected]>
* generic.cs: New file, contains support code for generics.
* cs-parser.jay: Remove OP_SHIFT_LEFT, OP_SHIFT_RIGHT,
OP_SHIFT_LEFT_ASSIGN, OP_SHIFT_RIGHT_ASSIGN.
Update parser for the above removals.
* cs-tokenizer.cs: Do not handle <<= or >>= specially. This is
now taken care of in the parser.
svn path=/trunk/mcs/; revision=16612
This directory is only for the development of the generics version of MCS,
we will later fold all those changes into the main branch. But wanted to
share the code with others in the meantime instead of keeping a separate
tree.
svn path=/trunk/mcs/; revision=16611
* XmlTextReader.cs :
Read() now handles parser context stuff (BaseURI, XmlLang and
XmlSpace) correctly for an empty element.
Normalization property now doesn't throw an error. Will be used soon.
* XmlValidatingReader.cs : added ValidationType.None support (wait for
the next DTDValidatingReader update for "not firing event handler).
* XmlNodeReader.cs : jun. 30th commit seems wrong. It keeps its state.
svn path=/trunk/mcs/; revision=16609
* expression.cs (Invocation.OverloadResolve): Follow the spec more
closely: we eliminate methods in base types when we have an
applicable method in a top-level type.
Please see section 14.5.5.1 for an exact description of what goes
on.
This fixes bug #45127 and a host of other related to corlib compilation.
* ecore.cs (MethodGroupExpr.DeclaringType): The element in the
array is the method corresponding to the top-level type (this is
because of the changes made to icall.c) so we change this
accordingly.
(MethodGroupExpr.Name): This too.
* typemanager.cs (GetElementType): New method which does the right
thing when compiling corlib.
* everywhere: Make use of the above in the relevant places.
svn path=/trunk/mcs/; revision=16599
* Makefile: Boo-yah! Add corlib_plattest.dll, which is a
corlib test library built against the platform corlib. This
lets us test our corlib tests. On a non-mono-native platform
(Windows) we run those tests only; on a mono-native platform, we
run the full corlib test suite on our own tests.
* corlib_plattest.dll.excludes: Add this. (The result of
'grep Mono corlib_test.dll.sources')
* corlib_test.dll.sources: Extraneous newline was messing things
up.
svn path=/trunk/mcs/; revision=16597
* Makefile (SUBDIRS): Add System.Drawing.Design.dll to the
2003-07-23 Peter Williams <[email protected]>
* System.Drawing.dll.sources: Add Pens.cs
svn path=/trunk/mcs/; revision=16595
be public.
* StreamReader.cs (Initialize): This method is not exposed in the
API, mark as internal.
* SignatureHelper.cs: This class does not have the
SerializableAttribute.
* WaitHandle.cs (CheckDisposed): This method is not in the public
API, mark it as 'internal'.
* Environment.cs (SpecialFolder): Added 'Desktop' and 'MyComputer'
as values for NET_1_1.
(GetFolderPath): Return the empty string ("") for values of
SpecialFolder that have no corresponding equivalents in
Linux. Return "$HOME/Desktop" for SpecialFolder.DesktopDirectory
and "$HOME" for SpecialFolder.Personal.
* IntPtr.cs (GetObjectData): Mark it as an interface
implementation, instead of a public method.
* Guid.cs (NewGuid): Remove MonoTODOAttribute.
* TypeLoadException.cs (GetObjectData):
Create stubs for the fields that are being serialized.
* UIntPtr.cs: Removed erroneous CLSCompliantAttributes.
svn path=/trunk/mcs/; revision=16594
* win32functions.cs: Move functions that do not exist in WineLib
over to Win32_Wineless, so we do not trigger the warning messages
until a function tries to use them.
Win32() constructor: Set a hint on the appdomain that we would
prefer to have the System.Drawing API use the Win32 implementation
of the API.
* *.cs: Updated sources to use this.
svn path=/trunk/mcs/; revision=16591
* class.c: Fixes from Paolo in response to bug #45415 (Subclass
relationship between TypeBuilders while compiling corlib) and bug
45993 (Array types returned from the runtime while compiling
corlib were from the loaded corlib).
svn path=/trunk/mono/; revision=16588
* shared.c:
* daemon.c (maybe_exit): Avoid the race condition when the daemon is
closing but another client comes along when the shared data is still
visible. Should fix bugs 33671 and 35213.
svn path=/trunk/mono/; revision=16586
* cs-parser.jay: Replace all calls to `new ArrayList' with `new
ArrayList(4)' which is a good average number for most allocations,
and also requires only 16 bytes of memory for its buffer by
default.
This reduced MCS memory usage in seven megabytes for the RSS after
bootstrapping.
svn path=/trunk/mcs/; revision=16562
* rules.make (withmcs): Add this developer utility target.
'make withmcs' will build 'all' using $(INTERNAL_MCS) as its compiler
no matter what, for testing corlib builds or on Windows. As requested
by Ravi.
svn path=/trunk/mcs/; revision=16558
IVsaItem.cs, IVsaItems.cs, IVsaPersistSite.cs, IVsaReferenceItem.cs,
IVsaSite.cs: InterfaceTypeAttribute can only be applied to interfaces,
no to interface members. Build failed on windows.
svn path=/trunk/mcs/; revision=16549
* cs-parser.jay (invocation_expression): Moved
`OPEN_PARENS expression CLOSE_PARENS unary_expression' here from
`cast_expression', but create a InvocationOrCast which later
resolves to either an Invocation or a Cast.
* ecore.cs (ExpressionStatement.ResolveStatement): New virtual
method; call this before EmitStatement() to make sure that this
expression can be used as a statement.
* expression.cs (InvocationOrCast): New class; resolves to either
an Invocation or a Cast.
* statement.cs (StatementExpression): Call ResolveStatement() on
the ExpressionStatement before emitting it.
svn path=/trunk/mcs/; revision=16537
xml serialization. Modified method of writing schema. Now it creates
a XmlSchema object and serializes it using XmlSerializer.
* XmlConstants.cs: Added constants for data type names.
* XmlDataLoader.cs: Fixed deserialization of data. Now converts data to the
type specified in the column.
svn path=/trunk/mcs/; revision=16530
* mono/tests/Makefile.am: Add missing test. Make tests interruptable
by Ctrl-C. Add testinterp target to run the tests with the interpreter.
Do not try to build vararg.cs under mcs.
svn path=/trunk/mono/; revision=16524
* class.c (mono_class_layout_fields): Fix gc aware auto layout by
initializing real_size only once. Also fix bug #46602.
svn path=/trunk/mono/; revision=16522
* interp.c: Use the new metadata_section lock instead of metadata_lock.
Patch by Bernie Solomon ([email protected]).
svn path=/trunk/mono/; revision=16520
* syntax0068.cs, syntax0069.cs, syntax0071.cs, syntax0116.cs:
These are syntax errors which we'd need to catch in cs-parser.jay;
separate them from the other errors.
* cs0572.cs: New test.
svn path=/trunk/mcs/; revision=16497
* test-206.cs: New test for bug #46502.
2003-07-20 Martin Baulig <[email protected]>
* test-205.cs: New test for some namespace stuff.
svn path=/trunk/mcs/; revision=16496
* expression.cs (Invocation.VerifyArgumentsCompat): Check whether
`ref' and `out' attributes match; fixes#46220.
(MemberAccess.ResolveMemberAccess): You can't reference a type
through an expression; fixes#33180.
(Indexers.GetIndexersForType): Don't return the indexers from
interfaces the class implements; fixes#46502.
svn path=/trunk/mcs/; revision=16495
* decl.cs (AdditionResult): Added `Error'.
* enum.cs (AddEnumMember): Report a CS0076 if name is `value__'.
* typemanager.cs (TypeManager.ChangeType): Catch exceptions;
makes cs0031.cs actually work.
2003-07-20 Martin Baulig <[email protected]>
* namespace.cs: Fixed that bug which caused a crash when compiling
the debugger's GUI.
svn path=/trunk/mcs/; revision=16486
* object.c (mono_runtime_class_init): Take the metadata_section
mutex before obtaining the domain mutex.
* appdomain.h: Added definition of metadata_section mutex here.
* object.c: define metadata_mutex here.
2003-07-21 Miguel de Icaza <[email protected]>
* mini.c: Removed definition of metadata_shared mutex here.
2003-07-21 Miguel de Icaza <[email protected]>
* jit.c: Remove definition of metadata_section mutex from here
svn path=/trunk/mono/; revision=16485
empty array if the type is an array. Fixed.
ves_icall_MonoMethod_get_base_definition: if the base method
is abstract, get the MethodInfo from the list of methods of
the class.
* reflection.c: ParameterInfo.PositionImpl should be zero-based
and it was 1-based. Fixed in mono_param_get_objects.
svn path=/trunk/mono/; revision=16484
* CheckBoxList.cs: fixes bug reported on the list about the state of
the CheckButtons not being preserved across posts.
svn path=/trunk/mcs/; revision=16473
* Makefile: Add in corlib_res.dll, which we use as a basis
for tests on non-linux platforms. Nearly identical rules to
corlib_cmp: corlib - some files that cause the MS runtime to
barf.
* corlib_res.dll.excludes: Added.
svn path=/trunk/mcs/; revision=16462
of a generic type. ie Set<int32>
* TypeSpecFieldRef.cs: New File - A field ref that is attached to
a typespec. This can be used with modified types, and generic types.
* TypeSpecMethodRef.cs: New File - A method ref that is attached
to a typespec. This can be used with modified types, and generic types.
* GenericTypeRef.cs: Create method refs and field refs using the
new typespec classes.
* ITypeRef.cs: Types should now be able to have methods and fields
attached to them
* PeapiTypeRef.cs: Set UseTypeSpec to true if the type is modified
* PrimitiveTypeRef.cs: Add methods to attach fields and
methods. This just uses the TypeSpec* classes so I don't need to
create classrefs.
* TypeRef.cs: Set UseTypeSpec to true if a type is modified.
svn path=/trunk/mcs/; revision=16459
be added to type specs. This fixing bah-zillions of little
problems in ilasm. We can now add fields and methods to arrays,
reference types, and most importantly generics.
Add the GenericTypeInst class. This is an instance of a generic
type. ie Hash<int32, string>. GenericTypeSpecs now write their id
number as a compressed number, this matches the way the runtime
loads them and will allow generic types to have more then 255 type
parameters.
svn path=/trunk/mcs/; revision=16458
2003-07-20 Peter Williams <[email protected]>
* README.platforms: Update docs for changes below.
* platforms/win32.make (PLATFORM_CORLIB): Set this variable
to 'mscorlib.dll', instead of $(corlib) which everything links
against. *Almost* everything should link against our corlib --
with the exception of corlib_cmp and corlib_res.
* platforms/linux.make: Same here: corlib.dll
* rules.make: Define $(corlib) here.
class/corlib:
2003-07-20 Peter Williams <[email protected]>
* Makefile: Don't use real_corlib; use $(PLATFORM_CORLIB).
svn path=/trunk/mcs/; revision=16457
* nunit20/nunit-console/Makefile (PROGRAM): Put nunit-console.exe
in $(topdir)/class/lib so we can find our DLL's.
build:
2003-07-20 Peter Williams <[email protected]>
* config-default.make (TEST_RUNTIME): Use the platform runtime
to run tests, by default.
* profiles/default.make (TEST_RUNTIME): If our test runtime is
mono, use the --debug flag.
* executable.make (sourcefile): Add a basename so that we can
find the nunit sources and so we behave a bit more like
library.make
* config-default.make (TEST_HARNESS): Find nunit-console in its
new home.
svn path=/trunk/mcs/; revision=16456
* library.make ($(response)): Do a "Creating ..." line here.
* executable.make ($(response)): Same.
* config-default.make: Make warning more forceful.
* rules.make: Define a useful 'PLATFORM_MONO_NATIVE' that is
set if the platform does not have a native runtime (ie, linux).
Also reorder some definitions.
2003-07-20 Peter Williams <[email protected]>
* Created. See ../ChangeLog for entries earlier than
this.
svn path=/trunk/mcs/; revision=16453
* mono-debug.h: Set version number to 31.
(mono_debug_init): Added `MonoDomain *' argument.
* mono-debug-debugger.c: Reworked the type support; explicitly
tell the debugger about builtin types; pass the `klass' address to
the debugger.
svn path=/trunk/mono/; revision=16448
* typemanager.cs (LookupTypeReflection): Never expose types which
are NotPublic, NestedPrivate, NestedAssembly, or
NestedFamANDAssem. We used to return these, and later do a check
that would report a meaningful error, but the problem is that we
would not get the real match, if there was a name override.
svn path=/trunk/mcs/; revision=16444
* ChunkStream.cs:
(WantMore): true if we've not received the last chunk yet. Fixes
bug #45463. Thanks to Miguel for tracking this down and providing a
test case.
* WebConnection.cs: removed bogus ^M's.
* WebHeaderCollection.cs: provide more info when the header or value is
wrong.
svn path=/trunk/mcs/; revision=16441
* XmlSchema.cs : added support for collecting missing type references
at compilation-time.
* XmlSchemaType.cs, XmlSchemaComplexType.cs, XmlSchemaSimpleType.cs:
- Renamed qName to QNameInternal.
- Added BaseSchemaType and ContentTypeParticle support.
svn path=/trunk/mcs/; revision=16437
* XmlSchema.cs, XmlSchemaAll.cs, XmlSchemaAnnotated.cs,
XmlSchemaAnnotation.cs, XmlSchemaAny.cs, XmlSchemaAnyAttribute.cs,
XmlSchemaAttribute.cs, XmlSchemaAttributeGroup.cs,
XmlSchemaAttributeGroupRef.cs, XmlSchemaChoice.cs,
XmlSchemaComplexContent.cs, XmlSchemaComplexContentExtension.cs,
XmlSchemaComplexContentRestriction.cs, XmlSchemaComplexType.cs,
XmlSchemaElement.cs, XmlSchemaGroup.cs, XmlSchemaGroupRef.cs,
XmlSchemaIdentityConstraint.cs, XmlSchemaImport.cs,
XmlSchemaInclude.cs, XmlSchemaKey.cs, XmlSchemaKeyref.cs,
XmlSchemaNotation.cs, XmlSchemaObject.cs, XmlSchemaRedefine.cs,
XmlSchemaSequence.cs, XmlSchemaSimpleContent.cs,
XmlSchemaSimpleContentExtension.cs,
XmlSchemaSimpleContentRestriction.cs, XmlSchemaSimpleType.cs,
XmlSchemaSimpleTypeList.cs, XmlSchemaSimpleTypeRestriction.cs,
XmlSchemaSimpleTypeUnion.cs, XmlSchemaUnique.cs,
XmlSchemaXPath.cs,
As to Compile() and Validate(),
- Added CompilationId and check it while compiling schema components.
- Code refactory. Replaced literal xmlns with XmlSchema.Namespace
- Replaced XmlSchemaInfo with compiling XmlSchema itself (XmlSchema
also has PSVI components inside it, so passing itself seems enough).
- Related to above change, IDCollection was moved to XmlSchema, and
blockDefault/finalDefault/blockResolved/finalResolved resolution
was changed to reference only to schema.BlockDefault/FinalDefault.
- The similar change has done against XmlSchemaForm related stuff.
- Changed compilation order of schema type definitions (it is
workaround). First it compiles types, and then it compiles others.
* XmlSchemaElement.cs : added ElementType PSVI contribution support.
svn path=/trunk/mcs/; revision=16435
* DTDValidatingReader.cs :
changed base class to XmlReader and implemented IXmlLineInfo members.
changed .ctor() argument from event handler to validating reader.
Removed some #if ... #else ... #endif blocks.
Added validation event support for Read() using HandleError().
* XmlValidatingReader.cs : added internal OnValidationEvent().
* XmlDocument.cs : ReadNode() now checks reader's state more strictly.
svn path=/trunk/mcs/; revision=16430
* namespace.cs (Namespace, Name): Do not compute the namespace
name dynamically, compute it in the constructor. This reduced
memory usage by 1697 KB.
* driver.cs: Use --pause to pause at the end.
svn path=/trunk/mcs/; revision=16417
* build/library.make (dist-local): Fancy make dist magic gives
way to boring old 'for'.
* build/executable.make (dist-local): Ditto.
class/corlib:
2003-07-18 Peter Williams <[email protected]>
* Makefile (dist-local): The fancy shell script was neat, but
ultimately unnecessary and counterproductive. Alas.
svn path=/trunk/mcs/; revision=16380
* Test/Mono.Directory.LDAP/BindSimpleTest.cs: csc interprets the bare LDAP
as a namespace, not as the class. Give it the fully qualified name.
* Test/Mono.Directory.LDAP/QueryRootDSETest.cs: Same.
svn path=/trunk/mcs/; revision=16375
* Npgsql/AssemblyInfo.cs: Don't strongname the assembly, because
we can't unless corlib is strongnamed too. Not a wonderful solution,
but I don't think this ever worked anyway.
svn path=/trunk/mcs/; revision=16374
* Mono.Data.SybaseTypes/SybaseDecimal.cs: csc.exe is more
stringent about namespaces than mcs. We need to disambiguate
System.Math from Mono.Math here.
svn path=/trunk/mcs/; revision=16373
* DTMXPathDocumentBuilder.cs: csc.exe is more stringent about namespaces
than mcs. We need to disambiguate System.Math from Mono.Math here.
svn path=/trunk/mcs/; revision=16372
* FieldInfo.cs, MonoField.cs: cleanups. Cache some info and use
finer-grained icalls. Requires a matching runtime.
svn path=/trunk/mcs/; revision=16350
getting it from the "this" socket instance. Did not work
if the socket is a subclass of Socket.
Also fixed bug #35371.
svn path=/trunk/mono/; revision=16343
not necessary to query them for every object.
* ObjectWriter.cs: If the value being serialized is a value type (not boxed)
then there is no need to register it in the ObjectIDGenerator, because it is
not possible to have two references to the same value type object.
svn path=/trunk/mcs/; revision=16342
number of calls to GetType(). (Patch by Paolo).
Also added a NextId property that returns a new Id without registering
an object.
svn path=/trunk/mcs/; revision=16341
* metadata.c: fixed size for TypedByRef.
* loader.c: when searching for a method, consider the vararg amrker.
* unicode.c, decimal.c: constify some arrays.
svn path=/trunk/mono/; revision=16340
* expression.cs (LocalVariableReference.Emit, EmitAssign,
AddressOf): Do not use EmitThis, that was wrong, use the actual
this pointer.
svn path=/trunk/mcs/; revision=16323
* build/profiles/default.make: Try to make this smarter so
that we can build on Windows. Specifically, don't require
the mono runtime. Combined with the corlib $(BOOT_COMPILE) change,
this should make corlib build out of the box, I think.
2003-07-17 Peter Williams <[email protected]>
* Makefile ($(testlib)): Build with $(BOOT_COMPILE), not $(CSCOMPILE),
which sort of makes sense and is needed on Windows too.
($(corlib)): same.
$(cmplib): Don't include the makefrag to save the Windows build and some
time.
svn path=/trunk/mcs/; revision=16321
* interface.cs (Define): Do nothing here since there are no
members to populate etc. Move the attribute emission out of here
since this was just totally the wrong place to put it. Attribute
application happens during the 'Emit' phase, not in the 'Define'
phase.
(Emit): Add this method and move the attribute emission here
* rootcontext.cs (EmitCode): Call the Emit method on interface
types too.
svn path=/trunk/mcs/; revision=16308
A whole passel of build system changes. Doc updates:
* build/README.makefiles: Doc updates.
* build/profiles/net_1_0.make: Doc changes.
* INSTALL.txt: A few more touchups.
Better defaults:
* build/config-default.make (prefix): Default install prefix
should be /usr/local.
* build/profiles/bootstrap.make: This profile ...
* build/profiles/default.make: ... is now the default.
* build/profiles/atomic.make: And the default is now this.
Fixes for pre-build checks:
* Makefile: Do the platform and (new) profile checks
before the build, which took some infrastructure changes.
* build/rules.make: Allow a Makefile to specify its own all/install/etc
targets.
* build/profiles/default.make (profile-check): Add a blank
target here.
* build/profiles/atomic.make: Check for a full MCS install to
build against.
HP/UX fixes with help from Bernie Solomon:
* build/config-default.make (ECHO_ESCAPE): HP/UX 'echo'
doesn't need a -e parameter to interpret escape codes. Test for
that and define a configuration parameter.
* build/library.make ($(makefrag)): Use $(ECHO_ESCAPE)
instead of assuming that 'echo -e' will interpret escape
codes.
* build/executable.make ($(makefrag)): Here too.
A make distcheck fix:
* Makefile: Inherit the current prefix so that the build can
find the right System.Xml.dll.
And Windows build fixes with the invaluable help of Sebastian
Pouliot (in various subdirectories).
class/Mono.Data.SqliteClient:
2003-07-16 Peter Williams <[email protected]>
* Makefile (LIB_MCS_FLAGS): Add /r:System.dll here. Why wasn't
this necessary with MCS? (csc.exe needs it.)
class/System:
2003-07-16 Peter Williams <[email protected]>
* Makefile (SCARY_LIB): Flip around since what was bootstrap
is now default.
class/System/Test/System.Net:
2003-07-16 Peter Williams <[email protected]>
* IPAddressTest.cs: #if NET_1_1 for some IPv6 tests that
rely on some NET_1_1-only features.
class/System/Test/System.Net.Sockets:
2003-07-16 Peter Williams <[email protected]>
* TcpListenerTest.cs: Initialize outSock to null to
prevent an mcs compile error.
class/System.Data:
2003-07-16 Peter Williams <[email protected]>
* Makefile: Flip around for the new default build
profile. (In a separate commit)
class/System.Windows.Forms:
2003-07-16 Peter Williams <[email protected]>
* System.Windows.Forms.dll.sources: Don't build with two
AssemblyInfo.cs files.
class/corlib:
2003-07-16 Peter Williams <[email protected]>
* Makefile ($(test_makefrag)): Use $(ECHO_ESCAPE) for HP/UX
portability fixes.
(all-local): Don't build $(cmplib) by default, it's not something
most people need, and the build is broken on Windows right now anyway.
ilasm:
2003-07-16 Peter Williams <[email protected]>
* Makefile (ILParser.cs): Move this from parser/ so we avoid
slash direction issues on the Windows build.
* .cvsignore: Add ILParser.cs here.
ilasm/parser:
2003-07-16 Peter Williams <[email protected]>
* .cvsignore: ILParser.cs has been moved.
tools:
2003-07-16 Peter Williams <[email protected]>
* Makefile (DIST_ONLY_SUBDIRS): Don't build SqlSharp, it's
very old and doesn't build on Windows.
svn path=/trunk/mcs/; revision=16292
* class.cs (MethodData.Define): While checking if a method is an
interface implementation, improve the test: If we are not public
(use new test here: use the computed MethodAttributes directly,
instead of the parsed modifier flags) check if the `implementing'
method comes from an interface or not.
* pending.cs (VerifyPendingMethods): Slightly better error
message.
* makefile: add test target that does the mcs bootstrap.
svn path=/trunk/mcs/; revision=16286
* socket-io.c: Fixed compilation for gcc < 3.2.
Fixed compilation for machines that don't have AF_INET6 (thanks to
Bernie Solomon <[email protected]> for that part.)
Fixed compile warnings.
Fixed formatting and line endings.
svn path=/trunk/mono/; revision=16270
* XmlAttribute.cs :
.ctor() should reject xml- or xmlns-prefixed node.
* XmlNamespaceManager.cs :
added some xmlns validity check.
* XmlNode.cs :
optimized GetNamespaceOfPrefix() and GetPrefixOfNamespace() by
avoiding XmlNamespaceManager creation.
* XmlNodeReader.cs :
doctype node should return PUBLIC and SYSTEM for its indexer,
and Value should be internal subset,
svn path=/trunk/mcs/; revision=16266
maps with the same name and namespace. To avoid this, maps must be registered
using the real map namespace, not the default namespace (the namespace can
change if the type has a XmlType or SoapType attribute).
* XmlArrayItemAttribute.cs: Set IsNullable to true by default.
* XmlSchemaExporter.cs: Implemented method ExportMembersMapping.
Other small fixes.
* XmlSerializationWriterInterpreter.cs: GetStringValue: return null if the value
is null.
svn path=/trunk/mcs/; revision=16262
* Makefile: Make sure that we use the newly generated compiler
to run the tests, not the installed one.
Modify targets to compile and run in one go instead of separate
targets for each task.
* test-196.cs: Fix careless error - returning a value from a void
Main ().
Add it back to the test suite.
svn path=/trunk/mcs/; revision=16253
* expression.cs (OverloadResolve): Report error only if Location
is not 'Null' which means that there was a probe going on.
svn path=/trunk/mcs/; revision=16252
* Hashtable.cs: Patch from [email protected], GetEnumerator should be
returning DictionaryEntrys, instead of just the Key of the table.
svn path=/trunk/mcs/; revision=16251
* build/rules.make (dist-recursive): Fix recursive rules
to work on HP/UX /bin/sh. Patch from Bernie Solomon
<[email protected]>.
svn path=/trunk/mcs/; revision=16244
* TypeData.cs: IsComplexType now returns true for IXmlSerializable types.
* XmlAttributes.cs: Fixed bug when reading the value of DefaultValueAttribute.
* XmlReflectionImporter.cs: Set the BaseMap property of map. Several small fixes.
* XmlSchemaExporter.cs: Implemented.
* XmlSchemas.cs: Support schemas with TargetNamespace set to null.
* XmlSerializationWriter.cs: FromXmlQualifiedName (): return null if the qname is null.
GetNamespacePrefix (): no need to add xmlns attribute if namespace is null.
* XmlSerializationWriterInterpreter.cs: Fixed management of default values.
GetStringValue() returns null if the value is null, instead of empty string.
(attributes with null values are not written).
* XmlTypeMapElementInfo.cs: added IsTextElement and IsUnnamedAnyElement properties.
* XmlTypeMapMemberAttribute.cs: added DataTypeNamespace and removed DataType.
DataType value can is now in TypeData.
* XmlTypeMapMemberElement.cs: Small fix.
* XmlTypeMapping.cs: Added FindMember method and BaseMap property.
svn path=/trunk/mcs/; revision=16235
* test-204.cs: User defined conditional logical operators; bug #40505.
2003-07-14 Martin Baulig <[email protected]>
* test-203.cs: Added test for bug #33026.
svn path=/trunk/mcs/; revision=16226
* expression.cs (ConditionalLogicalOperator): New public class to
implement user defined conditional logical operators.
This is section 14.11.2 in the spec and bug #40505.
svn path=/trunk/mcs/; revision=16224
* codegen.cs (EmitContext.InFixedInitializer): New public field.
* ecore.cs (IVariable.VerifyFixed): New interface method.
* expression.cs (Unary.ResolveOperator): When resolving the `&'
operator, check whether the variable is actually fixed. Fixes bug
#36055. Set a variable definitely assigned when taking its
address as required by the spec.
* statement.cs (LocalInfo.IsFixed): New field.
(LocalInfo.MakePinned): Set `IsFixed' to true.
svn path=/trunk/mcs/; revision=16214
* attribute.cs (Attribute.Resolve): While doing a Member lookup
for .ctors, ensure that we only ask for members declared in the
attribute type (BindingFlags.DeclaredOnly).
Fixes bug #43632.
* expression.cs (Error_WrongNumArguments): Report error 1501
correctly the way CSC does.
svn path=/trunk/mcs/; revision=16210
* ServicePoint.cs: Removed Connect and GetEndPoint methods.
Removed reverse resolution when uri is literal IP address.
* WebConnection.cs: IPv6 compatibility update: Try to connect
to all addresses returned by IPHostEntry.
* WebConnectionGroup.cs: Removed unused parameter.
svn path=/trunk/mcs/; revision=16209
* DiagnosticsConfigurationHandler.cs: Removed a never used variable
* EventLog.cs: Small update to prevent a warning
* EventLogPermission.cs: Implemented or implementation added
* EventLogPermissionAttribute.cs: Implemented or implementation added
* EventLogPermissionEntry.cs: Implemented or implementation added
* EventLogPermissionEntryCollection.cs: Implemented or implementation added
* EventLogTraceListener.cs: Implemented or implementation added
* PerformanceCounterManager.cs: Implemented or implementation added
* PerformanceCounterInstaller.cs: Made internal
* PerformanceCounterCategory.cs: Implemented few members
* PerformanceCounterPermission.cs: Implemented or implementation added
* PerformanceCounterPermissionAttribute.cs: Implemented or implementation added
* PerformanceCounterPermissionEntry.cs: Implemented or implementation added
* PerformanceCounterPermissionEntryCollection.cs: Implemented or implementation added
svn path=/trunk/mcs/; revision=16177
* interp.c: Keep alloca()-d data on a free list to prevent stack
overflow errors when valuetypes are allocated in a loop. Fixes
#27420. Is the new code still faster than using malloc/free ?
* interp.c (interp_mono_runtime_invoke): Unbox value type instances
before calling the method. Fixes appdomain2.exe.
* interp.c: Fix warnings.
* interp.c: Report unhandled exceptions correctly.
* interp.c: Implement CEE_ISINST and CEE_CASTCLASS using
mono_object_isinst. Fixes bug #45539 and reflection-enum.exe.
svn path=/trunk/mono/; revision=16170
* mono/tests/cattr-object.cs: Make it run under both mono and MS.NET.
* mono/tests/struct.cs: Add test for unboxing trampolines.
* mono/tests/bug-27420.cs: new regression test.
* mono/tests/Makefile.am: skip vararg test since it does not compile
under mono. Add testinterp target. Add new tests.
svn path=/trunk/mono/; revision=16168
* test-202.cs: Added test for bug #41975.
2003-07-13 Martin Baulig <[email protected]>
* test-201.cs: Added test for bug #35631.
2003-07-12 Martin Baulig <[email protected]>
* test-200.cs: Added test for bug #45854.
svn path=/trunk/mcs/; revision=16165
* expression.cs (MemberAccess.ResolveAsTypeStep): Try to do a type
lookup on the fully qualified name, to make things like "X.X" work
where "X.X" is a fully qualified type name, but we also have a
namespace "X" in the using list. Fixes#41975.
svn path=/trunk/mcs/; revision=16164
* assign.cs (Assign.GetEmbeddedAssign): New protected virtual
function. If we're a CompoundAssign, we need to create an embedded
CompoundAssign, not an embedded Assign.
(Assign.DoResolve): Make this work for embedded CompoundAssign's.
Fixes#45854.
svn path=/trunk/mcs/; revision=16163
* class.cs (Operator.Emit): Do not emit attributes here - it is
taken care of by the Method class that we delegate too. This takes
care of bug #45876.
svn path=/trunk/mcs/; revision=16161
* interp.c: Keep alloca()-d data on a free list to prevent stack
overflow errors when valuetypes are allocated in a loop. Fixes
#27420. Is the new code still faster than using malloc/free ?
* interp.c: Fix warnings.
* interp.c: Report unhandled exceptions correctly.
svn path=/trunk/mono/; revision=16160
* class.c (mono_class_is_assignable_from): New function to implement
the is_assignable_from logic. Used by mono_object_isinst,
Type::IsAssignableFrom () and the interpreter.
* class.c (mono_class_is_subclass_of): Make all classes a subclass of
Object, even interfaces.
* object.c (mono_object_isinst): Implement in terms of
is_assignable_from.
* icall.c (ves_icall_type_is_assignable_from): New icall.
svn path=/trunk/mono/; revision=16155
* MissingNameSpace.cs: Fixed the case where a private/ internal class that per chance has a class with the same name
in the compared assembly gets compared -> now only public classes are compared.
* MissingType: Internal nested types were always compared -> internal nested types are never compared
svn path=/trunk/mcs/; revision=16149
* XmlAttribute.cs,
XmlElement.cs : Fixed CloneNode() for bug #46129.
* XmlDocument.cs : Fixed MakeReaderErrorMessage that specified invalid
String.Format arguments, and basically XmlException.ctor(
IXmlLineInfo, message) seems good idea to use.
* XmlTextReader.cs :
- Fixed .ctor(Stream, XmlNodeType, XmlParserContext) which had
required non-null context which don't have to exist.
- Added state check. Introduced 'currentState' and 'maybeTextDecl'
(for external entity) and removed hasEnteredDocument. Added
state-check logic to ReadStartTag(), ReadEndTag(), ReadText(),
ReadCData(), ReadDoctypeDecl() and ReadWhitespace().
- Replaced throw ReaderError() with throw new XmlException() and
fixed that some error hadn't thrown, only created.
- ResetState() should re-initialize existing private members other
than some specified fields.
- Private AddAttribute() should check if the same-named attribute
already exists.
* DTDObjectModel.cs : Additive declaration for ATTLIST is availabe now.
svn path=/trunk/mcs/; revision=16131
* AssemblyFlagsAttribute.cs: Added new constructor from NET 1.1.
* AssemblyFlagsAttribute.cs: Added new property from NET 1.1.
svn path=/trunk/mcs/; revision=16124
* AssemblyBuilder.cs: Added argument checking to all methods according
to the MSDN docs. Also marked DefineUnmanagedResource and its friends
as not implemented.
* ModuleBuilder.cs: Added new property FileName used by AssemblyBuilder.
svn path=/trunk/mcs/; revision=16121
Fix for this case.
* SoapHttpClientProtocol.cs: Implemented support for asynchronous calls
(BeginInvoke and EndInvoke).
svn path=/trunk/mcs/; revision=16097
* image.h image.c: Store the metadata version string in MonoImage.
* icall.c: New icall to retrieve the image version.
* reflection.c (create_dynamic_image): Fill in the image version field
* reflection.c (build_compressed_metadata): Use the image version
from the image structure.
svn path=/trunk/mono/; revision=16088
* rootcontext.cs (RootContext.NamespaceLookup): Take a DeclSpace,
not a NamespaceEntry, so we can use DeclSpace.CheckAccessLevel().
* decl.cs (DeclSpace.FindType): Use DeclSpace.CheckAccessLevel().
* typemanager.cs (TypeManager.IsAccessibleFrom): Removed.
svn path=/trunk/mcs/; revision=16087
* expression.cs (ArrayCreation): Don't use a byte blob for arrays
of decimal. Fixes#42850.
NOTE: I also fixed the created byte blob, but this doesn't work on
the MS runtime and csc never produces any byte blobs for decimal
arrays.
svn path=/trunk/mcs/; revision=16083
* SoapClientFormatterSink.cs, SoapClientFormatterSinkProvider.cs SoapServerFormatterSink.cs, SoapServerFormatterSinkProvider.cs, SoapMessageFormatter.cs: Support for the soap serialization added to the remoting infrastructure
svn path=/trunk/mcs/; revision=16062
Added support for soap extensions. Moved some code to
WebServiceHelper. Implemented support for the two types of RoutingStyle. Added support
for In and Out headers. Improved management of exceptions.
* SoapClientMessage.cs: code to retrieve soap headers moved to SoapMessage.
* SoapExtension.cs: Added methods for getting and creating soap extensions.
* SoapMessage.cs: Added methods for getting and assigning headers to an object.
* SoapServerMessage.cs: Added setter for MethodStubInfo. Other minor fixes.
* WebServiceHandler.cs: Added support for In and Out headers. Fixed management of exceptions.
* WebServiceHandlerFactory.cs: Check if the request protocol is supported.
* WebServiceHelper.cs: Added method for reading a soap request.
svn path=/trunk/mcs/; revision=16057
* jscript-lexer-parser.g: Added conditional_compilation_directive,
which is the beginning of our support for conditional compilation
statements and directives in our parser. Added
cc_on_statement, and some lexer rules for getting the needed
tokens (COND_SET, COND_DEBUG, COND_POSITION, COND_POSITION,
COND_IF, COND_ELIF, COND_ELSE, COND_END and CC_ON.
svn path=/trunk/mcs/; revision=16049
function and it no longer works with my change; ie. we're now using my
version.
2003-07-07 Miguel de Icaza <[email protected]>
* rootcontext.cs (NamespaceLookup): Accept a DeclSpace, so we can
call the CheckAccessLevel routine. Only use types that pass the
CheckAccessLevel
svn path=/trunk/mcs/; revision=16046
* BaseCompiler.cs: first look for cached items, then generate the tree.
This should speed things up.
* CachingCompiler.cs: when compiling web services, use the full path of
the .asmx file as key when caching.
* WebServiceCompiler.cs: first look for cached items, then generate
the source file.
svn path=/trunk/mcs/; revision=16045
function and it no longer works with my change; ie. we're now using my
version.
2003-07-07 Miguel de Icaza <[email protected]>
* decl.cs (DeclSpace.FindType): CheckAccessLevel on the type as
well. Sorry, this fixes the bug Gonzalo tried to fix.
svn path=/trunk/mcs/; revision=16044
* appdomain.c: modified comment.
* gc.c: finalizer_thread can call finalizers even when finished == TRUE.
That will be its last iteration when mono_gc_cleanup is called from
mono_runtime_cleanup and before the domain is unloaded.
Fixes bug #45962.
svn path=/trunk/mono/; revision=16039
* System.Web/HttpContext.cs: Session doesn't have a setter.
* System.Web/HttpResponse.cs: Request is private.
* System.Web.SessionState/SessionDictionary.cs: locking.
* System.Web.SessionState/SessionInProcHandler.cs: use the new method
instead of the setter.
svn path=/trunk/mcs/; revision=16029
2003-07-07 Miguel de Icaza <[email protected]>
* decl.cs (DeclSpace.FindType): CheckAccessLevel on the type as
well. Sorry, this fixes the bug Gonzalo tried to fix.
* rootcontext.cs (NamespaceLookup): Accept a DeclSpace, so we can
call the CheckAccessLevel routine. Only use types that pass the
CheckAccessLevel
svn path=/trunk/mcs/; revision=16027
Rewrote the handling of namespaces to fix a lot of the issues
wrt. `using' aliases etc.
* namespace.cs (Namespace): Splitted this class into a
per-assembly `Namespace' and a per-file `NamespaceEntry'.
* typemanager.cs (TypeManager.IsNamespace): Removed.
(TypeManager.ComputeNamespaces): Only compute namespaces from
loaded assemblies here, not the namespaces from the assembly we're
currently compiling.
svn path=/trunk/mcs/; revision=16025
* typemanager.cs: Reverted patch from Gonzalo, my previous patch
already fixed it.
I thought about the memory savings here, but LookupTypeReflection
is used under already very constrained scenarios. Compiling
corlib or mcs only exposes one hit, so it would not really reduce
any memory consumption.
svn path=/trunk/mcs/; revision=16022
* EventLog.cs: Removed unneccesary attribute according to corecompare
* EventLogEntry.cs: Removed unneccesary attribute according to corecompare
* Process.cs: Removed unneccesary attributes according to corecompare, added attribute
* ProcessModule.cs: Removed unneccesary attribute according to corecompare
* ProcessStartInfo.cs: Removed unneccesary attribute according to corecompare
* ProcessThread.cs: Removed unneccesary attribute according to corecompare, fixed signature
svn path=/trunk/mcs/; revision=16010
* CodeDomProvider.cs: Removed unneccesary attribute according to corecompare
* Executor.cs: Fixed signature with ref calls according to corecompare and made neccessary changes
svn path=/trunk/mcs/; revision=16008
* corlib_linux_test.args:
* corlib_test.args: added AppDomainSetupTest and fixed a couple of typos
to make this compile.
* System/AppDomainSetupTest.cs: new tests.
svn path=/trunk/mcs/; revision=16000
* VBCodeGenerator.cs: Added and nearly completely implemented
(it compiles, but the functionallity is completely untested)
(also without a working mbas the compilaton options will fail)
(once all command line arguments for mbas are final and the warning output is final
change the apropriate code to generate these options)
* VBCodeProvider.cs: Added and implemented
svn path=/trunk/mcs/; revision=15995
* CodeCompiler.cs: Nearly completely implemented
* CodeDomProvider.cs: Added missing Attribute, restyled according to style guidelines
* CodeGenerator.cs: Fixed visibilies, added missing members, implemented members, stubbed out missing member, restyled according to style guidelines
* CodeParser.cs: Added and implemented (ok no real implementation needed ;)
* CompilerErrorCollection.cs: Removed unneeded MonoTODOs, restyled according to style guidelines
* CompilerParameters.cs: Fixed wrong properties, Added Initializers, restyled according to style guidelines
* CompilerResults.cs: Added Evidence property, added initial values
* Executor.cs: Added and partially implemented (should probably be used by CodeCompiler)
* CompilerOptions.cs: Deleted this file (such a class does not exist)
svn path=/trunk/mcs/; revision=15992
* XmlDocument.cs : Load(string filename) should close its stream.
Small change for the latest DTDObjectModel change.
* XmlTextReader.cs : Changed for the latest DTDObjectModel change (all
changed methods are only related to DTD stuff).
Now uses XmlSchemaDatatype for attribute type definition.
* XmlValidatingReader : initial (limited) support for DTD validation.
It can handle only XmlTextReader.
* DTDObjectModel.cs : changed radically for initial validation support.
* added DTDAutomata.cs and DTDValidatingReader.cs.
svn path=/trunk/mcs/; revision=15983
* XmlElement.cs : Removed extraneous xmlns output support (it should
be done by XmlTextWriter).
* XmlNode.cs : InsertBefore() now checks validity of the newChild (and
most of the changes are in fact indentation changes).
* XmlWriter.cs : WriteAttributes() now can write entity references.
WriteNode() now writes xmldecl attributes correctly.
Removed namespaceManager and xmlns check logic, since it should be
done by individual XmlTextWriter.
* XmlTextWriter.cs : Patch by Jerome. AddMissingElementXmlns () has
written multiple xmlns declarations.
Moved namespaceManager from abstract XmlWriter.
Write{Start|End}Attribute() and WriteString() now checks xmlns
attribute value. (MS.NET holds value only with this write method).
svn path=/trunk/mcs/; revision=15982
* DSACryptoServiceProviderTest.cs: Added news unit tests for Dispose/Clear
and better test coverage (based on Zoltan's logs).
* DSATest.cs: Converted to NUnit2 format. Added new tests for better unit
test coverage (import incomplete public keys).
* RSACryptoServiceProviderTest.cs: Added news unit tests for Dispose/Clear
and better test coverage (based on Zoltan's logs).
* RSATest.cs: Converted to NUnit2 format. Added new tests for better unit
test coverage (import incomplete public keys).
svn path=/trunk/mcs/; revision=15974
* AsymmetricAlgorithm.cs: Removed AsymmetricParameters (IReader) class.
Now uses the new Mono.Xml.SecurityParser (xml -> SecurityElement)
* CryptoConfig.cs: Removed CorlibHandler and CorlibReader classes. Now
uses the new Mono.Xml.SecurityParser (xml -> SecurityElement)
* DSA.cs: Removed DSAHandler (IHandler) class. Now uses the new
Mono.Xml.SecurityParser (xml -> SecurityElement)
* DSACryptoServiceProvider.cs: Added ObjectDisposedException support
and fixed bugs found in new unit tests.
* RSA.cs: Removed DSAHandler (IHandler) class. Now uses the new
Mono.Xml.SecurityParser (xml -> SecurityElement)
* RSACryptoServiceProvider.cs: Added ObjectDisposedException support
and fixed bugs found in new unit tests.
svn path=/trunk/mcs/; revision=15971
* DSAManaged.cs: Fixed bugs that appeared with the new unit tests.
* RSAManaged.cs: Fixed bugs that appeared with the new unit tests.
svn path=/trunk/mcs/; revision=15970
* pending.cs (PendingImplementation.ParentImplements): Don't
create the proxy if the parent is abstract.
* class.cs (TypeContainer.DefineIndexers): Process explicit
interface implementations first. Fixes#37714.
svn path=/trunk/mcs/; revision=15963
* XslTransform.cs : fixed WriteTree() and WriteCurrentNode() to follow
the recent changes of XPathNavigator implementations.
svn path=/trunk/mcs/; revision=15959
* expression.cs (MemberAccess.ResolveMemberAccess): Events are
defined recursively; but since we modify the input parameters
(left is set to `this' temporarily), we reset this value if the
left_is_explicit is false, which gives the original semantics to
the code.
svn path=/trunk/mcs/; revision=15953
* literal.cs (NullPointer): new class used to represent a null
literal in a pointer context.
* convert.cs (Convert.ImplicitReferenceConversion): Is the target
type is a pointer, use a NullPointer object instead of a
NullLiteral. Closes 43687
svn path=/trunk/mcs/; revision=15951
* convert.cs (ExplicitConversion): Convert pointer values using
the conv opcode to the proper type.
* ecore.cs (New): change ValueTypeVariable property into a method,
that returns whether the valuetype is suitable for being used.
* expression.cs (Binary.DoNumericPromotions): Only return if we
the int constant was a valid uint, and we can return both left and
right as uints. If not, we continue processing, to trigger the
type conversion. This fixes 39018.
svn path=/trunk/mcs/; revision=15950
* statement.cs (Block.EmitMeta): During constant resolution, set
the CurrentBlock property on the emitcontext, so that we resolve
constants propertly.
svn path=/trunk/mcs/; revision=15941
then the result object array only contain output parameters.
* Methods.cs: In class MethodStubInfo, added support from some server properties
taken from WebMethodAttribute. Now MethodStubInfo can be created without SoapDocument*
or SoapRpc* attributes, in which case takes default values from TypeStubInfo.
Added method for getting header info.
In class Fault: added constructor for creating a fault from a SoapException.
In class TypeStubInfo: new way to manage serializers for headers. Now it is possible to
get a header using a name and namespace (used when deserializing).
* SoapHttpClientProtocol.cs: moved WriteSoapEnvelope method to WebServiceHelper (so it can be shared).
Also moved other serialization stuff to WebServiceHelper.
* SoapMessage.cs: Added some convenient constructors and internal properties.
Implemented GetOutParameterValue and GetReturnValue.
* SoapServerMessage.cs: Implemented.
* WebServiceHandler.cs: Implemented method Invoke.
* WebServiceHandlerFactory.cs: Basic implementation.
* WebServiceHelper.cs: Added. Has some methods shared between client and server classes.
* HttpSoapWebServiceHandler.cs: Added. IHttpHandler implementation for HttpSoap requests.
svn path=/trunk/mcs/; revision=15909
* System.Web.Compilation/BaseCompiler.cs: made Compiler property
virtual.
* System.Web.Compilation/CachingCompiler.cs: added support for compiling
web services.
* System.Web.Compilation/WebServiceCompiler.cs: implemented.
* System.Web.UI/SimpleWebHandlerParser.cs: updated to new compilation
interface.
* System.Web.UI/TemplateParser.cs: use the new parameter when compiling.
svn path=/trunk/mcs/; revision=15892
* PKCS1.cs DSAManaged.cs: Changed strange characters in comments to
human-readable ones, since they break XML export in monocov.
svn path=/trunk/mcs/; revision=15888
* MailAddress.cs: return null instead of exception when the address is
empty.
* MailAddressCollection.cs: ignore null addresses.
* SmtpMail.cs: add the exception we get as inner exception so we know
where the error is.
Fixes bug #45746.
svn path=/trunk/mcs/; revision=15886
* codegen.cs (EmitContext.NeedExplicitReturn): New public variable.
(EmitContext.EmitTopBlock): Emit an explicit return if it's set.
* statement.cs (Try.Resolve): Set ec.NeedExplicitReturn rather
than emitting it here.
* statement.cs: Fixed some more flow analysis bugs.
svn path=/trunk/mcs/; revision=15877
* class.cs (MethodData.Define): When implementing interface
methods, set Final unless we're Virtual.
* decl.cs (MemberCore.CheckMethodAgainstBase): Make the CS0506
check work for interface methods.
svn path=/trunk/mcs/; revision=15876
* ecore.cs (EmitContext.This): Replaced this property with a
GetThis() method which takes a Location argument. This ensures
that we get the correct error location for a CS0188.
svn path=/trunk/mcs/; revision=15874
* timed-thread.c (_wapi_timed_thread_exit):
* threads.c: Let the timed thread code deal with deleting the
thread info struct. (Valgrind noticed that the join_mutex could
be locked when it was being deleted.)
svn path=/trunk/mono/; revision=15862
* XslTransform.cs (Transform): Call xsltSaveResultToFilename instead
of first reading the result into a string to conserve memory.
svn path=/trunk/mcs/; revision=15857
* object.h, reflection.h, verify.c: fixes for some 64bit issues,
mostly from a patch by Laramie Leavitt <[email protected]>.
svn path=/trunk/mono/; revision=15852
* ChangeLog: Sorry it seems that I couldn't find the right combinaison
just to commit the change to changelog (probably due to convertion to
windows).
* GenericPrincipal.cs: Fixed issues found during unit testing.
svn path=/trunk/mcs/; revision=15836
* threadpool.c (mono_async_invoke): Use mono_g_hash_table_remove when
using MonoGHashTables. Fixes threadpool bug posted to list.
svn path=/trunk/mono/; revision=15820
* ISessionHandler.cs:
* SessionInProcHandler.cs:
* SessionStateModule.cs: UpdateContext returns a bool indicating if we
started a new session. Only call session start event if that is true.
svn path=/trunk/mcs/; revision=15812
* HttpApplication.cs: prevent nullref if an error happens before context
is set.
* HttpException.cs: small fix in the stack trace sent.
* HttpUtility.cs: the lock is not needed.
svn path=/trunk/mcs/; revision=15811
* StackFrameTest.cs (TestGetMethod): Remove test for method name, since
it is not guaranteed to be 'InternalInvoke'.
svn path=/trunk/mcs/; revision=15807
* image.h, image.c: added support to load an assembly from a byte array.
* Makefile.am, assembly.c, make-bundle.pl, sample-bundle: added
assembly bundle support.
svn path=/trunk/mono/; revision=15804
* TypeData.cs: Don't use "Index" name to get indexer property. Indexer properties
can have other names.
* TypeTranslator.cs, XmlCustomFormatter.cs: Added support for "time" and "data" xml types.
* XmlReflectionImporter.cs, XmlTypeMapElementInfo.cs, XmlSerializationReader.cs,
XmlSerializationWriter.cs, XmlTypeMapElementInfo.cs, XmlTypeMapping.cs:
Fix support for DataType in class members.
* XmlSerializationReaderInterpreter.cs, XmlSerializationWriterInterpreter.cs:
Added support for array of primitive types in attributes.
svn path=/trunk/mcs/; revision=15791
* class.cs (Constructor.Define): Turn off initlocals for unsafe
constructors.
(MethodData.Define): Turn off initlocals for unsafe methods.
svn path=/trunk/mcs/; revision=15784
* mini.c, mini-ops.h, inssel.brg, mini-x86.c: optimized access to fields.
Moved inlined mempcy code to its own function so that is can be
reused. Added an inline memset function as well (optimized initobj).
* cpu-pentium.md, inssel-x86.brg: add and use lea_membase.
svn path=/trunk/mono/; revision=15780
* XmlDocumentNavigator.cs : Implemented MoveTo*Namespace() and
essentially changed most of the property handling (e.g. removed attribute
enumerator and it now became really cloneable).
* XmlNodeReader.cs : ReadInnerXml() changes its state as error
when the method is called at Initial state.
svn path=/trunk/mcs/; revision=15773
* XslTransform.cs (GetStringFromDocument): Read the result using
xsltSaveResultToString, since the XML document returned by
applyStylesheet is missing the output processing done due to the
usage of the xsl:output directive.
svn path=/trunk/mcs/; revision=15770
* SimpleWorkerRequest.cs:
-adds PATH_INFO support
- updates GetFilePathTranslated() to make use of Path.Combine()
- gets rid of the null check in GetPathInfo() (we're setting
_PathInfo to String.Empty now)
- fixed CreatePath() so that it doesn't return String.Empty if
the _AppVirtualPath is not "/" (to match MS runtime -- does
anyone know why it was returning String.Empty?)
svn path=/trunk/mcs/; revision=15758
* Console.cs: Turn off buffering for the streams returned by
OpenStandardOutput () and OpenStandardError () if the buffer size is 0.
svn path=/trunk/mcs/; revision=15744
* FileStream.cs (Dispose): Flush the buffer even if we don't own the
handle.
* FileStream.cs: Add a new constructor parameter to turn off buffering.
This is used by the Console.OpenStandard...() methods. Also fix
argument checking in InitBuffer(), so a zero buffer size is also
rejected.
svn path=/trunk/mcs/; revision=15743
* WebConnection.cs: fixed header writing the reusing a connection and
the server does not send 100-continue response.
svn path=/trunk/mcs/; revision=15726
* decl.cs (DeclSpace.CheckAccessLevel): Make this routine
complete; Fixes#37521.
* delegate.cs: Use Modifiers.TypeAttr to compute the
TypeAttributes, instead of rolling our own. This makes the flags
correct for the delegates.
svn path=/trunk/mcs/; revision=15722
* CodeAccessPermission.cs: Added missing methods. Removed old XML
documentation (present in monodoc). Added missing MonoTODO attrs.
* NamedPermissionSet.cs : Changed some code from result of unit
tests. Updated MonoTODO attributes.
* PermissionSet.cs: Added missing methods. Removed old XML
documentation (present in monodoc). Added missing MonoTODO attrs.
Added code to some methods.
* SecurityManager.cs: Added missing MonoTODO attributes.
svn path=/trunk/mcs/; revision=15710
called with maxvalue==0 or minvalue==maxvalue, MS.NET internally generates
a new random number (although it is not needed), while mono did not.
As a result, the sequence of random numbers could be different for the
same seed.
svn path=/trunk/mcs/; revision=15702
be overlodaded, so it is not good for this.
* XmlSerializationWriterInterpreter.cs: Fix ambiguity bug when getting Item property of a collection.
svn path=/trunk/mcs/; revision=15698
* ListControl.cs: save viewstate data when any of the 3 values is not
null. Fixed condition to save selection indices. Closes bug #45493.
svn path=/trunk/mcs/; revision=15661
a hashtable from which one element has been deleted. The Object instance
used as a removed marker is not detected as a such, since the
serializer creates a different instace.
svn path=/trunk/mcs/; revision=15641
* DateTime.cs: Fixed _DoParse() so it correctly applies the utc offset
to the resulting date. Also fixed _ToString so now correctly formates the
UTC offset.
svn path=/trunk/mcs/; revision=15640
* XmlDocumentNavigator.cs : Fixed IsEmptyElement. It treats <foo></foo>
as non-empty, and XmlElement's IsEmpty is designed as such.
Fixed MoveToFirst() and MoveToNext() not to move to xmldecl nor
doctype node.
* XmlNode.cs : Fixed XPathNodeType. It should throw an exception
instead of returning undefined enum value.
Modified some code comments.
* XmlWriter.cs : Fixed WriteNode () to use WriteFullEndElement()
when XmlReader's node is not at empty element or at EndElement.
Fixed XmlDeclaration's standalone check.
svn path=/trunk/mcs/; revision=15632
* threadpool.c (mono_thread_pool_add): Don't set up a finaliser
for the async object, the WaitHandle object will close the handle.
Fixes bug 45321.
svn path=/trunk/mono/; revision=15630
* class.c: in mono_array_class_get (), lookup from the hash with the
same type we insert: this works around a bug in
mono_metadata_type_hash() with SZARRAY and fixes a leak reported by
lluis. The real fix will have to wait for after the release.
svn path=/trunk/mono/; revision=15629
* mini.c, mini.h, mini.x86.c, mini-ppc.c: added facility so that
arch code can setup the cpu for CLR execution, if needed.
We use it on x86 to set the precision of FP operations.
svn path=/trunk/mono/; revision=15622
* cs-parser.jay: Applied patch from Jackson that adds support for
extern and unsafe modifiers to destructor declarations.
svn path=/trunk/mcs/; revision=15616
before asyncWrite.SetCompleted, to make sure that the waiting thread
does not start to send more information before SendRequestHeaders has
finished.
svn path=/trunk/mcs/; revision=15612
* XmlReflectionImporter.cs: Changed nullable default. Assign member's namespace to an
array if the namespace is not specified in XmlArrayItemAttribute.
svn path=/trunk/mcs/; revision=15611
* class.cs (TypeContainer.Emit): Only call EmitFieldInitializers
if we do not have a ": this ()" constructor initializer. Fixes 45149
svn path=/trunk/mcs/; revision=15599
* class.c: handle field offset correctly when class size
is set (bug# 45182, partially from a patch by [email protected] (Jerome Laban)).
svn path=/trunk/mono/; revision=15570
* namespace.cs: Add some information to reduce FAQs.
2003-06-13 Miguel de Icaza <[email protected]>
* cfold.cs (BinaryFold): BitwiseAnd, BitwiseOr: handle other
underlying enumeration types. Fixes#43915.
* expression.cs: Treat ushort/short as legal values to be used in
bitwise operations.
svn path=/trunk/mcs/; revision=15569
* System.ComponentModel/IExtenderProvider.cs: mono-stylized.
* System.ComponentModel/IComNativeDescriptorHandler.cs:
* System.ComponentModel/SyntaxCheck.cs: new files from Andreas Nahr.
svn path=/trunk/mcs/; revision=15567
* ResourceReaderTest.cs: Put it back the way it was, doesn't work on
.NET, and it works fine on both if you cd to the proper dir before
running these tests.
svn path=/trunk/mcs/; revision=15564
* DecimalTest.cs: Make pass on .NET 1.1
* MarshalByRefObjectTest.cs: Avoid port conflict with other tests.
* SingleFormatterTest.cs: Ignore user overridden settings.
svn path=/trunk/mcs/; revision=15563
* DateTimeTest.cs (TestOA): Compare DateTime values instead of strings
to avoid "culture shock". Made a new AssertEquals() that is more
DateTime-friedly.
svn path=/trunk/mcs/; revision=15561
* NameTable.cs: Now uses a custom hashtable to implement. As a
result, when Get (char[], int, int) is called, a string is only
allocated if it is actually a new entry.
(StrEqArray) Compares a string and a char[]
(AddEntry) Adds a new entry to the hashtable
(Entry) Represents a hashtable entry.
svn path=/trunk/mcs/; revision=15551
* HttpWebClientProtocol.cs: handle cookies if the request is a
HttpWebRequest. It gets the cookies set in the response and sends them
on subsequent requests.
* SoapHttpClientProtocol.cs:
(GetWebRequest): just calls the base method.
(SendRequest): set the method here.
(Invoke): call GetWebResponse instead of request.GetResponse.
* WebClientProtocol.cs:
(GetWebRequest): set some properties of the request.
(GetWebResponse): if we get a WebException containing a response, return
that as the response and ignore the exception.
(GetWebResponse (req, async)): only call EndGetResponse.
svn path=/trunk/mcs/; revision=15536
* ThreadPool.cs: correctly create a TimeSpan with provided the number of
milliseconds.
* WaitHandle.cs: fixes for WaitAny/All and TimeSpan.
svn path=/trunk/mcs/; revision=15535
HttpServerChannel.cs, HttpThread.cs: added new implementation of the HttpChannel
by Ahmad Tantawy, Ahmad Kadry and Hussein Mehanna.
svn path=/trunk/mcs/; revision=15533
* XmlTextReader.cs : removed CRLFs. Fixed private InitializeContext()
to use known Uri way (used in XmlUrlResolver) instead of UriBuilder.
svn path=/trunk/mcs/; revision=15530
* mono-debug.h (MONO_DEBUG_VAR_ADDRESS_MODE_STACK): Removed. We
just distinguish between variables in registers and variables at
an offset relative to a register.
svn path=/trunk/mono/; revision=15509
* RemotingServicesTest.cs: Lazy fix/workaround for "can't reuse
channel" errors. Tests now pass.
* RemotingConfigurationTest.cs: Don't rely on test order, and wrap some
.NET 1.1 stuff.
svn path=/trunk/mcs/; revision=15490
* FileSystemInfoTest.cs: Works on .NET 1.1 now. If these values are
different on 1.0 then we need to wrap with a #if NET_1_1.
svn path=/trunk/mcs/; revision=15469
* XmlSerializationReader.cs: GetXsiType(): use current reader.namespaceUri if namespace
is not specified in the xsi attribute.
* XmlSerializationReaderInterpreter.cs: Fixed bug when reading an empty array from an empty element.
* XmlSerializationWriterInterpreter.cs: Added null value check when writting an array.
svn path=/trunk/mcs/; revision=15459
* io.c (SetFileAttributes): Implement the ReadOnly attribute, and
ignore the unsupported ones ("fixes" bug 44977).
2003-06-17 Dick Porter <[email protected]>
* file-io.h:
* file-io.c: File attributes need to be tweaked slightly when
passed from the managed to the w32 world.
svn path=/trunk/mono/; revision=15458
* profiler.h profiler-private.h profiler.c: Added infrastructure for
instruction level coverage data collection.
* profiler.h profiler.c (: Added new callback function which can be
used by the profiler to limit which functions should have coverage
instrumentation.
* profiler.c (mono_profiler_load): Call g_module_build_path to
generate the file name of the profiler library.
svn path=/trunk/mono/; revision=15448
* OptionDetails.cs :
- Now handles correctly options specifiying maxOccurs != 1 (that was preventing mbas from being useable)
- Now indicates if option parsing consumed a parameter or not (also checks if it is available first)
- Now multivalued options can either be given as many pairs option/parameter and also as a pair option/comma-separated-list, and both
Example: -r System.Data -r System.Xml or /r System.Data,System.Xml
- Now it is more lax in the form matching: -r /r -reference --reference /reference are valid for a ('r',"reference") option
* Options.cs : new BreakSingleDashManyLettersIntoManyOptions field to make more GNUish parsing of single letter options.
Makes -zxf become -z -x -f if set to true
svn path=/trunk/mcs/; revision=15443
* XmlNodeReader.cs : fixed MoveToNextAttribute(). In some cases
this method set current node null.
* XmlTextReader.cs : fixed GetAttribute (name, ns), which returned
String.Empty instead of null (expected value).
* XmlTextReader.cs,
XmlUrlResolver.cs,
XmlInputStream.cs : fixed BaseURI problem (bug #44231).
svn path=/trunk/mcs/; revision=15440
* driver.c, mini-ppc.c, mini-x86.c, mini.c, mini.h: the coverage stuff
is now implemented in the profiling API. Get rid of a couple of
unnecessary global variables.
svn path=/trunk/mono/; revision=15438
* System.Data.Common/DbDataAdapter.cs:
Add the DataTable to the result set even if it contains
no rows. Based on report by Krieg Andreas.
svn path=/trunk/mcs/; revision=15436
* RSAManaged.cs: Now includes CRT (Chinese Remainder Theorem)
optimization when using the private key (DecryptValue). This
cut more than 5 seconds of nunit on my system (out of 14 sec
for complete asymmetric tests). Thanks to Ben Maurer for help!
svn path=/trunk/mcs/; revision=15431
* added XmlCharTests.cs(separated XmlChar tests from XmlTextReaderTests)
* XmlTextReaderTests.cs : added ExternalDocument() which will result
in BaseURI test and DTD parameter entity test.
svn path=/trunk/mcs/; revision=15427
* XmlNodeReader.cs : this [name] and this [name, ns] (and
GetAttribute() methods in turn) returns null instead of String.Empty.
* XmlTextWriter.cs : WriteStartAttribute() should try to use specified
prefix before auto-generating prefixes.
Implemented WriteBase64().
svn path=/trunk/mcs/; revision=15412
* .cvsignore: Ignore generated files (remove with make clean).
* CertificateFormatter.cs: Commented 2 lines as it didn't compile
with MCS (but did compile with CSC).
* gcertview.cs: Change app.ico (non-existing) to mono.bmp (16x16).
* gcertview.exe.config: New. Configuration file for gcertview (same
as certview.exe.config except it reference gcertview.exe instead of
certview.exe).
* makefile: Updated for linux by Ben Maurer.
svn path=/trunk/mcs/; revision=15410
in TypeStubInfo so serializers for headers they can be shared by several methods.
* SoapClientMessage.cs: Headers added in the constructor.
* SoapMessage.cs: Added header list initialization.
* SoapHttpClientProtocol.cs: Added support soap headers.
svn path=/trunk/mcs/; revision=15382
* threads.c (start_wrapper): Remove the reference to the thread
object in the TLS data, so the thread object can be finalized.
This won't be reached if the thread threw an uncaught exception,
so those thread handles will stay referenced :-( (This is due to
missing support for scanning thread-specific data in the Boehm GC
- the io-layer keeps a GC-visible hash of pointers to TLS data.)
svn path=/trunk/mono/; revision=15381
* HttpWebRequest.cs: if CookieContainer has not been set, make HttpWebResponse ignore
Set-Cookie* headers.
* HttpWebResponse.cs: Set-Cookie and Set-Cookie headers removed if CookieContainer have
been provided to the request.
svn path=/trunk/mcs/; revision=15379
* reflection.c: ensure streams and tables are first allocated with
ALLOC_ATOMIC (GC_realloc uses plain GC_malloc otherwise).
svn path=/trunk/mono/; revision=15378
2003-06-13 Herve Poussineau <[email protected]>
* SortedList.cs: Can enumerate on DictionaryEntries, not only on
keys on values. Enumerate by default on DictionaryEntries.
2003-06-14 Duncan Mak <[email protected]>
* SortedListTest.cs
(TestIndexer):
(TestEnumerator): Incorporated these two tests from Philippe
Lavoie <[email protected]>.
svn path=/trunk/mcs/; revision=15376
* reflection.c (mono_reflection_create_runtime_class): Add support for
properties to dynamically created classes.
* reflection.c: Fix a few places where non-MonoObjects were inserted
into the tokens hashtable.
svn path=/trunk/mono/; revision=15371
* XmlNodeReader.cs : LookupNamespace () has refered invalid current
node for attributes. Modified to use private "document" property.
svn path=/trunk/mcs/; revision=15370
* System.Net/AuthenticationManager.cs: get the list of authentication
modules from the configuration files. Added Clear and fixed Unregister.
* System.Net/BasicClient.cs: fully implemented.
* System.Net/HttpWebRequest.cs: added support for Basic authentication
when credentials are set.
* System.Net/NetworkCredential.cs: fixed GetCredential.
* System.Net.Configuration/NetAuthenticationModuleHandler.cs: register
the modules using AuthenticationManager.
svn path=/trunk/mcs/; revision=15367
* HttpWebRequest.cs: *really* take care of requestSent to prevent
sending the same request twice.
* WebAsyncResult.cs: don't close the handle. Just Reset.
* WebConnectionStream.cs: removed unneeded line.
svn path=/trunk/mcs/; revision=15354
* HttpWebRequest.cs: use InternalClose when we are not going to send the
rest of the request stream because of an error after sending the
headers.
* WebConnection.cs: check for completion after setting the response.
Enable reading in NextRead.
* WebConnectionStream.cs: re-fixed the count for partially buffered
reads. If the network stream returns 0 bytes, we're done.
svn path=/trunk/mcs/; revision=15351
* object.h, object.c: more portability stuff from Bernie Solomon.
Unexport mono_object_allocate(). Added mono_object_unbox ().
Set exitcode when an unhandled exception is thrown.
svn path=/trunk/mono/; revision=15338
* FileStream.cs: Fix errors in previous checkins:
(Write): Only take the shortcut route if the data is longer than the
buffer length.
(Write): Flush the buffer before writing out the new data
(Write): Flush the buffer after writing out a segment since otherwise
we will go into an infinite loop.
(FlushBuffer): Remove my last change since it was clearly wrong.
(Seek): Run FlushBuffer () after the in-buffer seek optimization.
(Seek): Only use the in-buffer optimization if the buffer is not
empty.
(Length): Call FlushBuffer () since buffer data might change the size
of the stream.
svn path=/trunk/mcs/; revision=15336
* CommandTests.cs: Changed code to use parameter names starting with ':'. Added test for empty query.
* DataReaderTests.cs: Added test for parameter names overlap. Added test for nonexistent parameter name.
svn path=/trunk/mcs/; revision=15333
* NpgsqlCommand.cs: Fixed parameter replace bug when parameter names overlap. Thanks Ishpal Singh. Cleaned up the code.
* NpgsqlDataReader.cs: Fixed NPE bug when handling queries which doesn't return anything.
* NpgsqlParameter.cs: Added code to format parameter names to start with ':'.
* NpgsqlParameterCollection.cs: Added code to format parameter names to start with ':'.
svn path=/trunk/mcs/; revision=15332
* DSACryptoServiceProvider.cs: Refactored from orginal by splitting
much core functionalities into DSAManaged.
* RSACryptoServiceProvider.cs: Refactored from orginal by splitting
much core functionalities into RSAManaged.
* RSAPKCS1SignatureDeformatter.cs: Updated to use the new PKCS#1 API.
Now works with any hash algorithm (which OID is defined in machine.config)
* RSAPKCS1SignatureFormatter.cs: Updated to use the new PKCS#1 API.
Now works with any hash algorithm (which OID is defined in machine.config)
svn path=/trunk/mcs/; revision=15330
* DSAManaged.cs: Refactored from DSACryptoServiceProvider.cs. Cannot
be reused outside [ms]corlib because DSA constructor is internal :-(
* PKCS1.cs: Now support any hash algorithm when encoding PKCS 1.5
(i.e. not limited to pre-calculated values for known hashes). Some
other API changes to ease the use of other hash algorithms.
* RSAManaged.cs: Refactored from RSACryptoServiceProvider.cs. This
class is required for custom PKCS#1 padding in SSL (which is not
possible using RSACryptoServiceProvider).
svn path=/trunk/mcs/; revision=15328
* BigInteger.cs: Added Clear to zeroize big integers and code to allow
compares with null (because operators == and != are re-defined). Note:
The class may still leak some private info in temp arrays (thanks Ben).
svn path=/trunk/mcs/; revision=15327
Added support for DefaultValueAttribute.
* XmlSerializationWriterInterpreter.cs: Added support for DefaultValueAttribute. Fixed bug when writting
the value of an enum.
* XmlTypeMapMember.cs: Added DefaultValue attribute.
* XmlTypeMapping.cs: EnumMap.GetXmlName and GetXmlValue, so they can now deal with
integer values.
svn path=/trunk/mcs/; revision=15326
* SybaseConnection.cs:
Make connection parameter parsing "more correct"
and throw appropriate exceptions, similar to MS SqlClient
* SybaseBinary.cs:
* SybaseBoolean.cs:
* SybaseByte.cs:
* SybaseDateTime.cs:
* SybaseDecimal.cs:
* SybaseDouble.cs:
* SybaseMoney.cs:
* SybaseString.cs:
Mass import of code from SqlClient to make this behave
better.
svn path=/trunk/mcs/; revision=15324
* MonoType.cs: don't throw nullref when the return type for a property
is specified and the property doesn't have a get accessor.
svn path=/trunk/mcs/; revision=15293
* XmlAttributes.cs: Default value of XmlDefaultValue changed to System.DBNull.Value
* XmlCustomFormatter.cs: small fixes.
* XmlReflectionImporter.cs: Added check: some overrides cannot be applied to primitive types.
* XmlSerializationWriter.cs: Implemented TopLevelElement().
WriteNamespaceDeclarations(): Fixed (the hashtable contains XmlQualifiedNames, not strings).
WriteXsiType(): It is not necessary to add the namespace declaration, this will now be done by XmlWriter.
* XmlSerializationWriterInterpreter.cs: Call TopLevelElement() when writing classes or arrays as
root elements.
svn path=/trunk/mcs/; revision=15288
generated, and a namespace declaration must be added.
* XmlWriter.cs: the namespace for the prefix xmlns must be http://www.w3.org/2000/xmlns/
svn path=/trunk/mcs/; revision=15287
* acconfig.h:
* configure.in: Check for struct ip_mreq if struct ip_mreqn isn't
available.
2003-06-10 Dick Porter <[email protected]>
* socket-io.c: Don't assume that one of struct ip_mreqn or struct
ip_mreq is available
2003-06-10 Dick Porter <[email protected]>
* atomic.c: Delete the useless compile warning
svn path=/trunk/mono/; revision=15284
* Added Paolo's comments about CVS commits and changing code.
Also reorganized it a bit. Hopefully this is a more logical ordering.
svn path=/trunk/mono/; revision=15283
* configure.in: Make the libgc stuff actually work; we now create
a shared libmonogc.so when using the included libgc.
svn path=/trunk/mono/; revision=15264
* XmlDocumentNavigator.cs (GetNode): Make it implement
IHasXmlNode.
Hopefully I fixed the space/tab thing. Let's just all use
spaces, it's just easier....
svn path=/trunk/mcs/; revision=15262
* WebConnectionStream.cs: when the read is partially filled from the
initial buffer, add those bytes too. Thanks to Lluis for debugging this.
svn path=/trunk/mcs/; revision=15256
* CryptoConfig.cs: Now support OID in machine.config.
* DSACryptoServiceProvider.cs: Changed USE_VERSION_1_0 for NET_1_0.
* KeySizes.cs: Changed USE_VERSION_1_0 for NET_1_0.
* MD5CryptoServiceProvider.cs: Changed USE_VERSION_1_0 for NET_1_0.
* RNGCryptoServiceProvider.cs: Changed USE_VERSION_
svn path=/trunk/mcs/; revision=15255
* HttpWebRequest.cs: added ExpectContinue property.
* WebConnection.cs: allow 100 Continue to be delayed after waiting for
it.
svn path=/trunk/mcs/; revision=15252
* class.c: ensure instance size always includes the parent's size
even whem class size is set explicitly (fixes bug#44294).
svn path=/trunk/mono/; revision=15248
* Makefile.am, mini-x86.c: rename cpu description array to
pentium_desc, since some compilers define the 'pentium' preprocessor
symbol.
svn path=/trunk/mono/; revision=15247
* daemon.c: Lookup env as a string array. Fixes bug 44289. Also
make setting the process handle value in the environment actually
work.
* processes.c: Pretty up the process name, if it happens to be
"mono" such as when another mono process forks "mono foo.exe"
svn path=/trunk/mono/; revision=15246
* Array.cs: Revert the last revert. I fixed it.
Here's a lesson: only commit the patches that you're absolutely
sure about. See, I committed 3 changes below, the Sort change
being the last one, and I was the least confident with it. But I
committed them all anyway. Big mistake.
So here we go again:
(Sort): Put a try-catch block around qsort, and wrap whatever
Exception we get into a InvalidOperationException.
svn path=/trunk/mcs/; revision=15228
* Array.cs: Throw more exceptions. This fixes the errors we see
from the Rotor testsuite.
(CreateInstance): Throw ArgumentNullException when the input are
null. Throw ArgumentOutOfRangeException when bounds + length is
greater than Int32.MaxValue.
(LastIndexOf): Throw ArgumentOutOfRangeException if index is outside
the valid range of indices of array.
(Sort): Throw InvalidOperationException when comparer is null and
none of the elements in keys implements IComparable.
svn path=/trunk/mcs/; revision=15209
* StringCollection.cs: Rewrote. Now uses ArrayList. Fixes up quite
a few Rotor bugs.
* ArrayList.cs, Hashtable.cs, SortedList.cs: Enumerator fixes, error
checking
We are now passing 37% of the System.Collections.* tests that were failing!
svn path=/trunk/mcs/; revision=15207
* FeatureAttr.cs: New file - Attributes for features (events and
properties)
* MethodRef.cs: Only resolve methods once.
* TypeDef.cs: Allow Events to be added to types. Also add
functionality to add generic type parameters to types. The
actually emission of these type parameters is commented out untill
I commit my patches to PEAPI and work out the syntax of constraints.
svn path=/trunk/mcs/; revision=15202
* libgc/: Integrate the libgc module here.
[Note: A simple `cvs update' won't work this time; you either need
to re-checkout the `mono' module or manually move the `libgc'
module here.]
* configure.in (--with-gc): Added `included' option to use the
included libgc. This is now also the default.
(LIBGC_CFLAGS, LIBGC_LIBS): Put the libgc stuff here and AC_SUBST it.
(INCLUDED_LIBGC): New automake conditional.
(USE_INCLUDED_LIBGC): #define this if appropriate.
* autogen.sh: Run libgc/autogen.sh.
* Makefile.am (SUBDIRS): Added libgc.
svn path=/trunk/mono/; revision=15185
Length of the input array 'lengths' is greater than 255 so that we
won't see the g_assert that is in mono_array_class_get in class.c.
svn path=/trunk/mcs/; revision=15183
* HttpWebRequest.cs: don't send "Expect: 100-continue" is the server
is known not to respond to that.
* ServicePoint.cs: added SendContinue property.
* WebConnection.cs: only wait 2 seconds for a continue reply. If it
timeouts, set SendContinue to false and proceeed sending data.
* WebConnectionStream.cs: if 100-continue is not received and instead we
get a 417 or anything else, don't send the data.
* WebClient.cs: implemented all missing properties and methods except
UploadFile.
svn path=/trunk/mcs/; revision=15180
* Stack.cs: Contains (null) works correctly. We never have the
array sized less than 16, so that the doubling logic works no
matter what. The enumerator is IClonable, like in ms. The
Enumerator correctly throws an exception if Current is called
before the enumerator is started. We now pass all the Rotor tests
for this file!
svn path=/trunk/mcs/; revision=15179
- Throw was added
- Multi-line statements partly implemented (still choking on some constructs)
- Fixed line continuation character ('_')
- Fixed Mod operator
- New runtime conversion (String -> CharArray) supported
- Array declaration code was completely rewritten to allow for expressions
to be used in a declaration
- Many sparse grammar fixes
- Started work to make the resolver case-insensitive (partially working)
svn path=/trunk/mcs/; revision=15176
* list.unix: added files.
* System.Net/FileWebRequestCreator.cs: splitted from WebRequest.
* System.Net/HttpRequestCreator.cs: splitted fromWebRequest.
* System.Net/WebRequest.cs: added methods that are used by the new
configuration handler to set prefix/type name requests creators.
* System.Net.Configuration/WebRequestModuleHandler.cs: handles
system.net/webRequestModules configuration section.
svn path=/trunk/mcs/; revision=15160
* mini.c (mini_select_instructions): add explicit branch if the
following block is not the false target of a conditional branch -
we need this with any optimization that reorder or remove bblocks
* mini.c (optimize_branches): bug fixes
svn path=/trunk/mono/; revision=15159
* driver.c: Set the glib log levels to not abort if g_message
recurses.
g_set_prgname() has to happen before mini_init() so that the
process handle gets the info.
svn path=/trunk/mono/; revision=15139
* processes.c (process_set_current): Don't do an expensive handle
search at application startup, check the environment to see if the
process handle has already been created.
* io.c: Don't do an expensive handle search when creating stdin,
stdout and stderr handles, just create them all the first time one
is requested.
* wapi-private.h:
* shared.c:
* shared.h:
* handles.c:
* handles-private.h:
* daemon-messages.h:
* daemon-private.h:
* daemon.c: Support for "unlimited" number of handles and scratch
data.
Speed up application startup by passing process handle in the
environment, rather than let the app scan all handles (which gets
really slow when there are more than a few thousand to check.)
Initialise some structs passed to syscalls, noticed by valgrind.
svn path=/trunk/mono/; revision=15137
* TypeTranslator.cs: added IsPrimitive() method
* TypeMapping.cs: Added RelatedMaps property that returns all maps directly or indirectly
used by that one. Also added Format property, that can be literal or encoded.
* XmlReflectionImporter.cs: little fixes. Moved some methods to ReflectionHelper.
* XmlReflectionMember.cs: added constructor that accepts SoapAttributes
* XmlSerializationReader.cs: implemented many methods needed to support encoded format.
* XmlSerializationReaderInterpreter.cs: added support for encoded format.
* XmlSerializationWriter.cs: added support for encoded format.
* XmlSerializationWriterInterpreter.cs: added support for encoded format.
* XmlTypeMapElementInfo.cs: added some properties needed to support encoded format
* XmlTypeMapMemberAttribute.cs: added MappedType property (enum values can be attributes,
and a map is needed for them).
* XmlTypeMapMemberElement.cs: small fixes.
* XmlTypeMapping.cs: added some properties and methods needed to support encoded format
* ReflectionHelper.cs: added. Has some methods shared by the reflection importers.
svn path=/trunk/mcs/; revision=15130
* profiler.h, profiler.c: made the simple profiler thread-safe,
get more accurate timing info. Allow the loading of an
externally-developed profiler module.
svn path=/trunk/mono/; revision=15128
* delegate.cs: transfer custom attributes for paramenters from
the delegate declaration to Invoke and BeginInvoke.
svn path=/trunk/mcs/; revision=15099
* ArrayList.cs: nullify the array in Clear ().
* Queue.cs: nullify the array in Dequeue ().
* Stack.cs: nullify the array in Pop ().
svn path=/trunk/mcs/; revision=15094
* RandomTest.cs: Added a test to compare Mono's random streams with
MS implementation (framework and Rotor). Converted to NUnit2 format.
svn path=/trunk/mcs/; revision=15078
* KeyInfoRetrievalMethodTest.cs: Changed RetrievalElement to
RetrievalMethod to match W3C specification and framework 1.1.
svn path=/trunk/mcs/; revision=15075
* Queue.cs: Added argument checking in constructors according to
specs. Also changed default size to 32 as required by the specs.
svn path=/trunk/mcs/; revision=15074
* mini.c (mono_find_block_region): bug fix in region code
(mini_method_compile): enable removing unreachable code again, but
only in methods without exception clauses.
svn path=/trunk/mono/; revision=15068
* DoubleFormatterTest.cs: added the last changes from the author of
this test (Patrick Kalkman <[email protected]>).
* SingleFormatterTest.cs: added the first release of this test from
the same author: Patrick Kalkman <[email protected]>.
svn path=/trunk/mcs/; revision=15063
form [assembly]name first check if the assembly is this
assembly. Implement scope_blocks, and implement scope block form
exception handling.
svn path=/trunk/mcs/; revision=15045
* HandlerBlock.cs: Make label fields public so they can be
accessed in a TryBlocks constructor.
* MethodDef.cs: Allow random labels to be inserted at the current
position. These are use for scope blocks.
* TryBlock.cs: New constructor takes from and to labels as a HandlerBlock
svn path=/trunk/mcs/; revision=15044
but my response serializer still can not cope with the <return> feature of the RPC
model.
2003-06-01 Miguel de Icaza <[email protected]>
* Methods.cs (MethodStubInfo): If creating an RPC call, pass an
optional XmlElementAttribute with the namespace set to null; Use
this on each element of the request and response serializers.
(MakeRequestSerializer, MakeResponseSerializer): Use the empty
element for the return values.
* SoapRpcMethodAttribute.cs: Drop the default name on the
SoapRpcMethodAttribute, it was incorrectly given a default name.
svn path=/trunk/mcs/; revision=15043
* BitArray.cs: Rewrote, as it was failing most of the Rotor
tests. It now passes them 100%. Also fixes bug #43667.
svn path=/trunk/mcs/; revision=15036
is actually a primitive object type (System.String,
System.Object). Add custom attributes to types. Handle the il
keyword the exact same way as cil. Add ellipsises to param and sig
lists. Add an optional name to typelists, this is just parsed it
is not implemented properly. Add custom attributes to
methods. Implement custom types (just methodrefs to ctors).
svn path=/trunk/mcs/; revision=15027
* InstrTable.cs: Add stelem.r4 and stelem.r8 instructions. Add
. tail to unaligned modifier.
* LdtokenInstr.cs: Add type tokens.
* MethodDef.cs: Fix IsVararg, add method to add custom attributes,
emitting custom attributes when writing code, allow for Ellipsises
in param lists, add coma between args in signatures.
* ParamDef.cs: Add the Ellipsis pseudo param
* PrimitiveTypeRef.cs: System.String and System.Object can be
referenced without an [mscorlib] assembly prefix.
* TypeDef.cs: Add Custom attributes.
svn path=/trunk/mcs/; revision=15025
attributes. Attributes can now be added to ClassDefs and
MethodDefs. Still need to implement for other metadata elements.
Added the stele.r4 and stelem.r8 instructions, this should also
shift the stelem.ref instruction to the proper value (0xA2)
svn path=/trunk/mcs/; revision=15020
* RegisteredWaitHandle.cs: check that the callback is not null before
invoking.
* ThreadPool.cs: fixed timeout -> TimeSpan conversions (closes bug
#43963). Queue the item before setting the handle. If there's a timeout,
avoid trying to Dequeue, getting the exception et al, just continue the
loop.
svn path=/trunk/mcs/; revision=15016
not the parameters. So still confused. Only needed for Google
2003-05-30 Miguel de Icaza <[email protected]>
* Methods.cs (MethodStubInfo): Start support for RPC style as well
as Literal style. Take an object instead of a
SoapDocumentMethodAttribute, and allow the value to be also a
SoapRpcMethodAttribute. Pull data from both.
Kill SoapBindingUse, we only use this during validation.
Turn out Google uses RPC/Literal, and its a good demo.
svn path=/trunk/mcs/; revision=15014
* Methods.cs (MakeResponseSerializer): OneWay is not the only
condition to catch; Also void return types are not required to
have a response.
(MakeRequestSerializer): InParameters *might* be ref parameters,
deal with that here too.
Add some debugging code for tracking down missing implementation
details in serialization creation.
svn path=/trunk/mcs/; revision=15013
* Methods.cs (MakeResponseSerializer): DUH. Use the
ResponseName/ResponseNamespace for the member import, not the
RequestName and RequestNamespace. The bugs of cut-and-paste.
svn path=/trunk/mcs/; revision=15011
* mini.c, mini-ops.h, cpu-pentium.md, inssel.brg, mini-x86.c, mini.h:
Implemented arglist opcode and handling of TypedReference type.
Fixed x86 call convention when a structure is returned.
Minimal support for calling static vararg methods.
svn path=/trunk/mono/; revision=15009
* class.c, domain.c, icall.c, metadata.h, object.h: support for
handling TypedReference and ArgIterator.
* loader.c, loader.h: added function to get signature at call site.
svn path=/trunk/mono/; revision=15005
* mini.c (mini_method_compile): always remove unreachable code,
because the code in them may be inconsistent (access to dead
variables for example).
svn path=/trunk/mono/; revision=15004
a Soap invocation.
The result is still not handled though.
2003-05-29 Miguel de Icaza <[email protected]>
* SoapHttpClientProtocol.cs (CreateMessage): Kill. Move
functionality to Invoke.
(Invoke): Use new TypeStubInfo/MethodStubInfo instead.
* SoapClientMessage.cs: Drop old mechanism, use MethodStubInfo instead.
* Methods.cs: New file. Contains the managed for TypeStubs and
MethodInfoStubs.
A MethodInfoStub contains the serializers we use for the SOAP
request.
* SoapClientMessage.cs: Drop parameters from the clientmessage, it
does not belong here. Drop oneway, we canextract that from the
SoapDocumentMethodAttribute class that we pass.
svn path=/trunk/mcs/; revision=15003
* HttpWebRequest.cs (Close): Move the code that accumulates the
output to Close from Flush. Flush could have been called in the
middle of the processing, and would have generated invalid results
(which it did).
svn path=/trunk/mcs/; revision=15000
* PKCS1MaskGenerationMethodTest.cs: Added [Ignore] to vector test
(as it's result isn't valid on both framework 1.0 and 1.1).
* RSAPKCS1SignatureDeformatter.cs: Splitting the test for NUnit2
cloned the previous error into many more tests. Hopefully fixed.
svn path=/trunk/mcs/; revision=14999
* XmlCustomFormatter.cs: Fixed bug in serialization of chars. Support for byte[].
* XmlMapping.cs: Added internal property.
* XmlMemberMapping.cs, XmlMembersMapping.cs: Implemented.
* XmlReflectionImporter.cs: Implemented importing of XmlMembersMapping. Several fixes.
* XmlReflectionMember.cs: XmlAttributes are now created by default
* XmlSerializationReader.cs, XmlSerializationWriter.cs: Several fixes.
* XmlSerializationReaderInterpreter.cs, XmlSerializationWriterInterpreter.cs, XmlSerializer.cs:
Implemented support for XmlMembersMapping.
* XmlTypeMapping.cs: Property ObjectMap moved to XmlMapping.
svn path=/trunk/mcs/; revision=14997
* metadata.c, metadata.h, private.h, tokentype.h, loader.c: make more
data readonly. Buglets and warning fixes. Some MethodSpec support.
svn path=/trunk/mono/; revision=14987
* Array.cs: Added better argument checking to Array.Sort () (approved by Gonzalo)
* DBNull.cs: Made the conversions throw like they do in MS.
svn path=/trunk/mcs/; revision=14983
* RSAPKCS1SignatureDeformatter.cs: Fixed (well I hope so) a test
which doesn't throw the same exception under 1.1. Also converted
the tests to NUnit2 format.
svn path=/trunk/mcs/; revision=14982
from xml type to clr type.
* XmlCustomFormatter.cs: Fixed bug in serialization of chars. Support for byte[].
* XmlReflectionMember.cs: Added default constructor.
* XmlSerializationReader.cs: Implemented ReadTypedPrimitive(), ToByteArrayBase64().
* XmlSerializationWriter.cs: Several fixes.
* XmlSerializationReaderInterpreter.cs, XmlReflectionImporter.cs, XmlSerializationWriterInterpreter.cs
XmlTypeMapMember.cs, XmlTypeMapMemberElement.cs, XmlTypeMapping.cs:
Added support for enums. Added support for XmlElement and XmlNode.
Support for XmlAnyAttributeAttribute and XmlAnyElementAttribute. Many fixes.
svn path=/trunk/mcs/; revision=14977
position, since MoveToNextAttribute may be called after it.
SetProperties(): attributes do not "inherit" the namespace.
* XmlDocument.cs: ReadNode(), ReadAttributeNode(): must keep the current reader position.
svn path=/trunk/mcs/; revision=14975
* XslTransform.cs: fixed NullReferenceExceptions after the last
change (which, btw, should have included a ChangeLog entry).
svn path=/trunk/mcs/; revision=14970
* XslTransform.cs: Initial support for extension objects.
Known issues:
Extension method signatures must match exactly to the
types of parameters that the method is called with from the stylesheet.
Node set parameters are converted to an ArrayList of strings.
* makefule.gnu: Added -unsafe flag, required by the above stuff.
* System.XML.build: Added /unsafe flag. Hope this is the right place.
svn path=/trunk/mcs/; revision=14951
* expression.cs (ArrayAccess.GetStoreOpCode): For System.IntPtr,
we use the stobj opcode.
(ArrayCreation.EmitDynamicInitializers): Revert Miguel's patch
since it wasn't the correct fix.
It still is puzzling that we are required to use stobj for IntPtr
which seems to be a ValueType.
svn path=/trunk/mcs/; revision=14944
* test-45.cs : Enable code which tests IntPtr array
initialization. This automatically serves as a test case for bug
#36030.
Improve test.
svn path=/trunk/mcs/; revision=14943
* mini.c: thread-static fields are registered in mono_class_vtable(),
so ensure the function is called before checking for them.
svn path=/trunk/mono/; revision=14937
* NativeWindow.cs : don't use CS_VREDRAW and CS_HREDRAW flags
* ImageList.cs
* ImageListStreamer.cs : small fixes
* TabControl.cs
* TabPage.cs : image list support was added
svn path=/trunk/mcs/; revision=14931
* ecore.cs (SimpleName.SimpleNameResolve): Consider using aliases
during regtular simple name resolution. Now, the trick is that
instead of returning for processing the simplename, we do a
TypeManager.LookupType (ie, a rooted lookup as opposed to a
contextual lookup type). If a match is found, return that, if
not, return for further composition.
This fixes long-standing 30485.
svn path=/trunk/mcs/; revision=14916
* X509CertificateTest.cs: Commented some tests in Certificate13 (the
DSA certificate without any key parameters) because MS implementation
cannot use the X509Certificate(X509Certificate) to instance it.
svn path=/trunk/mcs/; revision=14914
2003-05-26 Miguel de Icaza <[email protected]>
* marshal.c (mono_marshal_get_native_wrapper): For now, do not
free the string, until we get a chance to fix Gtk#
svn path=/trunk/mono/; revision=14909
* basic-long.cs: add regression test for (long)int * (long)int
* cpu-pentium.md: add op_bigmul specification
* inssel-long32.brg: add OP_BIGMUL rule
* mini-ops.h: add OP_BIGMUL
* mini-x86.c: register allocator: handle case where src1 needs to be
in EAX.
* mini.c: substitute special BIGMUL opcode in the tree for
(long)int * (long)int
svn path=/trunk/mono/; revision=14907
* DataViewTest.cs: Added new test from
Patrick Kalkman
* data_linux_test.args: Updated for new test in System.Data
svn path=/trunk/mcs/; revision=14902
* expression.cs (IndexerAccess.Emit, IndexerAccess.EmitAssign):
Pass `is_base_indexer' to Invocation.EmitCall instead of false.
Because if we are a BaseIndexerAccess that value will be true.
Fixes 43643.
svn path=/trunk/mcs/; revision=14897
* expression.cs (PointerArithmetic.Emit): If our operand is a
long, convert our constants to match the operand before
multiplying. Convert to I type before adding. Fixes 43670.
svn path=/trunk/mcs/; revision=14895
* NameTable.cs : Add() sets the given name string interned.
* XmlParserContext.cs : added internal PushScope() and PopScope() to
hold stacks of xml:base, xml:lang and xml:space.
* XmlTextReader.cs : implemented XmlLang and XmlSpace (only as a
property for stacked attributes). Renamed Initialize() to Initialize-
Context(). Modified to use XmlParserContext.PushScope()/PopScope().
svn path=/trunk/mcs/; revision=14891
* win32functions.cs : added some prototypes required for ImageList impl.
* win32strcuts.cs : added new structs, switched to CharSet.Ansi for TCITEM struct
* win32Enums.cs : use ansi messages for tab control
svn path=/trunk/mcs/; revision=14888
* mini.h, mini.c: ensure correct initialization order for types that
require it. Prepare for lazy compilation of jit icall wrappers.
Provide a name for opcode emulation to reduce unneeded mallocing.
svn path=/trunk/mono/; revision=14880
* XmlSignature.cs: Changed string "RetrievalElement" to "RetrievalMethod"
to match framework 1.1 (this was a bug in framework 1.0).
svn path=/trunk/mcs/; revision=14876
* ExternMethodRef.cs: Resolve vararg methods
* GlobalMethodRef.cs: Set calling conventions, add vararg methods
* MethodDef.cs: Set calling conventions, add vararg methods
* MethodRef.cs: Set calling conventions, add vararg methods
* TypeDef.cs: Resolve vararg methods
* TypeRef.cs: Add Ellipsis pseudo type, this should never really
be used as a type, but is stored in arrays with other types. Pass
call convs to methodref constructor.
svn path=/trunk/mcs/; revision=14869
from labels.
* FaultBlock.cs: Remove typo causing to labels to be the same as
from labels.
* FilterBlock.cs: Remove typo causing to labels to be the same as
from labels.
* MethodDef.cs: Allow for multiple labels to point to the same
line. ie:
END_BLOCK:
PASS:
do stuff
svn path=/trunk/mcs/; revision=14853
block
* FaultBlock.cs: New file - Initial implementation of a fault
block
* FilterBlock.cs: New file - Initial implementation of a filter
block
* FinallyBlock.cs: New file - Initial implementation of a finally
block
* HandlerBlock.cs: New file - A handler block is the block
assosciated with a SEH clause
* ISehClause: New file - Interface that structured exception
handling clauses must implement.
* TryBlock.cs: New file - Initial implementation only supports
label form SEH. This TryBlock is added to a method as an
instruction out of convenience, tryblock is not an instruction.
svn path=/trunk/mcs/; revision=14826
referenced in the grammar. need to check if these keywords work on
MS ilasm.
* NumberHelper.cs: Parse numbers as Unsigned then cast to long
otherwise an overflow exception is thrown. (is this a classlib bug?)
svn path=/trunk/mcs/; revision=14822
only INT_I8 instruction is ldc.i8 so this new code does more
checks then needed but is written in anticipation of some new long
instructions being found. Implement signature instructions, token
instructions, and signatures. Convert INT32s masquerading as
INT64s to Int64.
svn path=/trunk/mcs/; revision=14789
* Ldtoken.cs: New file - The ldtoken instruction
* InstrTable.cs: ldc.i8 is a TOKEN_I8 and should be given the
MiscToken.ldc_i8 value.
svn path=/trunk/mcs/; revision=14787
* enum.cs (ImplicitConversionExists) : Rename to
ImplicitEnumConversionExists to remove ambiguity.
* ecore.cs (NullCast): New type of cast expression class which
basically is very similar to EmptyCast with the difference being
it still is a constant since it is used only to cast a null to
something else
(eg. (string) null)
* convert.cs (ImplicitReferenceConversion): When casting a null
literal, we return a NullCast.
* literal.cs (NullLiteralTyped): Remove - I don't see why this
should be around anymore.
The renaming (reported was slightly wrong). Corrections:
ConvertImplicitStandard -> ImplicitConversionStandard
ConvertExplicitStandard -> ExplicitConversionStandard
* expression.cs (StaticCallExpr.MakeSimpleCall): Resolve arguments
before passing them in !
* convert.cs (ImplicitConversionStandard): When comparing for
equal expr and target types, ensure that expr is not a
NullLiteral.
In general, we must not be checking (expr_type ==
target_type) in the top level conversion methods
(ImplicitConversion, ExplicitConversion etc). This checking is
done in the methods that they delegate to.
svn path=/trunk/mcs/; revision=14773
* mini-x86.c (mono_arch_get_allocatable_int_vars): dont allocate
I1 to registers because there is no simply way to sign extend 8bit
quantities in caller saved registers on x86.
* inssel-float.brg: set costs of some rules to 2 so
that monobure always select the arch. specific ones if supplied,
regardless of the order we pass the files to monoburg.
svn path=/trunk/mono/; revision=14757
* icall.c (ves_icall_System_Reflection_Module_GetGlobalType): New icall
to return the invisible global type for a module.
* reflection.c (mono_image_build_metadata): Emit global fields too.
svn path=/trunk/mono/; revision=14755
* ModuleBuilder.cs:
- Implement DefineInitializedData in terms of DefineUninitializedData
- Name the types of global fields $ArrayType$<len> to cut back on the
number of types created
- Add argument checking
svn path=/trunk/mcs/; revision=14752
* FloatingPointFormatter.cs: Take care with the explicit precision
and round the number to that precision.
* DoubleFormatter.cs: Adapt to the two level precision (15 - 17).
* SingleFormatter.cs: Adapt to the two level precision (7 - 8).
svn path=/trunk/mcs/; revision=14742
* main.c (print_skel_dir): New function called when jay is
passed '-p'; prints the directory where the default skeleton
files are installed ($(prefix)/share/jay).
* makefile (CFLAGS): Add a -DSKEL_DIRECTORY to support
print_skel_dir.
* jay.1: Document the -p parameter.
svn path=/trunk/mcs/; revision=14732
* win32Enums.cs : added some error codes for common dialogs
* win32functions.cs : added prototype for CommDlgExtendedError
svn path=/trunk/mcs/; revision=14727
* reflection.c (mono_reflection_lookup_dynamic_token): Intern dynamic
literal strings.
* appdomain.c (set_domain_search_path): Recalculate search path when
AppDomainSetup.PrivateBinPath changes.
* object.c (mono_class_compute_gc_descriptor): It turns out some
parts of the class libs (like System.Thread) holds pointers to
GC_MALLOC()-d memory in IntPtrs, which is wrong. The workaround is
to treat native int a pointer type here.
svn path=/trunk/mono/; revision=14726
* mini.c, mini-x86.c: since the magic trampoline for jumps
can't patch the code directly, we do it as soon as the
method gets compiled.
svn path=/trunk/mono/; revision=14725
* mini-x86.c, mini.h: introduce a new patching method
to support CEE_JMP and tail calls.
* mini.c: obey tail.call. Don't precompile methods target
of CEE_JMP.
* tramp-x86.c: new trampoline code to handle methods
reached through a jump.
svn path=/trunk/mono/; revision=14722
* Assembly.cs (GetManifestResourceStream): Moved handling of
linked resources into managed code using the newly implemented
GetManifestResourceInfo () method.
svn path=/trunk/mcs/; revision=14717
* FileTest.cs:
* StreamReaderTest.cs:
* StreamWriterTest.cs: Workaround for process holding on to directory
that prevented cleanup and deletion.
svn path=/trunk/mcs/; revision=14715
* ConstructorBuilder.cs MethodBuilder.cs: Remove unnecessary MonoTODO
attributes.
* TypeBuilder.cs: "Implement" various methods not supported under
MS.NET.
* AssemblyBuilder.cs: Implement GetDynamicModule. "Implement" various
methods not supported under MS.NET.
svn path=/trunk/mcs/; revision=14706
* threads.c: Set the new thread's stack size to 2M. Fix needed
for BSD, reported by Martin Dvorak <[email protected]>
svn path=/trunk/mono/; revision=14699
* reflection.h reflection.c icall.c: Added new icalls
GetManifestResourceInfoInternal, GetModulesInternal and support
infrastructure.
svn path=/trunk/mono/; revision=14696
* FileStream.cs (FlushBuffer): After a flush, the buffer should be
advanced by buf_offset bytes, not buf_length bytes.
svn path=/trunk/mcs/; revision=14693
* statement.cs (TypeInfo.StructInfo): Made this type protected.
(TypeInfo): Added support for structs having structs as fields.
* ecore.cs (FieldExpr): Implement IVariable.
(FieldExpr.DoResolve): Call VariableInfo.GetSubStruct() to get the
VariableInfo for the field.
svn path=/trunk/mcs/; revision=14686
methods using array methods if owners are arrays, resolve methods
named <init> as .ctor.
* ExternTable.cs: Add method to get value classes.
* ExternTypeRef.cs: Add AsClassRef method, GetMethodRef now takes
calling conventions.
* IClassRef.cs: GetMethodRef now takes calling conventions
* ITypeRef.cs: Add IsArray IsRef and AsClassRef methods
* MethodRef.cs: Change <init> to .ctor
* PeapiTypeRef.cs: This class is no longer an ITypeRef because it
cannot be converted to a IClassRef. Add IsArray and IsRef, use new
Class::GetArray* methods to convert to arrays.
* PrimitiveTypeRef.cs: Add method to convert to an IClassRef
* TypeRef.cs: Add IsArray and IsRef, add method to convert to
IClassRef. GetMethodRef now takes calling conventions
svn path=/trunk/mcs/; revision=14682
* test-154.cs: Added the contents of test-189.cs as a new testcase
to this test.
* test-189.cs: Removed, let's keep the flow analysis tests in one
single test file.
svn path=/trunk/mcs/; revision=14678
* test-154.cs: Added the contents of test-189.cs as a new testcase
to this test.
* test-189.cs: Removed, let's keep the flow analysis tests in one
single test file.
svn path=/trunk/mcs/; revision=14674
* expression.cs (This.ResolveBase): New public function.
(This.DoResolve): Check for CS0188.
* codegen.cs (EmitContext.This): Just call This.ResolveBase(), not
This.Resolve().
* ecore.cs (MethodGroupExpr.DoResolve): Set the
`instance_expression' to null if we don't have any non-static
methods.
svn path=/trunk/mcs/; revision=14671
* RdpPattern.cs : Some method name capitalization.
Fixed RdpInterleave.StartTagOpenDeriv() which is logically incorrect.
svn path=/trunk/mcs/; revision=14666
Reworked the way how local variables and parameters are handled by
the flow analysis code.
* statement.cs (TypeInfo, VariableMap): New public classes.
(VariableInfo): New public class. This is now responsible for
checking whether a variable has been assigned. It is used for
parameters and local variables.
(Block.EmitMeta): Take the InternalParameters as argument; compute
the layout of the flow vectors here.
(Block.LocalMap, Block.ParameterMap): New public properties.
(FlowBranching): The .ctor doesn't get the InternalParameters
anymore since Block.EmitMeta() now computes the layout of the flow
vector.
(MyStructInfo): This class is now known as `StructInfo' and nested
in `TypeInfo'; we don't access this directly anymore.
* ecore.cs (IVariable): Added `VariableInfo VariableInfo'
property and removed IsAssigned(), IsFieldAssigned(),
SetAssigned() and SetFieldAssigned(); we now call them on the
VariableInfo so we don't need to duplicate this code everywhere.
* expression.cs (ParameterReference): Added `Block block' argument
to the .ctor.
(LocalVariableReference, ParameterReference, This): The new
VariableInfo class is now responsible for all the definite
assignment stuff.
* codegen.cs (EmitContext.IsVariableAssigned, SetVariableAssigned,
IsParameterAssigned, SetParameterAssigned): Removed.
svn path=/trunk/mcs/; revision=14661
* XmlSerializerTests.cs : fixed some AssertEquals() argument orders.
and replaced some Assert() with AssertEquals().
Applied USE_VERSION_1_1 to TestConstructor().
svn path=/trunk/mcs/; revision=14660
* AssemblyBuilder.cs (corlib_void_type): New internal field.
(SetCorlibTypeBuilders): Added overloaded version which takes 4
arguments to set the `corlib_void_type'.
* TypeBuilder.cs: Use `pmodule.assemblyb.corlib_void_type' instead
of `typeof (void)' to make this work when compiling corlib.
svn path=/trunk/mcs/; revision=14659
* typemanager.cs (InitCoreTypes): Try calling
SetCorlibTypeBuilders() with 4 args; if that fails, fall back to
the 3-args-version. Corlib now also needs our `void_type'.
(GetMethod): Added overloaded version which takes an optional
`bool report_errors' to allow lookups of optional methods.
svn path=/trunk/mcs/; revision=14658
* XmlTextWriterTests.cs : added FlushDoesnTCloseTag() and
WriteWhitespaceCloseTag() (patch by Jonathan Hogg).
added more tests to AttributeWriteAttributeString().
* XmlAttributeTests.cs : SetInnerTextAndXml() rewrite.
svn path=/trunk/mcs/; revision=14657
* XmlTextWriter.cs : patch by Jonathan Hogg. Flush() does not close
any open attributes or elements. WriteWhitespace() checks state and
closes start tag. Fixed WriteStringInternal() to replace CR/LF chars
when it is called inside attribute value.
* XmlException.cs : added .NET 1.1 .ctor.
* added XmlSecureResolver.cs (only stubbing).
* XmlAttribute.cs : set_InnerXml() should remove children.
* XmlAttribute.cs,
XmlElement.cs,
XmlDocumentFragment.cs,
XmlDocument.cs : removed XmlTextReader reuse (It was buggy stuff).
* XmlNode.cs : RemoveAll() should also remove all attributes.
* XmlTextRader.cs : .ctor() for attribute value reader should add
quotations at initialization, since it requires quote chars.
* XmlWriter.cs : WriteAttributeString() more correct xmlns check.
svn path=/trunk/mcs/; revision=14655
* Array.cs Fixed SyncRoot to behave like MS (return this). Removed
MonoTODO from SyncRoot (because fixed) and IsSynchronized (it was
behaving correctly).
svn path=/trunk/mcs/; revision=14652
* X509CertificateTest.cs: Added DSA certificate without any key
parameters (shared group is available in the issuer certificate).
svn path=/trunk/mcs/; revision=14642
* debug-mini.c (mono_init_debugger): New function to initialize
the debugger. This is not in the debugger since it needs to
access some of mini's internals.
svn path=/trunk/mono/; revision=14637
* makefile (install): Call the install in makefile.gnu
* makefile.gnu (install): Actually install jay and its skeleton
files. (and docs, and manpage...)
svn path=/trunk/mcs/; revision=14635
* UnixEndPoint.cs: New property to get and set the filename, like
the IPEndPoint has for the IP address. Also implement ToString().
svn path=/trunk/mcs/; revision=14626
new version of the SoapFormatter added2003-05-15: Jean-Marc ANDRE ([email protected])
new version of the SoapFormatter added2003-05-15: Jean-Marc ANDRE ([email protected])
new version of the SoapFormatter added2003-05-15: Jean-Marc ANDRE ([email protected])
new version of the SoapFormatter added2003-05-15: Jean-Marc ANDRE ([email protected])
new version of the SoapFormatter added2003-05-15: Jean-Marc ANDRE ([email protected])
new version of the SoapFormatter added2003-05-15: Jean-Marc ANDRE ([email protected])
new version of the SoapFormatter added2003-05-15: Jean-Marc ANDRE ([email protected])
new version of the SoapFormatter added2003-05-15: Jean-Marc ANDRE ([email protected])
new version of the SoapFormatter added2003-05-15: Jean-Marc ANDRE ([email protected])
new version of the SoapFormatter added2003-05-15: Jean-Marc ANDRE ([email protected])
new version of the SoapFormatter added2003-05-15: Jean-Marc ANDRE ([email protected])
new version of the SoapFormatter added2003-05-15: Jean-Marc ANDRE ([email protected])
new version of the SoapFormatter added2003-05-15: Jean-Marc ANDRE ([email protected])
new version of the SoapFormatter added2003-05-15: Jean-Marc ANDRE ([email protected])
new version of the SoapFormatter added2003-05-15: Jean-Marc ANDRE ([email protected])
new version of the SoapFormatter added2003-05-15: Jean-Marc ANDRE ([email protected])
new version of the SoapFormatter added2003-05-15: Jean-Marc ANDRE ([email protected])
new version of the SoapFormatter added2003-05-15: Jean-Marc ANDRE ([email protected])
new version of the SoapFormatter added2003-05-15: Jean-Marc ANDRE ([email protected])
new version of the SoapFormatter added2003-05-15: Jean-Marc ANDRE ([email protected])
new version of the SoapFormatter added2003-05-15: Jean-Marc ANDRE ([email protected])
new version of the SoapFormatter added2003-05-15: Jean-Marc ANDRE ([email protected])
new version of the SoapFormatter added2003-05-15: Jean-Marc ANDRE ([email protected])
new version of the SoapFormatter added2003-05-15: Jean-Marc ANDRE ([email protected])
new version of the SoapFormatter added2003-05-15: Jean-Marc ANDRE ([email protected])
new version of the SoapFormatter added2003-05-15: Jean-Marc ANDRE ([email protected])
new version of the SoapFormatter added2003-05-15: Jean-Marc ANDRE ([email protected])
new version of the SoapFormatter added2003-05-15: Jean-Marc ANDRE ([email protected])
new version of the SoapFormatter added2003-05-15: Jean-Marc ANDRE ([email protected])
new version of the SoapFormatter added2003-05-15: Jean-Marc ANDRE ([email protected])
new version of the SoapFormatter added2003-05-15: Jean-Marc ANDRE ([email protected])
new version of the SoapFormatter added2003-05-15: Jean-Marc ANDRE ([email protected])
new version of the SoapFormatter added2003-05-15: Jean-Marc ANDRE ([email protected])
new version of the SoapFormatter added2003-05-15: Jean-Marc ANDRE ([email protected])
new version of the SoapFormatter added2003-05-15: Jean-Marc ANDRE ([email protected])
new version of the SoapFormatter added2003-05-15: Jean-Marc ANDRE ([email protected])
new version of the SoapFormatter added2003-05-15: Jean-Marc ANDRE ([email protected])
new version of the SoapFormatter added2003-05-15: Jean-Marc ANDRE ([email protected])
new version of the SoapFormatter added2003-05-15: Jean-Marc ANDRE ([email protected])
new version of the SoapFormatter added2003-05-15: Jean-Marc ANDRE ([email protected])
new version of the SoapFormatter added2003-05-15: Jean-Marc ANDRE ([email protected])
new version of the SoapFormatter added2003-05-15: Jean-Marc ANDRE ([email protected])
new version of the SoapFormatter added2003-05-15: Jean-Marc ANDRE ([email protected])
new version of the SoapFormatter added2003-05-15: Jean-Marc ANDRE ([email protected])
new version of the SoapFormatter added2003-05-15: Jean-Marc ANDRE ([email protected])
new version of the SoapFormatter added2003-05-15: Jean-Marc ANDRE ([email protected])
new version of the SoapFormatter added2003-05-15: Jean-Marc ANDRE ([email protected])
new version of the SoapFormatter added2003-05-15: Jean-Marc ANDRE ([email protected])
new version of the SoapFormatter added2003-05-15: Jean-Marc ANDRE ([email protected])
new version of the SoapFormatter added2003-05-15: Jean-Marc ANDRE ([email protected])
new version of the SoapFormatter added2003-05-15: Jean-Marc ANDRE ([email protected])
new version of the SoapFormatter added2003-05-15: Jean-Marc ANDRE ([email protected])
new version of the SoapFormatter added2003-05-15: Jean-Marc ANDRE ([email protected])
new version of the SoapFormatter added2003-05-15: Jean-Marc ANDRE ([email protected])
new version of the SoapFormatter added2003-05-15: Jean-Marc ANDRE ([email protected])
new version of the SoapFormatter added2003-05-15: Jean-Marc ANDRE ([email protected])
new version of the SoapFormatter added2003-05-15: Jean-Marc ANDRE ([email protected])
new version of the SoapFormatter added2003-05-15: Jean-Marc ANDRE ([email protected])
new version of the SoapFormatter added2003-05-15: Jean-Marc ANDRE ([email protected])
new version of the SoapFormatter added2003-05-15: Jean-Marc ANDRE ([email protected])
new version of the SoapFormatter added2003-05-15: Jean-Marc ANDRE ([email protected])
new version of the SoapFormatter added2003-05-15: Jean-Marc ANDRE ([email protected])
new version of the SoapFormatter added2003-05-15: Jean-Marc ANDRE ([email protected])
new version of the SoapFormatter added2003-05-15: Jean-Marc ANDRE ([email protected])
new version of the SoapFormatter added2003-05-15: Jean-Marc ANDRE ([email protected])
new version of the SoapFormatter added2003-05-15: Jean-Marc ANDRE ([email protected])
new version of the SoapFormatter added2003-05-15: Jean-Marc ANDRE ([email protected])
new version of the SoapFormatter added2003-05-15: Jean-Marc ANDRE ([email protected])
new version of the SoapFormatter added2003-05-15: Jean-Marc ANDRE ([email protected])
new version of the SoapFormatter added2003-05-15: Jean-Marc ANDRE ([email protected])
new version of the SoapFormatter added2003-05-15: Jean-Marc ANDRE ([email protected])
new version of the SoapFormatter added2003-05-15: Jean-Marc ANDRE ([email protected])
new version of the SoapFormatter added2003-05-15: Jean-Marc ANDRE ([email protected])
new version of the SoapFormatter added2003-05-15: Jean-Marc ANDRE ([email protected])
new version of the SoapFormatter added2003-05-15: Jean-Marc ANDRE ([email protected])
new version of the SoapFormatter added2003-05-15: Jean-Marc ANDRE ([email protected])
new version of the SoapFormatter added2003-05-15: Jean-Marc ANDRE ([email protected])
new version of the SoapFormatter added2003-05-15: Jean-Marc ANDRE ([email protected])
new version of the SoapFormatter added2003-05-15: Jean-Marc ANDRE ([email protected])
new version of the SoapFormatter added2003-05-15: Jean-Marc ANDRE ([email protected])
new version of the SoapFormatter added2003-05-15: Jean-Marc ANDRE ([email protected])
new version of the SoapFormatter added2003-05-15: Jean-Marc ANDRE ([email protected])
new version of the SoapFormatter added2003-05-15: Jean-Marc ANDRE ([email protected])
new version of the SoapFormatter added2003-05-15: Jean-Marc ANDRE ([email protected])
new version of the SoapFormatter added2003-05-15: Jean-Marc ANDRE ([email protected])
new version of the SoapFormatter added2003-05-15: Jean-Marc ANDRE ([email protected])
new version of the SoapFormatter added2003-05-15: Jean-Marc ANDRE ([email protected])
new version of the SoapFormatter added2003-05-15: Jean-Marc ANDRE ([email protected])
new version of the SoapFormatter added2003-05-15: Jean-Marc ANDRE ([email protected])
new version of the SoapFormatter added2003-05-15: Jean-Marc ANDRE ([email protected])
new version of the SoapFormatter added2003-05-15: Jean-Marc ANDRE ([email protected])
new version of the SoapFormatter added2003-05-15: Jean-Marc ANDRE ([email protected])
new version of the SoapFormatter added2003-05-15: Jean-Marc ANDRE ([email protected])
new version of the SoapFormatter added2003-05-15: Jean-Marc ANDRE ([email protected])
new version of the SoapFormatter added2003-05-15: Jean-Marc ANDRE ([email protected])
new version of the SoapFormatter added2003-05-15: Jean-Marc ANDRE ([email protected])
new version of the SoapFormatter added2003-05-15: Jean-Marc ANDRE ([email protected])
new version of the SoapFormatter added2003-05-15: Jean-Marc ANDRE ([email protected])
new version of the SoapFormatter added2003-05-15: Jean-Marc ANDRE ([email protected])
new version of the SoapFormatter added2003-05-15: Jean-Marc ANDRE ([email protected])
new version of the SoapFormatter added2003-05-15: Jean-Marc ANDRE ([email protected])
new version of the SoapFormatter added2003-05-15: Jean-Marc ANDRE ([email protected])
new version of the SoapFormatter added2003-05-15: Jean-Marc ANDRE ([email protected])
new version of the SoapFormatter added2003-05-15: Jean-Marc ANDRE ([email protected])
new version of the SoapFormatter added2003-05-15: Jean-Marc ANDRE ([email protected])
new version of the SoapFormatter added2003-05-15: Jean-Marc ANDRE ([email protected])
new version of the SoapFormatter added2003-05-15: Jean-Marc ANDRE ([email protected])
new version of the SoapFormatter added2003-05-15: Jean-Marc ANDRE ([email protected])
new version of the SoapFormatter added2003-05-15: Jean-Marc ANDRE ([email protected])
new version of the SoapFormatter added2003-05-15: Jean-Marc ANDRE ([email protected])
new version of the SoapFormatter added2003-05-15: Jean-Marc ANDRE ([email protected])
new version of the SoapFormatter added2003-05-15: Jean-Marc ANDRE ([email protected])
new version of the SoapFormatter added2003-05-15: Jean-Marc ANDRE ([email protected])
new version of the SoapFormatter added2003-05-15: Jean-Marc ANDRE ([email protected])
new version of the SoapFormatter added2003-05-15: Jean-Marc ANDRE ([email protected])
new version of the SoapFormatter added2003-05-15: Jean-Marc ANDRE ([email protected])
new version of the SoapFormatter added2003-05-15: Jean-Marc ANDRE ([email protected])
new version of the SoapFormatter added2003-05-15: Jean-Marc ANDRE ([email protected])
new version of the SoapFormatter added2003-05-15: Jean-Marc ANDRE ([email protected])
new version of the SoapFormatter added2003-05-15: Jean-Marc ANDRE ([email protected])
new version of the SoapFormatter added2003-05-15: Jean-Marc ANDRE ([email protected])
new version of the SoapFormatter added2003-05-15: Jean-Marc ANDRE ([email protected])
new version of the SoapFormatter added2003-05-15: Jean-Marc ANDRE ([email protected])
new version of the SoapFormatter added2003-05-15: Jean-Marc ANDRE ([email protected])
new version of the SoapFormatter added2003-05-15: Jean-Marc ANDRE ([email protected])
new version of the SoapFormatter added2003-05-15: Jean-Marc ANDRE ([email protected])
new version of the SoapFormatter added2003-05-15: Jean-Marc ANDRE ([email protected])
new version of the SoapFormatter added2003-05-15: Jean-Marc ANDRE ([email protected])
new version of the SoapFormatter added2003-05-15: Jean-Marc ANDRE ([email protected])
new version of the SoapFormatter added2003-05-15: Jean-Marc ANDRE ([email protected])
new version of the SoapFormatter added2003-05-15: Jean-Marc ANDRE ([email protected])
new version of the SoapFormatter added2003-05-15: Jean-Marc ANDRE ([email protected])
new version of the SoapFormatter added2003-05-15: Jean-Marc ANDRE ([email protected])
new version of the SoapFormatter added2003-05-15: Jean-Marc ANDRE ([email protected])
new version of the SoapFormatter added2003-05-15: Jean-Marc ANDRE ([email protected])
new version of the SoapFormatter added2003-05-15: Jean-Marc ANDRE ([email protected])
new version of the SoapFormatter added2003-05-15: Jean-Marc ANDRE ([email protected])
new version of the SoapFormatter added2003-05-15: Jean-Marc ANDRE ([email protected])
new version of the SoapFormatter added2003-05-15: Jean-Marc ANDRE ([email protected])
new version of the SoapFormatter added2003-05-15: Jean-Marc ANDRE ([email protected])
new version of the SoapFormatter added2003-05-15: Jean-Marc ANDRE ([email protected])
new version of the SoapFormatter added2003-05-15: Jean-Marc ANDRE ([email protected])
new version of the SoapFormatter added2003-05-15: Jean-Marc ANDRE ([email protected])
new version of the SoapFormatter added2003-05-15: Jean-Marc ANDRE ([email protected])
new version of the SoapFormatter added2003-05-15: Jean-Marc ANDRE ([email protected])
new version of the SoapFormatter added2003-05-15: Jean-Marc ANDRE ([email protected])
new version of the SoapFormatter added2003-05-15: Jean-Marc ANDRE ([email protected])
new version of the SoapFormatter added2003-05-15: Jean-Marc ANDRE ([email protected])
new version of the SoapFormatter added2003-05-15: Jean-Marc ANDRE ([email protected])
new version of the SoapFormatter added2003-05-15: Jean-Marc ANDRE ([email protected])
new version of the SoapFormatter added2003-05-15: Jean-Marc ANDRE ([email protected])
new version of the SoapFormatter added2003-05-15: Jean-Marc ANDRE ([email protected])
new version of the SoapFormatter added2003-05-15: Jean-Marc ANDRE ([email protected])
new version of the SoapFormatter added2003-05-15: Jean-Marc ANDRE ([email protected])
new version of the SoapFormatter added2003-05-15: Jean-Marc ANDRE ([email protected])
new version of the SoapFormatter added2003-05-15: Jean-Marc ANDRE ([email protected])
new version of the SoapFormatter added2003-05-15: Jean-Marc ANDRE ([email protected])
new version of the SoapFormatter added2003-05-15: Jean-Marc ANDRE ([email protected])
new version of the SoapFormatter added2003-05-15: Jean-Marc ANDRE ([email protected])
new version of the SoapFormatter added2003-05-15: Jean-Marc ANDRE ([email protected])
new version of the SoapFormatter added2003-05-15: Jean-Marc ANDRE ([email protected])
new version of the SoapFormatter added2003-05-15: Jean-Marc ANDRE ([email protected])
new version of the SoapFormatter added2003-05-15: Jean-Marc ANDRE ([email protected])
new version of the SoapFormatter added2003-05-15: Jean-Marc ANDRE ([email protected])
new version of the SoapFormatter added2003-05-15: Jean-Marc ANDRE ([email protected])
new version of the SoapFormatter added2003-05-15: Jean-Marc ANDRE ([email protected])
new version of the SoapFormatter added2003-05-15: Jean-Marc ANDRE ([email protected])
new version of the SoapFormatter added2003-05-15: Jean-Marc ANDRE ([email protected])
new version of the SoapFormatter added2003-05-15: Jean-Marc ANDRE ([email protected])
new version of the SoapFormatter added2003-05-15: Jean-Marc ANDRE ([email protected])
new version of the SoapFormatter added2003-05-15: Jean-Marc ANDRE ([email protected])
new version of the SoapFormatter added2003-05-15: Jean-Marc ANDRE ([email protected])
new version of the SoapFormatter added2003-05-15: Jean-Marc ANDRE ([email protected])
new version of the SoapFormatter added2003-05-15: Jean-Marc ANDRE ([email protected])
new version of the SoapFormatter added2003-05-15: Jean-Marc ANDRE ([email protected])
new version of the SoapFormatter added2003-05-15: Jean-Marc ANDRE ([email protected])
new version of the SoapFormatter added2003-05-15: Jean-Marc ANDRE ([email protected])
new version of the SoapFormatter added2003-05-15: Jean-Marc ANDRE ([email protected])
new version of the SoapFormatter added2003-05-15: Jean-Marc ANDRE ([email protected])
new version of the SoapFormatter added2003-05-15: Jean-Marc ANDRE ([email protected])
new version of the SoapFormatter added2003-05-15: Jean-Marc ANDRE ([email protected])
new version of the SoapFormatter added2003-05-15: Jean-Marc ANDRE ([email protected])
new version of the SoapFormatter added2003-05-15: Jean-Marc ANDRE ([email protected])
new version of the SoapFormatter added2003-05-15: Jean-Marc ANDRE ([email protected])
new version of the SoapFormatter added2003-05-15: Jean-Marc ANDRE ([email protected])
new version of the SoapFormatter added2003-05-15: Jean-Marc ANDRE ([email protected])
new version of the SoapFormatter added2003-05-15: Jean-Marc ANDRE ([email protected])
new version of the SoapFormatter added2003-05-15: Jean-Marc ANDRE ([email protected])
new version of the SoapFormatter added2003-05-15: Jean-Marc ANDRE ([email protected])
new version of the SoapFormatter added2003-05-15: Jean-Marc ANDRE ([email protected])
new version of the SoapFormatter added2003-05-15: Jean-Marc ANDRE ([email protected])
new version of the SoapFormatter added2003-05-15: Jean-Marc ANDRE ([email protected])
new version of the SoapFormatter added2003-05-15: Jean-Marc ANDRE ([email protected])
new version of the SoapFormatter added2003-05-15: Jean-Marc ANDRE ([email protected])
new version of the SoapFormatter added2003-05-15: Jean-Marc ANDRE ([email protected])
new version of the SoapFormatter added2003-05-15: Jean-Marc ANDRE ([email protected])
new version of the SoapFormatter added2003-05-15: Jean-Marc ANDRE ([email protected])
new version of the SoapFormatter added2003-05-15: Jean-Marc ANDRE ([email protected])
new version of the SoapFormatter added2003-05-15: Jean-Marc ANDRE ([email protected])
new version of the SoapFormatter added
svn path=/trunk/mcs/; revision=14614
* changed XPathNodeType modifier to internal *protected* override.
* XmlAttribute.cs : .ctor() now checks name validity e.g. xmlns.
* XmlAttribute.cs, XmlElement.cs : set_Prefix checks NCName validity.
* XmlAttributeCollection.cs : removed some incorrect TODO attributes.
* XmlDocument.cs ; CreateAttribute(name) now auto-completes xmlns NSURI
when the argument is "xmlns".
* XmlElement.cs : more compliant IsEmpty support. See also WriteTo().
* XmlNamespaceManager.cs : added initial "xml" and "xmlns" namespaces.
* XmlNode.cs : ser_InnerXml() throws InvalidOperationException.
* XmlNodeReader.cs : LookupNamespace() refactory. Fixed ReadInnerXml()
not to set error state for non-started XmlNodeReader.
* XmlTextReader.cs : fixed ReadAttributeValue() not to reset state.
BaseURI support. Fixed Initialize() to handle Attribute correctly.
SetProperty for attribute auto-completes xmlns NSURI.
Attribute and whitespace handling became more correct.
Don't parse external DTD if XmlResolver is null.
* XmlTextWriter.cs : implemented WriteEntityRef().
WriteStartAttribute() checks if ns does not equal to that of xmlns.
* XmlWriter.cs : trivial refactoring (WriteNode() xmldecl output).
svn path=/trunk/mcs/; revision=14613
* XmlSerializerTests.cs : fixed some argument orders and fixed
timezone dependent part of TestSerializeDateTime().
svn path=/trunk/mcs/; revision=14612
* XmlAttributeTests.cs : added NamespaceAttributes() and WriteTo().
* XmlDocumentTests.cs : fixed invalid xml of DocumentWithDoctypeDecl()
and not well-formed xml of OuterXmlWithDefaultXmlns().
* XmlElementTests.cs : added IsEmpty(). fixed not well-formed xml of
WriteToWithDefaultNamespace().
* XmlNodeReaderTests.cs : fixed incorrect result expectation of
ReadInnerXmlWrongInit().
* XmlNodeTets.cs : applied USE_VERSION_1_1 for InsertBefore()/-After().
* XmlReaderCommonTests.cs,
XmlTextReaderTests.cs : moved EntityReference() and EntityReference-
InsideText() to XmlTextReaderTests.cs, since XmlNodeReader is expected
to resolve these entity references.
* XmlTextWriterTests.cs : removed English-dependent error message check.
fixed incorrect state-check ignorant blocks of WriteAttributes ().
* XmlWriterTests.cs : modified WriteNodeFullDocument() and WriteNode-
XmlDecl() as MS.NET results in.
svn path=/trunk/mcs/; revision=14610
* MethodBuilder.cs: off by one in CreateMethodBody().
* TypeBuilder.cs: if the return type for a method is null, use void.
svn path=/trunk/mcs/; revision=14609
* mini-ops.h, mini.c, inssel.brg: optimize access to 2D arrays.
* jit-icalls.c, exceptions.cs: fixed index out of range checks, added
test case.
svn path=/trunk/mono/; revision=14598
Wed May 14 12:40:31 CEST 2003 Paolo Molaro <[email protected]>
* inssel-x86.brg: fixed thinko in int to double conversions.
svn path=/trunk/mono/; revision=14595
* DirectoryInfo.cs: fixed bug #42991.
* Path.cs:
(CanonicalizePath): store the value of the trimmed input string. Make it
work with paths such as "/home/xxx/.".
svn path=/trunk/mcs/; revision=14585
* System.Web.UI/BaseParser.cs: fixed MapPath for non-rooted files.
* System.Web.UI/PageParser.cs: don't pass a non-virtual file around.
* System.Web.UI/TemplateControlParser.cs: InputFile uses MapPath now.
Take care of the exception teh may be throw by MapPath on an invalid
path.
* System.Web.UI/TemplateParser.cs: removed unused method.
* System.Web.UI/UserControlParser.cs: modified inputfile. The result is
the same, but this one is better.
* System.Web.Util/UrlUtils.cs: fixed Combine and reworked Reduce.
svn path=/trunk/mcs/; revision=14566
deserialized object and the headers.
* MessageFormatter.cs: The result of the call to the HeaderHandler delegate is
now interpreted as the uri of the target object. This seems to be MS.NET
behavior.
* BinaryFormatter.cs: Deserialize now calls the HeaderHandler delegate,
if provided.
svn path=/trunk/mcs/; revision=14559
* PKCS1MaskGenerationMethodTest.cs: Uncommented PKCS#1 v.2.1 vector
unit test (will work on Mono but fails with MS implementation).
* RSAOAEPKeyExchangeDeformatterTest.cs: Updated tests vectors for
both Mono and MS (under Windows XP) generated OAEP results.
* RSAOAEPKeyExchangeFormatterTest.cs: Update exception handling.
svn path=/trunk/mcs/; revision=14524
* PKCS1MaskGenerationMethod.cs: Added comment to justify why
the class is no more compatible with MS implementation (the bug
was preventing OAEP to work properly).
svn path=/trunk/mcs/; revision=14523
* gc.c: Don't run finalizers when the finalizer thread is
finishing up, because the default domain has already been
destroyed.
svn path=/trunk/mono/; revision=14518
2003-05-12 Miguel de Icaza <[email protected]>
* support.cs (InternalParameters.ParameterType): Return the
ExternalType of the parameter.
* parameter.cs (Parameter.ExternalType): drop the two arguments,
they were unused.
svn path=/trunk/mcs/; revision=14509
* class.cs (MethodData.Define): Do not set the `newslot' on
interface members, if they are also flagged as "override".
* expression.cs (UnaryMutator.EmitCode): Simple workaround to emit
better code for ++i and i++. This only works for static fields
and local variables.
svn path=/trunk/mcs/; revision=14506
* string-icalls.c (ves_icall_System_String_ctor_chara_int_int): if
value is null, we should throw an exception. This is slightly
different than the other conventions used for the constructor.
svn path=/trunk/mono/; revision=14505
positions. Add method to get named local variables slot
number. Make sure param_lists aren't null when defining them. Add
specialname and rtspecialname attributes if the method being
defined is named '.ctor' or '.cctor'. Add new method for creating
signatures using a list of typerefs.
* GlobalMethodRef.cs: Use new CreateSignature method that takes an
array of typerefs.
* MethodRef.cs: Use new CreateSignature method
* InstrTable.cs: Use INSTR_LOCAL and INSTR_PARAM tokens for
instructions that take local and param operands.
svn path=/trunk/mcs/; revision=14503
positions. Add method to get named local variables slot
number. Make sure param_lists aren't null when defining them. Add
specialname and rtspecialname attributes if the method being
defined is named '.ctor' or '.cctor'. Add new method for creating
signatures using a list of typerefs.
* GlobalMethodRef.cs: Use new CreateSignature method that takes an
array of typerefs.
* MethodRef.cs: Use new CreateSignature method
* InstrTable.cs: Use INSTR_LOCAL and INSTR_PARAM tokens for
instructions that take local and param operands.
svn path=/trunk/mcs/; revision=14501
* typemanager.cs (LookupDeclSpace): Add new method, sometimes we
want to pull the DeclSpace out of the builder_to_declspace instead
of the TypeBuilder (like in TypeContainer.FindMembers).
* class.cs (TypeContainer.FindMembers): Use LookupDeclSpace
instead of LookupTypeContainer. Fixes the crash on .NET for
looking up interface members.
svn path=/trunk/mcs/; revision=14499
* const.cs: Create our own emit context during the Definition
stage, so that constants are evaluated in the proper context, when
a recursive definition happens.
svn path=/trunk/mcs/; revision=14498
* statement.cs (Block.CreateSwitchBlock): New method. Creates a
new block for a switch section.
(Block.AddLabel, Block.LookupLabel): If we're a switch section, do
the adding/lookup in the switch block. Fixes#39828.
svn path=/trunk/mcs/; revision=14495
+2003-04-30 Miguel de Icaza <[email protected]>
+
+ * SoapHttpClientProtocol.cs: Flag the methods in the chain that
+ gets the caller method as non-inlineable.
svn path=/trunk/mcs/; revision=14490
* inssel-long32.brg, basic-long.cs, exceptions.cs: handle
a couple of missing operations for long casts, with test cases.
svn path=/trunk/mono/; revision=14484
* Binder.cs (ChangeType): Very simplistic change. Am not sure if
it is correct, but it makes RemotingCorba move along a bit more
(Remoting.Corba invokes Binder.ConvertArgs, which calls
Binder.ChangeType with an Attribute [] to Object []).
svn path=/trunk/mcs/; revision=14482
* ExternFieldRef.cs: New file - Reference to a field in another
assembly
* FieldRef.cs: New file - Reference to a field in this assembly
* GlobalFieldRef.cs: New file - Reference to a global field
* FieldInstr.cs: New file - Instruction that takes a field
instruction
* CodeGen.cs: Add method to resolve global methods
* ExternTypeRef.cs: Add method to get method references
* FieldDef.cs: Allow methods to be resolved before being defined
* IClassRef.cs: Add method to get field references.
* TypeDef.cs: Add method to resolve member fields.
* TypeRef.cs: Add method to get field references
svn path=/trunk/mcs/; revision=14476
* Encoding.cs (GetEncoding): Add all the aliases documented in the
framework. We were missing a few.
Reorganize the table. Also, convert the input name into the
lower-case - to _ before we compare against our table.
svn path=/trunk/mcs/; revision=14472
* CodeGen.cs: Store global methods and fields in hashtables to
make lookup easier. Add method to resolve global methods.
svn path=/trunk/mcs/; revision=14465
implement
* ExternMethodRef.cs: New file - Reference to a method in another
assembly
* Local.cs: New file - A Local variable
* MethodInstr.cs: New file - an instruction that takes a method
reference operand
* IClassRef.cs: Add method to get a method reference from a class
reference
* MethodDef.cs: Add ability to resolve methods before defining
them, add max stack, locals, and entry point. Make CreateSignature
method public and static so other classes can use it.
* TypeDef.cs: Store methods and fields in hashtables so they can
be easily retrieved, add method to resolve member methods.
* TypeRef.cs: Add method for resolving member methods.
svn path=/trunk/mcs/; revision=14458
* SignedXml.cs: Added property XmlResolver Resolver as per framework 1.1
documentation (no public declaration).
* Transform.cs: Added property XmlResolver Resolver as per framework 1.1
documentation (no public declaration).
svn path=/trunk/mcs/; revision=14454
* TemplateControlCompiler.cs: duh! Generate SupportAutoEvents instead
of AutoEventWireup (which is internal). Thanks to Stuart Ballard for
reporting.
svn path=/trunk/mcs/; revision=14448
* io.c (CopyFile): Copy file mode as well as file data. Based on
suggestion by Giuseppe Greco <[email protected]>, bug
42706.
svn path=/trunk/mono/; revision=14447
* DSACryptoServiceProvider.cs: Class is now sealed in v.1.1.
* KeySizes.cs: Class is now sealed in v.1.1.
* MD5CryptoServiceProvider.cs: Class is now sealed in v.1.1.
* RNGCryptoServiceProvider.cs: Class is now sealed in v.1.1.
svn path=/trunk/mcs/; revision=14438
* AllowPartiallyTrustedCallersAttribute.cs: New. Class was missing
from original 1.0 documentation (but inclufed in framework 1.0)
svn path=/trunk/mcs/; revision=14435
* list.unix: added missing file.
* System.Xml.Serialization/XmlReflectionImporter.cs: created an
instance field because GetTypeData method of TypeTranslator is not
static.
This just fixes the build, but the changes may NOT be correct.
svn path=/trunk/mcs/; revision=14432
* Added TypeTableEntry.cs.
* TypeTranslator.cs : changed for non-static use.
* XmlAttributes.cs : XmlType attribute support for GetAttributeName()
and GetElementName(). Bugfix so that if any XmlElementAttribute
exists after non-typed XmlElementAttribute then it might be ignored.
Added GetElementIsNullable().
* XmlSerializer.cs :
Introduced TypeTablePool and TypeTableEntry and erased ambiguous
Object memberObj[4].
Deserialize() now uses XmlReader.Depth to check its depth.
Serialize() for non-XmlReader arguments now always write xmldecl.
SerializeBuiltin() now explicitly requires Type to support xsi:nil,
and handles XmlQualifiedName.
Separated SerializeType () from Serialize().
Separated WriteCollectionElementMember(), IsFieldTypeSerializable(),
IsPropertyTypeSerializable() from SerializeMembers().
SerializeMembers() is now capable of null value and actual type,
which should be included by XmlIncludeAttribute and so on.
Renamed SerializeArray() to SerializeArrayContent(), and added
SerializeCollectionContent().
SerializeMembers() now requries XmlSerializerNamespaces (not used yet).
FillTypeTable() is now aware of XmlInclude attributes.
FillEnum() should not have different type table content from others.
svn path=/trunk/mcs/; revision=14429
* expression.cs (UnaryMutator.LoadOneAndEmitOp): Missing
functionality: I needed to convert the data after I had performed
the add/sub operation into the operands type size.
svn path=/trunk/mcs/; revision=14427
* ecore.cs (ImplicitReferenceConversion): When boxing an interface
pass the type for the box operation, otherwise the resulting
object would have been of type object.
(BoxedCast): Add constructor to specify the type to box as.
svn path=/trunk/mcs/; revision=14426
* DataGridColumnCollection.cs: fixed LoadViewState for the columns.
Don't save ViewState is the number of columns is 0.
svn path=/trunk/mcs/; revision=14421
* MulticastDelegate.cs (GetInvocationList): Avoid ArrayList
construction if the delegate list only has one element.
svn path=/trunk/mcs/; revision=14420
* class.c (mono_class_layout_fields): Add experimental GC aware
auto layout facility. Requires class library changes to work correctly.
(mono_class_setup_vtable): Avoid overriding explicit interface
method implementations. Fixes iface3.exe test.
* object.c (mono_class_compute_gc_descriptor): Type I can't hold an
object reference.
(mono_array_new_specific): Add MONO_ARCH_SAVE_REGS.
(mono_string_new_wrapper): Add MONO_ARCH_SAVE_REGS.
* metadata.h: Add new type classification macro which determines
whenever the type holds an object reference.
svn path=/trunk/mono/; revision=14419
* Added many new properties to Combo.cs
* Fixed the TextBox.Text get property
* Fixed some properties in Form.cs
* Small code cleanups
svn path=/trunk/mcs/; revision=14409
* mono/tests/Makefile.am:
- Compile with mcs.
- Disable some warnings.
- Added executables to clean target.
- Make testjit the default target.
- Print list of failed tests at the end of a test run.
- Abort tests when Ctrl-C is pressed.
* mono/tests/test-driver: Return with a special exit code when
SIGINT is detected.
* mono/tests/checked.cs: Make it compile.
svn path=/trunk/mono/; revision=14406
* Path.cs
(GetPathRoot) Added support for UNC paths.
(CanonicalizePath) Added optimizations per Miguel's requests.
* PathTest.cs
Even more GetFullPath () tests. Includes UNC tests.
svn path=/trunk/mcs/; revision=14383
Patches from Igor Nosyryev <[email protected]>
* TdsComm.cs: (GetString): GetString adds extra byte to a string
at end. It suppose to be '\0', but '\0' is valid value in .NET
string, so this byte must not be used.
* Tds.cs (GetDecimalValue):Method reads extra byte if a DECIMAL
field contains NULL. As a result server's response is parsed
incorrectly and this method fires an exception.
svn path=/trunk/mcs/; revision=14378
* ScrollableControl.cs : registration of "mono_scrollable_control" was moved to Control class
* win32functions.cs : new constant DEFAULT_WINDOW_CLASS
* PictureBox.cs : implemented
svn path=/trunk/mcs/; revision=14371
* BufferedStream.cs:
- Removed unusefull code.
- Added ObjectDisposedException to Position
- Dont flush if stream is allready closed.
- Flush throws also ObjectDisposedException.
* Directory.cs:
- GetFileSystemEtries: ArgumentNullException if pattern is null
* DirectoryInfo.cs: Fixed little MoveTo () bug.
* FileInfo.cs:
- Exists: If file does not exists when instance is created the
value of the Exists property does not change even if file is created
afterwards.
- Delete: If path is a directory UnauthorizedException is thrown.
- CopyTo: Now we can overwrite file if wanted.
* Path.cs:
- GetFullPath: Now throws exception when path is " ".
svn path=/trunk/mcs/; revision=14370
* TextBox.cs : use styles provided by TextBoxBase
* TextBoxBase.cs : more methods and properties were implemented
* win32enums.cs : messages and notifications for EDIT control
svn path=/trunk/mcs/; revision=14367
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>
<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:
* X.509 extensions (from public X.509 to private PKIX, Netsapce,
Microsoft, Entrust...).
</ul>
**** Status
<ul>
* Some part of the work has not yet been commited (cleaning up).
* Some part of the work has not yet been commited (still cleaning up).
* A big part of this assembly is also included inside Mono's
corlib. The class are duplicated in this assembly so the
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).
@@ -193,18 +181,19 @@
<hr>
** Assembly: Mono.Security.Win32
<b>Rational</b>
<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>.
<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>/mcs/class/Mono.Security.Win32/README</code> for
complete instructions.
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
@@ -216,10 +205,10 @@
* Wrapper classes for unmanaged versions of hash algorithms:
MD2, MD4, MD5 and SHA1 are supported. <b>note</b>: some
algorithms shouldn't be used in new design (MD4 is broken and
MD2 isn't considered safe). They are included to preserve
interoperability with older applications (e.g. some old, but
still valid, X.509 certificates use MD2).
algorithms shouldn't be used in new design (MD4 is broken,
MD2 and MD5 aren't considered safe for some usage). They are
included to preserve interoperability with older applications
(e.g. some old, but still valid, X.509 certificates use MD2).
</ul>
**** TODO
@@ -235,9 +224,13 @@
**** Ideas
<ul>
* Similar assembly could be created for <a href="http://www.openssl.org">
OpenSSL</a>, NSS, crypto++, cryptlib ... for improved
performance and/or HSM support under Linux.
* Similar assemblies (e.g. <code>Mono.Security.XXX</code>)
could be created for <a href="http://www.openssl.org">OpenSSL</a>,
Loaded 100 of 2843 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.