* typemanager.cs
(TypeManager.IsEqualGenericInstance): New static method.
(TypeManager.IsSubclassOrNestedChildOf, IsSubclassOf): This is
just used to check accessibility, so follow the rules of 26.1.6.
* expression.cs (MemberAccess.ResolveAsTypeStep): Return a
ConstructedType instead of a TypeExpression if we have type arguments.
* cs-parser.jay (typeof_expression): Support unbound generic types.
* ecore.cs (UnboundTypeExpression): New public class.
svn path=/trunk/mcs/; revision=32372
* metadata.c (do_mono_metadata_parse_generic_inst): Store the
MonoGenericInst, not the MonoType in the `generic_inst_cache'.
svn path=/trunk/mono/; revision=32368
* NewMonoXSD.cs : /language should support custom assembly qualified
name specification. This fixes bug #63081.
Also fixed usage message. "VB" is considered as valid.
svn path=/trunk/mcs/; revision=32362
* driver.c (mono_main): Call mono_trace_parse_options earlier so it
can trace methods compiled during mini_init () too.
svn path=/trunk/mono/; revision=32342
* tramp-amd64.c (amd64_magic_trampoline): Avoid patching the trampoline
code since it causes some programs to fail.
* mini-amd64.c (bb_is_loop_start): Merge changes from mini-x86.c.
svn path=/trunk/mono/; revision=32338
* reflection.c (create_dynamic_mono_image): Set ref_count to 1.
* image.c (mono_image_close): Dynamic images are GC_MALLOCed, so do
not free them with g_free.
svn path=/trunk/mono/; revision=32330
* expression.cs: Bug fixing for compiling VB script generated by ASP page - AddressOf operator in a method argument will resolve methods outside assembly
svn path=/trunk/mcs/; revision=32308
* StreamWriter.cs: Allow FileShare.Read access to the underlying
FileStream, to be compatible with MS. Fixes bug 62152.
svn path=/trunk/mcs/; revision=32306
* AssemblyBuilder.cs: (Partly) Fix delay-signing issue (#56621) when
MCS is used on the MS runtime (other part of the fix is for MCS).
svn path=/trunk/mcs/; revision=32304
* class.cs: bug fixing to get PropertyE.vb test running - search of overridable property in base class was failing
svn path=/trunk/mcs/; revision=32302
* Added standalone nunit testcases for datacontainer class.
* Currently will use MSSQL server
* New File
MSSqlTestBed.cs - Base class for MSSql testing
(similar to the mysqltestbed)
svn path=/trunk/mcs/; revision=32298
* typemanager.cs: Little correction in my last checked-in code - removed unnecessary return value from ExpandAllInterfaces function
svn path=/trunk/mcs/; revision=32295
* outline.cs: remove unused isPointer
* monop.cs: show information about the assembly that is being used
- remove unused IndentedTextWriter
- rework how Assemblies are being loaded, so that it works by trying
in order fromfile, fullname, partialname which fixes loading
from relative paths and generally should be more correct
* TODO: update
svn path=/trunk/mcs/; revision=32293
* SecurityManager.cs: Change ResolvePolicy to only care about host
provided evidence to create identity permissions.
svn path=/trunk/mcs/; revision=32291
* ZoneMembershipConditionTest.cs: Fixed tests that where failing too
soon, i.e. not where I expected them to ;).
* ZoneTest.cs: Added tests for Zone.Equals (null).
svn path=/trunk/mcs/; revision=32290
* typemanager.cs (TypeManager.IsNestedChildOf): Use
TypeManager.IsEqual() rather than `=='.
* decl.cs (DeclSpace.CheckAccessLevel): Use `tb.FullName' for
generic instances as well.
svn path=/trunk/mcs/; revision=32284
* SqlDataReader.cs - In Close method, the remaining resultsets are drained
out, to read output parameters & to avoid stream overlap
svn path=/trunk/mcs/; revision=32258
* class.cs: Support for abstract method resolution
* pending.cs: Type of pending_implementations is set to base type
Changed method names IsInterfaceIndexer and IsInterfaceMethod to IsAbstractIndexer and IsAbstractMethod respectively to make them more meaningful
svn path=/trunk/mcs/; revision=32252
* mini.c: ovfops_op_map - add STACK_OBJ case for
CONV_I
* basic.cs: add test_0_pin_string as test
case for above.
svn path=/trunk/mono/; revision=32251
* HttpWebResponse.cs: set-cookie and set-cookie2 can be present more
than once and have multiple values. Don't rely on string.split when
parsing cookie values.
* WebHeaderCollection.cs: same thing for set-cookie and set-cookie2.
Fixed GetValues (it was splitting values that contained a comma) and
changed SetInternal to handle multi-value headers.
Fixes bug #62744.
svn path=/trunk/mcs/; revision=32235
removed MoveWindow. We have GetWindowPos, so it made sense to keep
SetWindowPos as matching counterpart
- Added some X11 sanity checking
svn path=/trunk/mcs/; revision=32232
(It seems that SetBounds is just a front for SetBoundsCore and
SetBoundsCore updates the underlying window system and UpdateBounds is
responsible for updating the variables associated with the Control and
sending the events)
- Major cleanup of Size handling; we now have two sizes, client_size and
bounds. Bounds defines the window with decorations, client_size without
them.
svn path=/trunk/mcs/; revision=32231
* AppDomain.cs: Fixed typo of DefineDynamicAssembly argument.
Added call to AddPermissionRequests to pass permissions
arguments.
* Environment.cs: Added a few Fx 2.0 methods
svn path=/trunk/mcs/; revision=32228
* CodeAccessPermission.cs: Basic implementation for Demand (without
full stack trace, i.e. Assert, Deny and PermitOnly aren't considered).
Added TODO to unimplemented NET_2_0 methods.
* HostSecurityManager.cs: Added comments (as it looked not implemented
even to myself).
* PermissionSet.cs: Fixed Unrestricted when copied. Changed exception
ordering in Copy (ArgumentNullException couldn't work). Made IsEmpty
more robust.
* SecurityManager.cs: Implemented IsGranted using Assembly.Demand.
Basic implementation for policy resolution.
svn path=/trunk/mcs/; revision=32223
* ApplicationSecurityInfo.cs: Added missing interfaces.
* PolicyLevel.cs: Load policies from files, using *.default files if
policy is missing (like Fx 2.0). Fixed Resolve never to return null.
Added hardcoded policy defaults (to be updated as CAS progress) in
case no policy file, nor default files, are available.
* PolicyStatement.cs: Fixed AttributeString. Added internal static
Empty method (helper).
svn path=/trunk/mcs/; revision=32221
* reflection.c (mono_reflection_setup_internal_class): Also call
mono_class_setup_mono_type() if we already have a `tb->type.type'.
svn path=/trunk/mono/; revision=32213
* sockets.c:
* io.c: Returned handle values are the file descriptor the handle
encapsulates
* handles.c:
* handles-private.h:
* daemon.c: Reserve the range of handles that can have the same
values as file descriptors. These won't be used, but the values
will be used as file, console, pipe or socket handles. The fd to
handle mapping is done internally and is invisible to users.
Fixes bug 61828.
* wapi-private.h (_WAPI_HANDLE_VERSION): Increment, because we now
reserve a chunk of handle space.
svn path=/trunk/mono/; revision=32203
* Strings.cs: - Bug fix (#62235) - by Pedro Cardoso<[email protected]>
- Excetion handling in Join
- Support for Hex in format function (not sure whether this fix is a complete one)
svn path=/trunk/mcs/; revision=32194
with a '/' or a '-', the option and the argument pair gets split
at the first ':' or '='. For example /out:"C:\HelloWorld.exe"
gets split up as /out and "C:\HelloWorld.exe".
svn path=/trunk/mcs/; revision=32189
* SmtpClient.cs: multipart mails default body format is now the same as
the one used for single part mails instead of being forced to
"text/plain".
svn path=/trunk/mcs/; revision=32174
* certmgr.cs: Added option '-m' to add certificates to the machine
stores (default to user store). Added better handling for
UnauthorizedAccessException (e.g. non-root access to machine store).
svn path=/trunk/mcs/; revision=32149
* XmlSchema.cs : Replace XmlSchemaCollection with XmlSchemaSet that
used to maintain compiled schema state.
Simplified code a bit (Include processing).
Set IsCompiled = true only when successfully compiled.
* XmlSchemaCollection.cs : Now it totally delegates its processing
to XmlSchemaSet. Removed unused methods.
* XmlSchemaElement.cs : Added post-compiled information initializer
method, and call it before (re)Compile().
* XmlSchemaSet.cs :
- Replaced internal store from Dictionary to List, since schema
resources for one target namespace can be more than one (that's why
- Schemas(string targetNamespace) returns ICollection).
- Now global schemaset members are added per schema addition (it is
more MS compatible than before).
- Use GetSafeNs() to do targetNamespace comparison correctly.
XmlSchemaSet looks still unstable, so it will be changed again.
* XmlSchemaSimpleTypeRestriction.cs,
XmlSchemaSimpleTypeUnion.cs,
* XmlSchemaUtil.cs : Consider xdt namespace.
svn path=/trunk/mcs/; revision=32143
* DTDReader.cs : Replacing XmlSchemaDatatype .FromName(string) with
.FromName(string, string) [going to remove former one; it is not
good to support xdt:blah datatypes].
svn path=/trunk/mcs/; revision=32141
- Added handling for mouse wheel
- Added handling for key state and mouse state and position
- Now properly generates WM_xBUTTONx messages and WM_MOUSEWHEEL messages
svn path=/trunk/mcs/; revision=32118
* corlib_test.dll.sources: Added System/ApplicationIdentityTest.cs and
ApplicationIdTest.cs unit tests for NET_2_0.
svn path=/trunk/mcs/; revision=32093
* ApplicationIdTest.cs: New. Unit tests for ApplicationId (NET_2_0).
* ApplicationIdentityTest.cs: New. Unit tests for ApplicationIdentity
(NET_2_0).
* AppDomainTest.cs: Added new unit tests for AppDomain (both fx 1.1
and 2.0).
svn path=/trunk/mcs/; revision=32090
reads (?<level>error|warning) instead of (?<level>\w*). This is
so that mbas's ALPHA message doesn't get captured as a error
string.
svn path=/trunk/mcs/; revision=32075
* appdomain.c: Fix ves_icall_System_AppDomain_getDomainByID when
called during default (first) AppDomain creation. Keep track of
Evidence when loading assemblies.
svn path=/trunk/mono/; revision=32074
* corlib.dll.sources: Added System/ApplicationId.cs,
System.Reflection/ImageFileMachine.cs and PortableExecutableKind.cs,
and System.Security.Policy/ApplicationSecurityInfo.cs for NET_2_0.
svn path=/trunk/mcs/; revision=32071
* Assembly.cs: Fixed some exceptions in NET_1_1 and added some 2.0
properties (required for compiling the new unit tests).
* PortableExecutableKind.cs: New. Flags for NET_2_0.
* ImageFileMachine.cs: New. (Rather limited) enum for NET_2_0.
svn path=/trunk/mcs/; revision=32068
* culture-info.h, locales.c: fixes and chages to sue the new
optimized format of the locale data.
* culture-info-tables.h: regenerated.
svn path=/trunk/mono/; revision=32063
* Driver.cs, Entry.cs, CultureInfoEntry.cs, DateTimeFormatEntry.cs,
NumberFormatEntry.cs: create a more compact representation of the
data.
svn path=/trunk/mono/; revision=32061
* OptionDetails.cs : Well format options longform with a double-dash only if parsingMode has OptionsParsingMode.GNU_DoubleDash set
* new OptionsParsingMode.cs source, extracted from OptionList.cs - added GNU_DoubleDash member to the enum
* Mono.GetOptions.dll.sources: added OptionsParsingMode.cs
svn path=/trunk/mcs/; revision=32054
* AppDomainInitializer.cs: New Fx 2.0 class for AppDomain.
* AppDomainManager.cs: New Fx 2.0 class for AppDomain.
* ApplicationActivator.cs: New Fx 2.0 class for AppDomain.
* ApplicationId.cs: New Fx 2.0 class.
* ApplicationIdentity.cs: Fixed ToString.
* DomainManagerInitializationFlags.cs: New Fx 2.0 flags for AppDomain.
svn path=/trunk/mcs/; revision=32043
* Assembly.cs: Get default evidences when no evidences have been
supplied. Added internal methods for CAS.
* AssemblyName.cs: New constructor for NET_2_0.
svn path=/trunk/mcs/; revision=32042
* HostExecutionContext.cs: Fx 2.0 stub required for AppDomain.
* HostExecutionContextManager.cs: Fx 2.0 stub required for AppDomain.
* HostExecutionContextSwitcher.cs: Fx 2.0 stub required for AppDomain.
svn path=/trunk/mcs/; revision=32041
* Evidence.cs: Added new static internal method to create default
host evidences for an assembly.
* FileCodeGroup.cs: Added incomplete (no children) policy resolution
in order to load more complex policies.
* Hash.cs: Added ISerialization support (required for cross-domain
evidence support, like nunit).
* NetCodeGroup.cs: Added incomplete (no children) policy resolution in
order to load more complex policies.
svn path=/trunk/mcs/; revision=32040
* mini.c (mono_method_to_ir): Set stack type of LOCALLOC correctly.
* inssel-amd64.brg inssel-x86.brg: Set dreg of LOCALLOC correctly.
Fixes#62574.
* inssel-amd64.brg: Add some optimizations.
svn path=/trunk/mono/; revision=32035
* NewMonoXSD.cs : /generator (/g) option didn't work, since it usually
ends with .dll (or .exe) and regarded as mere assembly filename.
svn path=/trunk/mcs/; revision=32012
* Dll1.vb:
* Import1.vb: test importing a DLL with a byref arg
* Makefile: build support DLLs
* Test.Sources: add new test
svn path=/trunk/mcs/; revision=31995
* support.cs: Make ReflectionParameter behave
like InternalParameter for byref args.
* expression.cs: Cope with byref args in
an imported DLL
svn path=/trunk/mcs/; revision=31988
* class.cs (TypeContainer.IndexerArrayList): New inner class
container for indexers.
(TypeContainer.DefaultIndexerName): New constant for default
indexer name. Replaced all "Item" with this constant.
(TypeContainer.DefineIndexers): Moved to IndexerArrayList class.
* typemanager.cs (TypeManager.default_member_ctor): Cache here
DefaultMemberAttribute constructor.
svn path=/trunk/mcs/; revision=31974
better semblance to those defined in section 11 of VB.NET spec.
The 'expression' rule as it is now could possibly be buggy. So
another iteration is a must.
svn path=/trunk/mcs/; revision=31973
* class.cs: Event still needed to have a constructor which takes value of Implements clause.
* mb-parser.jay: Passing Implements clause value to the constructor
svn path=/trunk/mcs/; revision=31972
* interp.c: (mono_interp_init) use g_thread_supported
to stop multiple g_thread_init calls.
Also attach domain to thread like mono_jit_init
svn path=/trunk/mono/; revision=31959
* mini-sparc.c: redo change, make mono_arch_cpu_init call
mono_arch_cpu_optimizazions so sparcv9 is initialized when embedded
svn path=/trunk/mono/; revision=31954
is initialized, pack the data into 2 ints and store only that.
Furthermore, the names of each OpCode are stored in a separate string
array in the new OpCodeNames class.
* OpCodeNames.cs: The names of each OpCode are moved here to delay the
initialization of the strings, as they are not used frequently.
* OpCode.cs: Rewrote this to take in everything as 2 ints.
svn path=/trunk/mcs/; revision=31944
* AppDomain.cs: Added a new icall, getDomainByID, to get the an
AppDomain using it's Id. Completed SetAppDomainPolicy.
* Environment.cs: Bumped mono_corlib_version to 23.
svn path=/trunk/mcs/; revision=31942
* appdomain.c: Bumped MONO_CORLIB_VERSION to 23. Added new icall
ves_icall_System_AppDomain_getDomainByID to get an AppDomain by Id.
* domain-internals.h: icall declaration.
* icall.c: icall registration.
* object-internals.h: New fields in MonoAssembly for CAS.
svn path=/trunk/mono/; revision=31940
* opcode.def: Rename "stelem" to "stelem.any" and "ldelem" to "ldelem.any".
* verify.c: Renamed CEE_STELEM to CEE_STELEM_ANY and CEE_LDELEM to CEE_LDELEM_ANY.
* mini.c: Renamed CEE_STELEM to CEE_STELEM_ANY and CEE_LDELEM to CEE_LDELEM_ANY.
r=lupus
svn path=/trunk/mono/; revision=31939
* ecore.cs (FieldExpr.DoResolveLValue): If we're resolving a field
initializer, the current type is just the TypeBuilder, not the
instantiated generic type.
(FieldExpr.IsFieldInitializer): New public property.
svn path=/trunk/mcs/; revision=31937
* mini.c (ret_type_to_call_opcode): Don't use a `t' variable for
`type->type'; just modify `type' itself when dealing with enums
and generic instances.
(check_call_signature): Make `simple_type' a `MonoType *'.
svn path=/trunk/mono/; revision=31931
* class.cs (TypeContainer.EmitFieldInitializers): Set
`ec.IsFieldInitializer' while resolving the FieldExpr.
* ecore.cs (FieldExpr.DoResolveLValue): If we're resolving a field
initializer, the current type is just the TypeBuilder, not the
instantiated generic type.
svn path=/trunk/mcs/; revision=31930
* XmlConstants.cs : Added constants for "msprop" support.
* DataSet.cs : ExtendedProperties should be written in the schema.
This fixes bug #61233.
svn path=/trunk/mcs/; revision=31919
* mcs.exe.sources: $(EXTRA_SOURCES) are now here to avoid
multi platforms problem.
* compiler.csproj: Included shared files.
svn path=/trunk/mcs/; revision=31917
* StackTrace.cs: Implemented GetFrames as public virtual for NET_2_0
and internal for NET_1_0/NET_1_1 so it can be used for CAS. Removed
XML documentation and mono-ized the source code.
svn path=/trunk/mcs/; revision=31913
* corlib.dll.sources: Added System.Security.Permissions/
GacIdentityPermission.cs and GacIdentityPermissionAttribute.cs, and
System.Security.Policy/Gac.cs and GacMembershipCondition.cs to NET_2_0
* corlib_test.dll.sources: Added /Test/System.Security.Policy/
GacMembershipConditionTest.cs, GacTest.cs to unit tests.
svn path=/trunk/mcs/; revision=31908
Fix bug 60333, 55971 in the more general way
* attribute.cs (Attribute.GetAttributeArgumentExpression):
Added arg_type argument for constant conversion.
(Attribute.Resolve): Reuse GetAttributeArgumentExpression.
svn path=/trunk/mcs/; revision=31902
Fix bug #59760
* class.cs (TypeContainer ): New inner classes MethodArrayList,
OperatorArrayList, MethodCoreArrayList for typecontainer
containers. Changed class member types to these new types.
(MethodArrayList.DefineMembers): Added test for CS0659.
svn path=/trunk/mcs/; revision=31883
* Zone.cs: (Very) basic implementation of CreateFromUrl so we can
create a Zone evidence using an assembly location (file://...).
* ZoneMembershipCondition.cs: Fixed implementation wrt new unit tests.
svn path=/trunk/mcs/; revision=31882
* monop.cs: add PrintUsage so that it is reused in the few
places it is needed, add PrintHelp to display --help information
svn path=/trunk/mcs/; revision=31877
* attribute.cs: Revert patch from Raja, it introduced a regression
while building Blam-1.2.1 (hard to isolate a test case).
svn path=/trunk/mcs/; revision=31872
Fix for #55382
* class.cs:
(TypeContainer.Define): Renamed to DefineContainerMembers because of
name collision.
(MethodCore.parent_method): New member. The method we're overriding
if this is an override method.
(MethodCore.CheckBase): Moved from Method class and made common.
(MethodCore.CheckMethodAgainstBase): Moved from MemberBase and made
private.
(MethodCore.CheckForDuplications): New abstract method. For custom
member duplication search in a container
(MethodCore.FindOutParentMethod): New abstract method. Gets parent
method and its return type.
(Event.conflict_symbol): New member. Symbol with same name in the
parent class.
* decl.cs:
(MemberCache.FindMemberWithSameName): New method. The method
is looking for conflict with inherited symbols.
svn path=/trunk/mcs/; revision=31870
* Socket.cs: Update Connected state in Select and Poll; this is
when we find out that non-blocking Connects succeed. Fixes bug
62398.
svn path=/trunk/mcs/; revision=31862
* OdbcDataReader.cs - Fixed bug 61832 - Column names were not filled, due to which name based lookup of columns failed.
svn path=/trunk/mcs/; revision=31855
* mb-parser.jay:
1) Fixed the Attributes grammar starting with
opt_attributes. Introduced new rules starting with
opt_global_attributes rule - section 5.2 of VB.NET spec
2) Introduced new Tokens that correspond to reserved but unused
VB.NET keywords. Added some comments as appropriate in the
keywords hashtable of tokenizer - section 2.3 of VB.NET spec.
svn path=/trunk/mcs/; revision=31851
* codegen.cs (VariableStorage.EmitLoadAddress): New public method.
* statement.cs (Foreach.EmitFinally): Make this work for valuetypes.
svn path=/trunk/mcs/; revision=31839
* List.cs (List<T>.Enumerator): Made this a struct.
(List<T>.GetEnumerator): The public method now returns the
`Enumerator' struct.
svn path=/trunk/mcs/; revision=31837
* class.c
(mono_type_get_name_recurse): Added `gboolean include_arity'
argument specifying whether or not we should include the generic
arity in the type name.
(_mono_type_get_name): New static function.
(mono_class_setup_vtable): If we're a generic instance, don't
include the generic arity in the names of explicit method
implementations.
svn path=/trunk/mono/; revision=31835
* report.cs (Message): New enum for better error, warning reference in
the code.
(MessageData): New inner abstract class. It generally handles printing of
error and warning messages.
Removed unused Error, Warning, Message methods.
svn path=/trunk/mcs/; revision=31833
Fix for cs0592-8.cs test
* attribute.cs
(Attributable.ValidAttributeTargets): Made public.
(Attribute.ExplicitTarget): New member for explicit target value.
(Attribute.CheckTargets): Now we translate explicit attribute
target to Target here.
svn path=/trunk/mcs/; revision=31829
* dump.c (method_dor_to_token): Moved to get.c and made public.
* get.c (get_method_override): New public function.
* main.c (dis_code): Added `.override' for override methods.
svn path=/trunk/mono/; revision=31828
* ecore.cs (MethodGroupExpr): new IsBase property.
* expression.cs (BaseAccess): Set IsBase on MethodGroupExpr.
* delegate.cs (DelegateCreation): store a MethodGroupExpr
rather than an instance expr.
(DelegateCreation.Emit): Use the method group rather than
the instance expression. Also, if you have base.Foo as the
method for a delegate, make sure to emit ldftn, not ldftnvirt.
(ResolveMethodGroupExpr): Use the MethodGroupExpr.
(NewDelegate.DoResolve): Only check for the existance of Invoke
if the method is going to be needed. Use MethodGroupExpr.
(NewDelegate.Emit): Remove, DelegateCreation implements this.
svn path=/trunk/mcs/; revision=31823
* corlib.dll.sources: Added PermissionSetCollection and SecureString
in System.Security. Moved CriticalFinalizerObject to System.Runtime.
ConstrainedExecution.
svn path=/trunk/mcs/; revision=31819
* CodeGroup.cs: Added PolicyLevel parameter to internal
constructor. Added support for attribute PermissionSetName in
FromXml.
* FileCodeGroup.cs: Added PolicyLevel parameter to internal
constructor.
* FirstMatchCodeGroup.cs: Added PolicyLevel parameter to internal
constructor.
* NetCodeGroup.cs: Added PolicyLevel parameter to internal
constructor.
* PolicyLevel.cs: Throw a PolicyException when asked to save a
AppDomain policy. Use new CodeGroup constructor with "this".
* UnionCodeGroup.cs: Added PolicyLevel parameter to internal
constructor. Added Copy(bool) to copy, or not, the childs.
svn path=/trunk/mcs/; revision=31812
* expression.cs: For pointer arith., make sure to use
the size of the type, not the size of the pointer to
the type.
svn path=/trunk/mcs/; revision=31808
* mb-parser.jay: Interface method and property grammar got changed
Support for multiple implements in class
* interface.cs: Interface class has got changed
All other interface types have been removed
* class.cs: Property's Define and CheckBase method changed significantly to be in sync with Interface
* pending.cs: few related changes
* attribute.cs: few related changes
svn path=/trunk/mcs/; revision=31802
(Attribute.complained_before): New flag.
(Attribute.ResolveType, Attribute.Resolve),
(Attribute.DefinePInvokeMethod): Set it.
(Attributes.Search): Pass 'complain' to Attribute.ResolveType.
svn path=/trunk/mcs/; revision=31783
* expression.cs (Binary.ResolveOperator): Don't abort if we can't
use a user-defined operator; we still need to do numeric
promotions in case one argument is a builtin type and the other
one has an implicit conversion to that type. Fixes#62322.
svn path=/trunk/mcs/; revision=31771
* class.cs (TypeContainer.ifaces): Make this a `Type[]', not a
`TypeExpr[]' array.
(TypeContainer.GetClassBases): Return the unexpanded list of
interfaces; we expand them later.
(TypeContainer.DefineType): After creating the TypeBuilder, call
TypeManager.ExpandInterfaces() to get an expanded and resolved
list of interfaces.
* ecore.cs (TypeExpr.GetInterfaces): Removed
* generics.cs (Constraints.InterfaceConstraints): Remove.
(TypeParameter.DefineType): Call TypeManager.RegisterBuilder() to
register the interface constraints.
* typemanager.cs
(TypeManager.AddUserType): Removed the `ifaces' argument.
(TypeManager.AddTypeParameter): Likewise.
(TypeManager.AddUserInterface): Removed, was unused.
(TypeManager.RegisterBuilder): Take a `Type[]' instead of a
`TypeExpr[]' array for the interfaces.
(TypeManager.ExpandInterfaces): Call this after the TypeBuilder
has been defined, returns a list of the resolved interfaces types.
(TypeManager.GetInterfaces): Return a `Type[]', not a `TypeExpr[]'.
(TypeManager.GetExplicitInterfaces): Likewise.
svn path=/trunk/mcs/; revision=31764
* PolicyTypeLevel.cs: Removed duplicate license.
* SecurityManager.cs: Moved secuirty demands as attributes (but mcs
doesn't seem to encode them properly as they show up in corcompare).
Implemented IsGranted, ResolvePolicy (but some code is still missing
in related classes) and SavePolicy/SavePolicyLevel.
svn path=/trunk/mcs/; revision=31753
Started to do some API review.
* ICollection.cs (ICollection<T>): Added IsReadOnly, Add, Clear,
Contains and Remove.
* IList.cs (IList<T>): Removed Add, Clear, Constains, Remove,
IsReadOnly and IsFixedSize.
svn path=/trunk/mcs/; revision=31749
* expression.cs (Invocation.EmitCall): If we're invoking a method
on a type parameter, use the new `Constrained' prefix opcode.
(New.DoEmit): Also use the `Newobj' opcode for generic instances.
svn path=/trunk/mcs/; revision=31744
* mb-parser.jay : Some correction as pointed by Jambunathan,
to allow preprocessor directives after a label that may
leave it orphaned (without a explicit statement)
* testmbas/WriteOK.vb : some vb code to test this case
svn path=/trunk/mcs/; revision=31740
* mb-parser.jay : Some correction as pointed by Jambunathan,
to allow intermixing preprocessor directives between
the label and it's associated statement
svn path=/trunk/mcs/; revision=31737
failing to get incremented when the line continuation
character was appearing by itself on contiguous lines.
* mb-parser.jay: Fixed the #ExternalSource actions
so that ExternalSourceDirectivesC4.vb compiles and
reports source & line nos as expected.
* location.cs: Replaced the existing unintuitive, not
so efficient implementation of struct Location {} with
the one available in mcs with one minor difference: The
number of bits reserved for a file index in the Token
is statically fixed at 8 bits.
svn path=/trunk/mcs/; revision=31732
* get.c (dis_stringify_object_with_class): Include our generic
arguments in the method's class name.
* main.c (dis_generic_param_and_constraints): Use the new
constraints syntax.
svn path=/trunk/mono/; revision=31728
* dump.c (dump_stream_blob): Format this nicely.
(dump_table_standalonesig): New public function.
* main.c (dis_locals): If --show-tokens was requested, print the
standalone signature token.
(table_list): Added "--standalonesig".
svn path=/trunk/mono/; revision=31726
* XPathDocument.cs :
- For .NET 2.0, added a switch to support new XPathDocument2.
If switch is off, then it uses DTM.
- Implemented remaining 2.0 bits (except for Obsolete ones).
To use them in XPathDocument, set environment MONO_XPATH_DOCUMENT_2=yes
(It is still too unstable to pass all nunit tests and standalone XSLT
tests).
svn path=/trunk/mcs/; revision=31724
* XPathDocument2.cs : new IXPathNavigable implementation
XPathDocument2Navigator.cs : new XPathNavigator implementation
XPathDocument2Editable.cs : new XPathEditableNavigator implementation
To use them in XPathDocument, set environment MONO_XPATH_DOCUMENT_2=yes
(It is still too unstable to pass all nunit tests and standalone XSLT
tests).
svn path=/trunk/mcs/; revision=31722
* statement.cs (LocalInfo.Flags): Added `IsThis'.
(LocalInfo.IsThis): New public property.
(Block.EmitMeta): Don't create a LocalBuilder for `this'.
svn path=/trunk/mcs/; revision=31719
* class.cs (TypeContainer.GetClassBases): Don't set the default
here since we may get called from GetPartialBases().
(TypeContainer.DefineType): If GetClassBases() didn't return a
parent, use the default one.
svn path=/trunk/mcs/; revision=31708
This is required as setting of Today and TimeOfDay makes a libc
call - stime(). Thanks to Pablo Cardona for submitting this patch.
* Strings.cs: Fixed a bug in Format()
* DateAndTime.cs: Added support for setting Today and
TimeOfDay properties. Thanks to Pablo Cardona for
submitting a patch.
svn path=/trunk/mcs/; revision=31692
* Makefile (EXTRA_SOURCES): List the symbol writer's sources here.
* class.cs (SourceMethod): New public class, derive from the
symbol writer's ISourceMethod.
(Method): Use the new symbol writer API.
* codegen.cs (CodeGen.InitializeSymbolWriter): Take the filename
as argument and use the new symbol writer.
* location.cs
(SourceFile): Implement the symbol writer's ISourceFile.
(Location.SymbolDocument): Removed.
(Location.SourceFile): New public property.
* symbolwriter.cs: Use the new symbol writer API.
svn path=/trunk/mcs/; revision=31672
The library is now called Mono.CompilerServices.SymbolWriter.dll
and is in the Mono.CompilerServices.SymbolWriter namespace.
* MonoSymbolFile.cs (MonoDebuggerSupport.GetGuid): New public
static method.
(MonoSymbolFile.WriteString): Use the BinaryWriter's method.
(MonoSymbolFile.ReadString): Use the BinaryReader's method.
(MonoSymbolFile.Write): Write the module's Guid into the symbol
file.
* MonoSymbolTable.cs, MonoSymbolWriter.cs: Reworked the API.
svn path=/trunk/mcs/; revision=31669
new "type" attribute. Removed mono_func_* from the opcodes and updated
the "o2" attribute for the mono_* opcodes to match the values in the
existing opcode.def. Added "mono_save_lmf" and mono_restore_lmf",
which were listed in opcode.def, but not in the XML file.
r=lupus
svn path=/trunk/mono/; revision=31667
* DTMXPathNavigator.cs :
Fixed IsSamePosition(). currentAttr and currentNS are not always
the same when current is attribute or current is namespace.
* XPathNavigatorReader.cs : Fixed NodeType - 1) When attribute value is
being consumed, then node type should be Text, and 2) Root node is
usually mapped to Document, but XmlReader never returns Document,
just None (both on Initial state and EndOfFile state).
svn path=/trunk/mcs/; revision=31656
pre-processor directives. There are two positive test
cases that fail currently: ExternalSourceDirectivesC4.vb
and RegionDirectivesC1.vb
----------------------------------------------------------------------
svn path=/trunk/mcs/; revision=31655
* Parser.cs: Added ClauseType enum. Added all the statements to current_script_or_fn,
building the other block was not needed. Build the ast's for the
expressions and statements, keep track of the parent relationship.
svn path=/trunk/mcs/; revision=31631
* BaseValidator.cs: in Validate(), when the control is not visible or
enabled, return inmediately after setting IsValid to true. Fixes bug
#61831.
svn path=/trunk/mcs/; revision=31629
* mb-tokenizer.cs: Added support for #region, #externalsource
and conditional compilation pre-processor directives.
Conditonal directives currently accept only boolean literals
as conditonal expressions.
svn path=/trunk/mcs/; revision=31625
* XPathNavigatorReader.cs :
- it is used only in 2.0 classes.
- It now behaves as a fragment reader.
- Depth is optimized not to call Clone() and MoveToParent().
- AttributeCount could be counted only once in Read().
- ReadState transition is adjusted to be same as other XmlReaders.
- name strings now return "" on initial state.
svn path=/trunk/mcs/; revision=31608
gdipFunctions.cs: Corrected signature of GdipGetPropertyItem
P/Invoke function for Image.
Image.cs: Implemented GetPropertyItem() and SetPropertyItem() method.
svn path=/trunk/mcs/; revision=31605
gdipFunctions.cs: Corrected signatures of GdipGetPropertySize and
GdipGetAllPropertyItems P/Invoke function for Image.
gdipStructs.cs: Corrected MarshalTo() method of GdipPropertyItem.
Image.cs: Corrected implementation of PropertyItems property.
svn path=/trunk/mcs/; revision=31604
gdipFunctions.cs: Corrected signature of GdipGetPropertyIdList
P/Invoke function for Image.
Image.cs: Changed implementation of PropertyIdList property.
svn path=/trunk/mcs/; revision=31593
(mono/<version>/mscorlib.dll).
* appdomain.h: Added prototypes for new functions.
* internals.h: Added some prototypes.
* domain.c: When initializing the runtime, get from the executable and
the configuration files the runtime version that the app supports.
Added support methods for reading app.exe.config. Added list of versions
supported by the JIT. Added two new methods: mono_init_from_assembly,
which initializes the runtime and determines the required version from
the provided exe file, and mono_init_version, which initializes
the runtime using the provided version.
* icall.c: Get machine.config from version-specific directory.
* reflection.c: When generating an image, embed the version number
of the current runtime.
svn path=/trunk/mono/; revision=31578
* mini.c: Fix opcode mapping for STACK_MP on 64 bit platforms.
* mini.c (CEE_NEWOBJ): Call mono_array_new_va using the correct signature.
* mini.c: Use MONO_ARCH_SIGACTION on AMD64 as well.
svn path=/trunk/mono/; revision=31577
* data/Makefile.am: Removed installation of machine.config and
DefaultWsdlHelpGenerator.aspx. Those now are in a version-specific
directory.
* data/net_1_1/Makefile.am, data/net_2_0/Makefile.am: new makefiles for
installing 1.1 and 2.0 makefiles.
* runtime/net_1_1/Makefile.am, runtime/net_2_0/Makefile.am: Install mscorlib
at the correct version specific directory.
svn path=/trunk/mono/; revision=31573
* socket-io.c
(ves_icall_System_Net_Sockets_Socket_RecvFrom_internal): Check
returned sockaddr size before creating the remote address object.
Patch by Nick Vaughan ([email protected]), fixes bug
61608.
svn path=/trunk/mono/; revision=31559
* XPathDocument.cs : for .ctor() and .ctor(XmlNameTable), now it
creates Mono.Xml.XPath.XPathEditableDocument and thus supports
IXPathEditable.CreateEditor().
svn path=/trunk/mcs/; revision=31548
* Added XPathEditableDocument.cs.
- XPathEditableDocument provides IXPathEditable.
- XmlDocumentEditableNavigator implements XPathEditableNavigator
that supports CreateAttributes(), AppendChild() and so on.
It is nothing more than hack, and as an XPathEditableNavigator
provider for XPathDocument, it will be replaced by something.
svn path=/trunk/mcs/; revision=31546
* XPathEditableNavigator.cs : Implemented InsertAfter() and
PrependChild(); they are virtual, not abstract.
* XPathNavigator.cs :
Implemented many 2.0 virtual properties and methods that were
abstract in 1.x.
Implemented some Select() methods that uses IXmlNamespaceResolver.
Implemented most of ValueAsXxx() using XQueryConvert.
IsNode is always true. Implemented OuterXml and WriteSubtree() (but
actually they don't work because it depends on ReadSubtree()).
svn path=/trunk/mcs/; revision=31542
* XmlConvert.cs : Added 2.0 VerifyNMTOKEN() and internal WriteBinHex().
* XmlQualifiedName.cs : Added internal static Parse().
* XmlReader.cs : use XmlQualifiedName.Parse().
* XmlTextWriter.cs : use new XmlWriter.WriteNameInternal() etc.
* XmlWriter.cs : Added 2.0 Settings and WriteFromObject().
Implemented 2.0 virtual methods that used to be abstract in 1.x.
svn path=/trunk/mcs/; revision=31540
SoapHttpClientProtocol.cs: Implemented support for the new async model.
* InvokeCompletedEventArgs.cs: Implemented.
svn path=/trunk/mcs/; revision=31538
* XQueryParser.jay,
XPath2Expression.cs,
XQueryModuleProlog.cs,
XQueryTokenizer.cs :
Removed SchemaContext. StepExpr and XPathAxis redesign.
(Partially) updated Prolog to match with XQuery 7/23/2004 spec.
XML comment/PI/CDATA recognition in tokenizer.
svn path=/trunk/mcs/; revision=31526
* Control.cs: style. Reverted previous patch modification of
TemplateSourceDirectory (failed when the control is reparented). Use
HasControls() and Controls all over instead of _controls, as Controls
property and HasControls() might be overriden.
svn path=/trunk/mcs/; revision=31520
* Mono.Security.Protocol.Tls.Handshake.Server/TlsClientKeyExchange.cs:
- Fixed usage of the private key selection
delegate (Thanks to Matthijs ter Woord for his feedback)
svn path=/trunk/mcs/; revision=31518
* mini-ppc.c, mini-sparc.c, mini-s390.c: keep track of line
numbers in the debug info (spotted by Geoff Norton, <[email protected]>).
svn path=/trunk/mono/; revision=31516
Unit.cs : changed GetTypeFromString() and GetStringFromPixel() to use
switch statements in order to improve performance.
svn path=/trunk/mcs/; revision=31499
* DataSet.cs : on serialization to XmlWriter, XmlConvert should be
used. There were also some culture dependency problems to write int.
svn path=/trunk/mcs/; revision=31494
* mintops.def: more options on ICALL op code
* interp.c: cope with exception in ICALL ops, more of them
* transforms.c: more ICALL opcodes
svn path=/trunk/mono/; revision=31490
Added debugging support to ilasm :-)
* Makefile: Depend on Mono.CSharp.Debugger.dll (this is only
exposed in DebuggingInfo.cs, so we can easily change that).
* Driver.cs: Added --debug command line argument to create
debugging info; this'll create a .mdb symbol file.
svn path=/trunk/mcs/; revision=31489
* IInstr.cs (IInstr): Made this an abstract class and not an
interface, added a .ctor which takes a Location.
(IInstr.Location): New public readonly field.
* CodeGen.cs (CodeGen.SymbolWriter): New public property.
(CodeGen.BeginSourceFile, EndSourceFile): New public methods.
(CodeGen.EndMethodDef): Take a `Location' argument.
(CodeGen.Write): Create debugging info if the user requested it.
* MethodDef.cs (MethodDef.ctor): Added `CodeGen codegen' and
`Location start' arguments. If the user requested debugging
information, register ourselves with the symbol writer.
(MethodDef.WriteCode): Emit debugging information.
* DebuggingInfo.cs: New file.
svn path=/trunk/mcs/; revision=31488
* debug-mono-symfile.c (mono_debug_open_mono_symbol_file): Support
reading the debugging information from an external ".mdb" file.
svn path=/trunk/mono/; revision=31485
* MonoSymbolFile.cs (MonoSymbolFile.Write): Sort the methods
according to their token values.
(MonoSymbolFile.ReadSymbolFile): Support reading the debugging
information from an external ".mdb" file.
* MonoSymbolTable.cs
(SourceFileEntry): Make the .ctor protected, not internal.
(SourceFileEntry.DefineMethod): This is no longer specific to
System.Reflection(.Emit).
(MethodEntry): We don't need the class and parameter types, the
JIT is already getting this information automatically.
(MethodEntry.ClassTypeIndex): Make this obsolete.
(MethodEntry.ParamTypeIndicies): Likewise.
svn path=/trunk/mcs/; revision=31484
the new asyc model.
* ProtocolImporter.cs: Generate code for the new async model.
Added support for generating server skeletons in addition to client
proxies.
* ServiceDescriptionImporter.cs: Removed unneded check.
* SoapProtocolImporter.cs: Added support for generating server skeletons in
addition to client proxies.
svn path=/trunk/mcs/; revision=31479
* Makefile (test-generic): Correctly set the MONO_PATH to run
things in the v2.0 environment.
(test-generic-2): New target.
(test-everything): New target to run everything.
svn path=/trunk/mcs/; revision=31455
* class.cs
(TypeContainer.RegisterOrder): Removed, this was unused.
(TypeContainer, interface_order): Removed.
(TypeContainer.AddClass, AddStruct, AddInterface): Take a
TypeContainer as argument since we can also be called with a
`PartialContainer' for a partial class/struct/interface.
(TypeContainer.IsInterface): Use `Kind == Kind.Interface' instead
of checking whether we're an `Interface' - we could be a
`PartialContainer'.
(PartialContainer.Register): Override; call
AddClass()/AddStruct()/AddInterface() on our parent.
* cs-parser.jay (interface_member_declaration): Add things to the
`current_container', not the `current_class'.
* rootcontext.cs (RegisterOrder): The overloaded version which
takes an `Interface' was unused, removed.
* typemanager.cs (TypeManager.LookupInterface): Return a
`TypeContainer', not an `Interface'.
(TypeManager.IsInterfaceType): The `builder_to_declspace' may
contain a `PartialContainer' for an interface, so check it's
`Kind' to figure out what it is.
svn path=/trunk/mcs/; revision=31449
* class.cs (Class.DefaultTypeAttributes): New public constant.
(Struct.DefaultTypeAttributes): Likewise.
(Interface.DefaultTypeAttributes): Likewise.
(PartialContainer.TypeAttr): Override this and add the
DefaultTypeAttributes.
svn path=/trunk/mcs/; revision=31447
* class.cs (TypeContainer.DefineMembers): Call DefineMembers() on
our parts before defining any methods.
(TypeContainer.VerifyImplements): Make this virtual.
(ClassPart.VerifyImplements): Override and call VerifyImplements()
on our PartialContainer.
svn path=/trunk/mcs/; revision=31444
* iterators.cs (Iterator.Define): Renamed to DefineIterator().
* decl.cs (DeclSpace.Define): Removed the `TypeContainer'
argument, we can just use the `Parent' field instead.
* class.cs
(MemberBase.CheckBase): Removed the `TypeContainer' argument.
(MemberBase.DoDefine): Likewise.
svn path=/trunk/mcs/; revision=31442
* decl.cs (MemberCore.Parent): New public field.
(DeclSpace.Parent): Moved to MemberCore.
* class.cs (MethodCore.ds): Removed; use `Parent' instead.
(MemberBase.ctor): Added TypeContainer argument, pass it to our
parent's .ctor.
(FieldBase, Field, Operator): Likewise.
(EventProperty.ctor): Take a TypeContainer instead of a DeclSpace.
(EventField, Event): Likewise.
svn path=/trunk/mcs/; revision=31441
* reflection.c (mono_image_get_type_info): Only write a class
layout entry if we actually have a size or a packing size.
svn path=/trunk/mono/; revision=31434
* ImportContext.cs: Implemented.
* MapCodeGenerator.cs, SoapCodeExporter.cs, XmlCodeExporter.cs: Added new
options for 2.0. Implemented support for generating properties instead of
fields.
* XmlSchemaImporter.cs: Added support for sharing types.
svn path=/trunk/mcs/; revision=31410
reference.
* SoapProtocolImporter.cs: Create code exportes using the corrent generation
options. Added final attribute to the generated methods (so generated
methods are not virtual any more).
* WebServicesInteroperability.cs: Fixed bug when getting documents from a
reference. Added check for Import elements.
svn path=/trunk/mcs/; revision=31409
* class.cs (PartialContainer): New public class.
(ClassPart): New public class.
(TypeContainer): Added support for partial classes.
(TypeContainer.GetClassBases): Splitted some of the functionality
out into GetNormalBases() and GetPartialBases().
* cs-tokenizer.cs (Token.PARTIAL): New token.
(Tokenizer.consume_identifier): Added some hacks to recognize
`partial', but only if it's immediately followed by `class',
`struct' or `interface'.
* cs-parser.jay: Added support for partial clases.
svn path=/trunk/mcs/; revision=31403
* class.cs (MethodCore.ds): Made this a `TypeContainer' instead of
a `DeclSpace' and also made it readonly.
(MethodCore.ctor): Take a TypeContainer instead of a DeclSpace.
(Method.ctor, Constructor.ctor, Destruktor.ctor): Likewise.
(PropertyBase.ctor, Property.ctor, Indexer.ctor): Likewise.
* cs-parser.jay: Pass the `current_class', not the
`current_container' (at the moment, this is still the same thing)
to a new Method, Property, Event, Indexer or Constructor.
svn path=/trunk/mcs/; revision=31401
* cs-parser.jay (CSharpParser): Added a new `current_class' field
and removed the `current_interface' one.
(struct_declaration, class_declaration, interface_declaration):
Set `current_class' to the newly created class/struct/interface;
set their `Bases' and call Register() before parsing their body.
svn path=/trunk/mcs/; revision=31398
* class.cs (Kind): New public enum.
(TypeContainer): Made this class abstract.
(TypeContainer.Kind): New public readonly field.
(TypeContainer.CheckDef): New public method; moved here from
cs-parser.jay.
(TypeContainer.Register): New public abstract method.
(TypeContainer.GetPendingImplementations): New public abstract
method.
(TypeContainer.GetClassBases): Removed the `is_class' and
`is_iface' parameters.
(TypeContainer.DefineNestedTypes): Formerly known as
DoDefineType().
(ClassOrStruct): Made this class abstract.
* tree.cs (RootTypes): New public type.
svn path=/trunk/mcs/; revision=31397
* mini.c (print_dfn): commenting out the code that prints
the cil. With -O=deadce, this makes -v -v crash.
* cpu-pentium.md: make checkthis have a length of 2
svn path=/trunk/mono/; revision=31388
* timed-thread.c:
* threads.c: Move the destruction of the internal thread data to
after the thread has been joined. Fixes bug 61418.
svn path=/trunk/mono/; revision=31386
* DictionaryBase.cs: Rename the dictionary field to hashtable,
which causes a serialization interop bug. Fixes bug #61721.
svn path=/trunk/mcs/; revision=31382
* gmcs.exe.config: Renamed from mcs.exe.config. Added supportedRuntime
entry to make sure it runs in the correct runtime version.
svn path=/trunk/mcs/; revision=31381
features.
* ServiceDescriptionImporter.cs: Implemented some 2.0 methods.
* SoapProtocolImporter.cs: Create xml importers using the correct
ImportContext and generation options.
* WebReference.cs: It is now internal for 1.1 profile. Implemented some
properties.
* CodeGenerationOptions.cs: Made internal in 1.1 profile.
* ImportContext.cs: Implemented.
* XmlSchemaImporter.cs: Implemented some 2.0 constructors.
svn path=/trunk/mcs/; revision=31379
* argument.cs:
* expression.cs:
Little betterment in resolution of parameter with Addressof operator in method argumen
svn path=/trunk/mcs/; revision=31360
* mintops.def: rename the ICALL op codes to give a better
clue about their signature.
* transform.c (generate): use new ICALL types and add
a case for two args + a result
* interp.c (ves_exec_method_with_context): new ICALL
op codes.
svn path=/trunk/mono/; revision=31349
the code was like that and finally realized today that it was like
that because it was wrong. Wait until the opportune momement to
calculate the index sizes (after everything has been added to the
streams, and before writing anything).
svn path=/trunk/mcs/; revision=31348
* mintops.def: add MINT_DUP_VT
* transform.c (generate): cope with CEE_DUP on value type
* interp.c (ves_exec_method_with_context): implement MINT_DUP_VT
(interp_mono_runtime_invoke): don't unbox this for valuetypes
here as it is now done in the callers.
svn path=/trunk/mono/; revision=31346
* System.Xml.dll.sources: Added XQueryConvert.cs. Removed
XmlFactory.cs, XmlQualifiedNameTable.cs, IXPathChangeNavigable.cs,
XPathChangeNavigator.cs and IXmlType.cs that are removed or going to
be removed.
svn path=/trunk/mcs/; revision=31336
* BUGS-MS.txt : updated including answer excerpts from MS team.
* BUGS.txt : it turned out that some bugs I wrote as "MS bugs" are
actually my bug. Noted them.
* BuiltInDatatype.cs :
Commented out extraneous [CLSCompliant].
Switch ParseValue() argument as IXmlNamespaceResolver for 2.0, and
XmlNamespaceManager for 1.x.
Added TypeCode overrides.
* XmlSchemaDatatype.cs : Added 2.0 members.
Switch IXmlNamespaceResolver and XmlNamespaceManager.
* XmlSchemaType.cs : Added some NET_2_0 members. removed old 1.2 stuff.
svn path=/trunk/mcs/; revision=31335
will actually work. Add a Clone method so that type ref insts
aren't duplicated making them modified multiple times.
svn path=/trunk/mcs/; revision=31330
ClassRefs. This way modified types can be used. I am having alot
of trouble remembering why I actually even need this class
though.
svn path=/trunk/mcs/; revision=31329
* System.Web/HttpApplication.cs: the file not found might be a
dependency.
* System.Web.Compilation/AspGenerator.cs: the path for file was treated
as virtual, but it's physical. Fixes bug #61524.
svn path=/trunk/mcs/; revision=31324
* statement.cs (ExceptionStatement): New abstract class. This is
now used as a base class for everyone who's using `finally'.
(Using.ResolveLocalVariableDecls): Actually ResolveLValue() all
our local variables before using them.
* flowanalysis.cs (FlowBranching.StealFinallyClauses): New public
virtual method. This is used by Yield.Resolve() to "steal" an
outer block's `finally' clauses.
(FlowBranchingException): The .ctor now takes an ExceptionStatement
argument.
* codegen.cs (EmitContext.StartFlowBranching): Added overloaded
version which takes an ExceptionStatement. This version must be
used to create exception branchings.
* iterator.cs
(Yield.Resolve): "Steal" all `finally' clauses from containing blocks.
(Iterator.EmitMoveNext): Added exception support; protect the
block with a `fault' clause, properly handle 'finally' clauses.
(Iterator.EmitDispose): Run all the `finally' clauses here.
svn path=/trunk/mcs/; revision=31304
* expression.cs: Fixed resolution of overloaded functions with delegate as parameter
* ecore.cs: Changes made to stop program getting into an endless loop on not able to cast types of source to destination object.
* statement.cs: Added new argument to Expression.ConvertExplicit function call
svn path=/trunk/mcs/; revision=31303
* XmlNode.cs : When the argument node being inserted is the existing
document element, it should not result in an error (since it should
be first removed from document, thus no error should happen).
svn path=/trunk/mcs/; revision=31299
* iterator.cs: This is the first of a set of changes in the
iterator code. Match the spec more closely: if we're an
IEnumerable, then GetEnumerator() must be called. The first time
GetEnumerator() is called, it returns the current instance; all
subsequent invocations (if any) must create a copy.
svn path=/trunk/mcs/; revision=31296
* iterators.cs (Iterator.MapVariable): Don't define fields twice.
(Iterator.MoveNextMethod.DoEmit): Use `TypeManager.int32_type' as
the return type of the new EmitContext.
svn path=/trunk/mcs/; revision=31284
* iterators.cs (Iterator.Define): Moved the
`container.AddInterator (this)' call here from the .ctor; only do
it if we resolved successfully.
svn path=/trunk/mcs/; revision=31279
* argument.cs: Introduced AddressOf argument type for tracking AddressOf operator in method parameter
* expression.cs: A parameter with AddressOf operator will get converted to Delegate before overload resolution
* mb-parser.jay: Omitted two delegate creation expression grammar. This is now taken care by normal object creation expressions since Argument is capable of handling AddressOf operator now
This is a fix for bug #59555
svn path=/trunk/mcs/; revision=31274
* expression.cs (Invocation.BetterMethod): Call
TypeManager.TypeToCoreType() on all types and removed my previous
hack; we're already doig the right thing here.
svn path=/trunk/mcs/; revision=31271
* expression.cs (Invocation.BetterMethod): If no type arguments
were giving explicitly, a non-generic method is better than a
method whose type arguments we infered.
svn path=/trunk/mcs/; revision=31268
* class.c (mono_class_create_from_typedef): Insert the newly
created class into the hash table before computing the interfaces
since we could be called recursively.
svn path=/trunk/mono/; revision=31263
* cs-tokenizer.cs (handle_preprocessing_directive): Do not return
`true' for preprocessing directives that we parse. The return
value indicates whether we should return to regular tokenizing or
not, not whether it was parsed successfully.
In the past if we were in: #if false ... #line #endif, we would
resume parsing after `#line'. See bug 61604.
svn path=/trunk/mcs/; revision=31255
* decl.cs (MemberName.MakeName): Create the "class`1" names here;
use an exclamation mark (!) instead of backticks (`) again.
svn path=/trunk/mcs/; revision=31249
* typemanager.cs: Removed an old hack from Gonzalo to get corlib
building: IsEnumType should return true only for enums, not for
enums or System.Enum itself. This fixes#61593.
Likely what happened is that corlib was wrong: mcs depended on
this bug in some places. The bug got fixed, we had to add the
hack, which caused bug 61593.
* expression.cs (ArrayAccess.GetStoreOpCode): Remove an old hack
that was a workaround for the older conditions.
svn path=/trunk/mcs/; revision=31248
* assign.cs: IAssignMethod has a new interface, as documented
inline. All assignment code now uses this new api.
* ecore.cs, expression.cs: All classes which implement
IAssignMethod now use the new interface.
* expression.cs (Invocation): add a hack to EmitCall so that
IndexerAccess can be the target of a compound assignment without
evaluating its arguments twice.
* statement.cs: Handle changes in Invocation api.
svn path=/trunk/mcs/; revision=31240
This change makes this class fit into the rest of the design well
and also it takes care of a scenario when path gets modified. Old
implementation was not taking care of this.
svn path=/trunk/mcs/; revision=31236
* marshal.[ch] (mono_marshal_get_stelemref): a new wrapper
function to implement stelem.ref in managed code
* class-internals.h, debug-helpers.c: a new wrapper type
for the above.
svn path=/trunk/mono/; revision=31231
* iterators.cs: Rewrote this. We're now using one single Proxy
class for both the IEnumerable and the IEnumerator interface and
`Iterator' derives from Class so we can use the high-level API.
* class.cs (TypeContainer.AddIterator): New method.
(TypeContainer.DoDefineType): New protected virtual method, which
is called from DefineType().
(TypeContainer.DoDefineMembers): Call DefineType() and
DefineMembers() on all our iterators.
(TypeContainer.Emit): Call Emit() on all our iterators.
(TypeContainer.CloseType): Call CloseType() on all our iterators.
* codegen.cs (EmitContext.CurrentIterator): New public field.
svn path=/trunk/mcs/; revision=31218
* CodeGenerator.cs: Have the basic generator create line pragmas
for NamespaceImports, SnippetCompileUnits, and TypeMembers, all of
which had LinePragma members which were going unused.
svn path=/trunk/mcs/; revision=31213
* XmlTextReader.cs : Fixed several problems on ReadBase64();
Whitespaces should be ignored, and '=' was not skipped correctly.
It caused "unexpected end of document" error at immediate close tag.
svn path=/trunk/mcs/; revision=31209
* KeyUsageExtension.cs: Added Encode to extension so it can be used
by makecert. Fix bug # 61240. Patch provided by Ianier Munoz.
svn path=/trunk/mcs/; revision=31196
* X501Name.cs: Support for E (email) in FromString.
* X520Attributes.cs: Added X520.EmailAddress.
Both patches fix bug #61241 and were contributed by Ianier Munoz.
svn path=/trunk/mcs/; revision=31194
* driver.cs : started implementing -pkg support to match mcs (bug #58673), also corrected multiplicity for addmodule option
svn path=/trunk/mcs/; revision=31185
* Thread.cs: Hold a lock in GetNamedDataSlot. Fixes bug 61582,
based on patch by S�bastien Robitaille
([email protected]). Also fix instances of
lock(typeof(Thread)) to lock a private object instead.
svn path=/trunk/mcs/; revision=31181
* Socket.cs: Don't try and dereference a null array in Select()
(possible if a descriptor list of length 0 was passed.) Patch by
Nick Vaughan ([email protected]), fixes bug 61595.
svn path=/trunk/mcs/; revision=31178
* wait.c (test_and_own): When not waiting for all handles to
become signalled, only own and return the lowest. All the
documentation suggests that the old way was correct, but
experimentation shows it actually works like this. Patch by
S�bastien Robitaille
([email protected]), fixes bug 61511.
svn path=/trunk/mono/; revision=31157
* SslClientStream.cs: Changed lock to "new object()" and not
String.Empty (as the read/write locks points becomes the same).
* SslServerStream.cs: Changed lock to "new object()" and not
String.Empty (as the read/write locks points becomes the same).
svn path=/trunk/mcs/; revision=31151
* GCHandle.cs: throw exception if the result from AddrOfPinnedObject()
is -1 (special value returned by the runtime).
svn path=/trunk/mcs/; revision=31150
* Mono.Security/Mono.Security.Protocol.Tls/HttpsClientStream.cs: get
an HttpWebRequest so that we can use the ServicePoint it has. No
need to get the host now.
* System/System.Net/WebConnection.cs: moved loading of the ssl stream
Type to its own method. Don't create a new ssl stream if we're reusing
the connection.
* System/System.Net/WebConnectionStream.cs: ensure the number of bytes
copied in ReadAll is the expected even if the dta from the server has
extra bytes.
Partial fix for bug #61218. Still problems with POST.
svn path=/trunk/mcs/; revision=31134
* AsyncFlowControl.cs: New structure in Fx 2.0 required in
System.Security namespace.
* CompressedStackSwitcher.cs: New structure in Fx 2.0 required in
System.Security namespace.
* ContextCallback.cs: New delegate in Fx 2.0 required in
System.Security namespace.
* CompressedStack.cs: Updated API for NET_2_0 profile.
svn path=/trunk/mcs/; revision=31131
* HostProtectionException.cs: New class in Fx 2.0.
* HostSecurityManager.cs: New class in Fx 2.0.
* HostSecurityManagerFlags.cs: New enum in Fx 2.0.
* SecurityContext.cs: New class in Fx 2.0.
* SecurityContextSwitcher.cs: New structure in Fx 2.0.
svn path=/trunk/mcs/; revision=31127
the basic infrastructure for basic profile conformance checking.
* BasicProfileViolation.cs: Take normative information from the rule object.
* BasicProfileViolationCollection.cs: Added Add method.
* ServiceDescriptionFormatExtension.cs: Little fix.
* WebServicesInteroperability.cs: Implemented basic support for conformance
checking.
svn path=/trunk/mcs/; revision=31124
* CSharpCodeCompiler.cs (CompileAssemblyFromDomBatch): Include
counter in the extension so that batch compilations work.
(CompileAssemblyFromSourceBatch): Same.
svn path=/trunk/mcs/; revision=31111
* iterator.cs (IteratorHandle.IsIEnumerable): The spec explicitly
requires this to be a System.Collection.IEnumerable and not a
class implementing that interface.
(IteratorHandle.IsIEnumerator): Likewise, for IEnumerator.
svn path=/trunk/mcs/; revision=31107
* decl.cs, expression.cs, generic.cs: Use a backqoute (`) and not
an exclamation mark (!) for the generic arity to reflect the
latest spec changes; ie. use "System.Collections.Generic.IList`1".
svn path=/trunk/mcs/; revision=31106
* Evidence.cs: Implemented Equals/GetHashCode and added Clear and
RemoveType methods for NET_2_0 profile.
* FileCodeGroup.cs: Added Scope property for NET_2_0 profile.
* Hash.cs: Added static CreateMD5 and CreateSHA1 for NET_2_0 profile.
* HashMembershipCondition.cs: Implements IDeserializationCallback and
ISerializable for NET_2_0 profile.
* NetCodeGroup.cs: Add methods related to CodeConnectAccess for
NET_2_0 profile.
* PolicyException.cs: Implements _Exception for NET_2_0 profile.
* PolicyLevel.cs: Added Type property for NET_2_0 profile.
* PolicyStatement.cs: Implemented Equals/GetHashCode for NET_2_0
profile.
svn path=/trunk/mcs/; revision=31096
* ApplicationDefaultCodeGroup.cs: New class in Fx 2.0.
* ApplicationInstallScope.cs: New enum in Fx 2.0.
* ApplicationTrust.cs: New class in Fx 2.0.
* ApplicationVersionMatch.cs: New enum in Fx 2.0.
* CodeConnectAccess.cs: New class in Fx 2.0.
* CodeGroupGrantScope.cs: New enum in Fx 2.0.
* IApplicationTrustManager.cs: New interface in Fx 2.0.
* ITrustLicenseIssuerCollection.cs: New interface in Fx 2.0.
* ITrustManager.cs: New interface in Fx 2.0.
* ITrustManagerConfig.cs: New interface in Fx 2.0.
* PromptingLevel.cs: New enum in Fx 2.0.
* ProvideAssemblyEvidenceEventArgs.cs: New class in Fx 2.0.
* TrustLicenseIssuer.cs: New class in Fx 2.0.
* TrustManagerContext.cs: New class in Fx 2.0.
* TrustManagerUIContext.cs: New enum in Fx 2.0.
* TrustManagerZoneConfig.cs: New class in Fx 2.0.
svn path=/trunk/mcs/; revision=31095
* ActivationContext.cs: New class in Fx 2.0. Required for
System.Security.Policy.
* ApplicationIdentity.cs: New class in Fx 2.0. Required for
System.Security.Policy.
* IApplicationDescription.cs: New interface in Fx 2.0. Required for
System.Security.Policy.
* IHostContext.cs: New interface in Fx 2.0. Required for
System.Security.Policy.
svn path=/trunk/mcs/; revision=31094
checking the byte hashtable for duplicate entries actually
works. Old method was valid but created larger then needed
binaries.
svn path=/trunk/mcs/; revision=31088
* driver.cs: Added support for AddModule compiler option
* typemanager.cs: AddModule function will now store list of Modules instaed of ModuleBuilders. This change has been made to get LoadModule function working of driver.cs.
svn path=/trunk/mcs/; revision=31066
* mono/mini/abcremoval.c: Rewritten most of ABC removal.
* mono/mini/abcremoval.h: Rewritten most of ABC removal.
* mono/mini/build_relations_propagation_table.pl: Deleted (unneeded after the rewrite).
* mono/mini/propagated_relations_table.def: Deleted (unneeded after the rewrite).
svn path=/trunk/mono/; revision=31034
* debug-helpers.c: prevent SIGSEGV. It happened running xsp on monodoc
when no HOME env. variable was set and a NullRef was thrown in a .cctor
called from other .cctors.
svn path=/trunk/mcs/; revision=31024
* reflection.c (mono_field_get_object): If we have
`field->generic_info', take the attributes from
`field->generic_info->generic_type'.
svn path=/trunk/mono/; revision=31017
* mono-debug.c (mono_debug_init): Don't take a `MonoDomain *'.
This function must be called before initializing the runtime.
(mono_debug_init_1): New function; call this after initializing
the runtime, but before loading the assembly. It tells the
debugger to load corlib and the builtin types.
* mono-debug-debugger.c: Did some larger changes in the debugging
code; support recursive class declarations, make sure we actually
add all classes.
svn path=/trunk/mono/; revision=31011
* mini/exceptions-x86.c: delay appending the method name to the trace
until after mono_jit_info_table_find is called, as this gets the real
MonoMethod.
* metadata/debug-helpers.c: undo my previous patch and fixed the real
issue in ../mini/exceptions-x86.c
svn path=/trunk/mono/; revision=31006
* debug-helpers.c: prevent SIGSEGV. It happened running xsp on monodoc
when no HOME env. variable was set and a NullRef was thrown in a .cctor
called from other .cctors.
svn path=/trunk/mono/; revision=30995
* OptionDetails.cs : ExtractParamName method called on constructor instead of code being called on demand (maybe too late)
Fix for Bug 61188
Handling exceptions on conversion of values, and giving a message a bit friendlier
svn path=/trunk/mcs/; revision=30988
* assign.cs (LocalTemporary): Add new argument: is_address,If
`is_address' is true, then the value that we store is the address
to the real value, and not the value itself.
* ecore.cs (PropertyExpr): use the new local temporary
stuff to allow us to handle X.Y += z (where X is a struct)
svn path=/trunk/mcs/; revision=30986
SoapClientMessage.cs, SoapHttpClientProtocol.cs, SoapServerMessage.cs:
Added 2.0 stubs.
* SoapException.cs, SoapHeader.cs, SoapHeaderException.cs, SoapMessage.cs,
SoapRpcMethodAttribute.cs, SoapRpcServiceAttribute.cs: Implemented some
new methods and properties.
* WebClientProtocol.cs: uri field must be internal.
svn path=/trunk/mcs/; revision=30972
* ProgressBar.cs: Fixed spelling for `block'
drawProgressBar: renamed to `DrawProgressBar' to follow the coding
style guidelines.
Avoid using the += on rect.X, that exposed a bug in the compiler.
svn path=/trunk/mcs/; revision=30960
* AlgorithmIdentifierTest.cs: Fixed for Fx 2.0 beta1.
* CmsRecipientTest.cs: Replace Pkcs7RecipientTest.cs in Fx 2.0 beta1.
* CmsSignerTest.cs: Replace Pkcs7SignerTest.cs in Fx 2.0 beta1.
* ContentInfoTest.cs: Fixed for Fx 2.0 beta1.
* EnvelopedCmsTest.cs: Replace EnvelopedPkcs7Test.cs in Fx 2.0 beta1.
* KeyTransRecipientInfoTest.cs: Fixed for Fx 2.0 beta1.
* Pkcs9AttributeTest.cs: Fixed for Fx 2.0 beta1.
* Pkcs9DocumentDescriptionTest.cs: Fixed for Fx 2.0 beta1.
* Pkcs9DocumentNameTest.cs: Fixed for Fx 2.0 beta1.
* Pkcs9SigningTimeTest.cs: Fixed for Fx 2.0 beta1.
* SignedCmsTest.cs: Replace SignedPkcs7Test.cs in Fx 2.0 beta1.
* SignerInfoTest.cs: Fixed for Fx 2.0 beta1.
* SubjectIdentifierTest.cs: Fixed for Fx 2.0 beta1.
svn path=/trunk/mcs/; revision=30945
* AsnEncodedDataTest.cs: Fixed for Fx 2.0 beta1.
* CryptographicAttributeTest.cs: New. Moved from S.S.C.Pkcs.
* OidTest.cs: Fixed for Fx 2.0 beta1.
svn path=/trunk/mcs/; revision=30939
* locales.c (ves_icall_System_String_InternalReplace_Str_Comp):
Don't do any more processing if the matched length was 0. It was
increasing the size of the string before. Fixes bug 61167.
svn path=/trunk/mono/; revision=30932
* PeerCred.cs: Get the unix socket peer credentials.
2004-07-09 Dick Porter <[email protected]>
* Socket.cs: Slight tweak to allow unknown objects to be returned
by GetSocketOption().
svn path=/trunk/mcs/; revision=30928
* socket-io.h:
* socket-io.c
(ves_icall_System_Net_Sockets_Socket_GetSocketOption_obj_internal):
Add support for SO_PEERCRED if its available.
svn path=/trunk/mono/; revision=30927
* Added System.Data.Sql/IUdtSerializationContext.cs and System.Data.Sql/SqlFacetAttribute.cs to system.data.dll.sources
svn path=/trunk/mcs/; revision=30922
* XmlAttributeCollection.cs : In .net 2.0, it became sealed class.
* IXmlDataEvidence.cs : not "Evidences" but "Evidence".
* XmlInputStream.cs : new csc rejected implicit int->char cast.
* XmlNamespaceManager.cs : In net_2_0, LookupNamespace(string) and
LookupPrefix(string) does not require argument string as atomized.
Added HasNamespace (string, bool).
* XmlReader.cs : Added Settings and SchemaInfo properties.
* XmlReaderSettings.cs : Added NameTable. Throw XmlException when
attempt to set Schemas.
* XmlTextReader.cs : Fixed "Evidences" to "Evidence". new csc rejected
implicit int->char cast.
* XmlValidatingReader.cs : Fixed "Evidences" to "Evidence".
svn path=/trunk/mcs/; revision=30919
* mb-parser.jay: Parentheses in method declarations made optional incase of empty parameter list. Thus, a method "Sub s()" can also be declared as "Sub s"
svn path=/trunk/mcs/; revision=30918
* HttpWebRequest.cs: removed bogus Monitor.Exit.
* WebConnection.cs: use Address instead of RequestUri when checking for
the scheme in order to select the stream type. Fixes bug #61218.
svn path=/trunk/mcs/; revision=30900
* driver.c mini.h aot.c: Allow additional options to be specified with
--aot and pass them to mono_compile_assembly.
* aot.c: Add experimental code to AOT compile all loaded assemblies
on demand and save the code into a cache in the filesystem.
* aot.c: Add support for more wrapper methods.
svn path=/trunk/mono/; revision=30894
* mini.h mini.c: Move JIT icall handling to icall.c. Replace usage of
CEE_MONO_PROC<x> with CEE_MONO_ICALL. Move registration of marshalling
related icalls to marshal.c.
svn path=/trunk/mono/; revision=30887
* class-internals.h debug-helpers.c marshal.c: Add new wrapper types
for isinst and castclass wrappers.
* class-internals.h icall.c: Move registration and lookup of JIT icalls
to libmetadata from the JIT, so they could be used by the marshalling
code and the interpreter.
* marshal.c: Register marshalling related JIT icalls here instead of
in mini.c. Use CEE_MONO_ICALL instead of the family of
CEE_MONO_PROC<x> opcodes to call marshalling functions.
* metadata.h: Remove unneeded marshalling conversions.
* opcodes.c: Update for new opcodes.
svn path=/trunk/mono/; revision=30886
* CustomAttr.cs: Custom attributes are now added through the
pefile, this ensures that they get emitted properly.
* ExternTable.cs: Allow adding custom attributes to assembly
refs.
svn path=/trunk/mcs/; revision=30884
can ensure they are emitted no matter what table they are
in. Previously not all custom attributes were getting emitted.
svn path=/trunk/mcs/; revision=30882
* io.c (file_seek): If there is a high 32bit offset part, make
sure the low part isn't sign-extended. Set error codes when
returning failure. Fixes bug 61131.
svn path=/trunk/mono/; revision=30876
* statement.cs (Lock.Resolve): Set ec.NeedReturnLabel() if we do
not always return, just like we're doing in Using.Resolve().
svn path=/trunk/mcs/; revision=30875
* mono-debug.c: Check for `handle->symfile' being non-NULL everywhere.
(mono_debug_get_domain_data): Make this function static.
svn path=/trunk/mono/; revision=30872
* ReflectionHelper.cs: New method for generating map keys.
* SerializationCodeGenerator.cs: Added support for generating the serializer
contract class, needed for 2.0.
* SerializationSource.cs: Use Type[] instead of ArrayList for storing
extra types.
* SoapReflectionImporter.cs, XmlReflectionImporter.cs: Assign extra types
as Type[]. Added check that makes sure that enums being serialized are
public.
* XmlMapping.cs: Added internal GetKey method.
* XmlSerializer.cs: Added support for IXmlSerializerImplementation.
Added first bits to support loading of serializers from pre-generated
assemblies.
* XmlSerializerFactory.cs: Mostly implemeted.
svn path=/trunk/mcs/; revision=30867
* System.Security_test.dll.sources: Added a lot of existing tests
(from 1.2 documentation) that were never compiled.
svn path=/trunk/mcs/; revision=30859
* Makefile: Added a reference to Mono.Security because we'll require
many class from it for the NET_2_0 profile - but it would be better
not to have the dependency for NET_1_1.
* System.Security.dll.sources: Added a lot of existing classes (from
1.2 documentation) that were never compiled.
svn path=/trunk/mcs/; revision=30857
* StorePermissionFlags.cs: New. CAS-related enum for StorePermission.
Adding it "creates" the namespace for corcompare.
svn path=/trunk/mcs/; revision=30855
* EncryptedXml.cs: Fixed Urls for XmlEncElementUrl and
XmlEncElementContentUrl.
* X509IssuerSerial.cs: Make constructor internal so it doesn't show up
in corcompare results for NET_2_0 profile.
svn path=/trunk/mcs/; revision=30853
* AlgorithmIdentifier.cs: Added missing #if NET_2_0.
* ContentInfo.cs: Fixed OID due to changes in Mono.Security.
* EnvelopedPkcs7.cs: Fixed OID due to changes in Mono.Security.
* SignedPkcs7.cs: Fixed OID due to changes in Mono.Security.
svn path=/trunk/mcs/; revision=30852
* AccessControlActions.cs: New enum in Fx 2.0. Required for new stuff
in System.Security.Permissions. Will also "creates" the namespace for
"corcompare".
svn path=/trunk/mcs/; revision=30849
* X509Certificate.cs: Fixed NET_2_0 directives.
* X509ContentType.cs: New enum in Fx 2.0.
* X509KeyStorageFlags.cs: New flags in Fx 2.0.
svn path=/trunk/mcs/; revision=30848
* DES.cs: Fixed FeedbackSizeValue to 8.
* RC2.cs: Fixed FeedbackSizeValue to 8.
* RC2CryptoServiceProvider.cs: When key size is different from
effective key size we throw CryptographicUnexpectedOperationException.
* TripleDES.cs: Fixed FeedbackSizeValue to 8.
svn path=/trunk/mcs/; revision=30846
* SymmetricTransform.cs: Throw CryptographicException when CipherMode
CTS or OFB is being used (to match MS implementation).
svn path=/trunk/mcs/; revision=30845
* DESTest.cs: Added a new test case to check default values.
* HMACSHA1.cs: Fixed bad test (and renamed it).
* RC2Test.cs: Added a new test case to check default values.
* RijndaelTest.cs: Added a new test case to check default values.
Convert tests from NUnit 1 to 2.2.
* TripleDESTest.cs: Added a new test case to check default values.
Convert tests to NUnit 2.2.
svn path=/trunk/mcs/; revision=30842
* AllTests2.cs: Updated to NUnit 2.2 Assert.
* CipherModeTest.cs: New. Tests supported CipherMode for all
SymmetricAlgorithm included in the framework (enum contains two more
modes that aren't implemented in any Fx version).
* CryptoConfigTest.cs: Ajusted new OID (for old names) in Fx 2.0.
* CryptoStreamTest.cs: Fixed different reported exception in Fx 2.0.
Fixed a bad test.
* CspProviderFlagsTest.cs: New. Test the values of the enum.
* DSACryptoServiceProviderTest.cs: Added new tests for new public
properties and methods added in Fx 2.0. Duplicated test to import a
key pair into a disposed instance (works in Fx 2.0). Removed all
[Ignore]s in NET_2_0 as the MS class/runtime has been fixed.
* DSASignatureDeformatterTest.cs: Converted from NUnit 1 to 2.2. Fixed
different reported exception in Fx 2.0.
* DSASignatureFormatterTest.cs: Converted from NUnit 1 to 2.2. Fixed
different reported exception in Fx 2.0.
* HMACRIPEMD160Test.cs: Fixed tests using TransformFinalBlock.
* HMACSHA1Test.cs: Fixed tests so they work on both NET_1_1 and
NET_2_0 profiles (as HMACSHA1 changed it's base class).
* HashAlgorithmTest.cs: Fixed different reported exception in Fx 2.0.
Removed [Ignore] in NET_2_0 as the MS class/runtime has been fixed.
* MACTripleDESTest.cs: Fixed tests so they work on both NET_1_1 and
NET_2_0 profiles.
* PKCS1MaskGenerationMethodTest.cs: Removed [Ignore] in NET_2_0 as the
MS class has been fixed.
* PaddingModeTest.cs: Added new tests for the two new padding mode
introduced in Fx 2.0. Converted to NUnit 2.2.
* PasswordDeriveBytesTest.cs: Removed [ExpectedException] for
StrangeBehaviour test as it is fixed in Fx 2.0.
* RC2Test.cs: Changed exception from CryptographicException to
CryptographicUnexpectedOperationException for Fx 1.1/2.0.
* RIPEMD160Test.cs: Fixed tests using TransformFinalBlock.
* RSACryptoServiceProviderTest.cs: Added new tests for new public
properties and methods added in Fx 2.0. Duplicated test to import a
key pair into a disposed instance (works in Fx 2.0). Duplicated test
to sign with a null OID (Fx 2.0 use SHA1 oid in this case).
* RSAOAEPKeyExchangeDeformatterTest.cs: Changed exception for a key
exchange with no key (to match Fx 2.0).
* RSAOAEPKeyExchangeFormatterTest.cs: Changed exception for a key
exchange with no key (to match Fx 2.0).
* RSAPKCS1KeyExchangeFormatterTest.cs: Changed exception for a key
exchange with no key (to match Fx 2.0). Removed [Ignore] in NET_2_0 as
the MS class/runtime has been fixed.
* RSAPKCS1SignatureDeformatterTest.cs: Null keys, in constructor or in
SetKey method, now throw an ArgumentNullException in Fx 2.0.
* RSAPKCS1SignatureFormatterTest.cs: Null keys, in constructor or in
SetKey method, now throw an ArgumentNullException in Fx 2.0.
* Rfc2898DeriveBytesTest.cs: Typecasted a null as a string.
* SymmetricAlgorithm2Test.cs: In Fx 2.0 an empty IV now throws a
CryptographicException.
* ToBase64TransformTest.cs: Fixed different reported exception in Fx 2.0.
Removed [Ignore] in NET_2_0 as the MS class/runtime has been fixed.
svn path=/trunk/mcs/; revision=30836
* CryptoAPITransform.cs: Added the new Reset method for NET_2_0. This
is a NOP as this class isn't used by Mono (all crypto transforms are
managed).
* CryptographicException.cs: Added _Exception interface for NET_2_0
profile.
* CspProviderFlags.cs: Added new enum's members for NET_2_0.
* DSA.cs: Changed constructor to protected for NET_2_0. It is now
possible to inherit from DSA in other assemblies.
* DSACryptoServiceProvider.cs: NET_2_0 cleanup. Added interface
ICspAsymmetricAlgorithm (stub), removed (unrequired) LegalKeySizes
override, fixed visibility of PublicOnly property.
* HMACSHA1.cs: Fixed #if for NET_2_0 profile.
* KeyNumber.cs: Fixed values for new enum in Fx 2.0.
* MACTripleDES.cs: Added new Padding property to NET_2_0 profile.
* ProtectedData.cs: Added missing private constructor.
* ProtectedMemory.cs: Added missing private constructor.
* RC2CryptoServiceProvider.cs: Added UseSalt property to NET_2_0
profile. Salt usage must be added to the transforms.
* RIPEMD160Managed.cs: Removed unrequired [CLSCompliant] attributes.
* RSACryptoServiceProvider.cs: NET_2_0 cleanup. Added interface
ICspAsymmetricAlgorithm (stub), fixed visibility of PublicOnly
property.
* RijndaelManaged.cs: Use the new RijndaelManagedTransform for Fx 2.0.
* RijndaelManagedTransform.cs: New. Class is now public in Fx 2.0.
svn path=/trunk/mcs/; revision=30833
* DataContainer.cs :CheckedforNull before calling the relavant setmethods in each of the
SetItemForDataRecord method for the DateTimeClass
(patch submitted by Aleksey Demakov)
svn path=/trunk/mcs/; revision=30829
* OdbcConnection.cs - Allowed Close to be called multiple times
- Implementation of Dispose method
(patch submitted by Sebastien Robitaille), corrected a typo
svn path=/trunk/mcs/; revision=30826
* OdbcConnection.cs - Allowed Close to be called multiple times
- Implementation of Dispose method
(patch submitted by Sebastien Robitaille)
svn path=/trunk/mcs/; revision=30825
* cs-parser.jay (fixed_statement): flag this as Pinned.
2004-07-06 Miguel de Icaza <[email protected]>
* typemanager.cs (TypeManager): Removed MakePinned method, this
mechanism is replaced with the .NET 2.x compatible mechanism of
calling `ILGenerator.DeclareLocal (Type t, bool pinned)'.
* statement.cs (LocalInfo): Remove MakePinned, add Pinned property
Rename `Fixed' to `Pinned' as a flag, to distinguish from the
`IsFixed' property which has a different meaning.
svn path=/trunk/mcs/; revision=30815
* LocalBuilder.cs: Remove MakePinned, we are now going to use
ILGenerator.DeclaraLocal that takes the `bool pinned' argument.
* ILGenerator.cs (DeclareLocal): Add `pinned' version of the
method on the 2.0 profile.
svn path=/trunk/mcs/; revision=30814
* System.Web/TraceContext.cs: added internal HaveTrace property whose
value is true when the page has a Trace attribute.
* System.Web.Handlers/TraceHandler.cs: check that trace is enabled or
throw.
* System.Web.UI/Page.cs: added additional checks for saving/displaying
trace data.
* System.Web.UI/PageParser.cs: removed checks for trace enabled in
configuration files.
Thanks to David Taylor for most of these patch and the tests.
svn path=/trunk/mcs/; revision=30808
* reflection.c: more changes for the new api
* object.c: When we reflect on a field w/ a constant value, it
will not have a memory location, so we must access metadata. Also,
allow easier reading of strings so that we can read them from
the constant data.
* class.c (mono_class_layout_fields): no need for literal fields here.
* class-internals.h: api changes for const fields
* icall.c (ves_icall_get_enum_info): use new apis for const fields
svn path=/trunk/mono/; revision=30794
* liveness.c: If liveness is recomputated we need to reset the information
for each variable. This way, if the liveness range has been narrowed
by optimizations that happened after the last computation, we can return
a smaller range.
For example, if you have
{
int i = 0;
// Tons of code that does not affect i
i = foo ();
...
}
i = 0 is dead code and will be removed by SSA. However, when
linear scan gets to the code, i will still appear to be live
throughout the entire block. This prevents good register allocation.
svn path=/trunk/mono/; revision=30791
* MonoIO.cs: Add ERROR_INVALID_PARAMETER to the exception list.
Don't blow away the SetFileTime() error before the caller gets to
see it. Part of the bug fix to 60970.
svn path=/trunk/mcs/; revision=30787
* io.c (file_setfiletime): Check for underflow when converting to
time_t values. Set error codes when returning failure. Fixes bug
60970.
svn path=/trunk/mono/; revision=30786
* mono-debug.h: Increment version number to 44.
* mono-debug.c (mono_debug_add_wrapper): The second argument is
now a gpointer, rewrote this whole method.
* mono-debug-debugger.c (mono_debugger_add_wrapper): New
function. Add information about the wrapper in a new "misc table".
* mono-debug-debugger.h (MonoDebuggerSymbolTable): Added fields
for the new misc table.
svn path=/trunk/mono/; revision=30763
* mutexes.c (mutex_ops_init): Make the named mutex mutex sharable.
* daemon.c (unref_handle): Only destroy a handle if all processes
have released it, not just the current one. Fixes bug 60887.
svn path=/trunk/mono/; revision=30746
* CheckPermission.cs:
* File.cs:
* FileInfo.cs:
* MonoIO.cs:
* FileStream.cs: Give the filename when throwing
FileNotFoundException. Fixes bug 61120, based on patch from
Carlos Alberto Cesario <[email protected]>.
svn path=/trunk/mcs/; revision=30744
* File.cs: File.Move() should check that the destination doesn't
already exist. Fixes bug 60915, patch based on one from Carlos
Alberto Cesario <[email protected]>.
svn path=/trunk/mcs/; revision=30741
* mintops.h: Applied patch from Marcin Krzyzanowski ([email protected]). Add support for unaligned access on little endian machines.
* interp.c:Applied patch from Marcin Krzyzanowski ([email protected]). Fix crash seen on amd64.
svn path=/trunk/mono/; revision=30737
the object, so it can be safely marshalled again.
* RemotingServices.cs: Fixed IsObjectOutOfContext and
IsObjectOutOfAppDomain. In SetObjectUriForMarshal, take into account
contextful objects.
svn path=/trunk/mcs/; revision=30670
(OVERRIDE_TARGET_ALL): Define.
(all-recursive,$(STD_TARGETS:=-recursive)): Depend on
'platform-check' and 'profile-check'.
(all.override): New. Run two passes: once to build, and once to
sign libraries.
build/:
* rules.make (OVERRIDE_BARE_TARGETS): Remove.
(OVERRIDE_TARGET_ALL): New control for overriding the default all:
rule. If set, 'make all' will run 'all.override' from the client
Makefile.
(all): Move commands ...
(all.real): ... here. Make ordering assumptions explicit, and
parallel-safe.
(test,run-test,run-test-ondotnet,clean,install,uninstall):
Consolidate into ...
(STD_TARGETS): ... this new variable. Make ordering assumption
between -recursive and -local targets explicit.
(%-recursive): Handle W32 GNU make that has --unix as the first
argument in $(MAKE).
* README.makefiles (Special recursion needs): Update to reflect
changes.
* library.make (all-local): Build $(the_lib_signature_stamp) when
NO_SIGN_ASSEMBLY is defined.
($(gacutil),$(sn)): Consolidate rules.
(test-local,run-test-local,run-test-ondotnet-local): Likewise.
class/:
* IBM.Data.DB2/Makefile (all-local $(STD_TARGETS:=-local)):
Simplify dummy rule somewhat.
class/Npgsql/:
* Makefile (OVERRIDE_BARE_TARGETS): Remove.
($(the_lib)): Make dependency explicit.
class/corlib/:
* Makefile ($(net20bootstrap_makefrag)): Build from net_2_0
profile response file.
(gmcs): Style update.
svn path=/trunk/mcs/; revision=30643
* System.Web/TraceContext.cs: added internal HaveTrace property whose
value is true when the page has a Trace attribute.
* System.Web.Handlers/TraceHandler.cs: check that trace is enabled or
throw.
* System.Web.UI/Page.cs: added additional checks for saving/displaying
trace data.
* System.Web.UI/PageParser.cs: removed checks for trace enabled in
configuration files.
Thanks to David Taylor for most of these patch and the tests.
svn path=/trunk/mcs/; revision=30638
unknown headers don't have a serializer.
* SoapHeader.cs: Check for empty string before setting
EncodedMustUnderstand.
svn path=/trunk/mcs/; revision=30627
* SoapHeader.cs, SoapUnknownHeader.cs: Added new constructor that takes an
XmlElement with header info.
* WebServiceHelper.cs: Write the encodingStyle attribute when using the
encoded format. Added support for unknown headers.
svn path=/trunk/mcs/; revision=30622
client/external/GlobalWeatherTest.cs, client/external/HPcatalogTest.cs,
client/external/IODCODESPOSTAUXTest.cs,
client/external/TemperatureServiceTest.cs,
client/localhost/DataServiceTest.cs,
client/localhost/DuplicateArrayTestTest.cs,
client/localhost/IncludeTestTest.cs,
client/localhost/TestBinding4Test.cs: Use new nunit 2.2 api.
* server/ConvDocLitWra.asmx, server/ConvDocEncWra.asmx,
server/ConvDocLitBar.asmx, server/ConvDocLitWra.asmx,
server/ConvRpc.asmx,
* wstest.cs: Added support for generating tests cases from a template.
Useful to test the same case in all formats and protocols.
* proxies.net.xml.gz, wsdlfiles.tar.gz: Updated.
* client/localhost/ConvDocEncBarTest.cs,
client/localhost/ConvDocLitBarTest.cs,
client/localhost/ConvDocLitWraTest.cs,
client/localhost/ConvRpcTest.cs,
client/localhost/ConvDocEncBar.asmx:
Improved tests. Use new nunit 2.2 api.
* Conv.cs.template: template for ConverterService client tests.
* Conv.asmx.template: template for ConverterService services.
* templates.xml: Configuration file for generating the tests.
svn path=/trunk/mcs/; revision=30621
* mini.c: 64 bit fixes. Use LCOMPARE for comparing longs.
* inssel.brg: 64 bit fixes.
* inssel.brg inssel-long32.brg: Move 32 bit arithmetic rules to
inssel-long32.brg.
svn path=/trunk/mono/; revision=30611
* Added test case for OdbcCommand.ExecuteScalar Method
* New files:
OdbcCommandTest.cs - test suite for OdbcCommand class.
svn path=/trunk/mcs/; revision=30601
* SqlCommand.cs : In the Execute Method the commandbehavior parameters were ignored correct
these Fixes bugs 59946 and 59948.
svn path=/trunk/mcs/; revision=30561
* ControlCollection.cs: when clearing the control collection, tell the
owners about the removal. Fixes bug #60800.
svn path=/trunk/mcs/; revision=30508
* Page.cs: don't nullify _context after processing the request as there
are events not triggered yet. Fixes bug #60726.
svn path=/trunk/mcs/; revision=30507
(GAC_DIR): New define that doesn't include $(DESTDIR).
(install-data-local,uninstall-local): Use them. Use in-tree mono
runtime, not the installed one.
svn path=/trunk/mono/; revision=30506
* mono-debug.c (mono_debug_add_method): Protect the whole function
in mono_debugger_lock(), not just parts of it.
svn path=/trunk/mono/; revision=30505
* mini.c: reinstated mono_compile_get_interface_var()
on x86, too, since the change breaks the Gtk# build there as well.
svn path=/trunk/mono/; revision=30479
* VBCodeCompiler.cs : (only for windows) First check mono.bat, then
check mono.exe. It enables xsp working with mono windows installer.
svn path=/trunk/mcs/; revision=30473
* CSharpCodeCompiler.cs : (only for windows) First check mcs.bat, then
check mcs.exe. It enables xsp working with mono windows installer.
svn path=/trunk/mcs/; revision=30472
* XmlDataInferenceLoader.cs : It was not always filling relation
child table information correctly. This fixes bug #60742.
svn path=/trunk/mcs/; revision=30467
all the fields have been defined reset the order in PEAPI to the
correct order. This is done so sequential layouts actually
work. The order needs to be reset because it can be lost during
the recursive definition phase.
* MethodDef.cs: Use and ExternModule for pinvoke data's module
refs. This way we don't get duplicate module refs.
svn path=/trunk/mcs/; revision=30459
that sequentially laid out fields are laid out in the right
order. When building custom attribute tables actually emit the
custom attribute data. When writing the .sdata section make sure
to pad to its size. The constants itself will not make up the
entire section because it is aligned on 512 byte blocks.
svn path=/trunk/mcs/; revision=30458
* main.c: MS's ildasm writes '// end of class' not '// end of
type'. The python.net tool searches for this string.
svn path=/trunk/mono/; revision=30406
* driver.c: remove loop from the default optimizations: it seems to
interact badly with some of the other options (see bug #60613).
svn path=/trunk/mono/; revision=30383
focus and scale parameters in SetBlendTriangularShape and
SetSigmaBellShape methods.
* PathGradientBrush.cs: Same as above.
svn path=/trunk/mcs/; revision=30377
* Changed comments in ikvm-jni, mono/dis, mono/interpreter,
mono/metadata, mono/monoburg and mono/utils to be C90-style instead
of C99/C++-style
svn path=/trunk/mono/; revision=30337
* DefaultWatcher.cs: fixed subdirectories notifications and don't
fail when any directory is removed. Closes bug #59840.
svn path=/trunk/mcs/; revision=30313
handling of "implicit constant expression conversions". At this
point, we already know that the conversion is possible -- we're
only checking to see which is better.
svn path=/trunk/mcs/; revision=30309
* VBCodeCompiler.cs : On windows we use fixed mono.exe and mbas.exe
located by mscorlib.dll. (The same fix as that of CSharpCodeCompiler)
svn path=/trunk/mcs/; revision=30292
* threads.c (SuspendThread):
* timed-thread.c (_wapi_timed_thread_suspend): Wrap sem_wait in a
while loop. See bug 58161.
svn path=/trunk/mono/; revision=30291
(tmpinst-dir-contents, $(tmpinst)/bin/mono.bat): Remove mono.bat
in W32. Use 'mono' and 'mcs' in W32 too.
(bootstrap) [PLATFORM_WIN32]: Back to single stage bootstrap.
* runtime/net_2_0/Makefile.am (gac_assemblies_list): Don't mention
nunit.*, IBM.Data.DB2, ICSharpCode.SharpZipLib.
Fix for #60443, the GAC .DLL-Hell.
svn path=/trunk/mono/; revision=30287
gdipFunctions.cs: Corrected issue in GdiPlusStreamHelper class.
If read function was called after seek function call, the
implementation was returning data from bytes already peeked and
not from the new position in stream, which we have seeked.
svn path=/trunk/mcs/; revision=30274
other varargs tets. Someday I will get this right, I don't think
today is that day though. This fix basically just makes sure to
trim the sentinel off of signatures. Also eliminated some code
duplication.
* ParamDef.cs: Make IsSentinel work for both cases of generating a
sentinel param def.
svn path=/trunk/mcs/; revision=30233
* PageParser.cs:
* UserControlParser.cs: set the page/user control base type even when no
default directive provided. Fixes bug #60572.
svn path=/trunk/mcs/; revision=30227
* SymmetricTransform.cs: The condition to keep a block is a little
more complex so it was moved as a private property.
svn path=/trunk/mcs/; revision=30223
* appdomain.c: for paths in PrivateBinPath that are absolute, there's
no need to build a new path combining that with the application base.
Fixes bug #60442.
svn path=/trunk/mono/; revision=30217
* PageParser.cs: use default trace settings from web.config and check
if trace is only requested for local connections. Fixes bug #60180.
svn path=/trunk/mcs/; revision=30206
* CryptoStreamTest.cs: Added two tests for bug #60573. One shows that
an encryptor doesn't reduce the number of block on Write while the
second shows that a decryptor does reduce the number of blocks on
Write.
svn path=/trunk/mcs/; revision=30200
* SymmetricTransform.cs: Reduce by one the number of block when
decrypting. This operation was in CryptoStream before but is only
required for decryption (which CryptoStream can't know).
Fix bug #60573.
svn path=/trunk/mcs/; revision=30199
* CryptoStream.cs: Removed the block reduction. This seems to be done
only for Decryptor so it was moved to SymmetricTransform.
svn path=/trunk/mcs/; revision=30198
* mono-debug-debugger.c (mono_debugger_unhandled_exception): Store
the `exc' object in a static object to put it into the GC's root set.
svn path=/trunk/mono/; revision=30193
* TypeBuilder.cs: handle properly the case when SetParent()
is called (requires an updated runtime, too bug#60474).
svn path=/trunk/mcs/; revision=30185
* OdbcConnection.cs: Fix: Moved env allocation to Open method.
Disconnection & freeing handles are done in Close
method to avoid simultaneous connections.
* libodbc.cs : Added constants for odbc version.
svn path=/trunk/mcs/; revision=30161
* Added test to check whether the OdbcConnection.Close method closes
all the handles.
* New files:
OdbcConnectionTest.cs - test suite for OdbcConnection class.
svn path=/trunk/mcs/; revision=30160
* flowanalysis.cs (UsageVector.MergeChild): If we're a loop and we
neither return nor throw, reset the barrier as well. Fixes#60457.
svn path=/trunk/mcs/; revision=30150
* Uri.cs : Such ctor arg string that starts with "//" should be
regarded as a local file path that will be condensed to single "/",
so handle such path differently under Windows and under *nix.
Since '\\' is a valid path character on Unix, so we should not
replace it with '/' in LocalPath.
svn path=/trunk/mcs/; revision=30142
* UriTest.cs : As Unix paths, //foo/bar never means host == foo,
file path == /bar. So on *nix environment, interpret LocalPath of
file://foo/bar as /bar, not //foo/bar.
* test-uri-list.txt, tset-uri-props.txt : We cannot test such path
that starts with "//" in automatic one, since on Windows it is
UNC host name but on Unix it is condensed to /foo style abs path.
* UriTest2.cs : Test only on windows such path that starts with "\\".
svn path=/trunk/mcs/; revision=30141
* appdomain.c: Removed the g_free on the public key token. Now copy
the pk token string into the MonoAssemblyName buffer using g_strlcpy.
* assembly.c: Added public key token string value when loading
assemblies. Fix bug #60439.
* icall.c: Added missing informations (like public key) in
GetReferencedAssemblies. Fix#60519.
* image.h: Changed definition for public key token from const char*
public_tok_value to guchar public_key_token [17];
* reflection.c: Updated for changes to public key token.
svn path=/trunk/mono/; revision=30140
* events.c (CreateEvent): When creating an auto-reset event that
is initially owned, make sure the set count starts at 1.
svn path=/trunk/mono/; revision=30137
All changes need to be reviewed and committed.
I have pulled off Rob's changes on FileSystem.cs temporarily. I will
remerge it another day or two.
svn path=/trunk/mcs/; revision=30131
* DataSet.cs : Fixed ReadXml(). When ReadMode is ReadSchema and the
schema is inside the document element (as created in XmlWriteMode
.WriteSchema), it should read schema from that non-document element.
This fixes one case reported in bug #60470.
svn path=/trunk/mcs/; revision=30130
* mono-debug.h, mono-debug-debugger.h, debug-mono-symfile.h:
mark headers as not supported, they are installed only for use by the
debugger.
svn path=/trunk/mono/; revision=30119
* MutexTest.cs: No need to ignore these tests now
* ThreadTest.cs: You can't Start() a thread that's been aborted.
Improve state tests.
svn path=/trunk/mcs/; revision=30108
* Consts.cs (UnmanagedType_80): While bootstrapping, refer to new
internal bootstrap-only define in UnmanagedType.
svn path=/trunk/mcs/; revision=30097
* configure: Patch from Mariano Su��rez-Alvarez
<[email protected]> to make configure accept jhbuild style
/prefix /usr options, and to continue past unknown options. Currently
this patch is a bit spammy with multiple unknown options, anyone
who is interested is welcome to fix this.
svn path=/trunk/mcs/; revision=30093
* exception.c (mono_get_exception_security): It's in
"System.Security", not in "System".
* mono-debug-debugger.c (mono_debugger_add_builtin_types): Add all
the exception classes.
svn path=/trunk/mono/; revision=30067
* mini/mini-exceptions.c
(mono_handle_exception): Added `gpointer original_ip' argument.
After calling mono_unhandled_exception(), call
mono_debugger_unhandled_exception() and if that returns true,
restore the context and return.
svn path=/trunk/mono/; revision=30057
* mini-ppc.c: prefer the use of relative branches so
they won't need to be patched in aot code (patch from Patrick Beard).
svn path=/trunk/mono/; revision=30046
* aot.c: patch from Patrick Beard to make the output assembly
more correct for the MacOSX assembler. Small tweak to
generate sane images on Linux/PPC, too.
svn path=/trunk/mono/; revision=30045
* DirectoryInfoTest.cs,
DirectoryTest.cs,
FileStreamTest.cs,
FileSystemInfoTest.cs:
Replace all '/' in path with Path.DirectorySeparatorChar.
svn path=/trunk/mcs/; revision=30037
* reflection.c: Load the assembly in mono_reflection_type_from_name,
if it was not loaded before. Fix parts of #60439.
svn path=/trunk/mono/; revision=30036
* marshal.c, icall.c, object.c, image.c: fix the runtime_invoke ()
code that was broken since Ben's change: wrappers are now
dependent on the method signature only again.
svn path=/trunk/mono/; revision=30032
(all-local): ... here.
* library.make ($(the_lib), $(test_lib), $(btest_lib), all-local):
Likewise.
(LIBRARY_SNK): New default define. Allows library to be signed
with a key other than mono.snk.
($(the_lib_signature_stamp)): New stamp file created when an
assembly is signed.
(install-local, uninstall-local, maybe-sign-lib): Set MONO_PATH.
svn path=/trunk/mcs/; revision=30024
* mono-sha1.c : close opened file in case of successful read. This
saves a bunch of System.Reflection Emit failures under windows.
svn path=/trunk/mono/; revision=30019
a statement. Temporarily disabled object_literal in order to test
the block structure and continue and break statements.
svn path=/trunk/mcs/; revision=30002
need to jump if the expression evaluates to true. Continue class,
replaced ParentIsItrStm with InLoop, emit jump to correct
place. Break class, implemented Resolve; deleted
ParentIsCorrect. DoWhile, While classes, set LoopBegin and
LoopEnd. While class, set LoopBegin and LoopEnd.
svn path=/trunk/mcs/; revision=29999
break and continue in order to jump to the desired place. Added
check for converting to boolean if we encounter an identifier (at need_convert_to_boolean).
svn path=/trunk/mcs/; revision=29998
* XmlDataInferenceLoader.cs : Kindly reject xml schema document as a
inference target. For bug #60470. (MS does not support schema
document inference and results in unconsistent dataset structure.)
svn path=/trunk/mcs/; revision=29977
* DataTableCollection.cs : reset the table's DataSet to null when
removing a table from this collection.
* DataTable.cs : When Namespace is not specified explicitly, its
Namespace property reflects DataSet's Namespace if exist.
This fixes bug #60469.
svn path=/trunk/mcs/; revision=29975
* class.h, class.c: more accessors.
* metadata.h, metadata.c: prepare for hiding MonoType and
MonoMethodSignature: people should use the accessors from now on
outside of the tree.
svn path=/trunk/mono/; revision=29946
list of typerefs that matches the algorithm for creating vararg
signatures from paramdefs. This is used when creating methodref
signatures.
* MethodRef.cs: Use the new CreateVarargSignature method to create
the methods signature if it is a vararg method.
svn path=/trunk/mcs/; revision=29945
* event-private.h:
* events.c: Auto-reset events need to release one thread for each
time SetEvent() is called. Fixes bug 41292.
* threads.h:
* mutex-private.h:
* mutexes.c: Scan for mutexes that are still locked by a thread
when it exits. Fixes the MS demo app linked by bug 41292.
* wait.c (test_and_own): Make sure a handle is signalled before it
is owned.
svn path=/trunk/mono/; revision=29909
* IProcessInitializer.cs: added missing marshalling attributes
* IRegistrationHelper.cs: added missing marshalling attributes
* ImpersonationLevelOption: fixed enum field values to match MS.NET
* InstallationFlags: fixed enum field values to match MS.NET
* PropertyLockMode: fixed enum field values to match MS.NET
* PropertyReleaseMode: fixed enum field values to match MS.NET
* RegistrationHelper: added missing marshalling attributes
* RegistrationHelperTx: added missing marshalling attributes
* SynchronizationOption: fixed enum field values to match MS.NET
* TransactionIsolationLevel: fixed enum field values to match MS.NET
* TransactionVote: fixed enum field values to match MS.NET
svn path=/trunk/mcs/; revision=29895
* Makefile.am: process data before runtime, so the config file is
installed and gacutil has a chance to work (finding symlink).
svn path=/trunk/mono/; revision=29890
* mini.c, mini.h, mini-ppc.c: handle varargs methods with a special
case until bug #59509 is fixed (shows up in #60332).
svn path=/trunk/mono/; revision=29884
that mono_trace_init is called if mono_tracev is our first trace
statement is mono_tracev. Little indentation fix.
svn path=/trunk/mono/; revision=29878
* locales.c: Tell ICU the lengths of strings, it can cope with
embedded \0 then. Fixes bug 59274, and doesn't break bug 55822.
svn path=/trunk/mono/; revision=29875
* XmlDataDocumentTest2.cs : When line ending is LF, CR is preserved.
To reproduce on windows too, set NewLine as LF.
svn path=/trunk/mcs/; revision=29874
Test if files exist in the mcs/ tree before creating symlinks.
Remove symlinks before creating them again.
* runtime/net_1_1/Makefile.am (mscorlib.dll $(gac_assemblies)): Likewise.
* runtime/net_2_0/Makefile.am (mscorlib.dll $(gac_assemblies)): Likewise.
Make real bug more explicit.
svn path=/trunk/mono/; revision=29871
* DataContainer.cs - CheckedforNull before calling the relavant setmethods in each of the
SetItemForDataRecord method for all the classes.
svn path=/trunk/mcs/; revision=29866
* DateTime.cs :
- Added new common pattern "yyyy/M/dZ"
- empty string should not be compared in _ParseEnum()
- Use culture independent string comparison in _ParseString()
- Whitespace removal should be checked after '..' token check (some
pattern such like es-ES LongDatePattern contains spaces in '..').
- formats null check should be done (to throw ArgumentNullException)
in ParseExact().
- When specified one character format, dates are incorrectly regarded
as to use invariant culture.
svn path=/trunk/mcs/; revision=29863
* DateTimeTest.cs : Improved CultureIndependentTests(). Error message
contains specific locale and error location. Verified by run-test-
ondotnet and commented out X509-like pattern.(not all culture passes)
svn path=/trunk/mcs/; revision=29861
bootstrap library, we have to keep this fix even if the in-tree
mcs compiler is fixed.
* UCOMIEnumConnections.cs: Replace '(UnmanagedType) 80' in
attribute field initialization with Consts.UnmanagedType_80.
* UCOMIEnumMoniker.cs: Likewise.
* UCOMIEnumString.cs: Likewise.
* UCOMIStream.cs: Likewise.
* UCOMITypeInfo.cs: Likewise.
* UCOMITypeLib.cs: Likewise.
svn path=/trunk/mcs/; revision=29856
* CONNECTDATA.cs: have layout and charset match MS.NET
* DISPPARAMS.cs: have layout and charset match MS.NET
* ELEMDESC.cs: have layout and charset match MS.NET
* EXCEPINFO.cs: have layout and charset match MS.NET
* IDLDESC.cs: have layout and charset match MS.NET
* PARAMDESC.cs: have layout and charset match MS.NET
* STATSTG.cs: have layout and charset match MS.NET
* TYPEATTR.cs: have layout and charset match MS.NET
* TYPEDESC.cs: have layout and charset match MS.NET
* TYPELIBATTR.cs: have layout and charset match MS.NET
* VARDESC.cs: have layout and charset match MS.NET
svn path=/trunk/mcs/; revision=29848
* SqlConnection.cs - handled null being passed as a connectionstring
- checked for minimal set of parameters in connectionstring.
- handled unrecogonized keywords similar to MS.NET
svn path=/trunk/mcs/; revision=29846
* KeyInfoX509Data.cs: Removed old internal IssuerSerial for the
undocumented structure (now documented, and public, in Fx 2.0).
* X509IssuerSerial.cs: Use structure as public in NET_2_0 and as
internal before that.
svn path=/trunk/mcs/; revision=29817
* statement.cs (EmitCollectionForeach): Account for the fact that
not all valuetypes are in areas which we can take the address of.
For these variables, we store to a temporary variable. Also, make
sure that we dont emit a `callvirt' on a valuetype method.
svn path=/trunk/mcs/; revision=29812
* SqlMoney.cs: Removed old "hack" to correct scale after rounding as
Decimal has been fixed (in fact this code was moved and adapted for
Decimal as it was better than the previous fix).
svn path=/trunk/mcs/; revision=29802
* SafeArrayRankMismatchException.cs: marked serializable to match
MS.NET
* SafeArrayTypeMismatchException.cs: marked serializable to match
MS.NET
svn path=/trunk/mcs/; revision=29801
* Decimal.cs: Fixed regression in System.Data caused by the recent
changes. Adapted (and moved) the code to correct the scale from
SqlMoney.
svn path=/trunk/mcs/; revision=29795
* relaxngtest.cs : Now we can test all cases (though resulting in
failure). Catch unexpected exception and report them as such.
svn path=/trunk/mcs/; revision=29782
- Table stores default values for columns in soecial default values row. It is allocated once (in NewRow)
- DataTable.Copy rewrited. It works with uninitialized rows for better perfomance.
- OnRemoveColumn has nothing to perform by now.
svn path=/trunk/mcs/; revision=29765
- Changed access of original, current and proposed indexes to internal.
- ColumnErrors reviewed : now column errors stored in ArrayList and allocated on demand only.
- Added new DataRow constructor that creates uninitialized DataRow (used in DataTable.Copy).
- Use DataContainer.CopyValue and default values row for faster set of default values in row.
- SetColumnValue become CheckValue. Now it does not changes the value, but only checks for its correctness. Care about Null and DBNull values is now in DataContainer.
- Use DataColumn.AutoIncrementValue and GetInt64 for faster set of autoincrement value.
- Use Datacontainer.CopyValue and default values row to speed up CheckChildRows.
- Fix in CopyState : clone column errors.
- Removed CollectionChanged and onColumnRemoved since we are not using both of them anymore.
svn path=/trunk/mcs/; revision=29763
- Fix : Add() now delegates to Add(DataColumn).
- autoIncrement list holds DataColumn objects, and not just column names.
svn path=/trunk/mcs/; revision=29760
- AutoIncrementValue fixes. Now AutoIncrement uses DataContainer.GetInt64 to avoid boxing.
- DefaultValue fixes. Default value from now on is also stored in special record in DataTable, so we're able to set default value for the column faster (typed).
svn path=/trunk/mcs/; revision=29759
- Store and retreival of null and DBNull values reviewed.
- Added GetInt64 to support AutoIncrement of DataColumn.
- Added missing CopyValue method to BitDataContainer.
- Added FillValues method to propagate single value to whole container.
svn path=/trunk/mcs/; revision=29753
(bundle_obj): New conditional define.
(BUILT_SOURCES): Remove.
($(bundle_srcs)): Make parallel-make safe.
(libmonoruntime_la_LIBADD): Make unconditional.
(libmetadata_la_LIBADD): Make unconditional. Refer to $(bundle_obj).
(libmetadata_la_SOURCES): Don't refer to $(bundle_srcs).
svn path=/trunk/mono/; revision=29750
with MS.NET, removed TODO
* AcknowledgeTypes.cs: fixed enum field values to correspond with
MS.NET, removed TODO
* CryptographicProviderType.cs: fixed enum field values to correspond
with MS.NET, removed TODO
* EncryptionAlgorithm.cs: fixed enum field values to correspond with
MS.NET, removed TODO
* EncryptionRequired.cs: fixed enum field values to correspond with
MS.NET, removed TODO
* GenericAccessRights.cs: fixed enum field values to correspond with
MS.NET, removed TODO
* HashAlgortihm.cs: fixed enum field values to correspond with
MS.NET, removed TODO
* MessagePriority.cs: fixed enum field values to correspond with
MS.NET, removed TODO
* MessageQueueErrorCode.cs: fixed enum field values to correspond
with MS.NET, removed TODO
* MessageQueueException.cs: marked serializable
* MessageQueuePermissionAccess.cs: fixed enum field values to
correspond with MS.NET, removed TODO
* MessageQueueTransactionStatus.cs: fixed enum field values to
correspond with MS.NET, removed TODO
* MessageQueueTransactionType.cs: fixed enum field values to
correspond with MS.NET, removed TODO
* MessageType.cs: fixed enum field values to correspond with MS.NET,
removed TODO
* StandardAccessRights.cs: fixed enum field values to correspond
with MS.NET, removed TODO
* TrusteeType.cs: fixed enum field values to correspond with MS.NET,
removed TODO
svn path=/trunk/mcs/; revision=29741
* DirectoryServicesPermissionEntry.cs: fixed serialization
compatibility with MS.NET
* DirectoryServicesPermissionEntryCollection.cs: marked serializable,
added TODO for serialization compatibility
* ReferralChasingOption.cs: changed enum field values to match MS.NET
svn path=/trunk/mcs/; revision=29739
* SignatureDescriptionTest.cs: Added missing [TestFixture] :( and
cases for the previously undocumented .ctor(SecurityElement) - which
is now, backwardly, documented in VS.NET 2005.
svn path=/trunk/mcs/; revision=29730
* DateTime.cs : Incorrect maxvalue comparison in ToUniversalTime().
Fixed ToLocalTime() as well, but it does check range for MinValue.
svn path=/trunk/mcs/; revision=29729
- check method/ctor parameters
- use target attribute for attributes in key for attributes
(if available). This allows us to differentiate between method
and return type attributes for methods
- check field values (for literal fields)
- LoadExtraData was not always called, causing certain signature
mismatches not to be reported
- now also check charset, layout and serializability of
types
* mono-api-info.cs:
- check field values of literal fields
- document parameters of method/ctors
- also output attribute applied to return type of methods
- output charset, layout and flag indicating whether type
is serializable
svn path=/trunk/mcs/; revision=29706
* timed-thread.c: Call the thread cleanup exit routine before taking
the join mutex, because this could deadlock if another thread tries
to join in the meantime. This fixes the hang-at-exit problem seen
on macos.
svn path=/trunk/mono/; revision=29689
gdipFunctions.cs: Modified Function signature for
GdipSaveImageToDelegate_linux() method for saving tiff images
to streams.
image.cs: Modified function call GdipSaveImageToDelegate_linux()
with new signature.
svn path=/trunk/mcs/; revision=29684
* test-uri-list.txt, test-uri-props.txt, test-uri-props-manual.txt :
The autogenerated test contained Unix path case. Moved to manual.
svn path=/trunk/mcs/; revision=29677
* Added Odbc tests using MySql test database
* New files:
ChangeLog
OdbcDataReaderTest.cs - test suite for OdbcDataReader class.
OdbcDataAdapterTest.cs - test suite for OdbcDataAdapter class.
svn path=/trunk/mcs/; revision=29668
* Added standalone NUnit test cases for MySql db related tests.
* Created sub-directory for System.Data.Odbc
* New Files :
MySqlTestBed.cs - Base class for all MySql db based tests.
contains instructions to run these tests.
MySqlTestBed.dll.config - configurable parameters to this test suite.
System.Data.Odbc/OdbcDataReaderTest.cs
System.Data.Odbc/OdbcDataAdapterTest.cs
svn path=/trunk/mcs/; revision=29666
build and populate net_2_0 profile.
(populate-runtime-subdir): Make into subroutine that takes list of
profiles to populate.
(faststrap): Update.
svn path=/trunk/mono/; revision=29661
* Makefile.am (bootstrap): Define to fasterstrap for W32.
(MCS_DIRS, MCS_FILES): Don't refer to Mono.CSharp.Debugger in W32.
(tmpinst-dir): Change sub-make invoke to ...
(tmpinst-dir-contents): ... this. Build 'mono.bat' in W32 instead
of 'mono' and 'mcs'.
($(tmpinst)/bin/mono.bat): New.
svn path=/trunk/mono/; revision=29659
* ecore.cs (MethodGroupExpr.Name): Revert Martin's patch.
The name needs to have the actual name of the method in order
for other tests (such as the one in OverloadResolve for Invoke
on a delegate) to work. As well, it does not really help
error reporting because the method group had multiple methods.
svn path=/trunk/mcs/; revision=29656
* UriTest2.cs : LocalPath values should vary depending on the running
environment - so replace '/' and '\\' each other.
svn path=/trunk/mcs/; revision=29655
* FloatingPointFormatter.cs: Fixed ToString which doesn't use banker's
rounding (which is the rounding provided by Math.Round). This fix bug
#60111. The code (new Round methods) should be moved elsewhere (as it
may also be required elsewhere) post Mono 1.0.
svn path=/trunk/mcs/; revision=29653
* System.Web.Compilation/BaseCompiler.cs: try getting the Type from
the cache before doing the real work. Remove temporary files right after
successful compilation.
* System.Web.Compilation/CachingCompiler.cs: added GetTypeFromCache.
* System.Web.Compilation/UserControlCompiler.cs: nothing interesting.
* System.Web.Compilation/WebServiceCompiler.cs: try getting the Type
from the cache before doing anything else. Remove temp files on
sucessful compilation.
* System.Web.UI/SimpleWebHandlerParser.cs: implemented
GetCompiledTypeFromCache. When we read the default directive, check the
cache for the Type and if present, don't keep reading and store the
type found.
* System.Web.UI/WebHandlerParser.cs:
* System.Web.UI/WebServiceParser.cs: try GetCompiledTypeFromCache
before actually compiling.
svn path=/trunk/mcs/; revision=29652
assemblies. gacutil will always make locales lowercase when
installing so this effectively makes them case insensitive.
svn path=/trunk/mono/; revision=29647
appened one. The reason for this is that the runtime expects it,
and existing makefiles user -gacdir $(destdir)/$(libdir) so auto
appending it without checking would break many things.
svn path=/trunk/mcs/; revision=29644
* ConvertTest.cs: Changed compare between Decimals (from a string
compare to Decimal.Equals) because the issue wasn't related to the
Convert class. See #60227 for more details.
svn path=/trunk/mcs/; revision=29632
* CaseInsensitiveHashCodeProvider.cs: added TODO for serialization
* SortedList.cs: added TODO for serialization
* Stack.cs: added TODO for serialization
svn path=/trunk/mcs/; revision=29626
* Decimal.cs: Fixed scale after Round (a different scale is correct
from a math point of view but affect the string representation of the
value). Note: other operations also have scale problems!
* DecimalFormatter.cs: Fixed FormatGeneral to match Fx 1.1 output.
svn path=/trunk/mcs/; revision=29625
* GregorianCalendar.cs:: added TODO for serialization
* HebrewCalendar.cs: added TODO for serialization
* HijriCalendar.cs: added TODO for serialization
* JapaneseCalendar.cs: added TODO for serialization
* JulianCalendar.cs: added TODO for serialization
* KoreanCalendar.cs: added TODO for serialization
* TaiwanCalendar.cs: added TODO for serialization
* ThaiBuddhistCalendar.cs: added TODO for serialization
svn path=/trunk/mcs/; revision=29624
* StringBuilder.cs: added TODO for serialization
* UnicodeEncoding.cs: added TODO for serialization
* UTF7Encoding.cs: added TODO for serialization
* UTF8Encoding.cs: added TODO for serialization
svn path=/trunk/mcs/; revision=29621
* DecimalTest.cs: Added test to ensure we keep/output the decimals
precision (#59425). Added tests to see how many decimals are supported
in "G" before switching to "E".
svn path=/trunk/mcs/; revision=29610
* monitor.c: New method mono_monitor_try_enter_internal, which takes a new
parameter which allows to choose whether the wait can be interrupted or
not. Also added the method mono_monitor_enter(), which locks the monitor
using an infinite wait and without allowing interruption.
In the Monitor.Enter and Wait icalls, retry the lock if the wait is
interrupted.
* object.h: Added new fields in MonoThread. suspend_event holds the event
used to susped/resume the thread. synch_lock is the lock object to use for
modifying the thread state.
* threads.c: Use the new synch_lock object for locking, instead of "this",
which can generate deadlocks.
Moved thread state change in Thread.Sleep and Thread.Join from managed
to unmanaged code. This avoids a deadlock when the thread was suspended
just after acquiring the thread lock.
In general, use mono_monitor_enter instead of mono_monitor_try_enter.
Implemented Thread.Suspend using an event instead of ThreadSuspend,
which is not fully implemented in the io-layer.
* socket-io.c: Only try IPv6 DNS lookup if IPv4 fails.
svn path=/trunk/mono/; revision=29609
Removed state changes in Sleep and Join. The state change is now done
in the icall. For accessing to internal fields lock with synch_lock
instead of this, which can be a source of deadlocks.
svn path=/trunk/mcs/; revision=29605
gdipFunctions.cs: Added delegate and StreamHelper functions, Close
and Size, required by TIFFCodec. Modifed Function signature for
GdipLoadImageFromDelegate_linux() method.
image.cs: Modified function call GdipLoadImageFromDelegate_linux()
with new signature.
svn path=/trunk/mcs/; revision=29587
used. So we can easily add stuff to modules and assemblies. Fix
the nometadata flag, it should be set when there is NO metadata
not when there is metadata.
svn path=/trunk/mcs/; revision=29562
* ExternTable.cs: Add ExternModule refs.
* ExternTypeRef.cs: Take an ExternRef which can be either an
assmebly ref or a module ref.
svn path=/trunk/mcs/; revision=29559
* NameObjectCollectionBase.cs: Now use IComparer to compare keys. This
completes a TODO and fix Remove in NameValueCollection.
svn path=/trunk/mcs/; revision=29550
* ResourceReaderTest.cs: Un-ignored an old test case (probably fixed a
long time ago). Converted tests to NUnit 2.x format to be more
specific when checking exceptions.
svn path=/trunk/mcs/; revision=29530
* TimeSpan.cs: Fixed timespan with large values for hours or minutes
(overflow is only checked for days but can also occurs in hours and
minutes which uses Int32 when multiplying). The new results match MS
implementation.
svn path=/trunk/mcs/; revision=29520
* TimeSpanTest.cs: Added more cases with MinValue and MaxValue for
each parameter of the constructor. Some tests are ignored because
they are too long to run (but useful when debugging).
svn path=/trunk/mcs/; revision=29517
* configure.in: better explain that --with-nptl is not related to
NPTL, but to __thread support. Set sigaltstack support to off by
default.
svn path=/trunk/mono/; revision=29509
* file-io.c (ves_icall_System_IO_MonoIO_FindFirstFile): It was
possible to return successfully when '.' or '..' were the only
entries in a directory, but were skipped. The MonoIOStat was not
filled in in that case. Now return ERROR_NO_MORE_FILES instead.
Fixes bug 59574.
svn path=/trunk/mono/; revision=29496
differ from $(response).
(post_process): Remove, now that PLATFORM_CHANGE_SEPARATOR_CMD is
unconditional.
($(cmp_response),$(res_response)): Update.
svn path=/trunk/mcs/; revision=29491
(PLATFORM_TWEAK_CORLIB_SOURCES): Remove.
(platform-check): Avoid bash-ism.
* library.make: Simplify uses of $(patsubst x,y,$(foo)) to $(foo:x=y).
(core_sourcefile): Rename back to ...
(sourcefile): ... this. Remove creation of redundant intermediate file.
(response): Change test for optimization, now that
PLATFORM_CHANGE_SEPARATOR_CMD is unconditional. Combine with
platform-exclude handling.
(library_CLEAN_FILES): New variable to specify clean:-able files
close to where they're defined.
(test_response, btest_response): Simplify.
* executable.make (response): Change test for optimization.
(executable_CLEAN_FILES): New define.
Maintainability improvements. Sorry, I'm still in the scratch-an-itch
mode with the build stuff :-)
svn path=/trunk/mcs/; revision=29490
* XmlUrlResolverTests.cs : Unlike MS.NET, we treats Unix absolute file
URI file:///usr/local/src as correct file path. MS.NET is not aware
of such format and parses as "host = usr, path = /local/src".
svn path=/trunk/mcs/; revision=29489
* FloatingPointFormatter.cs : Recognize '%' and '\u2030' and replace
them with matching NumberFormatInfo properties.
svn path=/trunk/mcs/; revision=29487
* Double.cs : Use IFormatProvider.GetFormat() instead of literal '-'.
* FloatingPointFormatter.cs :
Use NumberFormatInfo.NegativeSign. This change saves many XSLT test
failures.
Format Permille pattern (It is undocumented but actually available,
and used in xsl:format-number).
svn path=/trunk/mcs/; revision=29483
* FloatingPointFormatter.cs :
- Don't format more than 15 fraction digits. Don't report to Pedro
directly (removing the error message with his concent).
- When format string starts with '.', it means integral part format
is not specified. Ignore '.' characters after the first
appearance. Fixed bug #59890.
- 0.0 is formatted only before the third ';' appearance.
svn path=/trunk/mcs/; revision=29464
* driver.c: don't include abcrem in the all optimization specifier
since it slows down jit compilation too much for now.
svn path=/trunk/mono/; revision=29447
* class.cs (MemberBase.DoDefineBase): New protected method.
(MemberBase.DoDefine): Compute the `flags' in the new
DoDefineBase() which must be called first.
(Method.Define): Call DoDefineBase() first so we have the flags
when defining the generic method.
* cs-parser.jay (interface_method_declaration): Support generic methods.
svn path=/trunk/mcs/; revision=29431
* decl.cs (TypeName): Removed.
(MemberName): Removed TypeName and MemberNow; now we just have
MemberName.
* cs-parser.jay: Don't distinguish between type arguments and type
parameters in the grammar and simplified the rules a bit. The
reduce/reduce conflicts are now gone (except the one we inherited
from mcs).
svn path=/trunk/mcs/; revision=29430
* XmlTextReader.cs : Character range check is always done. It is only
character references for which check is not done when Normalization
is false.
A bit more kind error message for multiple document element error.
* XmlTextWriter.cs : Check if character is valid and entitize when
it was invalid.
svn path=/trunk/mcs/; revision=29426
* mini.c: use BIGMUL only if both operands have the same signage.
* iltests.il: Test for bug 60056. (errors related to signage in
BIGMUL).
r=lupus.
svn path=/trunk/mono/; revision=29410
* reflection.c, reflection.h: do not free custom attrs that are cached.
* icall.c: use braces to make code clearer.
svn path=/trunk/mono/; revision=29406
* expression.cs (Invocation.IsParamsMethodApplicable): We need to
call this twice: for params and varargs methods.
svn path=/trunk/mcs/; revision=29355
* Uri.cs :
- We don't have to mind '\\'.
- Fixed bug #58301. When path starts with "///" and not more than
"////" and not "///*:", handle it as unix path and set Host as
empty string. In absolute path case, port should not be parsed
and LocalPath should start with '/'.
- Handle fragment in prior to path.
svn path=/trunk/mcs/; revision=29352
* TimeSpanTest.cs: Added valid cases to parse MinValue and MaxValue.
Added invalid cases to parse under MinValue and over MaxValue.
svn path=/trunk/mcs/; revision=29345
* DateTime.cs: Added a AddRoundedMilliseconds which use the "old Mono"
rounding logic which worked for FromOADate (while the newer didn't).
svn path=/trunk/mcs/; revision=29341
overriden. Useful if the tests sourcefile is generated.
(TEST_COMPILE, BTEST_COMPILE): Allow these to be customized too.
Support enough features to build mscorlib.dll.
* library.make (core_sourcefile): New renamed from $(sourcefile).
(PLATFORM_excludes): Auto-detecting define that sees if
$(LIBRARY).$(PLATFORM)-excludes file exists.
(sourcefile): New. Possibly-built file that removes
PLATFORM_excluded files from core_sourcefile.
(test_against, test_dep): New. Allow the test assembly to be
built against a different library.
(test_lib): Allow makefile to override the name of the test
assembly.
(LIBRARY_INSTALL_DIR): If defined, switch to using $(INSTALL_LIB)
rather than $(gacutil).
(DISTFILES, dist-local): Use core_sourcefile.
(clean-local): Remove sourcefile if it was generated.
(test_lib, btest_lib): Depend on $(test_dep).
svn path=/trunk/mcs/; revision=29338
(populate-runtime-subdir): New target. Does a
controlled "make install" in the 'mcs/' directory to populate the
'runtime' directory.
(fasterstrap): Use it.
svn path=/trunk/mono/; revision=29335
* library.make (core_sourcefile): New renamed from $(sourcefile).
(PLATFORM_excludes): Auto-detecting define that sees if
$(LIBRARY).$(PLATFORM)-excludes file exists.
(sourcefile): New. Possibly-built file that removes
PLATFORM_excluded files from core_sourcefile.
(test_against, test_dep): New. Allow the test assembly to be
built against a different library.
(test_lib): Allow makefile to override the name of the test
assembly.
(LIBRARY_INSTALL_DIR): If defined, switch to using $(INSTALL_LIB)
rather than $(gacutil).
(DISTFILES, dist-local): Use core_sourcefile.
(clean-local): Remove sourcefile if it was generated.
(test_lib, btest_lib): Depend on $(test_dep).
svn path=/trunk/mcs/; revision=29323
* Uri.cs : Handle Windows UNC. Now we could simplify Parse(). Don't
escape windows path twice. Check scheme name as defined in RFC2396.
svn path=/trunk/mcs/; revision=29314
* ecore.cs (ResolveFlags): Add new 'Intermediate' flag to tell
that the call to Resolve is part of a MemberAccess.
(Expression.Resolve): Use it for SimpleName resolution.
(SimpleName.SimpleNameResolve, SimpleName.DoResolveAllowStatic):
Add 'intermediate' boolean argument.
(SimpleName.DoSimpleNameResolve): Likewise. Use it to disable an
error message when the SimpleName can be resolved ambiguously
between an expression and a type.
* expression.cs (MemberAccess.IdenticalNameAndTypeName): Make
public.
(MemberAccess.Resolve): Pass 'Intermediate' flag to the Resolve()
call on the left-side.
svn path=/trunk/mcs/; revision=29310
* Uri.cs : Reverted some changes. '#' should be handled when the input
string is NOT raw file path. So handle raw file paths differently.
(right now except for Windows UNC).
Cache LocalPath and don't compute every time.
svn path=/trunk/mcs/; revision=29297
* test-uri-list.txt,
test-uri-props.txt,
test-uri-props-manual.txt :
Reverted the last change. File URI handling should be common to
MS.NET. We have to change the behavior only for Unix file path.
* UriTest2.cs : Fixed just catch only UriFormatException.
svn path=/trunk/mcs/; revision=29296
* Makefile: Removed inclusion of rules.make from Makefile for two reasons :
- This Makefile as of now has no dependency on rules.make what so ever
- Because of inclusion of INTENAL_MBAS in rules.make it was causing confliction with existing INTERNAL_MBAS in this makefile and causing lots of tests to fail
svn path=/trunk/mcs/; revision=29295
* metadata.c (mono_metadata_parse_method_signature): When parsing
a MethodDef which has VarArgs, also set sentinelpos if we don't
have any parameters.
svn path=/trunk/mono/; revision=29287
* SessionSQLServerHandler.cs:
* SessionStateServerHandler.cs:
* ISessionHandler.cs: added new parameter to Init.
* SessionInProcHandler.cs: use the HttpRuntime cache to store the
sessions and handle expiration.
* SessionStateModule.cs: added OnSessionRemoved internal method that is
called whenever a session expires or is removed.
svn path=/trunk/mcs/; revision=29284
* verify.c (mono_method_verify): In CEE_CALL, use
mono_method_get_signature() to get the method's signature, unless
we're a PInvoke method.
svn path=/trunk/mono/; revision=29281
* get.c (get_methodref_signature): If we're a varargs method,
print "..." for the sentinel followed by the actual types.
svn path=/trunk/mono/; revision=29279
* expression.cs (Invocation.EmitCall): Don't use
`method.CallingConvention == CallingConventions.VarArgs' since the
method could also have `CallingConventions.HasThis'.
svn path=/trunk/mcs/; revision=29276
* XsdValidatingReader.cs : Identity check didn't work fine when
reference node appeared in front of the target key node.
This fixes bug #59889.
svn path=/trunk/mcs/; revision=29263
* BaseCompiler.cs: dynamicBase is now protected. Check
MONO_ASPNET_NODELETE here.
* TemplateControlCompiler.cs: if the type is not known but has a
TypeConverter, invoke ConvertFromString in the generated code.
* WebServiceCompiler.cs: it used a hardcoded C# compiler, now it gets
the compiler from the configuration. Also handle MONO_ASPNET_NODELETE.
* CachingCompiler.cs: updated compilation of web services and simple
web handlers.
svn path=/trunk/mcs/; revision=29255
* HttpUtility.cs: check for control characters in the string to encode
or decode and return the same string if there are none.
svn path=/trunk/mcs/; revision=29254
* DecimalTest.cs: Added rounding tests for negative values. Added more
checks to ParseFractions. Removed test TooSmall because it was a bad
interaction between a buggy corlib (buggy decimal) and the tests (i.e.
the value was legal).
svn path=/trunk/mcs/; revision=29251
* Decimal.cs: Hacked the Parse method to allow the runtime C code to
decode it properly (i.e. matching MS results). Fixed the Round method
for negative decimal numbers (moved code from Math.cs).
* Math.cs: Now use Decimal class for Round(Decimal,int). Required to
fix a bug when rounding a negative decimal.
svn path=/trunk/mcs/; revision=29250
* System.Web/HttpApplication.cs: change/restore the IPrincipal in their
own methods and make them internal.
* System.Web.Security/DefaultAuthenticationModule.cs: set the IPrincipal
for this thread once we have a user. Fixes bug #59683.
svn path=/trunk/mcs/; revision=29248
* Thread.cs:
(CurrentPrincipal): lock on CurrentThread, not typeof (Thread) and set
the thread IPrincipal if we get it from the AppDomain.
svn path=/trunk/mcs/; revision=29247
* AppDomain.cs: set the _principal to null when changing the policy.
* Console.cs: remove ClsCompliant attribute from a method marked as
internal and added comment.
svn path=/trunk/mcs/; revision=29246
message.
* Report.cs: Print error messages properly. Add an extra \n after
the assemble file message.
* ilasm.exe.sources: Add new exception, remove old one.
svn path=/trunk/mcs/; revision=29240
* typemanager.cs : GetPertinentStandardModules receives the array now with params modifier to help usage
* ecore.cs : correcting lookup of semi-qualified standard modules members - A little better but not there yet
svn path=/trunk/mcs/; revision=29239
* test-uri-list.txt,
test-uri-props.txt,
test-uri-props-manual.txt :
- Moved '#' containing file URIs to manual test patterns (I think MS
disregards '#', as conceptually reported in bug #47691).
- Removed URIs that contains "/////" that is ambiguous (is /////cygwin
directory '/cygwin', or host 'cygwin' ?).
* UriTest2.cs : explicitly show what input string is being checked
in Assert(). And also surround try...catch and show which URI failed.
svn path=/trunk/mcs/; revision=29211
from ctor
* regex.cs: fixed public API signature by renaming protected
internal fields and adding destructor, added MonoTODO attribute to
fields and method that are not yet implemented, changed not
implemented methods to throw NotImplementedException instead of
Exception, fixed names of field that are serialized
svn path=/trunk/mcs/; revision=29210
* reflection.c: make the token for a created method match
the token of the MethodBuilder it was created from
(IKVM requires this behaviour now).
svn path=/trunk/mono/; revision=29208
API of MS.NET, marked DynamicInvokeImpl and GetMethodImpl
protected to fix public API
* Enum.cs: marked ctor protected to match public API of MS.NET
* MulticastDelegate.cs: marked DynamicInvokeImpl protected to
match public API of MS.NET
svn path=/trunk/mcs/; revision=29199
generated class. Generate the correct data type for input parameters.
* SoapProtocolImporter.cs: Like in MS.NET, take the first output parameter
as the return value of the method. When generating a header variable,
use the type name as the base for the variable name, not the part name.
svn path=/trunk/mcs/; revision=29176
DiscoveryException and rethrow the included Exception instead.
* DiscoveryReference.cs: Added BaseUri property, that returns an uri
for the reference, supporting file uris.
* ContractReference.cs: Use the new property BaseUri to build the import
uri.
svn path=/trunk/mcs/; revision=29174
attributes that MS.NET generates.
* SerializationCodeGenerator.cs: Avoid duplicate generation of maps in the
same reader/writer.
* XmlCodeExporter.cs: Added support for ignore flag in maps and members.
* XmlReflectionImporter.cs: Changed GetReflectionMembers to match
MS.NET member ordering. Patch by David Taylor.
* XmlSchemaImporter.cs: When generating a choice member, set the ignore
flag. The generated enum must also not be included in the schema.
* XmlTypeMapMember.cs: Added ignore flag.
* XmlTypeMapping.cs: The AttributeMembers property now returns the
attributes in the correct order.
svn path=/trunk/mcs/; revision=29172
Don't copy from prefix. Use $(LN_S) to point to the mcs/ tree.
* runtime/net_1_1/Makefile.am (mscorlib.dll,$(gac_assemblies)):
Use $(LN_S) to point to the mcs/ tree, rather than copying.
* runtime/net_2_0/Makefile.am (mscorlib.dll,$(gac_assemblies)): Likewise.
svn path=/trunk/mono/; revision=29171
* Makefile.am (mcs-do-basic-build): Pass 'USE_BOOT_COMPILE' to sub-makes.
($(tmpinst)/etc/mono/machine.config): New target.
(tmpinst-dir.stamp): Remove and rewrite into ...
($(tmpinst)/bin/mcs): ... this and ...
($(tmpinst)/bin/mono): ... this. Update to use the in-tree machine.config.
(tmpinst-dir): Rewrite to invoke above $(tmpinst)/... targets directly.
* configure.in (AC_PROG_LN_S): New check to define $(LN_S).
svn path=/trunk/mono/; revision=29168
* DateTimeTest.cs : Added more milliseconds and pattern recognition
tests. Patch by Steven Brown (a bit modified).
svn path=/trunk/mcs/; revision=29165
* Decimal.cs: Fixed banker rounding by calling Math.Round. This won't
be a performance winner (the actual Math code has a note to wait a
better Decimal implementation) but it returns the correct results
(without adding new code in corlib or the runtime). Fix#37744.
svn path=/trunk/mcs/; revision=29153
* Uri.cs :
- Now Parse() is properly implemented. If overriden, the overriding
Parse() is used _instead of_ this class's parsing logic.
- AbsoluteUri does not escape URI string at all.
- ToString() should unescape Query. But should not unescape fragment.
And all all parts should be unescaped individually to keep ? and #.
- In relative .ctor(), handle Windows UNC as an absolute file URI.
- In some cases, hosts and paths were not properly escaped in
relative .ctor().
- Removed unused isWindowsPath.
- Escape Query.
* UriBuilder.cs : Fragment and Query aren't escaped when they are set.
svn path=/trunk/mcs/; revision=29144
* DateTime.cs :
- A bunch of fixes (patch by Steven Brown). Fraction seconds are
now represented as double. Strict token check for 'Z'.
- Pattern validity check in GetDateTimeFormats(char).
- Fixed pattern "yyyy/M/d HH:mm:ss".
svn path=/trunk/mcs/; revision=29143
* codegen.cs: Check that all referenced assemblies have a strongname
before strongnaming the compiled assembly. If not report error CS1577.
Fix bug #56563. Patch by Jackson Harper.
* typemanager.cs: Added a method to return all referenced assemblies.
Fix bug #56563. Patch by Jackson Harper.
svn path=/trunk/mcs/; revision=29141
* FieldBuilderTest.cs: Added tests for FieldBuilder (mostly
checking error conditions for now)
* EnumBuilderTest.cs: Added tests for EnumBuilder
* MethodBuilderTest.cs: Added tests for invalid parameter
indexes for created types, added test for GetHashCode
svn path=/trunk/mcs/; revision=29133
meaning throw InvalidOperationException for methods that
should not be allowed to execute when type has been
created, and throw NotSupportedException for methods and
properties that should not be called on FieldBuilder
svn path=/trunk/mcs/; revision=29132
* Makefile: Don't sign this assembly as it is fully signed during
compilation (we have the original private key). Thanks to Jackson.
svn path=/trunk/mcs/; revision=29131
appropriate Exceptions here instead.
* FileStream.cs (SetLength): Revert part of my last patch, we're
throwing ObjectDisposedException instead of IOException again.
svn path=/trunk/mcs/; revision=29123
IDictionaryEnumerator from a Hashtable, use a normal IEnumerator
from the newly added ArrayList in SerializationInfo.
* SerializationInfo.cs: Added an extra ArrayList so that we can
keep the SerializationEntrys added in the order.
(SerializationInfo, AddValue): Throw ArgumentNullException
correctly.
svn path=/trunk/mcs/; revision=29118
* HttpContext: User property returns its own "user" value because
the context can walk through different Threads. When "User" property
is changed, change "Thread.CurrentPrincipal" too.
svn path=/trunk/mcs/; revision=29113
* StrongNameManager.cs: Fix ToString() when no verificationSettings
are present (used in sn -Vl).
* sn.cs: Fixed to match documentation.
svn path=/trunk/mcs/; revision=29111
* sn.1: Updated documentation to match the tool and to include more
informations about the configuration kept in machine.config.
svn path=/trunk/mono/; revision=29110
* Driver.cs: handle single quotes in the pattern. We used to fail for,
at least, es and pt cultures with full patterns like
"EEEE d' de 'MMMM' de 'yyyy".
svn path=/trunk/mono/; revision=29098
set scope in InitStore method, removed need for extra protected
member (public API fix)
* IsolatedStorageFile.cs: use InitStore to initialize scope
svn path=/trunk/mcs/; revision=29080
runtime. This way the codebase is set properly. The codebase is
using g_filename_to_uri which expects a full path.
svn path=/trunk/mcs/; revision=29079
and load the assembly using the code base so we get the right
one. Print out the name of the non strong named assembly if one is
referenced.
svn path=/trunk/mcs/; revision=29078
* StrongName.cs: Added corlib specific code to load configuration
from machine.config to allow public key token remapping to work
with (for example) gacutil.
* StrongNameManager.cs: Now load configuration from machine.config.
svn path=/trunk/mcs/; revision=29073
* AssemblyInfo.cs: Updated version number for post beta 2.
* StrongNameManager.cs: Changed XML format to be compatible with
machine.config. Made token uppercase.
* sn.cs: Now load the token remapping configuration from
machine.config. Fixed some errors in help.
svn path=/trunk/mcs/; revision=29057
commands. Allow options to come before commands. Add the /silent
option so we can shut the tool up. And use returns instead of
Environment.Exit where appropriate.
svn path=/trunk/mcs/; revision=29054
* DateTime.cs :
- Now re-checked all common format patterns. They should be tried
with both current culture and invariant culture. Since '/' covers
'-', removed extraneous patterns. Added more common patterns
such as "yyyy-MM-dd" and X509Certificate pattern (it is valid
only after NET_1_1). Commented out 1 character format patterns.
- The format patterns we should try should not be obtained by
GetAllDateTimePatterns(). Just use 'd', 'D', 't', 'T', ... (one
character patterns), to handle UTC correctly. Examined patterns
are changed, to 1) common patterns with specified (or current)
culture, 2) common patterns with invariant, 3) The above "one
character patterns" with specified (or current) culture.
- When trying to parse some kind of patterns such as RFC1123,
always use invariant DateTimeFormatInfo so that they can avoid
parsing with culture-dependent calendar.
- Check "GMT" only when doing Parse(). Don't it when ParseExact().
- Removed extraneous '-' case. It is not special one.
- When ParseExact(), allow only '/' for '/' pattern character.
- When Parse(), allow any non-letter & non-number characters.
- When pattern is not fully parsed, reject that format.
- Added "exact" parameter to some ParseExact().
- RFC1123 pattern is (again) now parsed in local time. I regressed
some problems in previous fix.
svn path=/trunk/mcs/; revision=29051
* Driver.cs : To make "extra pattern only" xxxFormatLength possible,
fill values only when the exact element was available.
svn path=/trunk/mono/; revision=29048
* DateTimeTest.cs :
- Added TestParse3() (not-allowed pattern example), ParseUtcNonUtc()
("GMT" strings and time adjustment), TimeZoneAdjustment() ('Z'
pattern conditions) and CultureIndependentTests() (batch tests for
_all_ or almost all cultures).
- Added more Z string to X509Certificate test.
- Added ParseAllowsQueerString() [not fixed].
svn path=/trunk/mcs/; revision=29045
* locales.c
(ves_icall_System_Globalization_CompareInfo_internal_index):
(ves_icall_System_Globalization_CompareInfo_internal_index_char):
Double-check the resuls of usearches, because ICU currently
ignores most of the collator settings here. Fixes bug 59720.
svn path=/trunk/mono/; revision=29036
* locales.c
(ves_icall_System_Globalization_CompareInfo_internal_index_char):
Fix memory leak and segfault-causing typo. No idea how this one
lasted so long without being noticed.
svn path=/trunk/mono/; revision=29031
* System.Web.dll.sources: removed CSCompiler.cs
* System.Web.Compilation/CSCompiler.cs: removed.
* System.Web.Compilation/CachingCompiler.cs: language independent
compilation for single files.
* System.Web.UI/SimpleWebHandlerParser.cs:
* System.Web.UI/TemplateParser.cs: pass the language when compiling from
a file.
svn path=/trunk/mcs/; revision=29017
* assembly.c:
(mono_assembly_load): search_loaded -> mono_assembly_loaded (we didn't
own the critical section before). Removed dead code (that's done
in the preload hook).
(mono_assembly_load_with_partial_name): call the preload hook.
svn path=/trunk/mono/; revision=29014
* SimpleWebHandlerParser.cs: if we have a global.asax, move its
reference to the end to help mcs loading the assemblies. Fixes bug
#58768.
* TemplateParser.cs: same as above. Removed some kludges to workaround
loading assemblies from bin path that are now in the runtime. Don't
load the assemblies in bin if not needed, but still reference them
when compiling.
svn path=/trunk/mcs/; revision=29010
* ILGenerator.cs (TokenGenerator.GetToken): Added overloaded
version which takes a MethodInfo and a Type[].
(IlGenerator.EmitCall): When emitting a call to a varargs method,
use the new GetToken() to pass the optional argument types to the
runtime.
* ModuleBuilder.cs (ModuleBuilder.getMethodToken): New interncall.
svn path=/trunk/mcs/; revision=29000
* icall.c (ves_icall_ModuleBuilder_getMethodToken): New icall.
* metadata.c (mono_metadata_parse_method_signature): When parsing
a MethodDef which has VarArgs, set sentinelpos.
* metadata.h (MonoMethodSignature): Make `sentinalpos' a signed
`gint16' since we're using -1 for non-varargs methods.
* reflection.c
(ReflectionMethodBuilder): Added `MonoArray *opt_types'.
(method_encode_signature): Added varargs support.
(method_builder_encode_signature): Likewise.
(mono_image_get_varargs_method_token): New static method.
(mono_image_create_method_token): New public method; this is
called via an icall instead of mono_image_create_token() when
calling a varargs method.
svn path=/trunk/mono/; revision=28999
* ExceptionTest.cs: Added [Test] attributes to the test methods.
(InnerExceptionSource): Test that the InnerException's Source is
null unless it's been set.
svn path=/trunk/mcs/; revision=28997
* DateTime.cs: Fixed constructor to limit range of milliseconds from
0,999. Fixed ToType method to work for object, string and DateTime.
svn path=/trunk/mcs/; revision=28995
over ObjectDisposedException, which is not one of the exceptions
listed in the documentation). Also, instead of throwing an
ObjectDisposedException, throw an IOException.
* FileStreamTest.cs (SetLengthWithClosedBaseStream): New test for
checking that the correct exception is thrown when the base stream
is closed.
svn path=/trunk/mcs/; revision=28993
Added support for varargs methods.
* cs-tokenizer.cs (Token.ARGLIST): New token for the `__arglist'
keyword.
* cs-parser.jay: Added support for `__arglist'.
* decl.cs (MemberCache.AddMethods): Don't ignore varargs methods.
* expression.cs (Argument.AType): Added `ArgList'.
(Invocation): Added support for varargs methods.
(ArglistAccess): New public class.
(Arglist): New public class.
* parameter.cs (Parameter.Modifier): Added `ARGLIST'.
* statement.cs (Block.Flags): Added `HasVarargs'. We set this on
a method's top-level block if the method has varargs.
* support.cs (ReflectionParameters, InternalParameters): Added
support for varargs methods.
svn path=/trunk/mcs/; revision=28983
* UTF8Encoding.cs : Length check must be done only when the character
sequence is valid (i.e. should not check when it is overlongs).
See also TestThrowOnInvalid().
svn path=/trunk/mcs/; revision=28980
* DateTime.cs: Fixed OLE Automation date conversions: timezone
insensitive, wrong exception in FromOADate, handling of Min/Max
values, negative doubles where integer part is negative but
decimals are positive! Charming format ;-)
svn path=/trunk/mcs/; revision=28973
* DateTimeFormatEntry.cs : Added "all datetime patterns" support.
* Driver.cs : Added "all datetime patterns" support and fixed some
XPathNavigator use to strictly navigate to "pattern" element.
svn path=/trunk/mono/; revision=28969
* System.Web.dll.sources: removing ServerVariablesCollection. It does
not compile.
* System.Web/HttpRequest.cs: reverting patch from Alon Gazit. Uses the
above file that doesn't compile.
svn path=/trunk/mcs/; revision=28965
* class.cs: Added a AddEventHandler function and a EventHandler readonly property. Also modified define of constructor to accommodate Handles clause.
If one initialize a event handler as
Sub Handler() Handles x.Event
The handler will be initialized by the constructor of the corresponding class by calling AddHandler.
svn path=/trunk/mcs/; revision=28953
* icall.c (ves_icall_Type_GetEvents_internal): Handle the case when
the event has no add and remove methods. Fixes#59629.
svn path=/trunk/mono/; revision=28949
* class.cs: Provide location in indexer error report.
* driver.cs: Use standard names.
* namespace.cs: Catch the use of using after a namespace has been
declared also on using aliases.
svn path=/trunk/mcs/; revision=28944
* String.cs: Fixed Join in case separator parameter is null.
* TimeSpan.cs: Cache format errors during parsing and throw
FormatException only if there was no overflow.
svn path=/trunk/mcs/; revision=28939
* TimeSpanTest.cs: Added test to verify exception order when a parsed
string is both invalid (format) and contains an overflow.
svn path=/trunk/mcs/; revision=28938
* System.Web/HttpBrowserCapabilities.cs: implemented ClrVersion and
GetClrVersions.
* System.Web.Configuration/HttpCapabilitiesBase.cs: set the useragent
of the new HttpBrowserCapabilities object.
* System.Web/HttpException.cs: removed MonoTODO.
svn path=/trunk/mcs/; revision=28936
* XmlDataDocument.cs :
- It was not handling SimpleContent. This fixes bug #56951.
- It was not converting values into DataType of the DataColumn.
svn path=/trunk/mcs/; revision=28931
* ChunkStream.cs: added ChunkLeft property.
* WebConnection.cs:
(EndRead): when using small byte arrays to read from a chunked stream,
ensure we've read the chunk size and try to fulfill the request
completely. fixes bug 59653.
svn path=/trunk/mcs/; revision=28915
Added test cases for exercising \b as a word boundary operator
and as a character class in a regex. Refer bug #58256 for more
information.
svn path=/trunk/mcs/; revision=28913
debugging bug #58256. The original problem reported was about
inconsistency between the way we treat replacement patterns and the
way microsoft treats the replacement patterns in Regex.Replace(). MS
implementation is buggy and doesn't honour escape sequences in the
replacement patterns, even though the SDK claims otherwise.
svn path=/trunk/mcs/; revision=28912
* DecimalTest.cs: Added tests for default ToString(). Added tests when
Decimal is casted to an integer (trunc not rounded). Added tests to
parse very small values (#59301).
svn path=/trunk/mcs/; revision=28906
* DTDObjectModel.cs,
XmlDocument.cs : Close stream always.
* XmlNodeReader.cs : don't expect atomized name in LookupNamespace().
* XmlTextReader.cs : Namespace has was not done. Some tests depends on
this failure and to be fixed.
svn path=/trunk/mcs/; revision=28900
* DTMXPathDocumentBuilder.cs : Close XmlTextReader strictly. It might
raise an error after opening stream and before try-catch.
svn path=/trunk/mcs/; revision=28898
* XsdValidatingReader.cs : Close XmlTextReader more strictly. Exception
might be thrown in ctor() *after* stream open and before try-catch.
svn path=/trunk/mcs/; revision=28897
* X509CertificateCollection.cs: Fixed Contains which works by value
(i.e. not by object reference). Fixed Remove for null and unexisting
elements.
svn path=/trunk/mcs/; revision=28896
* HybridDictionary.cs: Fixed Contains for null argument.
* NameValueCollection.cs: Fixed Set to remove existing values. Fixed
Add(NVC) to throw same exception as MS implementation.
svn path=/trunk/mcs/; revision=28891
* HybridDictionaryTest.cs: Added cases with an empty diectionary.
* NameValueCollectionTest.cs: Added tests to add and replace (set)
existing values in collection. Added tests for CopyTo.
svn path=/trunk/mcs/; revision=28890
* Convert.cs: Fixed the convertion of negative integers (byte, short,
int and long) into string in a specific base (2, 8, 10 or 16).
svn path=/trunk/mcs/; revision=28887
* Driver.cs : Percent patterns are not properly parsed since they are
in fact not separated by '.'
* Entry.cs : Escape '\' to "\\" (for Japanese yen-sign fix).
svn path=/trunk/mono/; revision=28879
* Page.cs: IsPostBack also returns true when method is GET and we have
viewstate information in the query string. Fixes bug #58151.
svn path=/trunk/mcs/; revision=28876
* System.Web/TraceContext.cs: don't check if HttpRuntime.TraceManager
is enabled when writing.
* System.Web.Compilation/PageCompiler.cs: fixed Trace and add support
for Buffer.
* System.Web.UI/Page.cs: removed obsolete TODO. Only check if Trace is
enabled, not HttpRutime.TraceManager.
* System.Web.UI/PageParser.cs: for 'trace' we have 2 variables now.
Added support for 'buffer' attribute.
Fixes bug #58481.
svn path=/trunk/mcs/; revision=28873
* fr_CH.xml : missing updates.
* Renamed cs.xml as cs_CZ.xml and added number format.
Also renamed lt.xml as lt_LT.xml. They are files' precedence matter.
* es_NI.xml : added.
* en.xml, en_CA.xml, en_IE.xml, en_PH.xml, en_US.xml, en_ZW.xml :
Change with related to the change of NumberDecimalDigits handling.
* es_PR.xml, ja.xml, ko_KR.xml :
Added number format.
svn path=/trunk/mono/; revision=28871
* Driver.cs :
- NumberDecimalDigits are almost differently specified by locale
xml files. Almost all of them have ".###", but we need ".##" in
almost all the locale. So let's *assume* that the number of
digit is always +1 extraneous by this Driver itself.
This change accompanies with some existing supp/*.xml changes.
- For decimal patterns and currency patterns, when numeric patterns
does not have ';'-separated patterns, it ignored the whole pattern
string. Fixed it by just copying the same patterns.
- When parsing percent patterns, '%' characters were in the way.
- When the decimal part of the percent pattern ends with ".##0",
the value of PercentDecimalDigits is 2.
- Assume PercentDecimalDigits as 2 by default.
svn path=/trunk/mono/; revision=28870
* ConvertTest.cs: Added tests to convert min/max values of integer
types to strings in all bases.
* SByteTest.cs: Added test to parse min/max values.
svn path=/trunk/mcs/; revision=28869
* Binder.cs: don't crash when we have a 'null' argument Type array.
Allow it for non-value types. Fixed for both, methods and properties.
Closes bug #58846.
svn path=/trunk/mcs/; revision=28859
* Math.cs: Fixed IEEERemainder to return -0 (0x8000000000000000) when
the dividend is negative and the result is 0 (remainder).
svn path=/trunk/mcs/; revision=28845
* MathTest.cs: Added case to check for negative 0 (double) in
IEEERemainder.
* TimeSpanTest.cs: Added more asserts in existing tests cases.
Added case to check for ToString with MinValue and MaxValue.
svn path=/trunk/mcs/; revision=28840
interested in public interfaces that are implemented by a given
type. Include protected internal fields and ctors.
svn path=/trunk/mcs/; revision=28821
* ConstraintCollection.cs: to fix public API, use
DataTable.fInitInProgress to check whether initialization
of DataTable is in progress
* DataColumn.cs: added stubs for missing methods
* DataRowBuilder.cs: marked Table property internal to
fix public API
* DataSet.cs: removed extra empty destructor, marked
OnMergeFailed internal to fix public API
* DataTable.cs: use fInitInProgress field to hold init
status, to match MS.NET
* DataView.cs: added missing attributes on IsOpen
svn path=/trunk/mcs/; revision=28816
* mono-api-diff.cs: fixes event diff when we're missing attributes. Now
the class status properly shows the attributes under the event.
* mono-api-info.cs: include protected internal methods.
svn path=/trunk/mcs/; revision=28805
* BufferedStreamTest.cs: Modified two tests (using newer helper
classes) to be more specific and avoid regressions of bugs like
#59534.
* StreamHelperTest.cs: New. Helper classes that provides read-only,
write-only or non-seekable stream.
svn path=/trunk/mcs/; revision=28804
* BuiltInDatatype.cs,
XmlSchemaFacet.cs,
XmlSchemaSimpleTypeRestriction.cs,
XmlSchemaXPath.cs : modified some enum const to static readonly
(.NET 1.0 does not allow it). Use safe overload of LookupNamespace().
svn path=/trunk/mcs/; revision=28790
* XmlNamespaceManagre.cs : Fixed LookupNamespace() and LookupPrefix().
They require that names are *already* atomized.
* XmlNodeReader.cs,
XmlTextWriter.cs : use safe overload of LookupXXX().
svn path=/trunk/mcs/; revision=28789
* Compiler.cs,
GenericOutputter.cs : XmlNamespaceManager.LookupPrefix() allows only
atomized names. Fixed XPathNavigatorNsm.LookupNamespace() that
should override another overload.
svn path=/trunk/mcs/; revision=28788
* generic.cs (ConstructedType.GetMemberAccess): Renamed to
GetSimpleName() and return a SimpleName.
* ecore.cs (SimpleName.Arguments): New public field.
(SimpleName): Added overloaded ctor which takes an additional
TypeArguments argument.
(SimpleName.SimpleNameResolve): Added support for generic methods.
(MethodGroupExpr.ResolveGeneric): New public method. The code was
formerly in MemberAccess.DoResolve(), but we also need it in
SimpleNameResolve().
* expression.cs (MemberAccess.DoResolve): Use the new
MethodGroupExpr.ResolveGeneric().
svn path=/trunk/mcs/; revision=28783
* DataSet.cs : complex table content child was not properly added
when it is the only one child in the parent table. Fixed bug #53959.
svn path=/trunk/mcs/; revision=28782
* TemplateControlCompiler.cs: use CodeDelegateCreateExpression instead
of CodeObjectCreateExpression for the render method delegate. Thanks
to Jochen Wezel.
svn path=/trunk/mcs/; revision=28775
* DirectoryEntry.cs: added protected override for Dispose, marked
properties TODO
* DirectoryServicesPermissionEntryCollection.cs: added stubs for
missing protected methods
* PropertyCollection.cs: flagged field private to fix public API
* PropertyValueCollection.cs: removed empty extra methods, added
stub for missing methods to fix public API
* SearchResult.cs: removed unused local variable
* SearchResultCollection.cs: flagged field private to fix public
API, added missing property Dispose method and finalizer
svn path=/trunk/mcs/; revision=28771
to fix API compatibility with MS.NET
* XmlSerializationWriter.cs: added missing protected members
to fix API compatibility with MS.NET
svn path=/trunk/mcs/; revision=28770
* typemanager.cs (closure_private_ok, closure_invocation_type)
(closure_qualifier_type, closure_invocation_assembly)
(FilterWithClosure): Move to ...
(Closure): New internal nested class.
(Closure.CheckValidFamilyAccess): Split out from Closure.Filter.
(MemberLookup, RealMemberLookup): Add new almost_match parameter.
* ecore.cs (almostMatchedMembers): New variable to help report CS1540.
(MemberLookup, MemberLookupFailed): Use it.
* expression.cs (New.DoResolve): Treat the lookup for the
constructor as being qualified by the 'new'ed type.
(Indexers.GetIndexersForTypeOrInterface): Update.
svn path=/trunk/mcs/; revision=28761
* mono-api-info.cs: if we have a TODOAttribute, get the Comment property
value and store it in attribute 'comment'.
* mono-api-diff.cs: if we have a 'comment' keep it in the output file.
* mono-api.xsl: if we have a 'comment' set it as the title attribute
of the monoTODO gif image.
Now we can see the MonoTODO comments when browsing the class status
pages.
svn path=/trunk/mcs/; revision=28747
* attribute.cs
(GetConditionalAttributeValue): New method. Returns
condition of ConditionalAttribute.
(SearchMulti): New method. Returns all attributes of type 't'.
Use it when attribute is AllowMultiple = true.
(IsConditionalMethodExcluded): New method.
* class.cs
(Method.IsExcluded): Implemented. Returns true if method has conditional
attribute and the conditions is not defined (method is excluded).
(IMethodData): Extended interface for ConditionalAttribute support.
(PropertyMethod.IsExcluded): Implemented.
* decl.cs
(MemberCore.Flags): Excluded_Undetected, Excluded new caching flags.
* expression.cs
(Invocation.IsMethodExcluded): Checks the ConditionalAttribute
on the method.
svn path=/trunk/mcs/; revision=28745
* ObjectStateFormatter.cs : csc build fix. Protected Read()/Write()
(of other objects) are called in TypeConverterFormatter.
svn path=/trunk/mcs/; revision=28735
* AccessControlEntry.cs: removed extra finalizer
* AccessControlList.cs: removed extra finalizer
* ActiveXMessageFormatter.cs: removed extra finalizer
* BinaryMessageFormatter.cs: public API fixes
* DefaultPropertiesToSend.cs: public API fixes
* IMessageFormatter.cs: public API fixes
* Message.cs: public API fixes
* MessageEnumerator.cs: public API fixes
* MessagePropertyFilter.cs: public API fixes
* MessageQueue.cs: public API fixes
* MessageQueueAccessControlEntry.cs: public API fixes
* MessageQueueEnumerator.cs: public API fixes
* MessageQueueException.cs: public API fixes
* MessageQueueInstaller.cs: public API fixes
* MessageQueuePermission.cs: public API fixes
* MessageQueuePermissionAttribute.cs: public API fixes
* MessageQueuePermissionEntry.cs: public API fixes
* MessageQueuePermissionEntryCollection.cs: public API
fixes
* MessagingDescriptionAttribute.cs: public API fixes
* PeekCompletedEventArgs.cs: public API fixes
* ReceiveCompletedEventArgs.cs: public API fixes
* Trustee.cs: removed extra finalizer
* XmlMessageFormatter.cs: public API fixes
svn path=/trunk/mcs/; revision=28733
* mono-api-info.cs: fixed issue where counters were not output
for missing attributes if there were no other mismatches
svn path=/trunk/mcs/; revision=28727
* Makefile, executable.make, library.make, rules.make :
Added new target "run-test-ondotnet" that works what "run-test"
used to be on windows (i.e. tests our libs under MS.NET).
svn path=/trunk/mcs/; revision=28725
* TimeSpan.cs: Fixed overflow issues when delaing with big (days) time
spans. Fixed parsing when only days are presents in the string (which
should be illegal according to the documentation but is supported).
svn path=/trunk/mcs/; revision=28724
* ObjectStateFormatter.cs: before choosing the binary formatter, check
if the object type has a TypeConverter that can convert to/from string.
Fixes bug #59495.
* Page.cs: call GetViewStateString from outside the WriteLine. This
allows writing to the Response when getting the string without breaking
the HTML generated.
svn path=/trunk/mcs/; revision=28721
proxies are checked against the ones generated by MS.NET.
* services.xml: Updated service list.
* wstest.cs: new command checkdiff: generates a xml file using nunit format
with all differences between mono generated proxies and MS.NET ones.
* client/localhost/ConvRpcTest.cs: Fixed url.
svn path=/trunk/mcs/; revision=28719
* expression.cs (ArrayCreationExpression): Make this just an
`expression'. It can't be a statement, so the code here was
dead.
svn path=/trunk/mcs/; revision=28718
the 2001 one when reading the xsi type.
* MapCodeGenerator.cs: Take into account that the root namespace and element
name may have changed from one export to another of the same type. In
this case the class attributes need to be regenerated.
* SoapCodeExporter.cs, XmlCodeExporter.cs: Take the enum name from XmlType,
not ElementName. Idem for namespace.
* XmlReflectionImporter.cs: Set nullable property of XmlTypeMapping.
* XmlRootAttribute.cs: Default value for nullable is true.
* XmlSchemaImporter.cs: The root name for a class may change in some
scenarios (for example, when the type is initially exported as part of
another type and later exported as a root type).
* XmlSerializationReader.cs: In GetXsiType(), if the type attribute is not
found using the standard namespace, try getting the type using
the 2000/10 and 1999 namespaces.
* XmlTypeMapping.cs: Added IsNullable property. Updated SetRoot method.
svn path=/trunk/mcs/; revision=28711
* WebConfigurationSettings.cs: when the virtual path is not /, don't
loop forever trying to read configuration from /. Fixes bug #59480.
svn path=/trunk/mcs/; revision=28710
* Binder.cs: default score must be lower than fail_score or we'll get
an ambiguous match when no indexers given and one single match is found.
svn path=/trunk/mcs/; revision=28698
MS behavior. Always use import input parameters as System.String.
* ProtocolImporter.cs: Remove _x0020_ from type names.
* SoapProtocolImporter.cs: Fixed case of generated methods to match
MS behavior.
svn path=/trunk/mcs/; revision=28694
Fixed#56452
* class.cs (MemberBase.GetSignatureForError): New virtual method.
Use this method when MethodBuilder is null.
(MethodData.DefineMethodBuilder): Encapsulated code to the new method.
Added test for error CS0626 (MONO reports error for this situation).
(IMethodData.GetSignatureForError): Extended interface.
svn path=/trunk/mcs/; revision=28688
* mono-debug.h (MONO_DEBUGGER_VERSION): Bumped version to 41.
* debug-mono-symfile.h: Bumped symbol file version number to 37.
svn path=/trunk/mono/; revision=28679
* Binder.cs: removed ^Ms. In case of several properties matching, try
to disambiguate based on the indexer types provider and the conversions
from those into the ones of the property.
svn path=/trunk/mcs/; revision=28670
* all: move stuff around so that it builds properly.
build system cant handle building two exes from one directory.
svn path=/trunk/mcs/; revision=28667
* attribute.cs
(AttributeTester.GetObsoleteAttribute): Returns instance of
ObsoleteAttribute when type is obsolete.
* class.cs
(TypeContainer.VerifyObsoleteAttribute): Override.
(Method.GetSignatureForError): New method for usage when MethodBuilder is null.
(MethodCode.VerifyObsoleteAttribute): Override.
(MemberBase.VerifyObsoleteAttribute): Override.
* decl.cs
(MemberCore.CheckUsageOfObsoleteAttribute): Tests presence of ObsoleteAttribute
and report proper error.
*delegate.cs
Delegate.VerifyObsoleteAttribute): Override.
* ecore.cs
(Expression.CheckObsoleteAttribute): Tests presence of ObsoleteAttribute
and report proper error.
(FieldExpr.DoResolve): Added tests for ObsoleteAttribute.
* enum.cs
(Enum.GetObsoleteAttribute): Returns ObsoleteAttribute for both enum type
and enum member.
* expression.cs
(Probe.DoResolve, Cast.DoResolve, LocalVariableReference.DoResolve,
New.DoResolve, SizeOf.DoResolve, TypeOf.DoResolce, MemberAccess.DoResolve):
Added test for ObsoleteAttribute.
* statement.cs
(Catch): Derived from Statement.
svn path=/trunk/mcs/; revision=28651
* platforms/win32.make : TEST_RUNTIME should be always mono we can't
test our libs against MS.NET runtime. Think about internal call).
svn path=/trunk/mcs/; revision=28628
2004-06-01 14:15:36 +00:00
10591 changed files with 93101 additions and 1615202 deletions
@@ -50,7 +50,7 @@ Specifies the namespace of the XML schema element for which a class or a dataset
Specifies the programming language to use for the generated code. The only supported languages are CS (C#) and VB (Visual Basic.NET).
.TP
.I"/generator:type,assembly""/g:type,assembly"
Indicates xsd.exe to use custom CodeDomProvider to generate code. Type name must be full name. Assembly name is file name that xsd.exe tries to load.
Indicates xsd.exe to use custom CodeDomProvider to generate code. The type name must be full name. Assembly name is a local file name that is going to be loaded. The specified Type must have the default constructor.
.TP
.I"/outputdir:path""/o:path"
Specifies the directory where to generate the code or schemas.
Loaded 100 of 10591 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.