* 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
* SortedListTest.cs: Added new test when initial capacity is set to 0
(so it never returns to default, 16, when Capacity is set to 0) unless
Clear is called. Cleaned up unused SetUp/TearDown.
svn path=/trunk/mcs/; revision=28622
* Import.cs: removed extra XmlIgnore attribute on ServiceDescription
* Message.cs: removed extra XmlIgnore attribute on ServiceDescription
* MessageBinding.cs: removed extra DefaultValue attribute from Name,
removed extra XmlIgnoreAttribute from OperationBinding
* MessagePart.cs: removed extra XmlIgnore attribute on Message
* MimeContentBinding.cs: removed extra DefaultValue attribute on Part
* Operation.cs: removed extra XmlIgnore attribute on PortType
* OperationBinding.cs: removed extra XmlIgnore attribute on Binding
* OperationMessage.cs: removed extra XmlIgnore attribute on Operation
* Port.cs: removed extra XmlIgnore attribute on Service
* PortType.cs: removed extra XmlIgnore on ServiceDescription
* Service.cs: removed extra XmlIgnore on ServiceDescription
* ServiceDescriptionFormatExtension.cs: removed extra XmlIgnore
attribute on Parent
* SoapHeaderBinding.cs: added XmlElement attribute on Fault
* HttpSimpleProtocolImporter.cs: removed unused variable
* ServiceDescriptionImporter.cs: removed unused variable
* SoapProtocolImporter.cs: removed unused variable
svn path=/trunk/mcs/; revision=28615
* syntax.cs: re-applied my patch from 2004-05-27 plus a fix which is
emitting a Category.All if both a category and its negated value are
present.
svn path=/trunk/mcs/; revision=28609
* ArrayTest.cs: Fixed array used for some tests. Strangely the tests
didn't fail on MS runtime ?!?! but they should have!
svn path=/trunk/mcs/; revision=28606
* Array.cs: Fixed legal case where value is null.
* Byte.cs: Fixed ToString when format is an empty string (use "G").
svn path=/trunk/mcs/; revision=28603
* Guid.cs: Renamed private fields (and changed some to signed) to
match MS implementation and allow serialization to work. Fix
bug #59113.
svn path=/trunk/mcs/; revision=28602
* ArrayListTest.cs: Added new test for null in BinarySearch.
* HashtableTest.cs: Added null checking fro GetObjectData.
svn path=/trunk/mcs/; revision=28600
* FileTest.cs: Added tests to confirm that Exists never throws
exceptions even for invalid filenames or for unexisting directories.
* PathTest.cs: Added windows-specific tests that shows that
ChangeExtension validate the input patch but doesn't validate the
resulting path.
svn path=/trunk/mcs/; revision=28599
* ArrayTest.cs: Added tests for null values in BinarySearch.
* Byte.cs: Added test for default ToString format value.
svn path=/trunk/mcs/; revision=28598
* HttpRequest.cs: nullify _sRequestRootVirtualDir and baseVirtualDir
when SetFilePath is called. This way the cached values are reset and
get the right value in case someone (namely SessionStateModule +
cookieless session) changes the FilePath after the property cached its
value. Fixes bug #59364.
svn path=/trunk/mcs/; revision=28586
* DataSet.cs : When a row has no parent row but the table has parent
relation(s), that row had been always ignored.
svn path=/trunk/mcs/; revision=28572
* XmlDataInferenceLoader.cs : Fixed GetMappedTable() that incorrectly
rejected same-named tables in different hierarchy. Thanks to Boris.
svn path=/trunk/mcs/; revision=28565
* Reverted patch to namespace.cs (Use lookuptypedirect). This
caused a regression: #59343. Referencing nested classes from an
assembly stopped working.
svn path=/trunk/mcs/; revision=28560
* SignedXml.cs : partial fix for bug #59165 that does not output
namespace that conflicts with element's namespace.
svn path=/trunk/mcs/; revision=28551
* DataTableTest.cs : Added test for serialization.
* DataSetInferXmlSchemaTest.cs : Added test for schema element skip.
svn path=/trunk/mcs/; revision=28549
* Misc.cs : made Util class internal.
* RelaxngDatatypeProvider.cs : looks commit was missing.
* RelaxngException.cs : made one .ctor() internal that accepts
RdpPattern.
* RelaxngNameClas.cs : Names list should not be settable.
* RelaxngPattern.cs : RelaxngRefPattern class is internal use only.
* RelaxngPatternType.cs : there is not "Include" pattern.
svn path=/trunk/mcs/; revision=28546
* OptionDetails.cs : ShortForm member now a string to favor some simplifications, fixes for Bug 58672
* OptionList.cs : Fixes for Bug 58672 and better handling for mixed-form options (linux/windows)
svn path=/trunk/mcs/; revision=28543
* Financial.cs:
Correct IRR and MIRR method signatures and prevent public default constructor, all according to Class Status Page (corcompare)
svn path=/trunk/mcs/; revision=28530
* decl.cs: If possible, use lookuptypedirect here. We can only do
this if there is no `.' after the namespace. Avoids using
LookupType, which does lots of slow processing.
(FindNestedType) New method, does what it says :-).
* namespace.cs: use LookupTypeDirect.
* rootcontext.cs: use membercache, if possible.
* typemanager.cs (LookupTypeDirect): Cache negative hits too.
svn path=/trunk/mcs/; revision=28523
* expression.cs:
According to the spec,
In a member access of the form E.I, if E is a single identifier,
and if the meaning of E as a simple-name (�7.5.2) is a constant,
field, property, localvariable, or parameter with the same type as
the meaning of E as a type-name (�3.8), then both possible
meanings of E are permitted.
We did not check that E as a simple-name had the same type as E as
a type name.
This trivial check gives us 5-7% on bootstrap time.
2004-05-30 Ben Maurer <[email protected]>
* expression.cs (Invocation.OverloadResolve): Avoid the
use of hashtables and boxing here by allocating on demand.
svn path=/trunk/mcs/; revision=28522
* rootcontext.cs (RootContext.LookupType): Don't cache things if
we're doing a silent lookup. Don't try to lookup nested types in
TypeManager.object_type (thanks to Ben Maurer).
2004-05-30 Martin Baulig <[email protected]>
Committing a patch from Ben Maurer.
* rootcontext.cs (RootContext.LookupType): Cache negative results.
svn path=/trunk/mcs/; revision=28521
* 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.
svn path=/trunk/mcs/; revision=28512
* 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=28511
* 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.
* 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.
svn path=/trunk/mcs/; revision=28510
* SetWin32ContextInIDispatchAttribute.cs: only build
for NET_2_0 profile
* VariantWrapper.cs: only build for NET_2_0 profile
svn path=/trunk/mcs/; revision=28506
* expression.cs:
According to the spec,
In a member access of the form E.I, if E is a single identifier,
and if the meaning of E as a simple-name (�7.5.2) is a constant,
field, property, localvariable, or parameter with the same type as
the meaning of E as a type-name (�3.8), then both possible
meanings of E are permitted.
We did not check that E as a simple-name had the same type as E as
a type name.
This trivial check gives us 5-7% on bootstrap time.
svn path=/trunk/mcs/; revision=28505
* RncParser.jay :
Now RncParser.Parse() returns RelaxngPattern, not RelaxngGrammar.
Fixed many "confusing RelaxngPattern and RelaxngPatternList"
problems, and ditto for other "List" stuff.
To avoid complex situations, mostly removed unused annotation stuff.
svn path=/trunk/mcs/; revision=28502
* FileStream.cs: Lots of new tests for exception handling (negatives,
disposed) and test reading a byte ast the end of the stream.
svn path=/trunk/mcs/; revision=28496
* BufferedStreamTest.cs: Added tests for Position after SetLength,
SetLength after Close and Seek logic exception handling.
* FileStream.cs: Added test for invalid SeekOrigin in Seek.
* MemoryStream.cs: Added test for Seek after Close.
svn path=/trunk/mcs/; revision=28491
* BufferedStream.cs: Fixed Seek logic (check for CanSeek and dispose).
SetLength must also reset Position and check for dispose.
* FileStream.cs: Added missing check for invalid SeekOrigin.
svn path=/trunk/mcs/; revision=28490
* expression.cs (Invocation.OverloadResolve): Avoid the
use of hashtables and boxing here by allocating on demand.
svn path=/trunk/mcs/; revision=28482
* rootcontext.cs (RootContext.LookupType): Don't cache things if
we're doing a silent lookup. Don't try to lookup nested types in
TypeManager.object_type (thanks to Ben Maurer).
svn path=/trunk/mcs/; revision=28481
* BinaryReader.cs: Added missing disposed check for most methods.
Reordered some exceptions to match MS implementation.
svn path=/trunk/mcs/; revision=28480
Merged latest changes into gmcs. Please keep this comment in
here, it makes it easier for me to see what changed in MCS since
the last time I merged.
svn path=/trunk/mcs/; revision=28477
* StackFrameTest.cs: Mark the failures that have been failing
for months due to bug 45730 as ignored as it doesn't look like
it will be fixed soon.
My aim with these commits is that eventually people will run the test cases,
and see what errors they have caused, rather than tens of pages of stacktraces.
svn path=/trunk/mcs/; revision=28472
* DecimalTest.cs: Moved the rounding test that fails due to
bug 37744 (bankers rounding) into its own test, and annotated it as ignored
until the bug is fixed.
svn path=/trunk/mcs/; revision=28471
* Console.cs: Remove *again* the version of WriteLine with four
arguments; That should *not* be added.
Flag it as internal as people migrate their code.
svn path=/trunk/mcs/; revision=28469
* class.cs (IMethodData.ShouldIgnore): New method.
* typemanager.cs (TypeManager.MethodFlags): Don't take a
`Location' argument, we don't need it anywhere. Use
`IMethodData.ShouldIgnore ()' instead of
`MethodData.GetMethodFlags ()'.
(TypeManager.AddMethod): Removed.
(TypeManager.AddMethod2): Renamed to AddMethod.
svn path=/trunk/mcs/; revision=28458
Committing a patch from Benjamin Jemlich <[email protected]>.
* convert.cs (Convert.ImplicitReferenceConversion): If we're
converting from a class type S to an interface type and we already
have an object on the stack, don't box it again. Fixes#52578.
svn path=/trunk/mcs/; revision=28456
* Convert.cs: Fixed ToSByte(string,IFormatProvider) to throw
ArgumentNullException (only case, all other returns 0). Fixed exception
reporting for hex prefix only strings.
svn path=/trunk/mcs/; revision=28450
* ConvertTest.cs: Added new parsing tests including special case for
Convert.ToSByte.
* Int64Test.cs: Added new test cases for overflows.
svn path=/trunk/mcs/; revision=28444
removed TODO
* System.Messaging/MessageQueueErrorCode.cs: fixed typo
* System.Messaging/MessageQueueAccessRights.cs: removed extra
enum field
svn path=/trunk/mcs/; revision=28438
* Npgsql/NpgsqlConnection.cs: Added workaround for redhat server versions.
It returns 7.3.4-RH as its server version. Thanks Jaroslaw Kowalski
([email protected]) for the patch.
svn path=/trunk/mcs/; revision=28437
* expression.cs (MemberAccess.ResolveMemberAccess): If we're an
EventExpr, set `ee.InstanceExpression = left'. Fixes#59188.
* ecore.cs (EventExpr.instance_expr): Make the field private.
svn path=/trunk/mcs/; revision=28431
* Zip/Compression/DeflaterHuffman.cs (FlushBlock): Add some
parenthesis to help the generics compiler read this source.
svn path=/trunk/mcs/; revision=28419
* icall.c
(ves_icall_System_Reflection_Assembly_GetReferencedAssemblies):
Set the full version number (major, minor, build, revision).
svn path=/trunk/mono/; revision=28407
of the issues I found with the pnet Coding Developers (Dining
Philosophers) sample app. We now at least draw on screen :-)
svn path=/trunk/mcs/; revision=28390
* Convert.cs: Fixed integer parsing for special cases (0x, 0X for base
16), non-base 10 negative numbers ... see new unit tests.
svn path=/trunk/mcs/; revision=28389
* Statement.cs: changed parent_is_itr_stm method to ParentIsItrStm
property. Added initial pieces for Break's Resolve. Fixed bug that
did not let Emit the code for case clauses that came after the
default clause (we match the jsc behavior).
svn path=/trunk/mcs/; revision=28376
* marshal.c (emit_struct_conv): increment src/dst after blit
(mono_marshal_get_managed_wrapper,
mono_marshal_get_native_wrapper): make sure we have marshalling
info before marshalling params (info computation affects
blittable)
* class.c (class_compute_field_layout): correctly deal with
blittable
(mono_class_layout_fields): Don't do gc_aware_layout for AUTO
value types (as per what windows dows by default)
(mono_class_setup_mono_type): System.ValueType is blittable
(mono_ptr_class_get, mono_fnptr_class_get): Pointer classes are
blittable
* marshal.c (mono_marshal_load_type_info): flag types as
non-blittable if the native layout doesn't match the managed
layout
svn path=/trunk/mono/; revision=28375
* appdomain.c: don't add stuff in the private search path that is
above the application base. If application base is not set, there's
no private search path.
svn path=/trunk/mono/; revision=28374
* mini.c (mono_jit_runtime_invoke): Init class in this
method instead of trusting mono_jit_compile_method to
do the work (because wrappers can be in object class)
svn path=/trunk/mono/; revision=28359
* marshal.c (mono_marshal_get_runtime_invoke): correctly
cache methods using signature (special case for methods
that are value type or string class)
* image.c (mono_image_close): clean up allocated GSList's
in runtime_invoke_cache.
svn path=/trunk/mono/; revision=28358
* mono-config.c: set the correct path for mono_cfg_dir on windows when
there's no MONO_CFG_DIR environment variable defined.
svn path=/trunk/mono/; revision=28357
is interrumped.
* threads.c: In mono_thread_manage, call OpenThread to ref each handle
before waiting for it, and call CloseHandle after the wait to unref it.
This will make sure that handles are not disposed too early.
svn path=/trunk/mono/; revision=28343
* DateTime.cs :
- In ToString(), Don't use culture-dependent daynames to format
Universal/RFC1123 date/time. Also, use FullDateTimePattern for 'U'.
- Fixed GetDateTimeFormats () that generated incorrect 'U' value
(since the format string is the same as 'F').
svn path=/trunk/mcs/; revision=28339
rectangles.
* Graphics.cs: Implemented Dispose method and changed Draw/Fill
rectangles implementation (This is basically done to avoid lots
of brush and pen setup happening in libgdiplus.)
svn path=/trunk/mcs/; revision=28336
* System.Data.OracleClient/OracleCommandBuilder.cs:
Fixed namespace.
* System.Data.OracleClient.dll.sources:
Added OracleCommandBuilder.cs.
2004-05-26 Joerg Rosenkranz <[email protected]>
* System.Data.OracleClient.Oci/OciDefineHandle.cs:
Merged in a fix send by Rogerio Pereira Araujo
<[email protected]>: Fixed a bug with NUMBER data type
when no parameter is passed to OracleCommand.
svn path=/trunk/mcs/; revision=28333
* DateTime.cs : don't adjust utc value in ToString(). It must output
the same time value, just adding 'Z' for UTC.
svn path=/trunk/mcs/; revision=28332
* appdomain.c:
* appdomain.h:
* icall.c: removed
ves_icall_System_AppDomainSetup_InitAppDomainSetup as it's not
needed now.
* object.c: se the application_base only for the domain that
runs Main. Fixes bug #59216,
svn path=/trunk/mono/; revision=28325
* appdomain.c:
* object.c: only the domain in which Main is run have
SetupInformation.ConfigurationFile set, so moved a few lines from
appdomain.c to object.c.
svn path=/trunk/mono/; revision=28324
* appdomain.c: we tried to load [name].(dll|exe), but according
to bug #57710, we must also try [culture]/[name].(dll|exe) and
[culture]/[name]/[name](dll|exe). This patch fixes the bug.
There's a test case attached to bug #58922.
svn path=/trunk/mono/; revision=28323
* Byte.cs: Fixed parsing for "-0" which is valid for unsigned types.
* UInt16.cs: Fixed parsing for "-0" which is valid for unsigned types.
* UInt32.cs: Fixed parsing for "-0" which is valid for unsigned types.
* UInt64.cs: Fixed parsing for "-0" which is valid for unsigned types.
svn path=/trunk/mcs/; revision=28320
* X509Certificate.cs: Rethrow original exception when parsing X.509
certificates (inside a CryptographicException) so people can see if
their changes affects certificate decoding.
svn path=/trunk/mcs/; revision=28319
* DigestClient.cs: cache the sessions based on address and
credentials, not only address. Added poor men's expiration to
the session cache. Fixes bug #59202.
svn path=/trunk/mcs/; revision=28316
* icall.c (ves_icall_System_Text_Encoding_InternalCodePage): The
test was broken, just make sure that codepage contains utf-8
string.
svn path=/trunk/mono/; revision=28306
* SortedList.cs: Added missing ICloneable support to internal
enumerator. Added Capacity to the synchronized version of SortedList.
svn path=/trunk/mcs/; revision=28303
* QueueTest.cs: Test for synchronized clones.
* SortedListTest.cs: Added cases for synchronized capacity and testing
the interface from the internal enumerator.
svn path=/trunk/mcs/; revision=28302
* DateTime.cs :
- Added "yyyy/MM/dd HH:mm:ss 'GMT'" and "yyyy-MM-dd HH:mm:ss 'GMT'"
to common formats (yes, I know it is nothing more than hack)
- Fixed some GetDateTimeFormats() that just returned patterns.
- For InvariantCulture, now try both supported formats and our
predefined formats.
- It was accepting incorrectly extraneous characters. That caused
some UTC/non-UTC bug.
- RFC1123 string should return universal time. Uncomment again (the
problem should went away because of the extra characters fix above.
With some of the changes above, fixed bug #47720.
svn path=/trunk/mcs/; revision=28288
* io.h:
* io.c: Implemented LockFile() and UnlockFile()
2004-05-27 Dick Porter <[email protected]>
* icall.c:
* file-io.c: Implemented icalls for locking and unlocking regions
in a file.
(ves_icall_System_IO_MonoIO_FindNextFile): FindNextFile() returns
FALSE on error (fixes both compiler warning and real bug.)
svn path=/trunk/mono/; revision=28284
* DateTimeFormatInfo.cs : Added some string[] fields for
GetAllDateTimePatterns(char). The fields will be filled in metadata
and culture info table. Added improved patterns for
GetAllDateTimePatterns() (right now works only for invariant).
* CultureInfo.cs : Use InvariantInfo for InvariantCulture.
svn path=/trunk/mcs/; revision=28282
* CacheEntry.cs,CacheExpires.cs,ExpiresBucket.cs,
Cache.cs : Fixed deadlock issues, fixed
items not correctly being flushed, fixed update
of item when expiration has been updated more
than 1 min (placed in wrong bucket),
fixed deadlock during cache callback when item
is removed due to expiriation.
Rewrite of locking handling in Cache class, leading
to better performance and less bugs.
This rewrite is due to a number of bugs found
in the output caching during load (leading to memory
leaks and deadlocks)
svn path=/trunk/mcs/; revision=28254
- CheckReadOnlyStatus : use typed (and faster comparing).
- EndEdit : bug fix - do not dispose record if it holds original version.
- SetValuesFromDataRecord : Take care about autoincrement columns.
svn path=/trunk/mcs/; revision=28249
* XmlTextReaderTests.cs : added test for bug #59142.
* XmlTextWriterTests.cs : added test for bug #59154.
* XmlDocumentTests.cs : added test for bug #59155.
svn path=/trunk/mcs/; revision=28238
* DefaultContext.cs : Add XPathNavigator input support for ToBoolean()
and ToNavigator().
* Expression.cs : In Equality comparison, evaluate XPathNavigator in
the same as well as NodeSet. This fixes bug #59134.
svn path=/trunk/mcs/; revision=28237
* XmlDataInferenceLoader.cs : Namespace are not imported to the table
structure. Thanks to Boris Kirzner for the fix.
svn path=/trunk/mcs/; revision=28235
* XmlDocument.cs : Save() should indent only when PreserveWhitespace
is false. Fixed bug #59155.
Modified comment lines a bit.
svn path=/trunk/mcs/; revision=28234
* XmlTextReader.cs : simplified ReadCharsInternal(); use ReadEndTag()
and don't bork against <foo></foo>. Also mofidied this method to skip
<foo/>. Fixed bug #59142.
Modified some comments on the code (FIXME->LAMESPEC et al).
svn path=/trunk/mcs/; revision=28229
* FileStream.cs: delay seeking to the end when FileMode.Append is
specified until after buffer initialization. Fixes bug #59151.
svn path=/trunk/mcs/; revision=28222
* category.cs: added LastValue field to mark the end of enum Category.
* syntax.cs: in CharacterClass, use Category.LastValue to get the size
of the array needed. Use a BitArray instead of bool[].
In AddCategory(), don't set the opposite category as false. Fixes
bug #59150. All tests pass.
svn path=/trunk/mcs/; revision=28218
* Syscall.cs: Do not let the runtime handle strings, as we do not
own those strings, we must transform the char * into a string
ourselves.
svn path=/trunk/mcs/; revision=28200
* HttpResponse.cs: remove hardcoded "HTTP/1.0" version that kept
chunked encoding disabled. Fixed chunked suffix and end. Send the
'lastchunk' marked when in the final Flush even if the content length
is 0. This makes mod-mono-server work fine with chunked encoding.
* HttpRuntime.cs: Set the _firstRequest* variables to true
earlier. TraceContext don't take any parameter now.
* TraceManager.cs: don't need a context. Use GetAppConfig.
svn path=/trunk/mcs/; revision=28186
* driver.c mini.h mini.c mini-x86.c: Revert most of the previous patch
since driver.c is in libmono too, so the optimization was useless.
svn path=/trunk/mono/; revision=28184
the IMessage, and add IMessage properties as headers when creating the
SoapMessage. LogicalCallContext info will be passed as a header value.
svn path=/trunk/mcs/; revision=28178
* DateTime.cs :
- Added "yyyy-MM-dd HH:mm:ss" to "compatible patterns".
(Fixed bug #58938.)
- As a quick remedy to accept more patterns, Parse() now also tries
InvariantInfo patterns (this is because we have no more than one
pattern for each pattern component.)
- In _DoParse(), 'Z' should not be read as timezone specifier. Some
culture uses 'Z' as AM/PM designer, and it should be recognized as
part of the UTCpattern (if it actually UTC pattern for the culture
contains 'Z').
svn path=/trunk/mcs/; revision=28177
* BufferedStream.cs: Added globalization and fixed exceptions and
possible integer overflow.
* TextWriter.cs: Fixed possible integer overflow.
svn path=/trunk/mcs/; revision=28172
* Byte.cs: Throw an OverflowException for negative numbers.
* Convert.cs: Accept 0x and 0X as prefix when parsing base16 strings.
svn path=/trunk/mcs/; revision=28160
In encoded format, primitive types can be null. Read them using
ReadReferencingElement, that already checks for the null tag.
svn path=/trunk/mcs/; revision=28157
* driver.c mini.h mini.c mini-x86.c: Moved the mono_lmf_addr TLS
variable to driver.c so the compiler can emit more efficient code to
access them.
svn path=/trunk/mono/; revision=28152
* Driver.cs : for af_ZA locale, am/pm part got required to support
"empty" string. So check am/pm elements and overwrite AMDesigner/
PMDesigner value even if they consist of empty string.
* (moved logs for supp/ content to supp/)
svn path=/trunk/mono/; revision=28149
* RNGCryptoServiceProvider.cs: Changed RNG interface with the runtime
so it could be used in a thread-safe way with CryptoAPI.
svn path=/trunk/mcs/; revision=28143
* SoapReader.cs: Added support for deserialization of headers. Cache
both member indexes and member infos in the new TypeMetadata structure.
* SoapWriter.cs: Added support for serialization of headers.
svn path=/trunk/mcs/; revision=28141
* UrlUtils.cs:
(GetFile): not public, and fixed to really return just the file name.
(InsertSessionId): ensure that the directory ends with a "/". This
fixes cookieless sessions.
svn path=/trunk/mcs/; revision=28109
* expression.cs
(MethodGroupExpr.IdenticalTypeName): New public property.
(Invocation.DoResolve): Don't report a CS0176 if the "instance"
expression actually refers to a type.
svn path=/trunk/mcs/; revision=28084
* System.Web/HttpApplication.cs: set culture/uiculture from
configuration and restore it after each step. Fixes bug #52851.
* System.Web.Configuration/GlobalizationConfiguration.cs: if we have no
context, use GetAppConfig instead of GetConfig.
svn path=/trunk/mcs/; revision=28081
* MethodBuilder.cs: Now use FastNewGuidArray to create new random
Guids without using CryptoConfig. Speed up for MCS.
svn path=/trunk/mcs/; revision=28069
* Guid.cs: Added an internal method to create a random Guid without
using CryptoConfig (which is heavy on first use). This is only used
in S.R.E.ModuleBuilder to speedup MCS compilation.
svn path=/trunk/mcs/; revision=28068
* ArrayTest.cs: Added tests to check for integer overflow in Clear,
Copy and Reverse.
* BitConverterTest.cs: Added test to check for possible integer
overflow in ToString (byte,int,int)
svn path=/trunk/mcs/; revision=28062
specified. The min bounds is set to -1, I am not completely sure
if that is what it is supposed to be but MS does not set it to 0
based on testing. Patch by [email protected]. Fixes bug
#56761.
svn path=/trunk/mcs/; revision=28061
* String.cs: Fixed reported exception for PadLeft|Right. Fixed
possible integer overflow in methods that takes index and count
as parameters.
svn path=/trunk/mcs/; revision=28060
* ConvertTest.cs: New tests for prefixed hexadecimal strings and
negative byte convertion.
* StringTest.cs: Added new tests for integer overflow and negatives.
svn path=/trunk/mcs/; revision=28042
* DateTime.cs : In ToString(string, IFormatProvider), use "G" if
string format argument is null. This should fix bug #57656.
svn path=/trunk/mcs/; revision=28037
* mini-ops.h, mini-ppc.c, cpu-g4.md, inssel-ppc.brg: eliminate the use
of the mcrxr instruction which is not available on some processors
even if it's documented to be. Implement add and sub overflow correctly
(still not complete for long unsigned). Speed up icalls a bit.
svn path=/trunk/mono/; revision=28035
* mini.c (mono_jit_compile_method_with_opt): Make sure that
we run .cctor in the current domain instead of target_domain.
Fixes bug #58558, .cctor not being called in -O=shared.
svn path=/trunk/mono/; revision=28032
* System.Data.OracleClient/OracleCommand.cs:
* System.Data.OracleClient/OracleDataReader.cs:
* System.Data.OracleClient.Oci/OciStatementHandle.cs: patch by Eduard
Nesiba that implements autocommit behavior for non query statement
which is out of transaction. In previous implementation changed rows
stayed locked until client disconnect and hasRows proper settings.
svn path=/trunk/mcs/; revision=28019
* jscript-lexer-parser.g: added 'using' for
System.Collections. Allow 'switch' statement building of its
ast. Added parent parameter to constructor of With. Build
inside_for ast.
svn path=/trunk/mcs/; revision=28013
* DateTime.cs: allow double quotes in the formats. Don't set
next_not_digit to true in presence of single or double quotes. Patch by
Martin Probst.
svn path=/trunk/mcs/; revision=28011
- Added loading of comdlg32 for wine to enable usage of common dialogs.
- Moved the comdlg32 functions into the Win32 section
svn path=/trunk/mcs/; revision=28009
* Directory.cs: ERROR_FILE_NOT_FOUND in FindFirstFile means there are
no files, but the directory was found. Fixes bug #58875.
svn path=/trunk/mcs/; revision=28005
* mini-x86.c (EMIT_COND_BRANCH): If an OP_LABEL has an offset
which can be done with an imm8, do it that way.
(mono_arch_output_basic_block): ditto for a jmp
(mono_arch_emit_prolog): Computate maximum offset of a label.
svn path=/trunk/mono/; revision=28004
* StreamReader.cs: Add checks for null encoding. Fixed possible integer
overflow and ArgumentNullException in Read.
svn path=/trunk/mcs/; revision=28000
* enum.cs (Enum.DefineType): For the `BaseType' to be a
TypeLookupExpression; otherwise, report a CS1008. Fixes#58571.
svn path=/trunk/mcs/; revision=27999
* FileInfo.cs: Reformat the whole file to use DOS line endings.
(MoveTo): Return if the destination of Move is the same as the file's
current location.
svn path=/trunk/mcs/; revision=27996
* StreamWriter.cs: Add dispose check to Write(char) and Write(char[]),
AutoFlush. Fixed possible integer overflow in Write(char[],int,int).
svn path=/trunk/mcs/; revision=27993
* Directory.cs: Reformat the whole file to use Unix line endings
for consistency.
(GetFileSystemEntries): If pattern is String.Empty, always
return an empty string array. Throw the ArgumentException if path
is an empty string (determined using the new helper method)
(IsEmptyString): Returns true on an empty string or a string with
only whitespace characters.
* Path.cs (GetPathRoot): Throw an ArgumentException if the path
argument is String.Empty.
svn path=/trunk/mcs/; revision=27990
* mini-x86.c (mono_arch_local_regalloc): the reg allocator
now tries to allocate prefered physical reg's for virtual
regs. This reduces the number of emited spills/loads with
20-30% on our core assemblies.
svn path=/trunk/mono/; revision=27981
* MemoryStream.cs: Fixed exception reporting to match MS Fx. Fixed the
condition to allow zeroization of existing data when we shrink the
stream.
svn path=/trunk/mcs/; revision=27977
* MemoryStreamTest.cs: Test that we zeroize old data when we manipulate
the length of the stream. Verify that we throw the same exceptions as
MS fx.
svn path=/trunk/mcs/; revision=27974
* ecore.cs (SimpleName.SimpleNameResolve): Renamed to
DoSimpleNameResolve() and provide a SimpleNameResolve() wrapper
which does the CS0135 check. The reason is that we first need to
check whether the variable actually exists.
svn path=/trunk/mcs/; revision=27973
* class.cs (MemberBase.DoDefine): Use DeclSpace.FindType() rather
than RootContext.LookupType() to find the explicit interface
type. Fixes#58584.
svn path=/trunk/mcs/; revision=27972
* icall.c: Added define for CSIDL_FLAG_CREATE (0x8000) in case it is
missing in the windows build (like older cygwin include files).
svn path=/trunk/mono/; revision=27968
* XmlSchemaBuiltInDataypeTests.cs : 'Z' is not allowed here (maybe it
is 'T' that was wanted). More kind error message in Fail().
svn path=/trunk/mcs/; revision=27956
(LIBRARY_COMPILE) [!HAVE_SYSTEM_XML]: Use $(BOOT_COMPILE) for
non-Xml first build.
(all-local) [!SECOND_PASS]: Simplify.
svn path=/trunk/mcs/; revision=27950
($(the_lib)): Use $(LIBRARY_COMPILE) to compile $(the_lib).
* executable.make (uninstall-local): Use PROGRAM_INSTALL_DIR.
svn path=/trunk/mcs/; revision=27949
* NamedNodeMap.cs : Modified. "domestic or street" does not mean
the exact literal node name, but it means "either 'domestic' or
'street'". We always return fixed values.
svn path=/trunk/mcs/; revision=27944
* Document.cs : am sure that element nodes are up to 36, not 37
(maybe counting the element that is in unused entity value?).
svn path=/trunk/mcs/; revision=27943
* DTDReader.cs : When sequential PE references exist, the reader only
expands the first one and in some cases the parser complaints the
content (such like expecting name character but found '%').
This fixes bug #58818.
svn path=/trunk/mcs/; revision=27941
* decl.cs (DeclSpace.FindType): Only check the `using' list if we
don't have any dots. Fixes#52622, added cs0246-8.cs.
* namespace.cs (NamespaceEntry.Lookup): Likewise.
svn path=/trunk/mcs/; revision=27931
* Npgsql/NpgsqlConnection.cs: Fixed bug which prevented Npgsql to
connect to cvs built servers which had devel in its version string.
svn path=/trunk/mcs/; revision=27928
* Boolean.cs: Fixed Equals for True!=True (see bugzilla #58874).
* BitConverter.cs: Fixed negative index and integer overflow in
To... methods.
svn path=/trunk/mcs/; revision=27926
* BooleanTest.cs: Added new test to compare booleans using Equals
and == (case of True!=True). Converted to NUnit2 format.
svn path=/trunk/mcs/; revision=27925
* ecore.cs (SimpleName.SimpleNameResolve): Only report a CS0135 if
the variable also exists in the current block (otherwise, we need
to report a CS0103). Fixes#58670.
svn path=/trunk/mcs/; revision=27924
Fix bug #57835
* attribute.cs (AttributeTester.GetMethodObsoleteAttribute): Returns
instance of ObsoleteAttribute when symbol is obsolete.
* class.cs
(IMethodData): Extended interface for ObsoleteAttribute support.
svn path=/trunk/mcs/; revision=27917
* BitConverterTest.cs: Added new tests for negative integers and
integer overflow in To... methods. Added new boolean convertion
tests.
svn path=/trunk/mcs/; revision=27912
* RealProxy.cs: Moved async functionlity here, also take
care of custom proxies (non RemotingProxy) case for async and
construction calls.
* RemotingProxy.cs: allow RealProxy to call construction method and
remove end async control (moved to RealProxy)
Fixes remoting2/3 test case (mono/mono/tests) and closes bug #57672.
svn path=/trunk/mcs/; revision=27908
* FieldInfo.cs: changed default constructor from internal to protected, so classes
that inherit from it can get build.
svn path=/trunk/mcs/; revision=27892
* mini-sparc.c (mono_arch_output_basic_block): ADD_IMM and SUB_IMM
should set carry.
* basic-long.cs: Add tests for add/subtract of immediates with carry.
svn path=/trunk/mono/; revision=27886
Npgsql/NpgsqlCommand.cs,
Npgsql/NpgsqlConnection.cs,
Npgsql/NpgsqlDataReader.cs,
Npgsql/NpgsqlException.cs,
Npgsql/NpgsqlTransaction.cs,
Npgsql/Design/ConnectionStringEditor.cs,
Npgsql/Design/ConnectionStringEditorForm.cs,
Npgsql/Design/NpgsqlParameterConverter.cs,
Npgsql/Design/NpgsqlParametersEditor.cs,
NpgsqlTypes/NpgsqlTypesHelper.cs: Commit log by
Glen Parker ([email protected]): Bug #772 ("Using
Command and Prepare adds single quotes to strings twice")
is fixed :-) It was broken when running on the version 3
protocol (extended query support) on PostgreSQL 7.4.
Some of the files in Design were formatted with macintosh line
terminators. This was screwing up the xmldoc generator in csc,
so I reformatted to make it work.
I've added some essential xmldoc comments (<summary> tags). Much work
remains here, but I wanted to get a few in on common functions and
properties.
The .build file will now generate the Npgsql.xml file, next to the .dll
file. I removed the existing Npgsql.xml from CVS.
Thanks Glen Parker for this patch.
svn path=/trunk/mcs/; revision=27877
NpgsqlAsciiRow.cs,
NpgsqlBackEndKeyData.cs,
NpgsqlBinaryRow.cs,
NpgsqlCommand.cs,
NpgsqlConnectedState.cs,
NpgsqlConnection.cs,
NpgsqlConnection.resx,
NpgsqlConnector.cs,
NpgsqlConnectorPool.cs,
NpgsqlError.cs,
NpgsqlMediator.cs,
NpgsqlMessageTypes.cs,
NpgsqlPasswordPacket.cs,
NpgsqlQuery.cs,
NpgsqlRowDescription.cs,
NpgsqlStartupPacket.cs,
NpgsqlState.cs,
PGUtil.cs,
NpgsqlTypes/NpgsqlTypesHelper.cs : - store protocol version as an enum, keep numbers as protocol specific
- split more protocol handlers between version 2 and version 3
- split MessageTypes class on ver2/ver3 and add remaining types for ver3 - removed handlers for deprecated protocol message types
- store BackendKeyData in its own member on Mediator
- Store ParameterStatus objects in a key map on Mediator
- Get backend version now from the Mediator if possible
- Rewrite parsers for server version and connection string
- Store server version numericially (in a new class ServerVersion)
- As usual, lots of code cleanup/commenting/etc.
Thanks very much Glen Parker ([email protected]) for this patch.
svn path=/trunk/mcs/; revision=27876
* mini.c (inline_method): Allways inline some wrappers even if the cost
is too large. Fixes#58785.
* mini.c: Add support for MARSHAL_CONV_FTN_DEL.
svn path=/trunk/mono/; revision=27874
Fix bug #52705
* attribute.cs
(GetObsoleteAttribute): New method. Creates the instance of
ObsoleteAttribute.
(AttributeTester.GetMemberObsoleteAttribute): Returns instance of
ObsoleteAttribute when method is obsolete.
(AttributeTester.Report_ObsoleteMessage): Common method for
Obsolete error/warning reporting.
* class.cs
(TypeContainer.base_classs_type): New member for storing parent type.
* decl.cs
(MemberCore.GetObsoleteAttribute): Returns instance of ObsoleteAttribute
for this MemberCore.
svn path=/trunk/mcs/; revision=27872
* UIntPtr.cs: We now only accept 32bits unsigned values in the ulong
constructor unless we're on a 64 bits machine.
svn path=/trunk/mcs/; revision=27865
consistency, converted it all to DOS endings.
(ToType): When value is null, immediately return null and don't ever
throw a NullReferenceException. When conversionType is null, throw an
InvalidCastException. Give a better error message when attempting to
convert to a DBNull as well.
svn path=/trunk/mcs/; revision=27856
* io.c (CreateFile): Check for existing share modes when opening
a file.
* handles.c:
* handles-private.h:
* daemon-messages.h:
* daemon.c: Maintain a hash of file share modes, keying on device
and inode (to cope with symlinks.)
svn path=/trunk/mono/; revision=27850
* tools/uni2tab.c : non JIS X 0208 characters could not be decoded.
(It is hack!)
* CJK/jis.table : updated using the latest uni2tab.c
svn path=/trunk/mcs/; revision=27845
* mini-sparc.c exceptions-sparc.c: Applied patch from Mark Crichton
([email protected]). Beginning of support for sparc/linux.
* mini-sparc.c: Optimize retrieval of LMF address.
svn path=/trunk/mono/; revision=27839
* TcpListener.cs: Fixes a lot of the problems with remoting nunit tests.
(AcceptTcpClient): Don't create TcpClient before a
connection is accepted.
(LocalEndPoint): Use Server LocalEndPoint if connected
otherwise use endpoint from ctor.
(Init): Save end point, not server endpoint. This did
cause TcpListener to ignore port sent via constructor.
(Pending): Fixed wait time (method should return directly)
(Start): Moved Bind here instead of Init method; old method
caused us to bind ports even if the listener was stopped.
(Stop): Null server when stopping
svn path=/trunk/mcs/; revision=27837
* flowanalysis.cs (FlowBranching.MergeTopBlock): Don't check for
out parameters if the end of the method is unreachable. Fixes
#58098.
svn path=/trunk/mcs/; revision=27831
* DataColumnCollection.cs : NullReferenceException was thrown when
the table was not found.
* DataRowCollection.cs :
Find() just returns null for null value under MS.NET 1.1.
RemoveAt() should also avoid to call AcceptChanges() like Remove().
* UniqueConstraint.cs : in AssertConstraint() throw ConstraintException
directly under MS.NET (for nunit test).
svn path=/trunk/mcs/; revision=27829
* Decimal.cs: Fixed To... methods that needs to trunk the integer part
of Decimal (and not use the banker's rounding like Convert.To...).
svn path=/trunk/mcs/; revision=27828
* DecimalTest.cs: Added new unit test to check for correct rounding.
It appears that Decimal.To... trunk but Convert.To... use banking
rounding (so we can't use Convert.To... to implement To...).
svn path=/trunk/mcs/; revision=27825
* XmlSchemaDataImporter.cs : Setting startindex in LastIndexOf()
caused problem on qualified name to get schema Field name.
svn path=/trunk/mcs/; revision=27803
* Uri.cs :
AbsoluteUri does not escape file URI string.
ToString() should unescape every file uri. MS.NET.ToString() does
not unescape '#' but it looks a bug.
svn path=/trunk/mcs/; revision=27802
* XmlDataReader.cs : Now data reader is namespace aware in all places.
When table's namespace is different, it entered to infinite loop.
svn path=/trunk/mcs/; revision=27800
* X509CapiTest.cs: SetUp and TearDown are now public (required for new
nunit).
* X509SpcTest.cs: SetUp and TearDown are now public (required for new
nunit).
svn path=/trunk/mcs/; revision=27795
* KeyInfoTest.cs: SetUp is now public (required for new nunit).
* ReferenceTest.cs: SetUp is now public (required for new nunit).
svn path=/trunk/mcs/; revision=27789
NpgsqlAsciiRow.cs,
NpgsqlBackEndKeyData.cs,
NpgsqlBinaryRow.cs,
NpgsqlCommand.cs,
NpgsqlConnectedState.cs,
NpgsqlConnection.cs,
NpgsqlConnection.resx,
NpgsqlConnector.cs,
NpgsqlConnectorPool.cs,
NpgsqlError.cs,
NpgsqlMediator.cs,
NpgsqlMessageTypes.cs,
NpgsqlPasswordPacket.cs,
NpgsqlQuery.cs,
NpgsqlRowDescription.cs,
NpgsqlStartupPacket.cs,
NpgsqlState.cs,
PGUtil.cs,
NpgsqlTypes/NpgsqlTypesHelper.cs : - store protocol version as an enum, keep numbers as protocol specific
- split more protocol handlers between version 2 and version 3
- split MessageTypes class on ver2/ver3 and add remaining types for ver3 - removed handlers for deprecated protocol message types
- store BackendKeyData in its own member on Mediator
- Store ParameterStatus objects in a key map on Mediator
- Get backend version now from the Mediator if possible
- Rewrite parsers for server version and connection string
- Store server version numericially (in a new class ServerVersion)
- As usual, lots of code cleanup/commenting/etc.
Thanks very much Glen Parker ([email protected]) for this patch.
svn path=/trunk/mcs/; revision=27787
NpgsqlAsciiRow.cs,
NpgsqlBackEndKeyData.cs,
NpgsqlBinaryRow.cs,
NpgsqlCommand.cs,
NpgsqlConnectedState.cs,
NpgsqlConnection.cs,
NpgsqlConnection.resx,
NpgsqlConnector.cs,
NpgsqlConnectorPool.cs,
NpgsqlError.cs,
NpgsqlMediator.cs,
NpgsqlMessageTypes.cs,
NpgsqlPasswordPacket.cs,
NpgsqlQuery.cs,
NpgsqlRowDescription.cs,
NpgsqlStartupPacket.cs,
NpgsqlState.cs,
PGUtil.cs,
NpgsqlTypes/NpgsqlTypesHelper.cs : - store protocol version as an enum, keep numbers as protocol specific
- split more protocol handlers between version 2 and version 3
- split MessageTypes class on ver2/ver3 and add remaining types for ver3 - removed handlers for deprecated protocol message types
- store BackendKeyData in its own member on Mediator
- Store ParameterStatus objects in a key map on Mediator
- Get backend version now from the Mediator if possible
- Rewrite parsers for server version and connection string
- Store server version numericially (in a new class ServerVersion)
- As usual, lots of code cleanup/commenting/etc.
Thanks very much Glen Parker ([email protected]) for this patch.
svn path=/trunk/mcs/; revision=27786
* Convert.cs: Added checks for integer overflow for From|ToBase64Char.
Also fixed the case where wide (16 bits) characters were converted to
bytes.
svn path=/trunk/mcs/; revision=27781
* ConvertTest.cs: Added new unit tests for integer overflow in To/From
Base64CharArray. Added new test for wide char. Exploded some tests in
NUnit2 format (to ease add new tests).
svn path=/trunk/mcs/; revision=27780
interrupted by a signal.
* io.c, sockets.c: Check for EINTR in every syscall that can be interrumped.
Only return an error in this case if there is something in the apc queue
(which means that it is an interruption requested by the "user").
* processes.c: Use WaitForSingleObjectEx. No need to pass "alertable" as
true since the wait is small.
* shared.c: Retry write calls when interrumped by a signal.
* timed-thread.h, timed-thread.c: added _wapi_thread_apc_pending, which
returns TRUE if there are pending asynchronous calls (APC) for the
provided thread. Also added _wapi_thread_dispatch_apc_queue which calls
the enqueued APCs. Defined a new struct ApcInfo that holds information
about an enqueued APC.
* thread-private.h, threads.c: Implemented QueueUserAPC (which does the same
as in win32),_wapi_thread_apc_pending and _wapi_thread_dispatch_apc_queue.
These last two methods call the corresponding apc methods in
thread-private using the provided thread handle.
* threads.h: Added QueueUserAPC.
* uglify.h: Added WapiApcProc (needed by QueueUserAPC).
* wait.c, wait.h: Changed WaitForSingleObject to WaitForSingleObjectEx, and
WaitForMultipleObjects to WaitForMultipleObjectsEx. Implemented support
for APCs in those two methods and also in SleepEx.
svn path=/trunk/mono/; revision=27777
interrupted by a signal.
* io.c, sockets.c: Check for EINTR in every syscall that can be interrumped.
Only return an error in this case if there is something in the apc queue
(which means that it is an interruption requested by the "user").
* processes.c: Use WaitForSingleObjectEx. No need to pass "alertable" as
true since the wait is small.
* shared.c: Retry write calls when interrumped by a signal.
* timed-thread.h, timed-thread.c: added _wapi_thread_apc_pending, which
returns TRUE if there are pending asynchronous calls (APC) for the
provided thread. Also added _wapi_thread_dispatch_apc_queue which calls
the enqueued APCs. Defined a new struct ApcInfo that holds information
about an enqueued APC.
* thread-private.h, threads.c: Implemented QueueUserAPC (which does the same
as in win32),_wapi_thread_apc_pending and _wapi_thread_dispatch_apc_queue.
These last two methods call the corresponding apc methods in
thread-private using the provided thread handle.
* threads.h: Added QueueUserAPC.
* uglify.h: Added WapiApcProc (needed by QueueUserAPC).
* wait.c, wait.h: Changed WaitForSingleObject to WaitForSingleObjectEx, and
WaitForMultipleObjects to WaitForMultipleObjectsEx. Implemented support
for APCs in those two methods and also in SleepEx.
svn path=/trunk/mono/; revision=27776
* XmlSchemaDataImporter.cs : xs:positiveInteger is mapped to ulong.
When content type is Mixed, text column is not required (it is
required only when the complex type has no particle).
"Repeated element" column is also created (considering maxOccurs=0
and complex content extension).
svn path=/trunk/mcs/; revision=27759
Merged this back from gmcs to keep the differences to a minumum.
* attribute.cs (Attribute.CheckAttributeType): Take an EmitContext
instead of a Declspace.
(Attribute.ResolveType): Likewise.
(Attributes.Search): Likewise.
(Attributes.Contains): Likewise.
(Attributes.GetClsCompliantAttribute): Likewise.
* class.cs (TypeContainer.VerifyMembers): Added EmitContext
argument.
(MethodData.ApplyAttributes): Take an EmitContext instead of a
DeclSpace.
svn path=/trunk/mcs/; revision=27753
Merged latest changes into gmcs. Please keep this comment in
here, it makes it easier for me to see what changed in MCS since
the last time I merged.
svn path=/trunk/mcs/; revision=27745
for library to be tested.
* rules.make (INTERNAL_RESGEN): New Define.
* library.make (run-test-local): Move commands to run-test-lib.
Preparartion for allowing creation of addition test dll with .vb
testcases.
* executable.make (PROGRAM_COMPILE): New define.
($(PROGRAM)): Use PROGRAM_COMPILE to compile PROGRAM.
svn path=/trunk/mcs/; revision=27734
tools/locale-builder/Makefile.
* Makefile.am (SUBDIRS): Remove tools.
(DIST_SUBDIRS): Add 'tools'.
(bootstrap): Rewrite so that we get two new targets.
(faststrap): New two-stage build.
(fasterstrap): New one-stage build.
Make 'faststrap' and 'fasterstrap' are useful for continuing development
once you've bootstrapped a mono/ CVS checkout.
svn path=/trunk/mono/; revision=27732
* Expression.cs : We should not catch all kind of exception. Just
throwing any kind of exception would be preferable.
Added support for XPathNavigator values.
svn path=/trunk/mcs/; revision=27726
* XslCopyOf.cs : When evaluation result was result tree fragment (i.e.
XPathNavigator) output its content (children).
* XslNumber.cs : Reflected CompilePattern() change.
* XslTemplateContent.cs : Don't throw System.Exception.
* XslVariable.cs : XslVariableInformation.Evaluate() now returns
XPathNavigator, not NodeSet (it should not return "children", since
the node pointed by XPathNavigator should be referenced as Root).
svn path=/trunk/mcs/; revision=27725
* tools/Makefile.am: Add tools directory
* tools/locale-builder: Add the locale-builder tool, this tool is
not built by default as it is only needed by people that wish to
moidify culture data.
* Makefile.am: Add tools to build
svn path=/trunk/mono/; revision=27717
* DebuggerStepThroughAttribute.cs : now that Inherited is
false by default on AttributeUsageAttribute (as it
should be) we need to explicitly set Inherited to false
for those attributes where it should be false.
svn path=/trunk/mcs/; revision=27702
* DateTimeconstantAttribute.cs
* DecimalConstantAttribute.cs
* IDispatchConstantAttribute.cs
* IUnknownConstantAttribute.cs
* MethodImplAttribute.cs
* RequiredAttributeAttribute.cs: now that Inherited is
false by default on AttributeUsageAttribute (as it
should be) we need to explicitly set Inherited to false
for those attributes where it should be false.
svn path=/trunk/mcs/; revision=27701
* ContextStaticAttribute.cs
* FlagsAttribute.cs
* ObsoleteAttribute.cs : now that Inherited is false by
default on AttributeUsageAttribute (as it should be) we
need to explicitly set Inherited to false for those
attributes should it be be false.
svn path=/trunk/mcs/; revision=27699
* icall.c: new signature for Process_Start.
* process.[ch]: new signature for Process_Start. If we're on windows
and UseShellExecute is false, we have to search for the program by
ourselves if we don't get a full path.
svn path=/trunk/mono/; revision=27696
Fix bug #58688 (MCS does not report error when the same attribute
is assigned twice)
* attribute.cs (Attribute.Emit): Distinction between null and default.
svn path=/trunk/mcs/; revision=27687
* CustomSerializer.cs : Added custom serializer for XmlSchema, that is
generated by SerializationCodeGenerator and edited a bit.
* XmlSchema.cs : Use XmlSchemaSerializationWriter.
svn path=/trunk/mcs/; revision=27680
of a top-level attribute without an attribute target.
* attribute.cs (Attribute.Error_AttributeConstructorMismatch):
Make non-static.
(Attribute.Conditional_GetConditionName),
(Attribute.Obsolete_GetObsoleteMessage): Update.
(Attribute.IndexerName_GetIndexerName): New. Attribute-specific
part of ScanForIndexerName.
(Attribute.CanIgnoreInvalidAttribute): New function.
(Attribute.ScanForIndexerName): Move to ...
(Attributes.ScanForIndexerName): ... here.
(Attributes.Attrs): Rename from now-misnamed AttributeSections.
(Attributes.Search): New internal variant that can choose not to
complain if types aren't resolved. The original signature now
complains.
(Attributes.GetClsCompliantAttribute): Use internal variant, with
complaints suppressed.
(GlobalAttribute.CheckAttributeType): Overwrite ds.NamespaceEntry
only if it not useful.
(CanIgnoreInvalidAttribute): Ignore assembly attribute errors at
top-level for attributes that are shared between the assembly
and a top-level class.
* parameter.cs (ImplicitParameter): Rename from ParameterAtribute.
* class.cs: Update to reflect changes.
(DefineIndexers): Fuse loops.
* codegen.cs (GetAssemblyName): Update to reflect changes. Accept
a couple more variants of attribute names.
(cleans up some issues with Marek's patch. Most importantly, it fixes
a breaking build: errors/CS0618-2-lib.dll)
svn path=/trunk/mcs/; revision=27666
* PKCS7.cs: Added SignedData.VerifySignature(AsymmetricAlgorithm aa).
Added support for calculating signature from SignedData content (i.e.
when UseAuthenticatedAttributes is false). Added contentType to
AuthenticatedAttributes (when SignedData.UseAuthenticatedAttributes
is true).
svn path=/trunk/mcs/; revision=27662
* DataContainer.cs - added. Provides implementation for data containers that holds data in arrays of primitives or objects. Each data container belongs to specific DataColumn.
* DbDataAdapter.cs - changes to complete data storage redesign. Bug fix in FillTable ( to fetch exact number of records required ).
svn path=/trunk/mcs/; revision=27655
* SqlDecimal.cs : Fixed operator/ not to return positive always.
Halfly fixed ConvertToPrecScale() that was broken.
svn path=/trunk/mcs/; revision=27624
* SqlDecimal.cs :
- .ctor() should check the valid scale range and throw
SqlTypeException.
- Value should copy the last int32 value fragment.
- Fixed Abs() and Ceiling() to return Null when the input is Null.
- Now AdjustScale() should not depend on Truncate() that keeps zero
digits correctly. So Round() before returning the final result.
- ToString() should insert '-' for minus values.
- operator+ should use larger scale of operands rather than smaller
scale.
svn path=/trunk/mcs/; revision=27615
Fix bug #52585 (Implemented explicit attribute declaration)
* attribute.cs:
(Attributable.ValidAttributeTargets): New abstract method. It gets
list of valid attribute targets for explicit target declaration.
(Attribute.Target): It holds target itself.
(AttributeSection): Removed.
(Attribute.CheckTargets): New method. It checks whether attribute
target is valid for the current element.
* class.cs:
(EventProperty): New class. For events that are declared like
property (with add and remove accessors).
(EventField): New class. For events that are declared like field.
class.cs
* cs-parser.jay: Implemented explicit attribute target declaration.
* class.cs, decl.cs, delegate.cs, enum.cs, parameter.cs:
Override ValidAttributeTargets.
* parameter.cs:
(ReturnParameter): Class for applying custom attributes on
the return type.
(ParameterAtribute): New class. Class for applying custom
attributes on the parameter type.
svn path=/trunk/mcs/; revision=27608
* mini.h mini.c (mini_method_compile): Only run abc removal pass on
methods which contain array accesses.
* mini.c (CEE_LDTOKEN): Handle this instruction correctly on bb
boundaries. Fixes#58537.
* iltests.il: Add regression test for #58537.
svn path=/trunk/mono/; revision=27607
* basic-long.cs: Add new regression test.
2004-05-18 Patrik Torstensson <[email protected]>
* mini-x86.c (mono_arch_local_regalloc): Avoid releasing a
register too early on the chain.
svn path=/trunk/mono/; revision=27591
* ASN1Convert.cs: In sync with Mono.Security.dll version.
* StrongName.cs: In sync with Mono.Security.dll version.
svn path=/trunk/mcs/; revision=27587
* Assembly.cs: Return an empty Evidence collection to avoid
NullReferenceException from calling code (as this is never
null with MS implementation). See bugzilla #53548.
svn path=/trunk/mcs/; revision=27586
* Buffer.cs: Added checks for null source and destination. Fix failing
CryptoStream unit test.
* Guid.cs: Fixed thread-safety issue. Simplified implementation to use
pseudo-random numbers to generate GUIDs (as per section 3.4 of the
spec). This removes the TODO to get the computer MAC address and
the chances to get a duplicate GUID (across different machines).
svn path=/trunk/mcs/; revision=27585
* mini.c (create_helper_signature): Use a helper function to reduce
the code which needs to be written. Also set the calling convention of
icalls on windows. Fixes#57840.
svn path=/trunk/mono/; revision=27578
* mini.h, exceptions-x86.c, exceptions-sparc.c, exceptions-s390.c,
exceptions-ppc.c: added helper function to get the instruction address
from a signal handler context.
svn path=/trunk/mono/; revision=27577
* SqlDecimal.cs :
- .ctor(double) initializes the precision as 17. If not sufficient,
it calls AdjustScale(), and if too much then it calls Round().
- Data should not return the internal array otherwise it might be
modified by outer code.
- Reimplemented AdjustScale() to work fine.
- Reimplemented Parse(). It should rather use Decimal.Parse()
rather than SqlDouble.Parse() for parsable value range difference.
- Reimplemented Round(). Don't use double.
- Fixed ToString() to return "Null" for null value.
- Fixed explicit let operator to use double .ctor, not decimal
.ctor() so that precision can be handled in the same way as double.
svn path=/trunk/mcs/; revision=27568
* TestBlend.cs: dos2unix format and namespace changed to
MonoTests.System.Drawing.Drawing2D.
* TestColorBlend.cs: dos2unix format and namespace changed to
MonoTests.System.Drawing.Drawing2D.
svn path=/trunk/mcs/; revision=27566
* SqlDecimalTest.cs :
Don't catch all kind of exception. That hides the exact error info.
Don't use ToSqlString() in AdjustScale() test (to make which is
wrong).
MS.NET's ToSqlInt32() is buggy; no worth following the behavior.
Added test for parsing "999999..." (SqlDecimal.MaxValue).
svn path=/trunk/mcs/; revision=27564
* HttpUtility.cs: use lower case in UrlEncode like MS does. Delay
entities hashtable creation until it's really needed.
svn path=/trunk/mcs/; revision=27561
* ByteFX.Data.dll.sources: Update to latest listing of source
files.
* AssemblyInfo.cs: Revert back to the previous version, because we
don't have bytefx.snk.
* mysqlclient/transcaction.cs: Removed, replaced by the new
transaction.cs.
svn path=/trunk/mcs/; revision=27557
* RNGCryptoServiceProviderTest.cs: Added new tests to see how the
constructor behave with null seeds or if they modify the seed.
svn path=/trunk/mcs/; revision=27553
* helpers.c: Add new env variable to pass args to objdump.
Specifically for those of us who love -Mintel. r=miguel, gonzalo.
svn path=/trunk/mono/; revision=27551
* TextBox.cs: don't save the Text if in ViewState if it's a password.
Save it if the control is not visible or not enabled. Fixes bug #58497.
svn path=/trunk/mcs/; revision=27549
* SoapHttpClientProtocol.cs: when the response has a not acceptable
status code, the WebException we throw has a status of ProtocolError.
Fixes bug #58564.
svn path=/trunk/mcs/; revision=27543
* HttpApplicationFactory.cs: if no module matches the name found for a
possible event, ignore it. Fixes bug #58542.
svn path=/trunk/mcs/; revision=27541
* ConfigurationSettings.cs: don't ask me why, but the .cctor
initialization of 'instance' field does no longer work.
svn path=/trunk/mcs/; revision=27539
* gacutil.cs:
(InstallAssembly): use Array.IndexOf to search for "/f", "-f" or
"--force" instead of expecting it in a fixed place.
svn path=/trunk/mcs/; revision=27537
* TimeSpan.cs: Only catch expected exceptions, if we get other exceptions
than OverflowExceptions then something went wrong internally
svn path=/trunk/mcs/; revision=27535
(GraphicsPathIterator): Store the path count, path points and path
type arrays instead of calling unmanaged functions in GDI+ each time
to get to get the path data.
(CopyData, Enumerate, HasCurve, Rewind, SubpathCount): Implemented.
svn path=/trunk/mcs/; revision=27533
* XmlDataDocument.cs :
Removed MonoTODO from implemented members and private members.
Updated OnNodeRemoved(), OnDataRowDeleted() and OnDataTableRollback()
to match with current implementation.
svn path=/trunk/mcs/; revision=27529
* Makefile.am (common_sources): added abcremoval.h so it get
disted and daily mono packages on go-mono.com will build again
svn path=/trunk/mono/; revision=27528
* DataSet.cs,
XmlDataInferenceLoader.cs,
XmlDataReader.cs,
XmlSchemaDataImporter.cs : XmlDecode every local name to read and
XmlEncode every local name to write. This should fix bug #58268.
svn path=/trunk/mcs/; revision=27524
* DataSetAssertion.cs : Enabled "Ordinal" check again, unless the test
value is -1.
* DataSetInferXmlSchemaTest.cs,
DataSetReadXmlSchemaTest.cs : Enabled Ordinal check again, as long
as working. Added IgnoredNamespaces() to inferxmlschema test.
svn path=/trunk/mcs/; revision=27520
necessary. Move body ...
(tmpinst-dir.stamp): ... here.
(stage3): Don't remove _tmpinst tree.
(bootstrap-clean, bootstrap-check): New rules. They run the
corresponding rules in the mcs/ tree.
svn path=/trunk/mono/; revision=27513
* marshal.c: Don't pass wrappers to message init because method
addressed used to lookup metadata. part of remoting[2|3] fix.
svn path=/trunk/mono/; revision=27495
* ExpiresBucket.cs: Style changes plus;
(Update): Fixed possible lock bug (bug 54531)
(Expand): remove lock optimization due to it can cause newly
added items to be lost.
(Remove): fixed possible lock bug.
svn path=/trunk/mcs/; revision=27480
* mini-x86.c (mono_arch_local_regalloc): Correctly free
reg in long and clob case (bug #58343). Fixed/added comments.
svn path=/trunk/mono/; revision=27478
* Installer.cs: marked parent internal to match MS
* InstallerCollection.cs: implemented
* InstallEventArgs.cs: remove setter for SavedState
svn path=/trunk/mcs/; revision=27471
struct correctly to a native struct. Resulting data should be
FreeHGlobal'd when finished.
* EncoderParameter.cs: Changed data storage to correspond to
native code layout. Also changed layout to match native layout.
* EncoderParameterValueType.cs: force EncoderParameterValueType to
be Int32
* gdipFunctions.cs: Fixed prototype for
GdipGetEncoderParameterList
* Image.cs: Reworked Save functions to handle EncoderParameters.
Implemented GetEncoderParameterList.
Also removed unused setGDIPalette internal method.
svn path=/trunk/mcs/; revision=27467
path is essentially the same as MONO_PATH except that it points to
GACs instead of lib directories.
* loader.h: The user gac is gone so we dont need function to
enable/disable it.
* mono-config.c: user gac option is now gone.
svn path=/trunk/mono/; revision=27464
array of ints is passed back from the runtime to the CultureInfo
object. The ints store the calendar type and any optional data
needed to construct the calendar.
svn path=/trunk/mcs/; revision=27462
to the culture info table.
* culture-info-tables.h: Add basic calendar data. Basically
everyone gets default gregorian until all the data is
updated.
* locales.c: Use the new consistent defines. Set calendar data for
culture info objects.
* object.h: add a field for calendar data to CultureInfo
svn path=/trunk/mono/; revision=27461
* Makefile: corrected /libpath: compiler flag (parameter) to point to ../class/lib/default/ the new location of libraries
svn path=/trunk/mcs/; revision=27459
* System.ComponentModel.Design/ComponentDesigner.cs: fixed public API
* System.Web.UI.Design/ControlDesigner.cs: fixed public API
* System.Web.UI.Design/HtmlControlDesigner: fixed public API
* System.Windows.Forms.Design/AnchorEditor.cs: fixed public API,
converted to unix linefeeds
* System.Windows.Forms.Design/AxImporter.cs: fixed public API,
converted to unix linefeeds
* System.Windows.Forms.Design/ComponentDocumentDesigner.cs: fixed
public API, converted to unix linefeeds
* System.Windows.Forms.Design/SelectionRules.cs: implementation
svn path=/trunk/mcs/; revision=27445
converted to unix linefeeds, marked class TODO, added Flags
attribute to FolderBrowserStyles enum
* System.Windows.Forms.Design/FileNameEditor.cs:
completed stubs, converted to unix linefeeds
svn path=/trunk/mcs/; revision=27441
conversion in C.
(GraphicsPath): Use GdipCreatePath2I instead.
(SetMarker, ClearMarkers):
(Flatten, GetBounds, IsOutlineVisible, IsVisible):
(StartFigure, CloseFigure, CloseFigures):
(Warp, Widen): Implemented. I left the MonoTODO attribute on for
the methods where the equivalent C function has not yet been
implemented.
* GraphicsPathIterator.cs (Count): Implemented.
* gdipFunctions.cs (GdipCreatePath2I, GdipAddPathPieI):
(GdipFlattenPath, GdipWarpPath, GdipWidenPath):
(GdipGetPathWorldBounds, GdipGetPathWorldBoundsI): Imported.
svn path=/trunk/mcs/; revision=27424
* CustomDataClassGenerator.cs :
- Put classes inside custom DataSet class.
- Added automatic DataRelation creation support.
- Added Constraints creation support. That is done separate from
relations, since they might be independently created.
- Added non-MS public DataRelation fields.
- Removed extraneous "DataRelation type generation" code.
- Fixed custom_dataset.Initialize() not to create "c" field that
was created more than once.
- Implemented AddxxxRow() that takes parameters for every column.
svn path=/trunk/mcs/; revision=27418
* UTF8Encoding.cs: Moved charCount-- after the check for surrogate
pair. This fix bug #57009 (and 2 failing unit tests).
svn path=/trunk/mcs/; revision=27405
TestBitmap.cs: Modified method signature to static for use in other files.
TestImageConverter.cs: Added.
TestImageFormatConverter.cs: Added.
bitmaps/almogaver24bits1.bmp: Added.
svn path=/trunk/mcs/; revision=27402
* XmlSchemaDataImporter.cs : When primary key is used more than once,
DataRelation borked because of empty parent column name.
svn path=/trunk/mcs/; revision=27388
* XmlSchemaDataImporter.cs : When Creating constraints with related
to DataRelation creation, also set PrimaryKey to the parent table.
svn path=/trunk/mcs/; revision=27367
* XmlSchemaDataImporter.cs :
Design change to add indirect table and relation structures.
Support for "relation" annotation for local element.
Support for repeatable simple element column (maxOccurs > 1).
Fixed handling of Nested property on DataRelation (for globally
annotated relation, Nested is false).
svn path=/trunk/mcs/; revision=27359
* DataSetReadXmlSchemaTest.cs : Added tests for test012.xsd (repeatable
simple element) and test013.xsd (reference to global element;
currently failing).
svn path=/trunk/mcs/; revision=27358
* culture-info-tables.h: seems like Spanish and Portuguese cultures had
DateTimeFormatInfo.YearMonthPattern like "MMMM' yyyy" (note the single
quote). Changed them to "MMMM yyyy".
svn path=/trunk/mono/; revision=27337
* HtmlForm.cs: default value for Enctype is "".
* HtmlInputFile.cs: if no one set the encoding type for the HtmlForm,
we set it to "multipart/form-data". Fixes bug #58359.
svn path=/trunk/mcs/; revision=27332
* System.Web.Compilation/BaseCompiler.cs: use DynamicBase for the output
assemblies.
* System.Web.Configuration/CompilationConfiguration.cs: a null value is
ok for TempDirectory.
* System.Web.Hosting/AppDomainFactory.cs: set the Dynamic base for the
AppDomain.
Fixes bug #57726.
svn path=/trunk/mcs/; revision=27329
* AppDomainSetup.cs: don't throw an exception if dynamic_base has not
been set. Just return null as MS. Fixes bug #58120.
svn path=/trunk/mcs/; revision=27326
* Npgsql/NpgsqlHashAlgorithm.cs: Changed exception type from Exception t
o InvalidOperationException when calling the Hash property and hash value is nul
l. Thanks Gonzalo Paniagua Javier <[email protected]> for catching that.
svn path=/trunk/mcs/; revision=27299
* Npgsql/NpgsqlHashAlgorithm.cs: Changed exception type from Exception to InvalidOperationException when calling the Hash property and hash value is null. Thanks Gonzalo Paniagua Javier <[email protected]> for catching that.
svn path=/trunk/mcs/; revision=27298
* Thread.cs: Added missing MemoryBarrier (only for 1.1) and SpinWait to please
corcompare. Both throw a NotImplementedException.
* ThreadPool.cs: Added missing UnsafeRegisterWaitForSingleObject methods (4
overloads) to please corcompare. All throw a NotImplementedException.
svn path=/trunk/mcs/; revision=27293
* mono-mutex.c (mono_mutex_unlock): Return EPERM when the current
thread doesn't own the mutex, rather than assert()ing.
svn path=/trunk/mono/; revision=27292
In .NET 1.0, encoded null elements use the attribute null="1", while in
1.1 the attribute is nil="true".
* XmlTypeMapping.cs: Little fix for nested classes.
svn path=/trunk/mcs/; revision=27279
* Utils.cs:
Finally implement fully method CopyArray
Progression: all nunit-tests for this method now pass on Mono, as they do in .NET
svn path=/trunk/mcs/; revision=27278
* XmlCanonicalizer.cs :
Element namespace is not XPath-selected(selectable) namespace nodes
and that should be outputted.
Don't return null for empty output.
svn path=/trunk/mcs/; revision=27270
* XmlDsigBase64Transform.cs :
LoadInput() should retrieve all the descendants.
GetOutput() should handle nodes without digging into child nodes.
svn path=/trunk/mcs/; revision=27269
* Environement.cs: Removed two security attributes for CurrentDirectory
that weren't documented (and anyway we don't support them).
svn path=/trunk/mcs/; revision=27268
* DataRow.cs : Added DataElement property to avoid storing every row-
element mapping. It stored even for nodes that should be removed.
svn path=/trunk/mcs/; revision=27266
* XmlDataDocument.cs : Removed row-element mapping. Just use new
DataRow.DataElement property. Added/removed some comments.
svn path=/trunk/mcs/; revision=27251
* XsdValidatingReaderTests.cs : Ignore TestNamespaceFalse(). It is not
kind of thing that should be supported.
* XmlValidatingReaderTests.cs : commented a bit.
svn path=/trunk/mcs/; revision=27238
* XmlSchema.cs : Removed FIXME. No PSVI required.
* XmlSchemaAll.cs : Removed FIXME. It was not done.
* XmlSchemaAttributeGroupRef.cs : Removed FIXME. It can be annotated.
* XmlSchemaChoice.cs : not FIXME but LAMESPEC.
* XmlSchemaSimpleTypeRestriction.cs : Added check for non
XmlSchemaFacet items on Compile(). Thus removed FIXME.
* XmlSchemaUtil.cs : Fixed SplitList to handle sequential spaces.
Thus removed FIXME.
* XmlSchemaObjectTable. cs: modified to use HybridDictionary (mostly
for avoiding iterator order difference).
svn path=/trunk/mcs/; revision=27232
* SqlClientPermission.cs, SqlDataReader.cs - added missing methods with TODO tags
* SqlCommand.cs, SqlDataAdapter.cs - implemented ToolboxItemAttribute
* SQLDebugging.cs - Added new file with a TODO tag
svn path=/trunk/mcs/; revision=27229
* DefaultContext.cs : Removed MonoTODO. done.
* Expression.cs : handle XPathResultType.Navigator in some places and
removed MonoTODO. Mark MonoTODO with explicit comments (though they
are mostly pointing out possibilities of optimization).
Removed extra check that depended on the old bugs.
* XPathResultType.cs : Fixed .Navigator that had the same value as
.String.
svn path=/trunk/mcs/; revision=27224
* System.Net/HttpWebRequest.cs: added 3 missing properties for 1.1. They
are not used yet.
* System.Net/NetConfig.cs: added MaxResponseHeadersLength field.
* System.Net/ServicePoint.cs:
* System.Net/ServicePointManager.cs: added missing properties for 1.1.
* System.Net.Configuration/NetConfigurationHandler.cs: process the
httpWebRequest node too. Better error checking.
svn path=/trunk/mcs/; revision=27211
* IsolatedStorage.cs: More details on MonoTODO. Throw exceptions on
AssemblyIdentity and DomainIdentity properties.
* IsolatedStorageFile.cs: More details on MonoTODO.
* IsolatedStorageFileStream.cs: Removed MonoTODO on class. Now use
Path.Combine to build filenames (constructor) and throw an exception
when we try to get the handle (as documented).
svn path=/trunk/mcs/; revision=27208
* XmlDataDocument.cs : Radical design change.
- GetElementFromRow() must return "detached" element, even if it is
not added to table's Rows.
- Introduced XmlDataElement class to map element (this class itself)
and DataRow _always_ . It is impossible to map *all* DataRows
to/from elements only in XmlDataDocument API, since DataRow can
be created separate from it (i.e. by table.NewRow()).
- Removed unreliable GetElementsByTagName() dependency from most
of the code, since users might create elements that has the same
name of any tables (that is possible especially unmapped elements).
- Adding/Removing delegates on every event action is unnecessary.
Use just flags.
- For Load(), just using base.Load() will do most of the job.
- Attributes and SimpleContents are not handled properly.
"Removed" and "Rollback" events are still TODO.
svn path=/trunk/mcs/; revision=27194
* XmlDataDocumentTest.cs : use Environment.NewLine. Added more tests.
* XmlDataDocumentTest2.cs : Test nested relationship, detached row
state, and unmapped element as well.
svn path=/trunk/mcs/; revision=27192
* GroupCollection.cs:
* MatchCollection.cs:
* CaptureCollection.cs: Moved GroupCollection, MatchCollection and
CaptureCollection so that they no longer inherit from the
non-standard RegexCollectionBase class. Fixes the API difference.
svn path=/trunk/mcs/; revision=27175
by the handler factory to check if the target method needs session or not.
Also factorized error handling in WriteError().
* HttpSoapWebServiceHandler.cs: Added GetRequestMethod(), for the same
reason. Assign the context to the WebService just before invoking the
method.
* SoapHttpClientProtocol.cs: Use helper method to create the xml writer.
* WebServiceHandler.cs: Added virtual GetRequestMethod().
* WebServiceHandlerFactory.cs: Use an http handler wrapper when the target
method requires session support.
* WebServiceHelper.cs: Added some helper methods.
svn path=/trunk/mcs/; revision=27168
* PKCS12.cs: Removed file exists check from SaveToFile(). Removed
Equals() and GetHashCode(). Clone the original iteration count.
svn path=/trunk/mcs/; revision=27166
* services.xml, wsdl.ignore: Updated.
* wstest.cs: Small improvements.
* external/BankCodeEJBHomeTest.cs, external/GlobalWeatherTest.cs,
external/HPcatalogTest.cs, external/IODCODESPOSTAUXTest.cs,
external/TemperatureServiceTest.cs, localhost/ConvDocEncBarTest.cs,
localhost/ConvDocEncWraTest.cs, localhost/ConvDocLitBarTest.cs,
localhost/ConvDocLitWraTest.cs, localhost/ConvRpcTest.cs
Changed namespace to make it easier to select tests in gnunit.
* localhost/ConvRpcTest.cs: Added test for method that returns "Object".
* server/ConvDocEncWra.asmx, ConvDocLitWra.asmx, ConvRpc.asmx: New test
methods.
* server/web.config: Added version to vsdisco handler type name.
* client/localhost/DataServiceTest.cs
client/localhost/DuplicateArrayTestTest.cs
client/localhost/SessionCounterTest.cs
server/DataService.asmx
server/DuplicateArrayTest.asmx
server/SessionCounter.asmx: New tests.
svn path=/trunk/mcs/; revision=27165
* DTDObjectModel.cs,
DTDReader.cs,
XmlDocument.cs,
XmlInputStream.cs,
XmlParserInput.cs,
XmlTextReader.cs,
XmlUrlResolver.cs : removed reference to Mono.Xml.
Made Mono.Xml.* classes internal.
* XmlDocument.cs : output xml declaration for TextWriter output in Save()
* XmlElement.cs : Name character check should be done in .ctor().
* XmlNamespaceManager.cs : Removed dangerous internal .ctor()
svn path=/trunk/mcs/; revision=27149
* System.Web.dll.sources: added Html32TextWriter.
* System.Web.Compilation/AspGenerator.cs: ObjectTagBuilder do not
override HasBody now.
* System.Web.UI/Html32TextWriter.cs: stub contributed by Matthijs ter
Woord [meddochat].
* System.Web.UI/ObjectTagBuilder.cs: remove the HasBody override as MS
does not have that.
This makes System.Web free of errors, missing or extra stuff in the
class status pages.
svn path=/trunk/mcs/; revision=27144
* attribute.cs:
(Attribute.GetAttributeTargets): New method. Gets AttributeTargets
for attribute.
(Attribute.IsClsCompliaceRequired): Moved to base for better
accesibility.
(Attribute.UsageAttribute): New property for AttributeUsageAttribute
when attribute is AttributeUsageAttribute.
(Attribute.GetValidTargets): Simplified.
(Attribute.GetAttributeUsage): New method returns AttributeUsage
attribute for this type.
(Attribute.ApplyAttributes): Method renamed to Emit and make
non-static.
(GlobalAttributeSection): New class for special handling of global
attributes (assembly, module).
(AttributeSection.Emit): New method.
* class.cs: Implemented Attributable abstract methods.
(MethodCore.LabelParameters): Moved to Parameter class.
(Accessor): Is back simple class.
(PropertyMethod): Implemented Attributable abstract class.
(DelegateMethod): Implemented Attributable abstract class.
(Event): New constructor for disctintion between normal Event
and Event with accessors.
* cs-parser.jay: Used new Event ctor and GlobalAttributeSection.
* codegen.cs, const.cs, decl.cs, delegate.cs:
(CommonAssemblyModulClass): Implemented Attributable abstract class
and simplified.
* enum.cs: Implement IAttributeSupport interface.
(EnumMember): New class for emum members. Implemented Attributable
abstract class
* parameter.cs:
(ParameterBase): Is abstract.
(ReturnParameter): New class for easier [return:] attribute handling.
* typemanager.cs: Removed builder_to_attr.
svn path=/trunk/mcs/; revision=27143
* Makefile: disable net_2_0 on windows. It doesn't build. Don't
try to build net_1_0 and net_2_0 if we provide a PROFILE=xxx in the
command line.
svn path=/trunk/mcs/; revision=27137
* metadata/Makefile.am: link to ../os/libmonoos.la on windows.
* metadata/assembly.c:
-If MONO_DEBUG, warn about non-existing directories in
MONO_PATH.
-Added mono_assembly_getrootdir() that replaces MONO_ASSEMBLIES
compile time variable.
-Removed init_default_path and call mono_set_rootdir from
libmonoos.a instead (windows only).
* metadata/assembly.h: declare mono_assembly_getrootdir().
* metadata/domain.c:
* metadata/icall.c: use mono_assembly_getrootdir() instead of
MONO_ASSEMBLIES.
* metadata/loader.c: s/getenv/g_getenv/
* os/win32/util.c: the path from GetModuleFileName is UTF-16.
svn path=/trunk/mono/; revision=27134
* platforms/win32.make: Define a PLATFORM_PATH_SEPARATOR used for
separating paths in env vars. (ie MONO_PATH).
* profiles/net_2_0.make: Always use gmcs for building the 2.0
libraries. corlib is the first lib built and it will build
gmcs.
svn path=/trunk/mcs/; revision=27126
* marshal.{h,c}: Add support for UnmanagedType.AsAny.
* marshal.c: Use mono_metadata_signature_{alloc,dup} where appropriate.
* metadata.h: Add new marshalling conversions.
* metadata.h metadata.c (mono_metadata_signature_dup): New helper function.
svn path=/trunk/mono/; revision=27122
* Mono.Security.Protocol.Tls.Handshake.Client/TlsServerCertificate.cs:
- Added fix for better handling of exceptions when
building the X509 Certificate chain.
svn path=/trunk/mcs/; revision=27117
* Timer.cs: if AutoReset, disable the timer before adding the callback
to the ThreadPool. Patch by Tim Fries <[email protected]>. Fixes bug
#57993.
svn path=/trunk/mcs/; revision=27114
* XmlDataInferenceLoader.cs :
It now requires XmlDocument as input. Improved identification of
DataSet element. Removed extra lines.
Moved boresome design notes to bottom of the source and
added standalone runnable driver (not included on build).
* DataSet.cs :
Update with related to the change above.
WriteXml() should call Flush() after writing. This fixes bug #58327.
* XmlSchemaDataImporter.cs :
Improved indentification of DataSet element.
svn path=/trunk/mcs/; revision=27111
* shared.c (_wapi_shm_attach): Cope when a previous daemon startup
attempt failed, leaving shared files that look like a daemon is
still starting.
svn path=/trunk/mono/; revision=27097
* SoapDocumentationHandler.cs: added internal property to get the page
handler when available.
* WebServiceHandlerFactory.cs: wrap the documentation handler in a class
that implements IRequiresSessionState and, if requested,
IReadOnlySessionState, so that we can use Sesion object in the default
WSDL help generator.
svn path=/trunk/mcs/; revision=27092
* reflection.c (mono_reflection_get_type): Lookup the type in all
modules of a multi-module assembly. Fixes#58291.
svn path=/trunk/mono/; revision=27091
* Mono.Security_test.dll.sources: Added unit tests for Mono.Security.
Protocol.Ntlm.MessabeBase and Mono.Security.ASN1Convert.
svn path=/trunk/mcs/; revision=27090
* ARC4ManagedTest.cs: Added missing unit tests for complete coverage.
Completed convertion to NUnit 2.
* CryptoConvertTest.cs: Added/modified unit tests for better coverage.
* MD2ManagedTest.cs: Added unit tests for better coverage.
* MD2Test.cs: Added unit tests for better coverage.
* MD4ManagedTest.cs: Added unit tests for better coverage.
* MD4Test.cs: Added unit tests for better coverage.
* PKCS8.cs: Added unit tests for better coverage.
svn path=/trunk/mcs/; revision=27087
* ChallengeResponseTest.cs: Added new unit tests for better coverage.
* MessageBaseTest.cs: New. Unit tests for the base abstract class.
* Type2MessageTest.cs: Added new unit tests for better coverage.
* Type3MessageTest.cs: Added new unit tests for better coverage.
svn path=/trunk/mcs/; revision=27086
* PrivateKeyTest.cs: Added new unit tests for better coverage.
* SoftwarePublisherCertificateTest.cs: Added new unit tests for better
coverage.
svn path=/trunk/mcs/; revision=27085
* ASN1ConvertTest.cs: New. Unit tests for ASN.1 convertions.
* StrongNameTest.cs: Added new unit tests for better coverage.
svn path=/trunk/mcs/; revision=27084
* ASN1Convert.cs: Added better exceptions. Fixed bugs found by new
unit tests.
* StrongName.cs: Fixed GetBytes() when creating a new strongname.
Removed unrequired :base() from a constructor. Removed debugging
Console.WriteLine.
svn path=/trunk/mcs/; revision=27082
* attribute.cs (Attribute.GetPositionalValue): New function.
* class.cs (TypeContainer.VerifyMembers): New function.
(TypeContainer.Emit): Use it.
(ClassOrStruct): New base class for Class and Struct.
(ClassOrStruct.ApplyAttributeBuilder): New function. Note if
StructLayout(LayoutKind.Explicit) was ascribed to the struct or
class.
(ClassOrStruct.VerifyMembers): If the struct is explicitly laid out,
then each non-static field should have a FieldOffset attribute.
Otherwise, none of the fields should have a FieldOffset attribute.
* rootcontext.cs (RootContext.ResolveCore): Resolve StructLayout
and FieldOffset attributes.
* typemanager.cs (TypeManager.struct_layout_attribute_type)
(TypeManager.field_offset_attribute_type): New core types.
(TypeManager.InitCoreTypes): Initialize them.
svn path=/trunk/mcs/; revision=27080
avoids throwing the Abort exception).
In mono_thread_manage, don't continue with the shutdown until all aborted
threads have actually stopped.
svn path=/trunk/mono/; revision=27076
(test-multi-local): Add logging of errors.
* runtest.pl: Change $errors and $warnings to keep track of lines
on which errors are supposed to occur.
svn path=/trunk/mcs/; revision=27068
* SqlMoney.cs : Handle fixed digits correctly.
Round decimal value before casting into other numeric types.
* SqlInt16.cs,
SqlInt32.cs,
SqlInt64.cs : Round SqlMoney decimal value before casting into them.
* SqlDateTime.cs :
Added range check.
Years and months were ignored in some .ctor().
Return invariant culture string in ToString().
Return null for operator - when operand is null.
svn path=/trunk/mcs/; revision=27067
* DataSetReadXmlSchemaTest.cs : SingleElementTreatmentDifference() was
incorrect. DataSet element is assumed only if there is only one
global element.
* DataSetReadXmlTest.cs : Added error-reported test case.
* DataSetInferXmlSchemaTest.cs : Modified more tests not to compare
Ordinal for non-specified columns (that shouldn't be significant).
svn path=/trunk/mcs/; revision=27065
* XmlNodeReader.cs : renamed ownerElement to ownerLinkedNode (text
node can be it as well) and added check for Attributes existence
in GetAttribute() and MoveTo*Attribute().
svn path=/trunk/mcs/; revision=27022
* HashAlgorithm.cs,
NpgsqlAsciiRow.cs,
NpgsqlBinaryRow.cs,
NpgsqlClosedState.cs,
NpgsqlCommand.cs,
NpgsqlCommandBuilder.cs,
NpgsqlConnection.cs,
NpgsqlDataReader.cs,
NpgsqlException.cs,
NpgsqlParameterCollection.cs,
NpgsqlReadyState.cs,
NpgsqlTransaction.cs: Improved exception handling. Now Npgsql throws mor
e meaningful exceptions instead of throw NpgsqlException which are now exclusive
ly to sign server errors. Thanks Glen Parker ([email protected]) for the patch.
svn path=/trunk/mcs/; revision=27009
* HashAlgorithm.cs,
NpgsqlAsciiRow.cs,
NpgsqlBinaryRow.cs,
NpgsqlClosedState.cs,
NpgsqlCommand.cs,
NpgsqlCommandBuilder.cs,
NpgsqlConnection.cs,
NpgsqlDataReader.cs,
NpgsqlException.cs,
NpgsqlParameterCollection.cs,
NpgsqlReadyState.cs,
NpgsqlTransaction.cs: Improved exception handling. Now Npgsql throws more meaningful exceptions instead of throw NpgsqlException which are now exclusively to sign server errors. Thanks Glen Parker ([email protected]) for the patch.
svn path=/trunk/mcs/; revision=27008
* monop.cs: seperate assembly loading into .GetAssembly method,
fail gracefully, and support loading assemblies from absolute and
relative paths
support /r: as well as -r:
svn path=/trunk/mcs/; revision=27007
* FileSystemWatcher.cs : csc build fix. Duplicate name between class
field and local variable. (already filed in bugzilla #47991).
svn path=/trunk/mcs/; revision=26997
to fix signature of OdbcConnection
* OdbcDataReader.cs: No longer use ODbcConnection.Datareader, in
order to fix signature of OdbcConnection
* OdbcConnection.cs: Signature fixes: removed DataReader property,
added setter for ConnectionTimeout, made transaction internal
* OdbcParameter.cs: reduced accessibility of Bind method to
internal, added setter for IsNullable
* OdbcParameterCollection.cs: made default ctor and Bind method
internal
svn path=/trunk/mcs/; revision=26991
* SqlDataSourceCommandEventArgs:
* XmlDataSource.cs : removed temporary workarounds for CLS
compliance as System.Data is now CLS compliant
svn path=/trunk/mcs/; revision=26983
* io.c: translate from GFileError to errno codes and don't free
variables right after calling mono_io_scandir, as we may overwrite
errno value.
svn path=/trunk/mono/; revision=26979
* DefaultWatcher.cs:
* FAMWatcher.cs: use MangledFilter instead of Filter.
* FileSystemWatcher.cs: added MangledFilter and finalizer.
* SearchPattern.cs: fixed the case when the pattern is "*".
svn path=/trunk/mcs/; revision=26978
* io.c: g_dir_open return ENOENT for directories on which we don't have
read/execute permission, while returning EPERM for anything below those.
So, change ENOENT by EPERM if the directory exists.
svn path=/trunk/mono/; revision=26970
* Makefile: build NUnit if the dll is not found when running
'make test'. Use INTERNAL_MCS to build the tests as csc fails miserably
to compile them.
svn path=/trunk/mcs/; revision=26968
* DSACryptoServiceProvider.cs: Fixed SignData to hash data before
signing it (thanks to Jens Thiel for spotting this).
svn path=/trunk/mcs/; revision=26932
* DSACryptoServiceProviderTest.cs: Added a new unit test for SignData
(was badly tested) and simplified test to reduce key pair generations.
svn path=/trunk/mcs/; revision=26931
* DataSet.cs :
In WriteXmlSchema(), when complex type contains simple type content
attributes must not added to XmlSchemaComplexType directly. It
causes schema compilation error.
DataRelation should not be output when related columns are hidden.
svn path=/trunk/mcs/; revision=26930
(ves_icall_System_Globalization_CultureInfo_internal_get_cultures):
Fix array construction, add bailout if the length is 0.
svn path=/trunk/mono/; revision=26922
* PasswordDerivceBytesTest.cs: Added new tests to complete
coverage.
* RSACryptoServiceProviderTest.cs: Added new tests to complete
coverage.
svn path=/trunk/mcs/; revision=26919
* io.c (FindFirstFile): Comment out a windows-compatibility check
that breaks when directories have metachars in their names.
Workaround for bug 58116.
svn path=/trunk/mono/; revision=26912
* ToBase64Transform.cs: Input block may be smaller than a full block
when calling TransformFinalBlock (fix 2 CryptoStream unit tests).
svn path=/trunk/mcs/; revision=26911
* ToBase64TransformTest.cs: Added a (legal) test where the final
transform receive data smaller than it's input block (padding).
svn path=/trunk/mcs/; revision=26910
* socket-io.c (addrinfo_to_IPHostEntry): Don't crash if the
machine doesn't have a DNS entry. Patch by Urs Muff
([email protected]), fixes bug 57928.
svn path=/trunk/mono/; revision=26908
* CipherMode.cs: Moved XML comments to monodoc.
* CryptoConfig.cs: Changed Array.Copy to Buffer.BlockCopy.
* CryptoStream.cs: Changed Array.Copy to Buffer.BlockCopy.
* DSA.cs: Changed Array.Copy to Buffer.BlockCopy.
* ICryptoTransform.cs: Moved XML comments to monodoc.
* PasswordDeriveBytes.cs: Changed Array.Copy to Buffer.BlockCopy.
* FromBase64Transform.cs: Moved XML comments to monodoc.
svn path=/trunk/mcs/; revision=26907
* Convert.cs: ToBase64CharArray method was depending on a bug in
S.S.C.ToBase64Transform class to work. Added an internal method to
provide the same functionality (multiple block processing).
svn path=/trunk/mcs/; revision=26906
* SequentialSearchPrimeGeneratorBase.cs: Start the smallPrime vector at
10 (not 9) as 29 was just tested (more for correctness than speed gain).
svn path=/trunk/mcs/; revision=26902
* PrimalityTests.cs: Applying optimization from HAC section 4.50
(base == 2) for a 30% gain in primality testing (medium confidence).
svn path=/trunk/mcs/; revision=26901
* BigInteger.cs: Faster scan of smallPrimes in IsProbablePrime.
Commented the methods OddModTwoPow and EvenModTwoPow as they are broken
in some cases (well tested primes test case).
svn path=/trunk/mcs/; revision=26900
Add a 'complain' parameter to silence errors.
(Attribute.Resolve): Update to changes. Put in sanity check to catch
silently overlooked type-resolutions.
(Attribute.ScanForIndexerName, Attribute.DefinePInvokeMethod): Update
to reflect changes.
(Attributes.Search): New function.
(Attributes.Contains, Attributes.GetClsCompliantAttribute): Use Search.
(Attributes.GetAttributeFullName): Remove hack.
* class.cs (MethodCore.LabelParameters, MethodData.ApplyAttributes):
Update to reflect changes.
* codegen.cs (CommonAssemblyModulClass.GetClsCompliantAttribute):
Use Attributes.Search instead of nested loops.
svn path=/trunk/mcs/; revision=26899
ImportMembersMapping call. This fixes bug #58112. The problem is that
it imported two different arrays (only different in the array item
namespace) with the same name. Not sure what was this Reset needed for,
everyting seems to work without it.
svn path=/trunk/mcs/; revision=26893
* XmlDataInferenceReader.cs : Added. It does InferXmlSchema() (it is
also expected to do ReadXml(), but I will remove that feature and
support column reordering).
* XmlSchemaDataImporter.cs : Always initialize dataset name.
Always set Nested and primary key for parent table.
* XmlDataReader.cs : Now it is used.
Top level element might not match to dataset name nor any table
name, but still possible to read content tables.
Handle empty element correctly in some places.
Handle Fragment mode (read up XmlReader to the end).
* DataSet.cs : Modified InferXmlSchema() and ReadXml() to use
XmlDataInferenceLoader and XmlDataReader.
svn path=/trunk/mcs/; revision=26889
* Makefile.am (bootstrap): New target for building from CVS. New
improved version of 'fullbuild' -- does not install any files.
(fullbuild): Obsolete target. Bootstraps and installs tree.
(mcs-tree-safe-build,xinstall-runtime,mcs-rest,remove-binaries):
Removed.
(stage1,stage1-mcs,stage1-mono,stage2,stage3)
(tmpinst-dir,tmpinst-runtime): New targets used to implement a
two-stage bootstrap.
svn path=/trunk/mono/; revision=26884
* RSAOAEPKeyExchangeDeformatterTest.cs: Updated unit tests to complete
coverage.
* RSAOAEPKeyExchangeFormatterTest.cs: Updated unit tests to complete
coverage.
* RSAPKCS1KeyExchangeDeformatterTest.cs: Updated unit tests to
complete coverage.
* RSAPKCS1KeyExchangeFormatterTest.cs: Updated unit tests to complete
coverage.
* RSAPKCS1SignatureDeformatterTest.cs: Updated unit tests to complete
coverage.
* RSAPKCS1SignatureFormatterTest.cs: Updated unit tests to complete
coverage.
svn path=/trunk/mcs/; revision=26860
* Directory.cs: use the real wildcard for file names as it is supported
now in io-layer. SearhPattern is not needed now.
svn path=/trunk/mcs/; revision=26856
* Convert.cs: ToBase64String method was depending on a bug in
S.S.C.ToBase64Transform class to work. Added an internal method to
provide the same functionality (multiple block processing).
svn path=/trunk/mcs/; revision=26850
* Rijndael.cs: Source clean up.
* RijndaelManaged.cs: Moved XML comments to monodoc. Added
globalization to exceptions.
svn path=/trunk/mcs/; revision=26849
* RNGCryptoServiceProvider.cs: Removed TODO and documented them in
mono doc. Now call runtime when a seed is provided.
* RSA.cs: Added globalization to exceptions. Removed check for
<RSAKeyValue> as it is not checked by MS implementation.
* SignatureDescription.cs: Moved XML comments to monodoc. Added
globalization to exceptions. Removed TODO and added notes to monodoc.
* SymmetricAlgorithm.cs: Moved XML comments to monodoc. Added
globalization to exceptions.
* ToBase64Tranform.cs: Added missing exception handling. Moved XML
comments to monodoc.
svn path=/trunk/mcs/; revision=26848
* SHA1.cs: Moved XML comments to monodoc.
* SHA1CryptoServiceProvider.cs: Moved XML comments to monodoc. Removed CLSCompliance
attributes from private fields.
* SHA256.cs: Moved XML comments to monodoc.
* SHA256Managed.cs: Moved XML comments to monodoc. Removed CLSCompliance
attributes from private fields.
* SHA384.cs: Moved XML comments to monodoc.
* SHA512.cs: Moved XML comments to monodoc.
svn path=/trunk/mcs/; revision=26845
* RC2.cs: Fixed KeySize to change it's value and the EffectiveKeySize
when the key is changed.
* RC2CryptoServiceProvider.cs: Added globalization to exceptions.
Fixed the KeySize must be equal with EffectiveKeySize to match MS
implementation.
svn path=/trunk/mcs/; revision=26844
* mini.c (mono_runtime_install_handlers): Use SA_ONSTACK since it is
more portable.
* mini.c (mono_method_to_ir): Handle opcode emulation for *_OVF opcodes.
svn path=/trunk/mono/; revision=26839
When deserializing an encoded method response, if the return type of the
method is Object, assign to it the first element of the message, whatever
it is.
* XmlSerializationReader.cs:
* SoapReflectionImporter.cs, XmlReflectionImporter.cs: Set IsReturnValue of
the imported member.
* TypeTranslator.cs: Added method to safely get a primitive TypeData.
* XmlSerializationReader.cs: Don't throw an exception when the CLR type for
a given xsi type is not found. Just read it as primitive type.
* XmlTypeMapMember.cs: Added IsReturnValue property.
* XmlTypeMapping.cs: Added ReturnMember property.
* XmlSerializer.cs: Reference System.Data when compiling the serializer.
svn path=/trunk/mcs/; revision=26836
* corlib_test.dll.sources: Added SymmetricAlgorithm2Test,
ToBaseTransformTest, TripleDESTest unit tests to the build.
svn path=/trunk/mcs/; revision=26834
* RNGCryptoServiceProviderTest.cs: Updated unit tests for exception
testing.
* RSATest.cs: Updated unit tests for importing XML key pairs.
* SymmetricAlgorithm2Test.cs: New. Non generated unit test for better
coverage (like exception testing).
* ToBase64TransformTest.cs: New. Unit tests to complete coverage of
ToBase64Transform.
* TripleDESTest.cs: New. Unit tests to complete coverage of TripleDES.
svn path=/trunk/mcs/; revision=26833
* DataSet.cs :
Eliminated CRLF injection.
More clear message in Clear().
Updates reflecting XmlSchemaDataImporter change.
Added duplicate check for XmlSerializerNamespaces in BuildSchema().
Don't use xmlns attribute for UnhandledAttributes (its not mandatory
but that depends on different behavior from ms.net).
Set locale also for DataTable.
Add xs:element only when target namespace matches to the
element's namespace. Otherwise, add xs:import for external namespace.
Put xs:sequence for dataset element's particle _only when_ actual
contents exist.
svn path=/trunk/mcs/; revision=26832
* ColorTranslator.cs: Fixed the existing methods and implemented
the missing methods.
* ColorConverter.cs: Fixed the existing methods and implemented
the missing methods. Also, fixed coding style.
svn path=/trunk/mcs/; revision=26831
* RC2Test.cs: Converted to NUnit 2. Uncommented some tests that throw
exceptions to test exception handling (and get more coverage).
* SHA256Test.cs: Corrected Setup attribtue (was [Test]).
svn path=/trunk/mcs/; revision=26830
* XmlDataReader.cs : Added. This class will work better when our
schema inference and schema read engine gets improved. (It contains
standalone testable Driver class.)
svn path=/trunk/mcs/; revision=26829
* ConstraintCollectionTest.cs : Table name should not be the same as
for the purpose of this test.
* DataSetReadXmlSchemaTest.cs : Added more tests based on schema files.
* DataSetTest.cs : Reordered attributes to pass test in
WriteDifferentNamespaceSchema().
svn path=/trunk/mcs/; revision=26822
Before the change the Enabled property wasn't updated when a postback
event was raised.
fixed SelectedIndex property implementation in ListControl.
Prevents throwing ArgumentOutOfRangeException (that should not be thrown),
when the list is empty.
svn path=/trunk/mcs/; revision=26817
* ManagedXslTransform.cs : For Stream input, use StreamWriter for
input to GenericOutputter. Passing XmlWriter causes unexpected
xml declaration output.
svn path=/trunk/mcs/; revision=26816
* NewMonoXSD.cs : Added new /generator:typename(,assemblyfile) option
support that enables users to use any CodeDomProvider.
Added VB support (/language:VB).
svn path=/trunk/mcs/; revision=26812
* mini-x86.[c|h], inssel-x86.brg, cpu-pentium.md, mini.c: enabled
long reg allocation in any reg (not only eax:edx) and implemented
long shl/shr ops in asm instead of helpers.
svn path=/trunk/mono/; revision=26811
* rand.c|h: Added new icall for (optionally) seeding the PRNG. This
does nothing for now (not required for Linux/Windows) but the class
library can call it (and a newer or modified runtime could need it).
* icall.c: Registred icall.
svn path=/trunk/mono/; revision=26802
* io-private.h: 'namelist' is now a gchar ** in _WapiHandlePrivate_find.
* io.c: implemented scandir using glib functions.
svn path=/trunk/mono/; revision=26801
* AspParser.cs: indent a few lines.
* AspTokenizer.cs: added ungetc() used when we read a '/' in an unquoted
attribute value. This way we can simulate reading 2 characters ahead
(one in ungetc and the other in Peek) and work with values like
text/javascript. Fixes bug #57302.
svn path=/trunk/mcs/; revision=26798
* ConfigXmlDocument.cs: removed method that was supposed to be internal.
* ConfigurationSettings.cs: instead of calling the overload that doesn't
exist in MS, use what we have when loading an external file.
svn path=/trunk/mcs/; revision=26793
* ForeignKeyConstraintTest.cs : Made tests pass under MS.NET 1.1.
Don't catch every kind of exception. That does nothing but keep us
away from the exact error location.
* DataSetTest.cs : Make sure that we read schema correctly, before
testing WriteXmlSchema.
svn path=/trunk/mcs/; revision=26786
* System.Web.Services.dll.sources: removed HttpGetWebServiceHandler and
HttpPostWebServiceHandler.
* System.Web.Services.Protocols/HttpGetWebServiceHandler.cs:
* System.Web.Services.Protocols/HttpPostWebServiceHandler.cs: removed.
* System.Web.Services.Protocols/HttpSimpleWebServiceHandler.cs: changed
ctor parameters and added EnableSession property.
* System.Web.Services.Protocols/WebServiceHandler.cs: added EnableSession
virtual property.
* System.Web.Services.Protocols/WebServiceHandlerFactory.cs: added a new
handler that implements IRequiresSessionState used for HttpGet and
HttpPost.
(GetHandler): for HttpGet and HttpPost check if the method requires to
have a Session object and use the new SimpleSyncSessionHandler in that
case.
Still missing proper session handler for SOAP requests.
svn path=/trunk/mcs/; revision=26782
* HttpSessionState.cs: added Clone (), which makes and exact copy but
with a cloned SessionDictionary. When EnableSessionState is set to
ReadOnly, we can modify the collection, but changes are not propagated.
* ISessionHandler.cs: changed signature of UpdateContext().
* SessionDictionary.cs: added Clone.
* SessionInProcHandler.cs:
* SessionSQLServerHandler.cs:
* SessionStateServerHandler.cs: don't create a new session if the handler
do not require it. UpdateContext() now returns an HttpSessionState to
the module.
* SessionStateModule.cs: removed IsReadOnly as it is now passed as a
parameter to the session handler. If the session is read-only, clone
it so that it can be changed but changes are not kept.
In short, we don't create session objects when not required and we
honor the ReadOnly sessions.
svn path=/trunk/mcs/; revision=26781
* Environment.cs: Completed OSVersion property.
* Version.cs: Added internal CreateFromString() to "try" to build the
best version number form the specified string.
svn path=/trunk/mcs/; revision=26777
* environment.c|h: Added icall ves_icall_System_Environment_
GetOSVersionString to get the current OS version as a string.
* icall.c: Registred icall.
svn path=/trunk/mono/; revision=26776
* CustomDataClassGenerator.cs : Modified that DataSet contains each
DataTable field so that each table property can access them directly.
(plus, modified standalone code driver code: shouldn't affect)
svn path=/trunk/mcs/; revision=26775
* DataColumnCollectionTest.cs : catch only specific exception. Don't
rely on localizable error message.
* DataSetTest.cs : Attribute orders should not be significant, so
just hacked to match current implementation's order.
Added WriteNestedTableXml().
svn path=/trunk/mcs/; revision=26774
* HashAlgorithm.cs: Moved XML comments to monodoc. Added globalization
to exceptions.
* KeyedHashAlgorithm.cs: Added globalization to exceptions.
* KeySizes.cs: Moved XML comments to monodoc.
* MaskGenerationMethod.cs: Source clean up.
* MD5.cs: Moved XML comments to monodoc.
* MD5CryptoServiceProvider.cs: Removed CLSCompliance attributes from
private fields. Changed constants from enum to array. Zeroize data on
Dispose.
* PaddingMode.cs: Moved XML comments to monodoc.
* PasswordDeriveBytes.cs: Added globalization to exceptions. Removed
TODO and documented as "not supported" in MonoDoc.
* RandomNumberGenerator.cs: Source clean up.
svn path=/trunk/mcs/; revision=26773
* mini-sparc.h: Fix warnings.
* exceptions-sparc.c (mono_arch_find_jit_info): Pop unused lfm off the
stack.
* mini-exceptions.c (mono_handle_exception): Call the filter in a
separate statement for clarity.
svn path=/trunk/mono/; revision=26770
When reading an object using the typeof(object) map, an emty xsi:type
means that it has to read the contents into an XmlNode[].
* TypeData.cs: Return the correct full name for inner classes.
* XmlSchemaImporter.cs: Improved detection of types that represent
"anyType", and must be mapped to XmlElement, XmlNode or Object.
* XmlSerializationReader.cs: In GetXsiType(), find the type attribute using
the correct namespace.
In ReadTypedPrimitive(), read the element as XmlNode[] if the type is
not known.
svn path=/trunk/mcs/; revision=26761
* SHA256Managed.cs: Updated to use shared constants.
* SHA384Managed.cs: Updated to use shared constants.
* SHA512Managed.cs: Updated to use shared constants.
* SHAConstants.cs: New. Shared constants for SHA implementations.
svn path=/trunk/mcs/; revision=26759
* Base64Constants.cs: New. Convert code into tables for better base64
performance.
* FromBase64Transform.cs: Updated to use the new tables. Source code
cleanup.
* ToBase64Transform.cs: Updated to use the new tables. Added
globalization. Commented finalizer as it isn't required in this case.
svn path=/trunk/mcs/; revision=26753
* object.c (mono_class_compute_gc_descriptor): Fix warning.
* object.c (mono_runtime_invoke_array): Add an assert so null cannot be
passed when a valuetype is expected.
* object.c (mono_unhandled_exception): Only set the exit code if the
exception happens in the main thread. Fixes thread5.exe.
svn path=/trunk/mono/; revision=26741
* BuiltInDatatype.cs : added BUGGY_MS_COMPLIANT condition and that
handles ms-compatible properties.
* XmlSchemaComplexType.cs : ditto for ContentTypeParticle of xs:anyType.
Make sure ContentType for xs:anyType is Mixed.
* XmlSchemaUtil.cs : ditto for <xs:attribute use="prohibited" ..>
svn path=/trunk/mcs/; revision=26737
* XmlSchema.cs : Write() handles schema namespace for xmlserializer
(it does not look to be handled inside xmlserializer).
svn path=/trunk/mcs/; revision=26735
* XmlDsigBase64Transform.cs : LoadInputAsXmlNodeList() is testable.
* XmlDsigC14NTransformTest.cs : Ignore LoadInputAsXmlNodeList(); that
test premises incorrect namespace handling.
* XmlDsigXPathTransformTest.cs : Removed some FIXMEs (counting node
will give more expected results),
plus some noise on FunctionHereObsolete().
svn path=/trunk/mcs/; revision=26732
* SignedXml.cs,
Transform.cs : code cleanup. #if !NET_1_0 -> #if NET_1_1.
* XmlDsigBase64Transform.cs : Should not output the content of the
selected element nodes. Put text content only those text nodes are
in the node list.
* XmlDsigEnvelopedSignatureTransform.cs : removed MonoTODO.
* XmlDsigXsltTransform.cs : Use XmlResolver to load document and
to transform. Throw null reference exception explicitly when
the input was not loaded.
svn path=/trunk/mcs/; revision=26731
* XmlSchemaDataImporter.cs :
SimpleContent column support.
Annotated relation support.
Top-level element is counted only when its type is complex.
xs:anyType is no longer treated as complex type.
dataset existence is mandatory now.
Improved DataType and DefaultValue support.
Attribute namespace is properly handled now.
Prohibited attribute is now treated as hidden column.
Reject list or union simple type.
Still incomplete 1) to read relationship in some cases, 2) to
determine whether an element is dataset or table, 3) thus to
exclude extraneous column, 4) to remove extraneous *_Id column.
svn path=/trunk/mcs/; revision=26730
* DataTable.cs :
We had better reuse DataSet's ReadXmlSchema() and ReadXml() in
serialization .ctor() (thus schema read/inference should be easier).
DataRowSorter should consider Table's Locale.
svn path=/trunk/mcs/; revision=26729
* ConstraintCollection.cs :
Use Table.CaseSensitive and Table.Locale to compare strings.
Duplicate constraint name exception does not occur under .NET 1.1.
svn path=/trunk/mcs/; revision=26727
* ConstraintCollectionTest.cs : uncommented some tests that should be
implemented until mono 1.0.
* ConstraintTest.cs : use ExpectedException. Don't expect localizable
error message.
* DataColumnTest.cs,
DataRelationTest.cs,
DataRowCollectionTest.cs : catch only specific type exception.
Don't rely on (test) localizable messages.
* DataSetAssertion.cs : We shouldn't expect exact column ordinals
when infering/reading the structures from documents/schemas.
svn path=/trunk/mcs/; revision=26726
* System.Web.Services/WebService.cs: added a HttpSessionState field
and a setter method. Session now returns null if EnableSession is not
set for the method invoked.
* System.Web.Services.Protocols/HttpSimpleWebServiceHandler.cs:
* System.Web.Services.Protocols/HttpSoapWebServiceHandler.cs: use
the session if the method has EnableSession set.
* System.Web.Services.Protocols/LogicalMethodInfo.cs: added
EnableSession property.
* System.Web.Services.Protocols/WebServiceHandler.cs: set the Session
object of the WebService.
Fixes bug #57905 (needs the latest DefaultWsdlHelpGenerator.aspx).
svn path=/trunk/mcs/; revision=26722
* data/DefaultWsdlHelpGenerator.aspx: add any cookie in the request to
the request we do for the actual web service.
svn path=/trunk/mono/; revision=26721
* daemon.c (read_message): Return FALSE on error so the GSource
callback itself can return FALSE. Cures the infinite loop poll()
warning on MacosX.
* shared.c: Fix some daemon startup race conditions.
svn path=/trunk/mono/; revision=26704
* WebConfigurationSettings.cs: now it defaults to 'web.config' and if
not found, 'Web.config'. Don't throw exception if both exists. Thanks
to urs and dru for bugging me about this.
svn path=/trunk/mcs/; revision=26698
* configure.in: check for SIGEV_THREAD being defined before checking
for AIO support. Fixes compilation under FreeBSD.
svn path=/trunk/mono/; revision=26690
* interp.c (ves_exec_method_with_context): Disable explicit assignment
of 'esi' to the ip variable, since it causes register allocation errors
on some versions of gcc. Fixes#58010.
svn path=/trunk/mono/; revision=26689
JIT_SUPPORTED.
(install-data-local, uninstall-data-local): Run runtime with
libtool.
* runtime/net_2_0/Makefile.am: Likewise.
Report from Urs C Muff <[email protected]>.
svn path=/trunk/mono/; revision=26685
2004-05-04 07:38:05 +00:00
10446 changed files with 107403 additions and 1567692 deletions
staticjobjectJNICALLNewLocalRef(JNIEnv*env,jobjectref){printf("JNI Function NewLocalRef is not implemented.\n");g_assert_not_reached();return0;}
staticjintJNICALLEnsureLocalCapacity(JNIEnv*env,jintcapacity){printf("JNI Function EnsureLocalCapacity is not implemented.\n");g_assert_not_reached();return0;}
staticjobjectJNICALLAllocObject(JNIEnv*env,jclassclazz){printf("JNI Function AllocObject is not implemented.\n");g_assert_not_reached();return0;}
staticjobjectJNICALLAllocObject(JNIEnv*env,jclassclazz){printf("JNI Function EnsureLocalCapacity is not implemented.\n");g_assert_not_reached();return0;}
staticvoidJNICALLGetBooleanArrayRegion(JNIEnv*env,jbooleanArrayarray,jsizestart,jsizel,jboolean*buf){printf("JNI Function GetBooleanArrayRegion is not implemented.\n");g_assert_not_reached();}
staticvoidJNICALLGetByteArrayRegion(JNIEnv*env,jbyteArrayarray,jsizestart,jsizelen,jbyte*buf){printf("JNI Function GetByteArrayRegion is not implemented.\n");g_assert_not_reached();}
staticvoidJNICALLGetCharArrayRegion(JNIEnv*env,jcharArrayarray,jsizestart,jsizelen,jchar*buf){printf("JNI Function GetCharArrayRegion is not implemented.\n");g_assert_not_reached();}
staticvoidJNICALLGetShortArrayRegion(JNIEnv*env,jshortArrayarray,jsizestart,jsizelen,jshort*buf){printf("JNI Function GetShortArrayRegion is not implemented.\n");g_assert_not_reached();}
staticvoidJNICALLGetIntArrayRegion(JNIEnv*env,jintArrayarray,jsizestart,jsizelen,jint*buf){printf("JNI Function GetIntArrayRegion is not implemented.\n");g_assert_not_reached();}
staticvoidJNICALLGetLongArrayRegion(JNIEnv*env,jlongArrayarray,jsizestart,jsizelen,jlong*buf){printf("JNI Function GetLongArrayRegion is not implemented.\n");g_assert_not_reached();}
staticvoidJNICALLGetFloatArrayRegion(JNIEnv*env,jfloatArrayarray,jsizestart,jsizelen,jfloat*buf){printf("JNI Function GetFloatArrayRegion is not implemented.\n");g_assert_not_reached();}
staticvoidJNICALLGetDoubleArrayRegion(JNIEnv*env,jdoubleArrayarray,jsizestart,jsizelen,jdouble*buf){printf("JNI Function GetDoubleArrayRegion is not implemented.\n");g_assert_not_reached();}
staticvoidJNICALLSetBooleanArrayRegion(JNIEnv*env,jbooleanArrayarray,jsizestart,jsizel,jboolean*buf){printf("JNI Function SetBooleanArrayRegion is not implemented.\n");g_assert_not_reached();}
staticvoidJNICALLSetByteArrayRegion(JNIEnv*env,jbyteArrayarray,jsizestart,jsizelen,jbyte*buf){printf("JNI Function SetByteArrayRegion is not implemented.\n");g_assert_not_reached();}
staticvoidJNICALLSetCharArrayRegion(JNIEnv*env,jcharArrayarray,jsizestart,jsizelen,jchar*buf){printf("JNI Function SetCharArrayRegion is not implemented.\n");g_assert_not_reached();}
staticvoidJNICALLSetShortArrayRegion(JNIEnv*env,jshortArrayarray,jsizestart,jsizelen,jshort*buf){printf("JNI Function SetShortArrayRegion is not implemented.\n");g_assert_not_reached();}
staticvoidJNICALLSetIntArrayRegion(JNIEnv*env,jintArrayarray,jsizestart,jsizelen,jint*buf){printf("JNI Function SetIntArrayRegion is not implemented.\n");g_assert_not_reached();}
staticvoidJNICALLSetLongArrayRegion(JNIEnv*env,jlongArrayarray,jsizestart,jsizelen,jlong*buf){printf("JNI Function SetLongArrayRegion is not implemented.\n");g_assert_not_reached();}
staticvoidJNICALLSetFloatArrayRegion(JNIEnv*env,jfloatArrayarray,jsizestart,jsizelen,jfloat*buf){printf("JNI Function SetFloatArrayRegion is not implemented.\n");g_assert_not_reached();}
staticvoidJNICALLSetDoubleArrayRegion(JNIEnv*env,jdoubleArrayarray,jsizestart,jsizelen,jdouble*buf){printf("JNI Function SetDoubleArrayRegion is not implemented.\n");g_assert_not_reached();}
staticvoidJNICALLGetStringRegion(JNIEnv*env,jstringstr,jsizestart,jsizelen,jchar*buf){printf("JNI Function GetStringRegion is not implemented.\n");g_assert_not_reached();}
staticvoidJNICALLGetStringUTFRegion(JNIEnv*env,jstringstr,jsizestart,jsizelen,char*buf){printf("JNI Function GetStringUTFRegion is not implemented.\n");g_assert_not_reached();}
staticvoid*JNICALLGetPrimitiveArrayCritical(JNIEnv*env,jarrayarray,jboolean*isCopy){printf("JNI Function GetPrimitiveArrayCritical is not implemented.\n");g_assert_not_reached();returnNULL;}
staticvoidJNICALLReleasePrimitiveArrayCritical(JNIEnv*env,jarrayarray,void*carray,jintmode){printf("JNI Function ReleasePrimitiveArrayCritical is not implemented.\n");g_assert_not_reached();}
staticconstjchar*JNICALLGetStringCritical(JNIEnv*env,jstringstring,jboolean*isCopy){printf("JNI Function GetStringCritical is not implemented.\n");g_assert_not_reached();returnNULL;}
staticvoidJNICALLReleaseStringCritical(JNIEnv*env,jstringstring,constjchar*cstring){printf("JNI Function ReleaseStringCritical is not implemented.\n");g_assert_not_reached();}
staticjweakJNICALLNewWeakGlobalRef(JNIEnv*env,jobjectobj){printf("JNI Function NewWeakGlobalRef is not implemented.\n");g_assert_not_reached();return0;}
staticvoidJNICALLDeleteWeakGlobalRef(JNIEnv*env,jweakref){printf("JNI Function DeleteWeakGlobalRef is not implemented.\n");g_assert_not_reached();}
@@ -49,6 +49,9 @@ Specifies the namespace of the XML schema element for which a class or a dataset
.I"/language:name""/l:name"
Specifies the programming language to use for the generated code. The only supported languages are CS (C#) and VB (Visual Basic.NET).
.TP
.I"/generator:type,assembly""/g:type,assembly"
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.
'Testing the default value assigned to a conditional constant
#ConstC
#IfC
Console.WriteLine("Default value is True")
#Else
Console.WriteLine("Default value is Nothing")
#End If
EndSub
EndModule
Loaded 100 of 10446 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.