* namespace.cs (NamespaceEntry.Using): No matter which warning
level is set, check if this namespace name has already been added.
svn path=/branches/mono-1-0/mcs/; revision=34676
* DataSet.cs : For a row, when a relation is not nested, then it is
still output target since it won't be written as a child of its
parent. It fixes bug #66379.
svn path=/branches/mono-1-0/mcs/; revision=34671
* threadpool.c: the ares hashtable needs a critical section around it.
this prevents some nasty segfaults
svn path=/branches/mono-1-0/mono/; revision=34623
* Control.cs: even if the control has no children the naming container
may contain the control we're looking for. Fixes bug #67304.
svn path=/branches/mono-1-0/mcs/; revision=34594
* HttpResponse.cs: SuppressContent does not throw and clears all the
buffered output. Fixes bug #67213.
svn path=/branches/mono-1-0/mcs/; revision=34584
* Convert.cs: ConvertToBase* was not endian aware. Implemented EndianSwap
and swapping of all values before going into the BitConverter so that values
are returned with proper endianess.
svn path=/branches/mono-1-0/mcs/; revision=34580
* AttributeCollection.cs: support attributes inherited from the one
we want. Fixes bug #67088. Thanks to Sander Rijken.
svn path=/branches/mono-1-0/mcs/; revision=34579
* threads.c: don't call mono_thread_detach() in start_wrapper(),
avoiding a possible hang in GetCurrentThreadId(0). Fixes bug #65379.
svn path=/branches/mono-1-0/mono/; revision=34538
* io.c (pipe_close_private): Fix one small typo in the last change
that totally hosed process creation with redirected pipes.
svn path=/branches/mono-1-0/mono/; revision=34485
* Convert.cs: ToType was returning unconverted object when it should
fail with an ArgumentException.
* ConvertTest.cs: Ensure ToType() fails with an ArgumentException in
a case where is cannot convert.
svn path=/branches/mono-1-0/mcs/; revision=34439
* HttpApplication.cs: Make sure requests are removed from
the timeout manager. Fixes a major leak. #66751.
svn path=/branches/mono-1-0/mcs/; revision=34388
* wapi-private.h:
* sockets.c:
* socket-private.h:
* io.c:
* io-private.h:
* handles-private.h: Cope when a file descriptor is reused while
the handle that thought it owned it is still referenced, instead
of asserting. Probably fixes bug 66479, though we've been unable
to reproduce it.
svn path=/branches/mono-1-0/mono/; revision=34365
* DataRowCollection.cs : check for EnforceConstraints flag
before checking foriegn key constraints in Clear method
* DataTable.cs : Redundant checking removed in Clear method as it is
checked in DataRowCollection.Clear method.
svn path=/branches/mono-1-0/mcs/; revision=34354
* convert.cs (Convert.ImplicitReferenceConversion): Added implicit
type parameter conversions for type parameters which are known to
be reference types.
svn path=/trunk/mcs/; revision=34332
* generic.cs (GenericConstraints): Added `IsReferenceType' and
`IsValueType' properties.
* support.cs (ReflectionConstraints): Use
Type.GetGenericParameterConstraints() instead of the old hack.
svn path=/trunk/mcs/; revision=34328
* generic.cs (ReflectionConstraints): Moved here and made it an
abstract class.
* support.cs (ReflectionConstraints): Moved to generic.cs.
svn path=/trunk/mcs/; revision=34327
* support.cs
(ReflectionConstraints): Un-nested this class and made it public.
* typemanager.cs
(TypeManager.GetTypeParameterConstraints): New public method.
(TypeManager.HasConstructorConstraint): Use the attributes.
svn path=/trunk/mcs/; revision=34326
* support.cs (GenericConstraints): Replaced `HasConstructor',
`IsReferenceType' and `IsValueType' with `Attributes'.
(ReflectionParameters.ReflectionConstraints): Removed the Create()
method and made the .ctor public.
* generic.cs (Constraints.Attributes): New public property.
(Constraints): Renamed `HasConstructor' -> `HasConstructorConstraint',
`IsReferenceType' -> `HasReferenceTypeConstraint' and
`IsValueType' -> `HasValueTypeConstraint'.
svn path=/trunk/mcs/; revision=34325
* NpgsqlTypes/NpgsqlTypesHelper.cs:
ConvertToBackend: Added support for System.Enum types. Now enumerated types can be used correctly as a paramater value. Thanks Martin ( martijn at boland dot org) for the heads up.
svn path=/trunk/mcs/; revision=34322
* appdomain.c:
(mono_domain_set): allow setting a domain that is being unloaded.
(mono_domain_unload): invoke the DomainUnload callbacks in the domain
being unloaded.
svn path=/branches/mono-1-0/mono/; revision=34320
* HttpApplicationFactory.cs:
* HttpRuntime.cs: implemented UnloadAppDomain and be ready for domain
unloading.
svn path=/branches/mono-1-0/mcs/; revision=34319
* appdomain.c:
(mono_domain_set): allow setting a domain that is being unloaded.
(mono_domain_unload): invoke the DomainUnload callbacks in the domain
being unloaded.
svn path=/trunk/mono/; revision=34315
* expression.cs (LocalVariableReference.DoResolveLValue):
Do not report warning 219 for out values.
(EmptyExpression.Null): New member to avoid extra allocations.
* rootcontext.cs: Warning 4 is back.
svn path=/trunk/mcs/; revision=34312
* MonoCustomAttrs.cs (GetCustomAttributes): Rename the icall to
GetCustomAttributesInternal and add a 'pseudoAttrs' argument.
svn path=/trunk/mcs/; revision=34309
* GenericTypeParameterBuilder.cs
(GenericTypeParameterBuilder.SetGenericParameterAttributes): New
public method, replaces the old Mono_* hacks.
svn path=/trunk/mcs/; revision=34300
* cs-parser.jay: Fix wrong warning 642 report.
* cs-tokenizer.cs (CheckNextToken): New helper;
Inspect next character if is same as expected.
svn path=/trunk/mcs/; revision=34297
* TlsClientKeyExchange.cs: Removed .Clear call on private key as itn't
ours (but only a reference). It also requires the callback to recreate
a new key object each time (which is worse). This also implies that
the caller (implementing the callback) is responsible to clear it.
svn path=/trunk/mcs/; revision=34291
* AssemblyInfo.cs: Updated version to 1.0.3 for next stable release.
* MakeCert.cs: Hack for date parsing problem with Mono.
svn path=/branches/mono-1-0/mcs/; revision=34281
The MethodBase in the message may not be the same type of the object
(the method can be called using an interface).
svn path=/trunk/mcs/; revision=34280
* AssemblyInfo.cs: Updated version to 1.1.2 for next release.
* MakeCert.cs: Hack for date parsing problem with Mono.
svn path=/trunk/mcs/; revision=34279
- Added handling for Form owners: Owner, OwnedForms, AddOwnedForm,
RemoveOwnedForm (still incomplete, missing on-top and common
minimize/maximize behaviour)
- Added StartPosition property (still incomplete, does not use when
creating the form)
- Added ShowDialog() methods (still incomplete, missing forcing the dialog
modal)
svn path=/trunk/mcs/; revision=34260
will reference the object being created).
* StackBuilderSink.cs: Take into account the forceInternalExecute
parameter.
svn path=/trunk/mcs/; revision=34255
specify that messages must be dispatched to the target object using
InternalExecute. Usually if the target is a proxy, the sink uses
RealProxy.Invoke to dispatch the method. This can't be done for local
CBOs since we would loop for ever.
svn path=/trunk/mcs/; revision=34253
message. In CreateInstanceFromMessage if the object being created
is a CBO, use the provided proxy as "this" when calling the ctor.
svn path=/trunk/mcs/; revision=34252
of MonoMethod, so it can be also used for running constructors.
* ServerIdentity.cs: Added methods for getting and setting the client
proxy in ClientActivatedIdentity. This is needed for CBOs, since
messages need to be dispatched using the proxy as "this", not the
real object.
svn path=/trunk/mcs/; revision=34251
* typemanager.cs (TypeManager.LookupGenericTypeContainer): New
public method; like LookupTypeContainer, but also works for
generic instances.
* report.cs (Report.SymbolRelatedToPreviousError): Use
TypeManager.LookupGenericTypeContainer().
svn path=/trunk/mcs/; revision=34240
* class.cs (TypeContainer.HasExplicitLayout): New property
Returns whether container has StructLayout attribute set Explicit.
(FieldMember): New abstract class for consts and fields.
(FieldMember.ApplyAttributeBuilder): Add error 636 and 637 report.
(Field): Reuse FieldMember.
* const.cs (Const): Reuse FieldMember.
* rootcontext.cs: EmitConstants call moved to class.
svn path=/trunk/mcs/; revision=34239
Thanks to Peter Sestoft for this bug report.
* expression.cs (Conditional): If both the `trueExpr' and the
`falseExpr' is a NullLiteral, return a NullLiteral.
svn path=/trunk/mcs/; revision=34237
* statement.cs (Foreach.EmitCollectionForeach): If we're in an
iterator, use `enumerator.EmitThis()' instead of `ec.EmitThis()'
for the "get_Current" call.
svn path=/trunk/mcs/; revision=34231
* SequenceType.cs : return TypedValue instead of null in case of
XPathNavigator.
* XPath2Expression.cs : now FunctionCallExpr also handles evaluation.
* XPathSequence.cs : rewrote FLWORIterator to iterate forlet
expressions based on index.
svn path=/trunk/mcs/; revision=34223
Marek and me just fixed one of our oldest bugs: #28562 :-)
* ecore.cs (EnumConstant.GetValueAsEnumType): New public method.
* attribute.cs (Attribute.GetAttributeArgumentExpression): If
we're an EnumConstant, just return that.
(Attribute.Resolve): GetAttributeArgumentExpression() may give us
an EnumConstant. In this case, we need to use GetValueAsEnumType()
to get the value which'll actually be written into the attribute.
However, we have to use GetValue() to access the attribute's value
in the compiler.
svn path=/trunk/mcs/; revision=34221
* reflection.c (mono_reflection_setup_internal_class): If we're
System.ValueType, System.Object or System.Enum, set
`klass->instance_size' and create the vtable.
(mono_reflection_create_internal_class): If we're an enum type,
get the base class from our current corlib.
svn path=/trunk/mono/; revision=34214
* reflection.h (MonoResolveTokenError): New type.
* icall.c (ves_icall_System_Reflection_Module_ResolveMemberToken): New
icall.
* icall.c: Add an 'error' argument to the ResolveToken icalls.
svn path=/trunk/mono/; revision=34210
* RandomTest.cs: Commented test CompareWithMS following constants
changes in Mono implementation (to use Knuth's constants).
svn path=/trunk/mcs/; revision=34209
2004-09-17 Geoff Norton <[email protected]>
* reflection.c (type_get_qualified_name): If the klass is null
return the typename to avoid a NullRefEx.
(encode_cattr_value): Get the qualified name of the boxed type,
not the underlying enumtype. Fixes#62984.
svn path=/trunk/mono/; revision=34175
* codegen.cs (VariableStorage): Don't store the ILGenerator here;
if we're used in an iterator, we may be called from different
methods.
* statement.cs (Foreach.EmitFinally): Only emit an `Endfinally' if
we actually have an exception block.
svn path=/trunk/mcs/; revision=34171
* marshal.h marshal.c icall.c: Add new icalls for Alloc/FreeHGlobal. Change the
existing mono_marshal_alloc/free functions to use CoTaskMemAlloc/Free under windows.
* marshal.c: Allocate marshaller memory using mono_marshal_alloc/free.
svn path=/trunk/mono/; revision=34164
* mb-parser.jay: Fixed bug #66231 -
Now, Me.SubName, MyBase.SubName or any other qualified name
is supported by AddressOf operator
svn path=/trunk/mcs/; revision=34162
when reading a primitive value in encoded format using
ReadReferencingElement, provide the type name and namespace
since the xsi type may not be present in the xml element. This
fixes bug #65929.
svn path=/trunk/mcs/; revision=34157
Build 'mscorlib.dll' using the 'net_2_0_bootstrap' profile.
(net20bootstrapSystem): New. Build 'System.dll' using the
'net_2_0_bootstrap' profile.
($(gmcs)): Depend on both the above.
(CLEAN_FILES) [PROFILE=net_2_0]: Clean the 'net_2_0_bootstrap'
profile and 'gmcs' too.
svn path=/trunk/mcs/; revision=34154
net_2_0_bootstrap libraries if necessary.
($(the_lib)): Don't depend on a phony target. Move 'echo-warning' ...
(all-local): ... here. Will now warn unnecessarily, but is better
than rebuilding the library each time.
svn path=/trunk/mcs/; revision=34153
* icall.c (ves_icall_MonoType_GetElementType): GetElementType
should only return a type for pointers, arrays, and passbyref types.
Fixes bug #63841.
svn path=/trunk/mono/; revision=34147
* convert.cs (Convert.ImplicitReferenceConversion): When
converting to an interface type, first check whether we're
converting from a reference type.
svn path=/trunk/mcs/; revision=34138
Break inherit, checks the label stuff. Added checks for Label
stuff to Continue and Break classes. Added method Init for
DoWhile. Fixes for loops statements in order to be able for have
nested loops. Initial support for Label statements.
svn path=/trunk/mcs/; revision=34121
class Binary. Semantic Analysis for Calls it takes care of
constructors and methods, added invocation code for built in
methods. Added interface IAccesible that let us resolve the '.'
operator. Class Args handles missing or surplus arguments. Added
class BuiltIn which will take care of all builtins of ECMAScript.
svn path=/trunk/mcs/; revision=34118
* domain.c (mono_debugger_check_runtime_version): New public
function.
* icall.c (ves_icall_MonoDebugger_check_runtime_version): New icall.
svn path=/trunk/mono/; revision=34112
* AssemblyBuilder.cs: Fixed assembly-level permissions. I don't know
why I splitted them all into individual entries when only a single set
is accepted for each security action :(.
svn path=/trunk/mcs/; revision=34103
* reflection.c: Added missing sort to the declarative security
attributes table. MS implementation stops seeing the attributes if the
token number regress in the table (as shown by ildasm and permview).
svn path=/trunk/mono/; revision=34091
* class.cs, cs-parser.jay: Improve the error report for 1520:
report the actual line where the error happens, not where the
class was declared.
svn path=/trunk/mcs/; revision=34088
* assign.cs, delegate.cs, ecore.cs, expression.cs, statement.cs:
Pass location information that was available elsewhere.
svn path=/trunk/mcs/; revision=34087
* object-internals.h (MonoReflectionModule): Add 'token' field.
* reflection.c (mono_reflection_get_token): Add support for Module
and Assembly.
(mono_module_get_object): Set 'token' field.
(mono_module_file_get_object): Set 'token' field.
* icall.c: Add new Assembly and Module icalls.
svn path=/trunk/mono/; revision=34083
* CodeGroup.cs: Changed AddChild() to add a copy of the child, like
the MS implementation.
* UnionCodeGroup.cs: Resolve() will now perform union on child code
groups.
* FileCodeGroup.cs: Resolve() will now perform union on child code
groups.
* NetCodeGroup.cs: Resolve() will now perform union on child code
groups.
svn path=/trunk/mcs/; revision=34075
* loader.h loader.c class.h class.c: Add helper functions for obtaining
tokens of metadata objects.
* reflection.h reflection.c (mono_reflection_get_token): New function
to obtain the token of a metadata object.
* icall.c: Add icalls for MetadataToken and ModuleHandle methods.
svn path=/trunk/mono/; revision=34065
* Console.cs: Use the internal wrappers for StreamReader and
StreamWriter that catch IOException.
2004-09-19 Dick Porter <[email protected]>
* UnexceptionalStreamWriter.cs:
* UnexceptionalStreamReader.cs: Wrappers around StreamWriter and
StreamReader that catch IOException. Used by System.Console so
that graphical applications dont get IO errors when their
stdin/out/err vanishes (ie when they spew debug output.)
svn path=/branches/mono-1-0/mcs/; revision=34064
* Console.cs: Use the internal wrappers for StreamReader and
StreamWriter that catch IOException.
2004-09-19 Dick Porter <[email protected]>
* UnexceptionalStreamWriter.cs:
* UnexceptionalStreamReader.cs: Wrappers around StreamWriter and
StreamReader that catch IOException. Used by System.Console so
that graphical applications dont get IO errors when their
stdin/out/err vanishes (ie when they spew debug output.)
svn path=/trunk/mcs/; revision=34062
* DataRow.cs : while deserialization of dataset, adding a current row precedes the original row.
hence, adding a row cache is necessary if the original row happens to be current.
fixed bug #63097
svn path=/trunk/mcs/; revision=34061
* Npgsql/NpgsqlCommand.cs:
GetClearCommandText: Fixed an infinite loop when trying to use a parameter whose name is equals to same type name.
i.e.: parameter name :text which would conflict with :text parameter name which was being added in the replacement string.
* NpgsqlTypes/NpgsqlTypeConverters.cs:
BasicNativeToBackendTypeConverter.ToString: Fixed handling of strings with backslashes. Now they are properly escaped.
svn path=/trunk/mcs/; revision=34050
* NpgsqlCommand.cs,
NpgsqlConnector.cs: Improved portal and plan name creation to use an unique number from NpgsqlConnector instead of using an static field in NpgsqlCommand. Thanks Martin ( martijn at boland dot org) for the heads up.
svn path=/trunk/mcs/; revision=34038
* NpgsqlCommand.cs,
NpgsqlConnector.cs: Improved portal and plan name creation to use an unique number from NpgsqlConnector instead of using an static field in NpgsqlCommand. Thanks Martin ( martijn at boland dot org) for the heads up.
svn path=/trunk/mcs/; revision=34037
* ASN1.cs: In synch with corlib version. Fixed all level 4 compilation
warnings.
* PKCS7.cs: In synch with corlib version. Fixed all level 4
compilation warnings.
svn path=/trunk/mcs/; revision=34011
* CryptoConvert.cs: In synch with corlib version. Fixed all level 4
compilation warnings.
* KeyPairPersistence.cs: In synch with corlib version. Fixed all level
4 compilation warnings.
* PKCS1.cs: In synch with corlib version. Fixed all level 4
compilation warnings.
* SHA224Managed.cs: Fixed all level 4 compilation warnings.
svn path=/trunk/mcs/; revision=34010
* Mono.Security.dll.sources: Added support for SHA224 hash algorithm
in Mono.Security.Cryptography.
* Mono.Security_test.dll.sources: Added unit tests for SHA224 hash
algorithm.
svn path=/trunk/mcs/; revision=34006
* SHA224.cs: New. Abstract class for all SHA224 implementations.
* SHA224Managed.cs: New. Managed implementation of SHA224 (a SHA256
derivate) as specified in RFC3874 and FIPS 180-2 Change Notice.
svn path=/trunk/mcs/; revision=34005
* SHA224ManagedTest.cs: New. Unit tests for the managed implementation
of SHA-224.
* SHA224Test.cs: New. Unit tests for SHA-224. Use test vectors from
RFC3874.
svn path=/trunk/mcs/; revision=34004
* Font.cs (FromHfont, ToHfont): Fixed windows implementation.
ToLogFont: Implemented.
* gdipFunctions.cs: GdipCreateFromHDC changed int to IntPtr to
avoid casts.
GdipCreateFontFromLogfontA: A new extern call.
svn path=/trunk/mcs/; revision=34002
* CustomAttributeBuilder.cs: Applied patch from Marcus Urban ([email protected]). Add support for defining custom marshallers by calling SetCustomAttribute.
svn path=/branches/mono-1-0/mcs/; revision=33998
* CustomAttributeBuilder.cs: Applied patch from Marcus Urban ([email protected]). Add support for defining custom marshallers by calling SetCustomAttribute.
svn path=/trunk/mcs/; revision=33997
* ASN1.cs: Fixed warning (l4) for unused variable.
* PKCS7.cs: Fixed warning (l4) for unused variable.
* Uri.cs: Fixed warning (l4) for unused variables. Remove sealed from
class to reduce number of warnings.
svn path=/trunk/mcs/; revision=33990
* AssemblyBuilder.cs: Keep a copy of the 3 permission set as an array
of RefEmitPermissionSet. This will allow to reuse existing
functionalities already present in the runtime.
svn path=/trunk/mcs/; revision=33984
* appdomain.c: Bumped MONO_CORLIB_VERSION to 25.
* object-internals.h: Added 3 MonoArray* members to MonoReflection
AssemblyBuilder to access the permissions set in the class lib.
* reflection.c: Added security attributes encoding step in
mono_image_build_metadata.
svn path=/trunk/mono/; revision=33983
* dump.c: Added new security actions added in 2.0: LinkDemandChoice,
InheritanceDemandChoice and DemandChoice.
* main.c: Added ".permissionset" to output IL. Removed "hassecurity"
as MS ilasm can't compile it.
svn path=/trunk/mono/; revision=33974
* tabledefs.h: Added new security actions defined in 2.0:
LinkDemandChoice, InheritanceDemandChoice and DemandChoice.
svn path=/trunk/mono/; revision=33973
finalized. There where random SIGSEVs at program termination, when
an object being finalized was trying to do a string comparison and
the current culture was already finalized.
svn path=/branches/mono-1-0/mono/; revision=33968
finalized. There where random SIGSEVs at program termination, when
an object being finalized was trying to do a string comparison and
the current culture was already finalized.
svn path=/trunk/mono/; revision=33967
* BuiltInDatatype.cs, SchemaDataValueType.cs :
ParseValue() for xs:AnyURI should return System.Uri. MS.NET returns
XmlSchemaUri, but it is derived from System.Uri, while ours was not.
svn path=/branches/mono-1-0/mcs/; revision=33964
* BuiltInDatatype.cs, SchemaDataValueType.cs :
ParseValue() for xs:AnyURI should return System.Uri. MS.NET returns
XmlSchemaUri, but it is derived from System.Uri, while ours was not.
svn path=/trunk/mcs/; revision=33963
Fixed bug #55780
* ecore.cs (PropertyExpr.FindAccessors): Do not perform
deep search when property is not virtual.
(PropertyExpr.ResolveAccessors): Make one call for both
accessors.
svn path=/trunk/mcs/; revision=33956
* Syscall.cs: Added method for getpwnam which uses Passwd
struct.
* macros.c: Helper function for getpwnam
(In committing, Josh Tauberer also added getpwuid.)
svn path=/trunk/mono/; revision=33955
* Syscall.cs: Added method for getpwnam which uses Passwd
struct.
* macros.c: Helper function for getpwnam
(In committing, Josh Tauberer also added getpwuid.)
svn path=/trunk/mcs/; revision=33955
* Npgsql/NpgsqlRowDescription.cs:
FieldIndex: Really added support for case insensitive fields index lookup. Thanks Martin ( martijn at boland dot org)
svn path=/trunk/mcs/; revision=33950
ExportDerivedTypes to the new ExportDerivedTypeAttributes method.
* XmlReflectionImporter.cs: In ImportClassMapping, moved the call to
ImportIncludedTypes to the end, to make sure that the current map has all
needed data before derived maps are constructed.
* XmlSchemaExporter.cs: Generate the base class of simple types that are
not primitive types. Set the correct value for IsMixed in extended types.
* XmlSchemaImporter.cs: In ImportSimpleContent, take into account that
the base class of a simple type doesn't need to be a xsd type.
All those patches fix bug #65654
svn path=/trunk/mcs/; revision=33935
* System.Data_test.dll.sources: Added OdbcPermission, OleDbPermission
and SqlClientPermission unit tests to the build.
svn path=/trunk/mcs/; revision=33931
* ChangeLog: New.
* OraclePermission.cs: Adapted to work for both Fx 1.1 and 2.0. Fx 1.1
version isn't complete (as anyway it requires FullTrust on MS
implementation) but DO NOT throw exceptions (for the security engine).
* OraclePermissionAttribute.cs: Implemented CreatePermission. Adapted
to work for both Fx 1.1 and 2.0.
svn path=/trunk/mcs/; revision=33913
* Npgsql/NpgsqlRowDescription.cs:
FieldIndex: Added support for case insensitive fields index lookup. Thanks Martin ( martijn at boland dot org)
svn path=/trunk/mcs/; revision=33910
* reflection.h: add prototype for mono_get_dbnull_object
* reflection.c: add prototypes for get_default_param_value_blobs
and mono_get_object_from_blob for fussier compilers
svn path=/trunk/mono/; revision=33907
* SqlClientPermission.cs: Added internal constructor accepting an Sql
ClientPermissionAttribute parameter (using base class protected ctor).
* SqlClientPermissionAttribute.cs: Copy now use the new SqlClient
Permission constructor.
svn path=/trunk/mcs/; revision=33905
* OleDbPermission.cs: Added internal constructor accepting an OleDb
PermissionAttribute parameter (using base class protected ctor).
Re-added the Provider property (removed by error).
* OleDbPermission.cs: Copy now use the new OleDbPermission
constructor. Re-added the Provider property (removed by error).
svn path=/trunk/mcs/; revision=33904
* OdbcPermission.cs: Added internal constructor accepting an Odbc
PermissionAttribute parameter (using base class protected ctor).
* OdbcPermissionAttribute.cs: Copy now use the new OdbcPermission
constructor.
svn path=/trunk/mcs/; revision=33903
* DbDataPermission.cs: Implemented Intersect, IsSubsetOf and Union.
Implementation isn't complete as the restrictions seems to change the
expected results (breaking some rules like x.IsSubsetOf (x) == false).
Better (real-world) tests cases are required.
* PermissionHelper.cs: Fixed small differences between System.Data.dll
validations wrt to mscorlib.dll (XML and PermissionState).
svn path=/trunk/mcs/; revision=33902
Fixed bug #61902
* codegen.cs (TestObsoleteMethodUsage): Trace when method is
called and is obsolete then this member suppress message
when call is inside next [Obsolete] method or type.
* expression.cs: Use TestObsoleteMethodUsage member.
svn path=/trunk/mcs/; revision=33886
* UtilsTest.cs: upgraded to use nunit Assert class, also corrected testing for null that
was giving an exception when run.
svn path=/trunk/mcs/; revision=33881
* class.cs: Set default constant value for optional parameters in ParameterBuilder
* parameter.cs: Setting optional attribute
These two fixes makes sure that optional parameter with default value get emitted correctly
svn path=/trunk/mcs/; revision=33866
reduce the number of passes. We will get the assemblies signed in
the 'populate-runtime-subdir' phase.
(mcs-do-run-test-profiles): Rename from mcs-do-run-tests. Use
'test-profiles' to test all profiles.
(mcs-do-compiler-tests): Use 'compiler-tests' target in mcs/.
(bootstrap-check): Update.
* runtime/Makefile.am ($(monoone_DATA) $(monotwo_DATA) $(monobins_DATA)):
Simplify.
svn path=/trunk/mono/; revision=33859
assemblies for separate profiles.
(dist-local): Don't copy files beginning with '../'.
* rules.make (dist-default): Handle any of Makefile, makefile, or
GNUmakefile being present.
* profiles/net_2_0.make (TEST_RUNTIME): Don't define.
svn path=/trunk/mcs/; revision=33854
(test-profiles, run-test-profiles): New targets.
(test-compiler): Rename to ...
(compiler-tests): ... this. Run tests on all profiles.
svn path=/trunk/mcs/; revision=33853
Control.cs: Added new attributes and a method.
FilterableAttribute.cs: New attribute, initial implementation.
ThemeableAttribute.cs: New attribute, initial implemenataion.
svn path=/trunk/mcs/; revision=33842
* Makefile: Added /nowarn:618 when compiling unit test assembly to
remove nunit obsolete warnings.
* System.Data.dll.sources: Added System.Data.Common.DbConnectionOptions
(NET_2_0) and System.Data.Common/PermissionHelper to the build.
* System.Data_test.dll.sources: Added {DBData|Odbc|OleDb|SqlClient}
PermissionAttribute unit tests to the build.
svn path=/trunk/mcs/; revision=33833
* DbConnectionOptions.cs: New class for Fx 2.0. Partial implementation
to support new methods in DBDataPermission.
* DbConnectionString.cs: Updated class to split from/inherit
DbConnectionOptions class.
* DbDataPermission.cs: Implemented Add, Clear, Copy, ToXml methods and
completed constructors.
* DbDataPermissionAttribute.cs: Completed/fixed class.
* PermissionHelper.cs: Helper methods to create permission classes.
svn path=/trunk/mcs/; revision=33828
* MonoSymbolFile.cs (MonoSymbolFile.Write): don't sort methods by
token before writing out the method index, since the "index" used
elsewhere is just added to the MethodIndexOffset.
svn path=/trunk/mcs/; revision=33819
Backported my MemberName changes from GMCS into MCS.
- we are now using a special `MemberName' class instead of using
strings; in GMCS, the `MemberName' also contains the type
arguments.
- changed the grammar rules a bit:
* the old `member_name' is now a `namespace_or_type_name':
The rule is that we use `namespace_or_type_name' everywhere
where we expect either a "member name" (GetEnumerator) or a
"member name" with an explicit interface name
(IEnumerable.GetEnumerator).
In GMCS, the explicit interface name may include type arguments
(IEnumerable<T>.GetEnumerator).
* we use `member_name' instead of just `IDENTIFIER' for
"member names":
The rule is that we use `member_name' wherever a member may
have type parameters in GMCS.
* decl.cs (MemberName): New public class.
(MemberCore.MemberName): New public readonly field.
(MemberCore.ctor): Take a `MemberName' argument, not a string.
(DeclSpace): Likewise.
* delegate.cs (Delegate.ctor): Take a MemberName, not a string.
* enum.cs (Enum.ctor): Likewise.
* namespace.cs (AliasEntry.Alias): Changed type from Expression to
MemberName.
(AliasEntry.ctor): Take a MemberName, not an Expression.
(AliasEntry.UsingAlias): Likewise.
* class.cs (TypeContainer.ctor): Take a MemberName, not a string.
(IMethodData.MemberName): Changed type from string to MemberName.
(MemberBase.ExplicitInterfaceName): Likewise.
(AbstractPropertyEventMethod.SetupName): Make this private.
(AbstractPropertyEventMethod.ctor): Added `string prefix'
argument; compute the member name here.
(AbstractPropertyEventMethod.UpdateName): Recompute the name based
on the `member.MemberName' and the `prefix'.
* cs-parser.jay (attribute_name): Use `namespace_or_type_name',
not `type_name'.
(struct_declaration): Use `member_name' instead of `IDENTIFIER';
thus, we get a `MemberName' instead of a `string'. These
declarations may have type parameters in GMCS.
(interface_method_declaration, delegate_declaration): Likewise.
(class_declaration, interface_declaration): Likewise.
(method_header): Use `namespace_or_type_name' instead of
`member_name'. We may be an explicit interface implementation.
(property_declaration, event_declaration): Likewise.
(member_name): This is now just an `IDENTIFIER', not a
`namespace_or_type_name'.
(type_name, interface_type): Removed.
(namespace_or_type_name): Return a MemberName, not an Expression.
(primary_expression): Use `member_name' instead of `IDENTIFIER';
call GetTypeExpression() on the MemberName to get an expression.
(IndexerDeclaration.interface_type): Changed type from string to
MemberName.
(MakeName): Operate on MemberName's instead of string's.
svn path=/trunk/mcs/; revision=33810
* namespace.cs (AliasEntry.Resolve): Implement section 16.3.1.
(NamespaceEntry.Lookup): Add new argument to flag if we want the
lookup to avoid symbols introduced by 'using'.
* rootcontext.cs (NamespaceLookup): Update.
svn path=/trunk/mcs/; revision=33801
* XPathAtomicValue.cs : All .ctor() are separeted from Init().
In .ctor(object, XmlSchemaType):
- For lists that contains just one item, Init() recursively.
- For XPathAtomicValue, Init() recursively for its content fields.
For Value and TypedValue, consider typecode from XmlSchemaType.
svn path=/trunk/mcs/; revision=33790
* SequenceType.cs, XPath2Expression.cs :
Added SequenceType.IsNumeric(XmlTypeCode).
In type comparison, untyped XPathNavigator is xdt:untypedAtomic
(not sure as yet if it is always correct.)
* XQueryComparisonOperator.cs : rewrote all numeric comparison using
IsNumeric().
svn path=/trunk/mcs/; revision=33789
* AppDomain.cs: added SetupInformationNoCopy property, since
SetupInformation creates a copy now, all updates to it should use the
actual data. Fixes bug #61991 take 2.
svn path=/trunk/mcs/; revision=33788
* RadioButton.cs: fix GroupName when the control is inside a
NamingContainer different from Page. Closes bug #65586.
svn path=/branches/mono-1-0/mcs/; revision=33787
* RadioButton.cs: fix GroupName when the control is inside a
NamingContainer different from Page. Closes bug #65586.
svn path=/trunk/mcs/; revision=33786
* XPath2Expression.cs : ComparisonExpr.CompareAtomic() should consider
spec-conformant untypedAtomic handling.
* XQueryContext.cs : Variables were incorrectly added to the older
context. Fixed Context and ContextManager constructors that were
in silly chicken-and-egg.
* XPathSequence.cs : now Context property always returns current
XQuery context (will be fixed; it is workaround for variable
resolution). In For iteration, context sequence should vary.
* XQueryComparisonOperator.cs : All value comparison failed to return
true when both operands are the same types.
* XsltCommand.cs : use XmlWriter.Create().
svn path=/trunk/mcs/; revision=33769
* CADMessages.cs: get rid of method / type name, it is not needed
* MethodCall.cs: lazily init method / type name.
* ReturnMessage.cs: lazily init method / type name, sig.
svn path=/trunk/mcs/; revision=33765
* RemotingServices.cs: use MethodBase rather than looking
for the method ourselves. It has higher perf in x-ad calls.
svn path=/trunk/mcs/; revision=33764
* System_test.dll.sources: Added unit tests for System.Diagnostics.
EventLogPermission and PerformanceCounterPermission.
svn path=/trunk/mcs/; revision=33763
* EventLogPermissionTest.cs: New. Unit tests for EventLogPermission.
* PerformanceCounterPermissionTest.cs: New. Unit tests for
PerformanceCounterPermission.
svn path=/trunk/mcs/; revision=33761
* Npgsql/NpgsqlConnection.cs:
Dispose: Improved implementation. Also added warning logging for
NpgsqlConnection leakings.
Close: Fixed code to allow calling many times even when being disposed.
* Npgsql/NpgsqlConnection.resx:
Added new warning logging message for NpgsqlConnection leakings.
* Npgsql/NpgsqlConnector.cs:
IsValid: new method to check if Connector is still valid.
* Npgsql/NpgsqlConnectorPool.cs:
GetPooledConnector: Improved to check validity of Connector.
FixPoolCountBecauseOfConnectionDisposeFalse: new method to fix the connection pool count
because NpgsqlConnection leaking. This way, uses doesn't run out of connections from pool.
svn path=/trunk/mcs/; revision=33757
* CADMessages.cs, MethodCall.cs: When doing an x-appdomain
call, store the method in a RuntimeMethodHandle. This allows
us to avoid the expensive lookup operations that must be done
to resolve the method. This makes xsp go from 250 r/s to 450 r/s
for me.
svn path=/trunk/mcs/; revision=33755
* Makefile: Updated to include unit tests.
* System.ServiceProcess.dll.sources: Added ServiceControllerPermission
class to the build.
* System.ServiceProcess_test.dll.sources: New. Added sources file for
unit tests.
svn path=/trunk/mcs/; revision=33749
* ChangeLog: New.
* ServiceControllerPermission.cs: New. Added permission class.
* ServiceControllerPermissionAttribute.cs: Completed TODO, added
missing validations (machine and service names). Fixed AttributeUsage.
* ServiceControllerPermissionEntry.cs: Added internal GetBaseEntry for
synchronization. Converted spaces to tabs.
* ServiceControllerPermissionEntryCollection.cs: Added synchronization
with entries in the base class. Converted spaces to tabs.
svn path=/trunk/mcs/; revision=33748
* ServiceControllerPermissionAttributeTest.cs: New. Unit tests for
ServiceControllerPermissionAttribute class.
* ServiceControllerPermissionTest.cs: New. Unit tests for Service
ControllerPermission class.
svn path=/trunk/mcs/; revision=33747
* ObjectType.cs: Corrected some test ordering in ObjTst and using new getObjTstString to test two candidate strings. Bug #65653
svn path=/trunk/mcs/; revision=33743
* System_test.dll.sources: Added PermissionHelper to the build.
* System_test.dll.sources: Added unit tests for System.Security.
Permissions.ResourcePermissionBase and ResourcePermissionBaseEntry,
System.Web.AspNetHostingPermission and AspNetHostingPermissionAttribute.
svn path=/trunk/mcs/; revision=33730
* EventLogPermission.cs: Fixed initialization (TagNames and
PermissionAccessType).
* EventLogPermissionAccess.cs: Added new enums for NET_2_0 and added
[Obsolete] to some existing elements.
* EventLogPermissionAttribute.cs: Added missing validation to property
MachineName. Fixed changes for NET_2_0.
* PerformanceCounterPermission.cs: Fixed initialization (TagNames and
PermissionAccessType).
* PerformanceCounterPermissionAccess.cs: Added new enums for NET_2_0
and added [Obsolete] to some existing elements.
* PerformanceCounterPermissionAttribute.cs: Added missing validations
to properties (Path, MachineName). Fixed changes for NET_2_0.
svn path=/trunk/mcs/; revision=33729
* ConfigurationElementCollection.cs ConfigurationElementCollectionType.cs:
New Fx 2.0 stubs
* ConfigurationElement.cs:
Fix function declaration
svn path=/trunk/mcs/; revision=33726
* DnsPermission.cs: Updated to pass new unit tests.
* DnsPermissionAttribute.cs: Cleanup.
* SocketPermission.cs: Updated to pass new unit tests.
* SocketPermissionAttribute.cs: Updated to pass new unit tests.
* WebPermission.cs: Implemented some TODO - not complete yet.
* WebPermissionAttribute.cs: Updated to pass new unit tests.
svn path=/trunk/mcs/; revision=33724
* HttpCacheAgeControl.cs HttpRequestCacheLevel.cs HttpRequestCachePolicy.cs
* RequestCacheLevel.cs RequestCachePolicy.cs:
New classes for Fx 2.0
svn path=/trunk/mcs/; revision=33723
* PermissionHelper.cs: New. Static methods to help implementation of
permission classes.
* ResourcePermissionBase.cs: Implemented all TODO (except FromXml
which isn't complete).
* ResourcePermissionBaseEntry.cs: Minor cleanup (namespaces, style).
svn path=/trunk/mcs/; revision=33721
* DnsPermissionAttributeTest.cs: New. Unit tests for DnsPermissionAttr.
* DnsPermissionTest.cs: New. Unit tests for DnsPermission.
* SocketPermissionAttributeTest.cs: New. Unit tests for
SocketPermissionAttribute.
* WebPermissionAttributeTest.cs: New. Unit tests for WebPermission
Attribute.
svn path=/trunk/mcs/; revision=33720
* AspNetHostingPermissionAttributeTest.cs: New. Unit tests for AspNet
HostingPermissionAttribute.
* AspNetHostingPermissionTest.cs: New. Unit tests for AspNetHosting
Permission.
svn path=/trunk/mcs/; revision=33719
* EventLogPermissionAttributeTest.cs: New. Unit tests for
EventLogPermissionAttribute.
* PerformanceCounterPermissionAttributeTest.cs: New. Unit tests for
PerformanceCounterPermissionAttribute.
svn path=/trunk/mcs/; revision=33718
* ResourcePermissionBaseEntryTest.cs: New. Unit tests for
ResourcePermissionBaseEntry.
* ResourcePermissionBaseTest.cs: New. Unit tests for
ResourcePermissionBase.
svn path=/trunk/mcs/; revision=33717
* mini-sparc.c mini-x86.c mini-amd64.c: Use the new
mono_type_get_underlying_type () helper function to simplify code.
svn path=/trunk/mono/; revision=33715
* DirectoryServicesPermission.cs: Completed TODO.
* DirectoryServicesPermissionAttribute.cs: Added path validation and
enable the creation of unrestricted permissions.
* DirectoryServicesPermissionEntry.cs: Add internal method to return
an ResourcePermissionBaseEntry instance.
* DirectoryServicesPermissionEntryCollection.cs: Allow synchronization
of elements with the base permission class (required to enable Copy).
svn path=/trunk/mcs/; revision=33710
* MessageQueuePermission.cs: Implemented enough TODO so compilers can
call ToXml (and the runtime can call FromXml) without exceptions.
* MessageQueuePermissionAttribute.cs: Implemented all TODO.
* MessageQueuePermissionEntry.cs: Implemented all TODO.
* MessageQueuePermissionEntryCollection.cs: Removed Clear on On*
methods and added TODO.
svn path=/trunk/mcs/; revision=33707
* cs-parser.jay (delegate_declaration): Record a delegate
declaration as a type declaration.
(Backport from trunk)
svn path=/branches/mono-1-0/mcs/; revision=33702
* AttachmentCollection.cs MailAddressCollection.cs:
New classes
* Attachment.cs: Set content string
* MailMessage.cs: Use new collection classes
* SmtpClient.cs: Lots of MIME cleanup
svn path=/trunk/mcs/; revision=33690
* TemplateParser.cs: ensure bin directory exists before trying to access
it. Fixes bug #65446 (not closed yet due to dependencies).
svn path=/trunk/mcs/; revision=33688
* TemplateParser.cs: ensure bin directory exists before trying to access
it. Fixes bug #65446 (not closed yet due to dependencies).
svn path=/branches/mono-1-0/mcs/; revision=33687
* System.Web/HttpStaticObjectsCollection.cs:
* System.Web.SessionState/HttpSessionState.cs: don't share static
session objects declared in the application file across the application,
but on a per-session basis. Fixes bug #65446.
svn path=/branches/mono-1-0/mcs/; revision=33686
* System.Web/HttpStaticObjectsCollection.cs:
* System.Web.SessionState/HttpSessionState.cs: don't share static
session objects declared in the application file across the application,
but on a per-session basis. Fixes bug #65446.
svn path=/trunk/mcs/; revision=33685
* HttpServerUtility.cs: in Transfer(path), don't keep form data if
the transfer is done from inside a page that received a postback.
Fixes bug #65613.
svn path=/branches/mono-1-0/mcs/; revision=33682
* HttpServerUtility.cs: in Transfer(path), don't keep form data if
the transfer is done from inside a page that received a postback.
Fixes bug #65613.
svn path=/trunk/mcs/; revision=33681
* mini-amd64.c: Don't access `type->data.klass' directly, call
mono_class_from_mono_type() instead since the type may be a
generic instance.
svn path=/trunk/mono/; revision=33674
C# 2.0 #pragma warning feature
* cs-tokenizer.cs (PreProcessPragma): New method;
Handles #pragma directive.
* report.cs (WarningRegions): New class; Support
class for #pragma warning directive. It tests whether
warning is enabled for a given line.
svn path=/trunk/mcs/; revision=33666
* mini-*.c, mini-ops.h, inssel-long32.brg: introduced
OP_ADDCC_IMM and OP_SUBCC_IMM (add/sub immediate that will
set the carry/borrow flag). The sparc and s390 implementations
can now use optimized versions (and simplify the code). ppc bugfixes.
svn path=/branches/mono-1-0/mono/; revision=33663
* mini-amd64.c (get_call_info): Fix support for generic instances.
(add_valuetype): Use mono_class_from_mono_type() to get the class
since we can be a generic instance.
svn path=/trunk/mono/; revision=33661
* icall.c (ves_icall_System_Reflection_Assembly_GetTypes):
Fix GetTypes() to support dynamically created assemblies.
Patch for #65576 approved by Zoltan.
svn path=/trunk/mono/; revision=33654
* PrintingPermission.cs: Applied the new permission template.
Implemented missing To|FromXml. Fixed set operations, ...
* PrintingPermissionAttribute.cs: Added enum validation for Level and
creation of unrestricted permissions.
* PrintingPermissionLevel.cs: Added [Serializable] for NET_2_0.
svn path=/trunk/mcs/; revision=33640
* PrintingPermissionAttributeTest.cs: New. Unit tests for Printing
PermissionAttribute.
* PrintingPermissionTest.cs: New. Unit tests for PrintingPermission.
svn path=/trunk/mcs/; revision=33637
* File.cs: Added Gettextification, provide a better error message
for #62112
2004-09-08 Miguel de Icaza <[email protected]>
* Locale.cs: Added overload that calls String.Format.
svn path=/trunk/mcs/; revision=33597
* mb-parser.jay : some changes just not to stumble in global attributes definitions in multiple-lines
like we have in VS.NET generated AssemblyInfo.vb files. still need to really process that definitions like mcs does
svn path=/trunk/mcs/; revision=33573
* XPath2Expression.cs : fixed EnclosedExpr.Compile() that resulted
in index out of range.
* XPathSequence.cs : FLWORIterator got working, but only when compiled
with .NET 2.0 csc (still weird Invalid IL error happens).
svn path=/trunk/mcs/; revision=33566
* threads.c: don't call mono_thread_detach() in start_wrapper(),
avoiding a possible hang in GetCurrentThreadId(0). Fixes bug #65379.
svn path=/trunk/mono/; revision=33562
* XmlReader.cs : evidence is always provided.
* XmlWriter.cs, XmlTextWriter.cs :
added support for ConformanceLevel and OmitXmlDeclaration.
svn path=/trunk/mcs/; revision=33558
* TraceContext.cs: when IsEnabled has not been set, return the value
from the TraceManager. Fixes bug #63469.
svn path=/branches/mono-1-0/mcs/; revision=33557
for each of the executables we ship.
* runtime/net_1_1/Makefile.am
* runtime/net_2_0/Makefile.am
(mdb_files, EXTRA_DIST): Add $(mdb_files).
svn path=/trunk/mono/; revision=33551
* image.c (mono_image_close): Applied patch from
[email protected] (Vasantha selvi). Fix crash when an
assembly is loaded multiple times from data.
* image.c (mono_image_open): Fix warning.
svn path=/trunk/mono/; revision=33541
* NpgsqlException.cs: Added support for deserialization of NpgsqlException.
* NpgsqlState.cs: Added missing handling of NoData message.
svn path=/trunk/mcs/; revision=33539
* expression.cs: Apply patch from Ben: Remove dead code from
ArrayCreation, and remove the TurnintoConstant call in const.cs,
as that code just threw an exception anwyays.
* const.cs: Remove the call to the turnintoconstant, for details
see bug: #63144
svn path=/trunk/mcs/; revision=33531
* literal.cs: The type of the null-literal is the null type; So
we use a placeholder type (literal.cs:System.Null, defined here)
for it.
* expression.cs (Conditional.DoResolve): Remove some old code that
is no longer needed, conversions have been fixed.
svn path=/trunk/mcs/; revision=33529
* typeof-ptr.cs: Add unsafe sections to the code that's using
pointers directly. This was breaking the test stage on the build
boxes.
svn path=/branches/mono-1-0/mono/; revision=33518
* certmgr.cs: Merge enhancements from HEAD. Now allows users to
manipulate the machine's cert store (not just the user's store).
svn path=/branches/mono-1-0/mcs/; revision=33508
* Process.cs: Throw documented exceptions when getting stdin,
stdout or stderr and they haven't been redirected. Check that
CreatePipe didn't fail, throw exceptions if it did. Close
redirected streams when the process is disposed, rather than rely
on the GC disposing them later. Makes timeline much happier,
because it could run out of file descriptors between GC
collections.
svn path=/branches/mono-1-0/mcs/; revision=33502
* Process.cs: Throw documented exceptions when getting stdin,
stdout or stderr and they haven't been redirected. Check that
CreatePipe didn't fail, throw exceptions if it did. Close
redirected streams when the process is disposed, rather than rely
on the GC disposing them later. Makes timeline much happier,
because it could run out of file descriptors between GC
collections.
svn path=/trunk/mcs/; revision=33501
* X509Certificate.cs: CreateFromSignedFile now throw the COMException
if the specified file isn't signed (before this was done by
AuthenticodeDeformatter). More details are available on failure.
svn path=/trunk/mcs/; revision=33500
* AuthenticodeBase.cs: Merge from Mono.Security.dll. This version is
less memory consuming (it works by 4kb blocks instead of loading the
entire assembly).
* AuthenticodeDeformatter.cs: Merge from Mono.Security.dll. Hash will
only be created if the assembly is signed. Benefits from Authenticode
Base changes.
svn path=/trunk/mcs/; revision=33498
* X509Chain.cs: Merge from Mono.Security. Fix two bugs (chain
construction from collection) and Reset-ing empty chain.
svn path=/trunk/mcs/; revision=33496
* AuthenticodeDeformatterTest.cs: New. Unit tests to validate a valid
authenticode-signed assembly (included in test file) and an invalid
(non signed) assembly (the unit test assembly).
svn path=/trunk/mcs/; revision=33494
* X509Chain.cs: Fixed a bug when constructing a certificate chain from
a collection (endless loop). Fixed bug when Reset-ing an empty chain.
svn path=/trunk/mcs/; revision=33493
* AuthenticodeBase.cs: Reworked not to load the entire file into
memory before hashing it (now in 4kb blocks). Splitted code in many
methods to allow "lighter" use by the deformatter.
* AuthenticodeDeformatter.cs: Less memory hungry so it can be used to
create Publisher evidences. No hash instance are created if the file
isn't signed.
* AuthenticodeFormatter.cs: Adapted to API changes.
svn path=/trunk/mcs/; revision=33492
* mini.c mini.h mini-x86.h tramp-x86.c: Instead of freeing delegate
trampolines, make them call an error function so people can fix their
code.
svn path=/trunk/mono/; revision=33486
* cs-parser.jay (delegate_declaration): Record a delegate
declaration as a type declaration.
Reported by Jo Vermeulen <[email protected]>.
svn path=/trunk/mcs/; revision=33480
* mini.c (mono_method_to_ir): When initializing locals, handle a
generic instances like a valuetype if it's a valuetype and like a
class if it's a class.
svn path=/trunk/mono/; revision=33433
* marshal.c (mono_marshal_get_managed_wrapper): Remove FIXME and
throw an exception with a cute explanation.
svn path=/branches/mono-1-0/mono/; revision=33426
* XmlWriter.cs : on reader.NodeType is None, WriteNode() still tries
to read more (and might result in an error).
svn path=/branches/mono-1-0/mcs/; revision=33421
* exceptions-x86.c (mono_arch_find_jit_info): Pop arguments off the
stack. Fixes#64674.
* exceptions.cs: Add test for unwinding of call arguments.
svn path=/trunk/mono/; revision=33418
* XPathEditableNavigator.cs :
AppendChild(xmlReader) ignored nodes after than first one, and
resulted in infinite loop.
Added get_OuterXml overrides. set_OuterXml should not move to
parent before deleting current.
svn path=/trunk/mcs/; revision=33414
2004-08-19 Dick Porter <[email protected]>
* handles.c (_wapi_handle_count_signalled_handles): Fix thinko
introduced with the fd offset stuff: unlock handles properly when
backing off. Fixes the monologue hang at exit.
2004-08-18 Dick Porter <[email protected]>
* sockets.c:
* io.c: Check that new fds fit in the table, return error if not
* daemon.c (_wapi_daemon_main):
* handles.c (shared_init): Have all processes agree on a size for
the fd table.
2004-08-17 Dick Porter <[email protected]>
* daemon.c (process_new):
* handles.c (_wapi_handle_new_internal): Cope when the space
reserved for file descriptors is larger than the shared segment
size. Fixes the crash reported when running mono under gdb on
macosx.
2004-08-16 Dick Porter <[email protected]>
* sockets.c:
* io.c:
* handles-private.h (_wapi_handle_fd_offset_to_handle): Improve
error checking with passed-in file descriptors.
2004-08-11 Dick Porter <[email protected]>
* 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=/branches/mono-1-0/mono/; revision=33409
* XPathDocument2.cs, XPathDocument2Editable.cs:
Redesigned API. Child node list should not be required (it also
harms performance). Reduced extraneous methods for XPathNavigator
/ XPathEditableNavigator implementation support.
* XPathEditableDocument.cs : event registration was missing (due to
XPathDocument changes, it might not be required anymore though).
* XPathNavigatorReader.cs :
Namespace nodes were not handled correctly.
EOF handling was incorrect.
Reduced extraneous clone from MoveTo/GetAttribute(int) and
svn path=/trunk/mcs/; revision=33408
Timeline.
2004-09-06 Dick Porter <[email protected]>
* handles.c (_wapi_handle_unref): Reset the private record's type
(_wapi_handle_process_fork): Fix long-standing bug in checking
handle return values. Also do the required bookkeeping with the
new process's handles.
* daemon.c: When creating a new process's handles, check whether
the shared space needs to be increased
2004-09-06 Dick Porter <[email protected]>
* process.c (ves_icall_System_Diagnostics_Process_Start_internal):
Close the new process's thread handle, as we don't use it. The
handle stays around forever otherwise.
svn path=/branches/mono-1-0/mono/; revision=33407
Timeline.
2004-09-06 Dick Porter <[email protected]>
* handles.c (_wapi_handle_unref): Reset the private record's type
(CloseHandle): Check for a fd mapping failure, and return FALSE.
(_wapi_handle_process_fork): Fix long-standing bug in checking
handle return values. Also do the required bookkeeping with the
new process's handles.
* daemon.c: When creating a new process's handles, check whether
the shared space needs to be increased
2004-09-06 Dick Porter <[email protected]>
* process.c (ves_icall_System_Diagnostics_Process_Start_internal):
Close the new process's thread handle, as we don't use it. The
handle stays around forever otherwise.
svn path=/trunk/mono/; revision=33406
Renamed cattrs_for_method() to more meaningful
dump_cattrs_for_method_params()
(dump_cattrs_for_method_params): Fixed so that ".param[]" gets
dumped only when necessary. i.e., when a method parameter has
either a default value and/or when it has a custom attribute.
svn path=/trunk/mono/; revision=33402
* HttpWriter.cs (.ctor): Dont create teh StreamWriter twice
(Clear): Don't recreate the MemoryStream and StreamWriter
svn path=/trunk/mcs/; revision=33399
* Strings.cs:
* Collection.cs:
Replaced System.ComponentModel.EditorBrowsableAttribute and
Microsoft.VisualBasic.CompilerServices.StandardModuleAttribute
with their short and sweet equivalents.
Replaced System.ComponentModel.DefaultValueAttribute with the
newly introduced Microsoft.VisualBasic.CompilerServices
.__DefaultArgumentValueAttribute.
svn path=/trunk/mcs/; revision=33398
* mini-*.c, mini-ops.h, inssel-long32.brg: introduced
OP_ADDCC_IMM and OP_SUBCC_IMM (add/sub immediate that will
set the carry/borrow flag). The sparc and s390 implementations
can now use optimized versions (and simplify the code). ppc bugfixes.
svn path=/trunk/mono/; revision=33396
* System.Web.Compilation/BaseCompiler.cs:
* System.Web.Compilation/CachingCompiler.cs:
* System.Web.Compilation/WebServiceCompiler.cs:
* System.Web.UI/SimpleWebHandlerParser.cs: correctly cache Type instead
of the assembly for ashx/asmx. Otherwise we need to open the file and
check for the class name in there. Thanks to Ben for pointing this out.
svn path=/branches/mono-1-0/mcs/; revision=33383
* System.Web.Compilation/BaseCompiler.cs:
* System.Web.Compilation/CachingCompiler.cs:
* System.Web.Compilation/WebServiceCompiler.cs:
* System.Web.UI/SimpleWebHandlerParser.cs: correctly cache Type instead
of the assembly for ashx/asmx. Otherwise we need to open the file and
check for the class name in there. Thanks to Ben for pointing this out.
svn path=/trunk/mcs/; revision=33382
* Path.cs (Combine): Array.IndexOf is slow (because of the
special cases it must handle). So, rather than doing IndexOf
just check each type of seperator.
svn path=/trunk/mcs/; revision=33375
* RemotingServices.cs (IsMethodOverloaded): use the internal
method GetMethodsByName. It does much less work than GetMembers.
svn path=/trunk/mcs/; revision=33374
* StringReader.cs (StreamReader): remove sourceChars and disposed
variables
(Read): Copy directly from the string, rather than a char []
(Dispose, CheckObjectDisposedException): the flag for being
disposed is now source == null.
svn path=/trunk/mcs/; revision=33373
* MethodCall.cs, CADMessages.cs: String.Copy (x) is the same
thing as new string (x.ToCharArray ()), however it involves
half the memory allocation
svn path=/trunk/mcs/; revision=33369
* FileIOPermissionAttributeTest.cs: Added a new test to check that the
attribute class accept (and retains) non-c14n filenames while the
permission class accept, but c14n, filenames. Fixed other tests that
didn't check for c14n results from the created permission.
svn path=/trunk/mcs/; revision=33368
* AspParser.cs:
* AspTokenizer.cs: prevent quotes from being swallowed when we're
inside a server tag and they are the next non-whitespace character.
Fixes bug #63451.
svn path=/trunk/mcs/; revision=33364
* Environment.cs: (ExpandEnvironmentVariables) don't nullify the case
insensitive environment variables hashtable once we create it.
svn path=/branches/mono-1-0/mcs/; revision=33359
* Environment.cs: (ExpandEnvironmentVariables) don't nullify the case
insensitive enironment variables hashtable once we create it.
svn path=/trunk/mcs/; revision=33358
* Thread.cs: Changed an imperative security demand to declarative
(unsupported) so it doesn't (for now) call the security runtime.
svn path=/trunk/mcs/; revision=33355
* ContentDisposition.cs ContentType.cs DispositionTypeNames.cs
* MediaTypeNames.cs TransferEncoding.cs:
New class stubs for 2.0
svn path=/trunk/mcs/; revision=33344
* mini-exceptions.c (mono_find_jit_info): Refactor common code from
mono_arch_find_jit_info functions into a new function. Fix a memory
leak.
* exceptions-x86.c exceptions-amd64.c exceptions-sparc.c: Remove
refactored code.
svn path=/trunk/mono/; revision=33338
Fixed cs0619-37.cs, cs0619-38.cs
* enum.cs (GetObsoleteAttribute): Removed.
* expression.cs (MemberAccess.DoResolve): Test for [Obsolete]
on Enum member is double staged. The first is tested member
and then enum.
svn path=/trunk/mcs/; revision=33337
Fixed#56986, #63631, #65231
* class.cs: (TypeContainer.AddToMemberContainer): New method,
adds member to name container.
(TypeContainer.AddToTypeContainer): New method, adds type to
name container.
(AddConstant, AddEnum, AddClassOrStruct, AddDelegate, AddMethod,
AddConstructor, AddInterface, AddField, AddProperty, AddEvent,
AddOperator): Simplified by reusing AddToMemberContainer.
(TypeContainer.UserDefinedStaticConstructor): Changed to property
instead of field.
(Method.CheckForDuplications): Fixed implementation to test all
possibilities.
(MemberBase): Detection whether member is explicit interface
implementation is now in constructor.
(MemberBase.UpdateMemberName): Handles IndexerName.
(Accessor): Changed to keep also location information.
(AbstractPropertyEventMethod): Is derived from MemberCore.
(AbstractPropertyEventMethod.IsDummy): Says whether accessor
will be emited or not.
(PropertyBase.AreAccessorsDuplicateImplementation):
Tests whether accessors are not in collision with some method.
(Operator): Is derived from MethodCore to simplify common
operations.
* decl.cs (Flags.TestMethodDuplication): Test for duplication
must be performed.
(DeclSpace.AddToContainer): Adds the member to defined_names
table. It tests for duplications and enclosing name conflicts.
* enum.cs (EnumMember): Clean up to reuse the base structures
svn path=/trunk/mcs/; revision=33334
* filewatcher.c: don't expect the development fam package to be
installed. If HAVE_KQUEUE return mode 3 to use the new kqueue
watcher. Patch by Geoff Norton.
svn path=/branches/mono-1-0/mono/; revision=33332
* FAMWatcher.cs: s/fam/libfam.so.0/ so that g_module finds it even
when the development package is not installed.
2004-08-06 Geoff Norton <[email protected]>
* FileSystemWatcher.cs: Use the new KeventWatcher if its supported
* KeventWatcher.cs: Added to cvs
svn path=/branches/mono-1-0/mcs/; revision=33330
* EncryptedXml.cs: Add support for RSA for key formatting
* Reference.cs: Include XmlDecryptionTransform
* SignedXml.cs:
Set the EncryptedKey on the XmlDecryptionTransform when
loading XML
* XmlDecryptionTransform.cs:
Clean up decryption transformation to work without ugly hack.
* XmlDsigExcC14NTransform.cs XmlDsigExcC14NWithCommentsTransform.cs:
Implement this class based on XmlDsigC14N
* XmlSignature.cs: Add namespaces for various classes.
* KeyInfoEncryptedKey.cs SymmetricKeyWrap.cs:
Remove TODO attributes from implemented methods.
* KeyInfoName.cs: Put #if NET_2_0 markers in
* Transform.cs: Implement GetDigestedOutput
svn path=/trunk/mcs/; revision=33321
* EncryptedXml.cs: Add support for RSA for key formatting
* Reference.cs: Include XmlDecryptionTransform
* SignedXml.cs:
Set the EncryptedKey on the XmlDecryptionTransform when
loading XML
* XmlDecryptionTransform.cs:
Clean up decryption transformation to work without ugly hack.
* XmlDsigExcC14NTransform.cs:
Add algorithm identifier.
* XmlSignature.cs:
Add namespaces for various classes.
svn path=/trunk/mcs/; revision=33317
* class.cs (TypeContainer.DefineDefaultConstructor): Put this back
into TypeContainer, to make partial classes work again.
svn path=/trunk/mcs/; revision=33296
* X509KeyUsageExtension.cs: New stub class
* X509SubjectKeyIdentifierExtension.cs: New stub class
* PublicKey.cs X509BasicConstraintsExtension.cs X509CertificateEx.cs
* X509CertificateExCollection.cs X509Extension.cs
* X509ExtensionCollection.cs:
Bring these more in line with 2.0
svn path=/trunk/mcs/; revision=33283
* expression.cs (Invocation.OverloadResolve): Added `bool
may_fail' argument and use it instead of the Location.IsNull() hack.
svn path=/trunk/mcs/; revision=33279
Control.cs: Added new interfaces implemented in .Net 2.0.
ExpressionBinding.cs: Added new class.
ExpressionBindingCollection.cs: Added new class.
svn path=/trunk/mcs/; revision=33276
to be null. Remove redundant implicit conversion test when 'q ==
null' -- when this function is invoked, we already know that the
implicit conversion exists.
(BetterFunction): Assume that 'best' is non-null. Remove
redundant reimplementation of IsApplicable when 'best' is null.
(IsParamsMethodApplicable, IsApplicable): Add new parameter for
number of arguments.
(IsAncestralType): Extract from OverloadResolve.
(OverloadResolve): Make robust to the MethodGroupExpr being
unsorted. Implement all the logic of Section 14.5.5.1, and
support overloading of methods from multiple applicable types.
Clean up logic somewhat. Don't pass null methods to BetterFunction.
* report.cs (SymbolRelatedToPreviousError): Cleanup output.
(RealError, Warning): Append type of report to related symbol.
svn path=/trunk/mcs/; revision=33269
* EnvironmentPermission.cs: Fixed GetPathList which has little
differences between Fx 1.1 and 2.0. Required to run the MSDN samples.
* FileDialogPermission.cs: Fixed IsSubsetOf and Intersect.
* RegistryPermission.cs: Fixed ToXml to avoid NullReferenceException.
Required to run the MSDN library samples.
* SecurityPermission.cs: Return null for an empty intersection.
Required to run the MSDN library samples.
* SiteIdentityPermission.cs: Implemented wildcard support in
Intersect, IsSubsetOf and Union.
* StrongNameIdentityPermission.cs: Implemented wildcard support in
Intersect, IsSubsetOf and Union. Fixed ToXml to pass the MSDN samples.
* UrlIdentityPermission.cs: Implemented wildcard support in Intersect,
IsSubsetOf and Union. Fixed difference between Fx1.1 and 2.0 in Copy.
svn path=/trunk/mcs/; revision=33268
* CodeGroup.cs: Creates an empty PermissionSet (and not an empty
NamedPermissionSet). Required to run the MSDN library samples.
* FileCodeGroup.cs: Fixed Copy so that CodeGroup.Equals would work
preperly. Required to run the MSDN library samples.
* FirstMatchCodeGroup.cs: Reworked the Resolve* logic to run the MSDN
library samples.
* PolicyLevel.cs: Fixed RemoveNamedPermissionSet and (more) complete
CreateAppDomainLevel to run the MSDN library samples.
* StrongNameMembershipCondition.cs: Fix ToXml to run the MSDN library
samples.
svn path=/trunk/mcs/; revision=33267
* UrlIdentityPermissionTest.cs: Added a test for Copy an empty object
which results in a different behaviour in Fx 1.1 and 2.0.
svn path=/trunk/mcs/; revision=33266
* XmlTextReader.cs : When Normalization is true, CRLF and CR should
be converted to single LF. This should fix part of bug #62076.
svn path=/branches/mono-1-0/mcs/; revision=33263
* XmlTextReader.cs : When Normalization is true, CRLF and CR should
be converted to single LF. This should fix part of bug #62076.
svn path=/trunk/mcs/; revision=33262
* XmlSchema.cs : When schema inclusion results in a recursion, just
skip recursed schema.
* BUGS-MS.txt : added another entry. Reflected response from Microsoft.
svn path=/trunk/mcs/; revision=33258
* CipherReference.cs: Add XmlDecryptionTransform for 2.0
* EncryptedType.cs: Fix type initialization to conform to .NET
* EncryptedXml.cs:
Add support for RSA key decryption and "cloning" for Transform
* KeyInfoX509Data Reference.cs SignedInfo.cs XmlDsigC14NTransform.cs:
Add 2.0 stubs
* Signature.cs:
Create internal GetXml function if we already have a doc
* SignedXml.cs: Fix the transformation when we get an XmlDocument out
* XmlDecryptionTransform.cs: Implemented Xml Decryption
* XmlSignature.cs: Add namespace for Xml Decryption
svn path=/trunk/mcs/; revision=33236
In CheckSerializableType, add the option of ignoring types with private
constructors. Some kind of lists can be deserialized
even if the constructor is private. See bug #61464.
* SerializationCodeGenerator.cs, XmlSerializationReaderInterpreter.cs:
Before creating a list, check that it has a public constructor.
* TypeData.cs: Added HasPublicConstructor property.
svn path=/trunk/mcs/; revision=33230
* mini.c (mono_method_to_ir): When initializing the locals, call
handle_initobj() on the generic instance itself, not its
underlying type.
svn path=/trunk/mono/; revision=33213
* class.c (mono_class_instance_size): Don't allow generic type
definitions or open generic instances.
(mono_class_array_element_size): If we're a value type, call
mono_class_instance_size() on the original class.
* metadata.c (mono_type_size, mono_type_stack_size): Correctly
handle generic instances.
* mono-debug-debugger.c (write_type): Handle generic instances
like classes.
svn path=/trunk/mono/; revision=33212
* statement.cs (Using.EmitLocalVariableDeclFinally): Use
TypeManager.GetArgumentTypes() rather than calling GetParameters()
on the MethodBase.
svn path=/trunk/mcs/; revision=33210
* mini.h (MonoJitDynamicMethodInfo): New structure, extension of
MonoJitInfo for dynamic methods.
* mini.c: Rename trampoline_hash_mutex to jit_mutex.
* mini.c: Add support for freeing JIT data for dynamic methods.
svn path=/trunk/mono/; revision=33209
* mono-codeman.h mono-codeman.c: Generalize so it can be used to
allocate code for dynamic methods (one method per code manager).
svn path=/trunk/mono/; revision=33207
* SiteIdentityPermission.cs: Updated to match latest unit tests, i.e.
match Fx 1.1 on NET_1_1 and Fx 2.0 (beta 1) in NET_2_0.
* StrongNameIdentityPermission.cs: Updated to match latest unit tests,
i.e. match Fx 1.1 on NET_1_1 and Fx 2.0 (beta 1) in NET_2_0.
* UrlIdentityPermission.cs: Updated to match latest unit tests, i.e.
match Fx 1.1 on NET_1_1 and Fx 2.0 (beta 1) in NET_2_0.
svn path=/trunk/mcs/; revision=33205
* PermissionSet.cs: Updated to match latest unit tests, i.e. match
Fx 1.1 on NET_1_1 and Fx 2.0 (beta 1) in NET_2_0.
* SecurityElement.cs: FromString is now internal before NET_2_0.
svn path=/trunk/mcs/; revision=33204
* object.c (mono_runtime_free_method): New function to free a dynamic
method.
* marshal.c (mono_delegate_free_ftnptr): New function to free the
delegate trampoline.
* marshal.c (mono_marshal_get_managed_wrapper): Mark managed wrapper
with hasthis as dynamic,
* icall.c (ves_icall_System_Delegate_FreeTrampoline): New icall.
* domain.c (mono_jit_info_table_remove): New function to remove an
entry from the jit info table.
* class-internals.h (MonoMethod): Add 'dynamic' field.
* loader.c: Fix warnings.
svn path=/trunk/mono/; revision=33202
* MethodBuilder.cs (MethodBuilder.GetParameters): Throw a
NotSupportedException() until the type has been fully created.
svn path=/trunk/mcs/; revision=33201
* EnvironmentPermissionTest.cs: Fixed tests so they execute without
errors on both Fx 1.1 and Fx 2.0 (beta 1).
* PublisherIdentityPermissionTest.cs: Fixed tests so they execute
without errors on both Fx 1.1 and Fx 2.0 (beta 1).
* SiteIdentityPermissionTest.cs: Fixed tests so they execute without
errors on both Fx 1.1 and Fx 2.0 (beta 1). Fixed line endings.
* StrongNameIdentityPermissionTest.cs: Fixed tests so they execute
without errors on both Fx 1.1 and Fx 2.0 (beta 1).
* StrongNamePublicKeyBlobTest.cs: Fixed tests so they execute without
errors on both Fx 1.1 and Fx 2.0 (beta 1). Converted tests to NUnit
2.2 format.
* UrlIdentityPermissionTest.cs: Fixed tests so they execute without
errors on both Fx 1.1 and Fx 2.0 (beta 1).
svn path=/trunk/mcs/; revision=33188
* HashTest.cs: Fixed tests so they execute without errors on both
Fx 1.1 and Fx 2.0 (beta 1).
* PublisherTest.cs: Fixed tests so they execute without errors on both
Fx 1.1 and Fx 2.0 (beta 1). Converted tests to NUnit 2.2 format.
* SiteTest.cs: Fixed tests so they execute without errors on both Fx
1.1 and Fx 2.0 (beta 1).
* StrongNameTest.cs: Fixed tests so they execute without errors on
both Fx 1.1 and Fx 2.0 (beta 1). Converted tests to NUnit 2.2 format.
* UrlTest.cs: Fixed tests so they execute without errors on both Fx
1.1 and Fx 2.0 (beta 1). Converted tests to NUnit 2.2 format.
svn path=/trunk/mcs/; revision=33187
* PermissionSetTest.cs: Fixed tests so they execute without errors on
both Fx 1.1 and Fx 2.0 (beta 1).
* SecurityManagerTest.cs: Fixed tests so they execute without errors
on both Fx 1.1 and Fx 2.0 (beta 1).
svn path=/trunk/mcs/; revision=33186
* LiteralControl.cs: stylized. This control has EnableViewState disabled
by default and doesn't get an automatic ID. When text is null -> "".
svn path=/branches/mono-1-0/mcs/; revision=33180
* LiteralControl.cs: stylized. This control has EnableViewState disabled
by default and doesn't get an automatic ID. When text is null -> "".
svn path=/trunk/mcs/; revision=33179
* Xml.cs: fixed get_DocumentContent (it was returning "" always!) and
don't call MapPathSecure on the content itself.
* XmlBuilder.cs: handle XML documents written inside asp:xml. The
document is checked at parse time and will be checked again at run time.
Fixes bug #63828.
svn path=/branches/mono-1-0/mcs/; revision=33177
* AspGenerator.cs: handle builders that need to process inner text
with tags.
* Location.cs: added setters for the properties.
svn path=/branches/mono-1-0/mcs/; revision=33176
* Xml.cs: fixed get_DocumentContent (it was returning "" always!) and
don't call MapPathSecure on the content itself.
* XmlBuilder.cs: handle XML documents written inside asp:xml. The
document is checked at parse time and will be checked again at run time.
Fixes bug #63828.
svn path=/trunk/mcs/; revision=33175
* AspGenerator.cs: handle builders that need to process inner text
with tags.
* Location.cs: added setters for the properties.
svn path=/trunk/mcs/; revision=33174
documents does not contain a service from which to take the name.
Use the "file://" prefix when using the DiscoveryClientProtocol class,
since in MS.NET does not supports plain file paths.
* SampleGenerator.cs: Fixed header output.
svn path=/trunk/mcs/; revision=33171
C# 2.0 Static classes implemented
* class.cs (TypeContainer): instance_constructors,
initialized_fields, initialized_static_fields,
default_constructor, base_inteface_types are protected to be
accessible from StaticClass.
(TypeContainer.DefineDefaultConstructor): New virtual method
for custom default constructor generating
(StaticClass): New class to handle "Static classes" feature.
* cs-parser.jay: Handle static keyword on class like instance
of StaticClass.
* driver.cs: Added "/langversion" command line switch with two
options (iso-1, default).
svn path=/trunk/mcs/; revision=33169
* mono-debug.c, debug-mono-symfile.c: Use mono_loader_lock()
instead of mono_debugger_lock() because the latter one is a no-op
unless running in the debugger.
svn path=/trunk/mono/; revision=33165
* FaultBinding.cs: Removed useless code.
* HttpSimpleProtocolImporter.cs, SoapProtocolImporter.cs: Take into account
that now we may be generating code for a binding which is not referenced
by any port. In this case Port is null.
* MessageBinding.cs: Properly set the parent operation binding.
* OperationBinding.cs: When adding messages, set its parent property.
* ProtocolImporter.cs: Support generation of proxies for wsdl documents
that do not have any Service entry. In this case, it now generates
a proxy for every binding.
svn path=/trunk/mcs/; revision=33157
* icall.c (ves_icall_System_Reflection_Assembly_get_location): Use
mono_image_get_filename() to get the assembly location.
* icall.c:
* metadata.h: Fix compile warnings
svn path=/trunk/mono/; revision=33154
* PolicyLevel.cs: Fixed Reset not to delete/load policy file for
AppDomain level. Added internal Resolve method for class names.
svn path=/trunk/mcs/; revision=33153
* ZoneIdentityPermission.cs: Do not include "Zone" attribute in XML if
zone == NoZone (so the permission can be considered as empty).
svn path=/trunk/mcs/; revision=33152
* NamedPermissionSet.cs: FromXml now calls base class instead of an
internal method of PermissionSet. This should allow class to inherit
from NamedPermissionSet properly.
* PermissionSet.cs: Added an internal PolicyLevel property to allow
policy file class name resolution. Fixed IsEmpty to return true if
the list contains "empty" permissions. Fixed Copy to copy permissions
even for unrestricted sets (again because of IUnrestrictedPermission).
* SecurityManager.cs: Fixed Resolve(Evidence) because permission
classes Intersect methods can either return null or an empty
PermissionSet. Fixed ResolvePolicy(Evidence[]) for null (NET_2_0).
svn path=/trunk/mcs/; revision=33151
multi-file tests. If the compilation succeeded and there's no
.exe file, then assume nothing went wrong. The rest is up to the
"Compiler options:".
svn path=/trunk/mcs/; revision=33150
* PermissionSetTest.cs: Added tests for IsEmpty which can return true
even when Count > 0. Added tests for FromXml to see if class names
requires to be resolved when loaded from policy files.
* SecurityManagerTest.cs: Minor changes to tests so they succeed with
both Fx 1.1 and Fx 2.0 (beta 1).
svn path=/trunk/mcs/; revision=33149
* ZoneTest.cs: Added test to check that NoZone isn't included in the
permission XML (returned by CreateIdentityPermission).
svn path=/trunk/mcs/; revision=33146
* XPathNavigatorReader.cs : on GetAttributeNavigator(int), namespace
node could be this XmlReader's attribute node.
svn path=/trunk/mcs/; revision=33142
* metadata.h (MONO_TYPE_ISREFERENCE): Call
mono_metadata_generic_inst_is_valuetype() if we're a generic
instance to check whether our underlying type is a reference type.
svn path=/trunk/mono/; revision=33141
* mini-x86.c (is_regsize_var): Added support for generic
instances.
(mono_arch_emit_prolog): Make this compile again, use
`x86_push_imm_template (code)'.
svn path=/trunk/mono/; revision=33139
* XQueryCommand.cs : Forgot to commit. sys.xml internal class now
requires this instance for message delegating (not complete though).
svn path=/trunk/mcs/; revision=33138
* DbDataAdapter.cs: Fix for out of memory exceptions when trying to fill a dataset with a query which doesn't return a resultset like insert, delete or update.
svn path=/trunk/mcs/; revision=33127
* HttpRuntime.cs: removed initializations to null in .cctor. Prevent
other requests from avoiding the lock if they are received before the
configuration system is inited. Ensure that the queue manager is not
null before using it (it can be null while the first request is being
processed).
svn path=/branches/mono-1-0/mcs/; revision=33115
* HttpRuntime.cs: initialize the response writer when finishing a
request because it cannot be queued. Under heavy load we made new
requests be processed before the ones that might be queued. This is
no longer the case.
* QueueManager.cs: instead of queueing/dequeuing separately, we now
have a single method that does everything needed to decide which one
will be the next request processed.
svn path=/trunk/mcs/; revision=33113
* XPath2Expression.cs,
XPathSequence.cs :
Implemented GroupExpr.Evaluate() [union/intersect/except].
Fixed incorrect iterator input for DescendantExpr.Evaluate().
MinusExpr is (already) implemented not to be evaluated.
* XQueryExpression.cs :
PI name and nameExpr could be implemented.
* XQueryFunction.cs :
UserFunctionCallExpr.Invoke() should not be invoked.
* XQueryFunctionCliImpl.cs :
Implemented count(), doc(). Halfly implemented trace().
* XmlQueryException.cs : Serializable.
svn path=/trunk/mcs/; revision=33111
* XPath2Expression.cs :
Revised some parameters for XPathSequence classes ctor().
Don't require XPathSequence while they are not required.
AxisIterator need to accept only current node as its input.
Implemented node comparison operators.
Removed AxisStepExpr.ParentStep (in the future it might hold line
information).
* XQueryParser.jay : changes wrt AxisStepExpr.ParentStep.
* XPathSequence.cs, XQueryExpression.cs, XQueryFunction.cs :
Removed some extraneous code.
NodeIterator.ctor() now requires XPathNavigator and XQueryContext
instead of XPathSequence.
Added SelfIterator (derived from NodeIterator).
svn path=/trunk/mcs/; revision=33100
* System.Messaging.Design/QueuePathDialog.cs :Commented out some bits because it would not compile as it couldn't find System.Windows.Forms.Design
svn path=/trunk/mcs/; revision=33095
* PermissionSet.cs: Fixed RemovePermission and Intersect (due to typos
in unit tests). Fixed SetPermission (null).
svn path=/trunk/mcs/; revision=33086
SessionStateItemExpireCallback.cs: Explicit modifier "sealed" not
required in definition as delegates, by default are sealed.
svn path=/trunk/mcs/; revision=33082
ControlSkinProc.cs:
DataSourceViewOperationCallback.cs:
DataSourceViewSelectCallback.cs:
ExtractTemplateValuesMethod.cs: Explicit modifier "sealed" not
required in definition as delegates, by default are sealed.
svn path=/trunk/mcs/; revision=33081
IDReferencePropertyAttribute.cs: Corrected and changed from interface
to class.
IMobileTextWriter.cs: Corrected method signatures.
svn path=/trunk/mcs/; revision=33079
* ApplicationDirectory.cs: Now use Uri class to create the local
application directory.
* ApplicationDirectoryMembershipCondition.cs: Now use Uri class to
CheckEvidence.
* Site.cs: Implemented CreateFromUrl using Uri class.
* Url.cs: Now use Uri class to prepare URLs.
* UrlMembershipCondition.cs: Now use Url class (instead of a string)
for URLs.
* Zone.cs: Implemented default CreateFromUrl using Uri class.
svn path=/trunk/mcs/; revision=33063
* NamedPermissionSet.cs: Fixed Description in copies, GetHashCode and
Equals (for NET_2_0). Fixed handling of null Name when deserialized
from XML.
* PermissionSet.cs: AddPermission now unions permissions of the same
type. CopyTo throw (most) exceptions only if there are items in the
set. Implemented Demand (but without support for Assert, Deny and
PermitOnly). Fixed deserialized from XML when no class is specified.
Started implementation of ConvertPermissionSet (error cases). Fixed
Intersect to be compatible (including bugs like FDBK14612) with MS.
RemovePermission now compatible with MS (bug? FDBK14622). Fixed Union
to work with permissions that do not implement IUnrestrictedPermission.
svn path=/trunk/mcs/; revision=33061
* Uri.cs: Copied from System.dll assembly and started adaptation for
it's reuse inside the security classes (CAS).
svn path=/trunk/mcs/; revision=33057
* SiteTest.cs: Added tests for CreateFromUrl. Updated AllChars for the
differences in Fx 2.0.
* UrlTest.cs: Unignore Url_InvalidSite and started changes to be
compatible with NET_2_0.
* ZoneTest.cs: Added tests for CreateFromUrl and ToString.
svn path=/trunk/mcs/; revision=33056
* NamedPermissionTest.cs: Added unit tests for Copy(), Copy(name),
more tests for From/ToXml and Equals/GetHashCode (for NET_2_0).
* PermissionSetTest.cs: Added new unit tests for AddPermission,
ContainsNonCodeAccessPermissions, partial tests for undocumented
ConvertPermissionSet, Copy, CopyTo, GetHashCode (for NET_2_0),
GetPermission, Intersect, IsSubset, RemovePermission, SetPermission
and Union.
svn path=/trunk/mcs/; revision=33054
* XPathSequence.cs : fixed NodeIterator to get correct current node
from the input sequence. Now open MoveNext() again as public to
allow override by NodeIterator.
svn path=/trunk/mcs/; revision=33040
MailMessage.cs:
MailMessageWrapper.cs:
SmtpClient.cs: Fields property of MailMessage from .Net 1.1 was not
handled completely.
svn path=/branches/mono-1-0/mcs/; revision=33033
* XPath2Expression.cs : empty ExprSequence should not be allowed for
FLWORExpr.WhereClause. It should be null.
* XPathSequence.cs : ExprSequenceIterator.Clone() was missing copy of
the input sequence. FLWORIterator.MoveNext() had incorrect !(not)
and wrong Where test.
* XQueryContext.cs : sequence should be cloned when pushed to context.
svn path=/trunk/mcs/; revision=33031
* XQueryASTCompiler.cs, XQueryStaticContext.cs :
Now it requires Evidence and XQueryCommandImpl for security check
and event dispatch.
* XQueryCommandImpl.cs :
Provide Evidence for compiler. Added some code for message dispatch.
* XQueryContext.cs :
Now don't pool variable only in XQueryContextManager.
When variable name could not be resolved, return empty sequence
(not sure if it is always correct).
Fixes which reflects XPathEmptySequence.ctor() parameter changes.
* XQueryCliFunction.cs :
Now it requires CAS if Evidence is supplied (in the future
Evidence won't be null _at any time_).
* XQueryConvert.cs :
implemented GetFallbackType(). Fixed some comments.
* XPathSequence.cs :
Don't require XPathSequence as an argument for XPathEmptySequence.
Implemented FilteredIterator.
Implemented FLWORIterator partly (not working).
Fixed some incorrect exception type: XPathEx- to XmlQueryEx-.
Dispatch message event to XQueryStaticContext.OnMessageEvent().
Added EnumeratorIterator.
* XQueryFunction.cs:
Fixes which reflects XPathEmptySequence.ctor() parameter changes.
* XQueryExpression.cs :
Commonized content serialization for node constructors.
* XPath2Expression.cs :
use XPathItem.TypedValue instead of (string) Value.
In effective boolean value computation, Check Decimal as well.
Fixed misimplemented QuantifiedExpr.EvaluateAsBoolean().
Fix which reflects XQueryContext.PushVariables() changes.
Handle possible null argument on ParenthesizedExpr i.e. "( )".
svn path=/trunk/mcs/; revision=33011
* XmlElement.cs : XmlAttributeCollection doesn't have to be created
every time until the actual use. This sometimes optimizes
attribute-less XML performance siginificantly.
svn path=/trunk/mcs/; revision=33008
* PointerArithmetic (Resolve): make sure we are not doing
pointer arith on void*. Also, make sure we are resolved
by not setting eclass until resolve.
All callers: Make sure that PointerArithmetic gets resolved.
svn path=/branches/mono-1-0/mcs/; revision=33000
* PointerArithmetic (Resolve): make sure we are not doing
pointer arith on void*. Also, make sure we are resolved
by not setting eclass until resolve.
All callers: Make sure that PointerArithmetic gets resolved.
svn path=/trunk/mcs/; revision=32999
emitting of ".param[] = ..." is complete.
* get.c: Modified get_constant() so that
1. MONO_TYPE_CHAR now handles unicode characters
2. MONO_TYPE_I8 now emits int64(...)
3. MONO_TYPE_STRING emits a bytearray()
svn path=/trunk/mono/; revision=32994
* metadata.c
(mono_metadata_generic_inst_is_valuetype): New public function.
* metadata.h (MONO_TYPE_ISSTRUCT): Call
mono_metadata_generic_inst_is_valuetype() if we're a generic
instance to check whether our underlying type is a valuetype.
svn path=/trunk/mono/; revision=32954
* HttpRuntime.cs: removed initializations to null in .cctor. Prevent
other requests from avoiding the lock if they are received before the
configuration system is inited. Ensure that the queue manager is not
null before using it (it can be null while the first request is being
processed).
svn path=/branches/mono-1-0/mcs/; revision=32941
* HttpRuntime.cs: removed initializations to null in .cctor. Prevent
other requests from avoiding the lock if they are received before the
configuration system is inited. Ensure that the queue manager is not
null before using it (it can be null while the first request is being
processed).
svn path=/trunk/mcs/; revision=32940
* gmcs-ignore-tests: New file. This file lists tests which should
not be run at all because they make the compiler hang.
* gmcs-expect-no-error, gmcs-expect-wrong-error: Updated.
* generics-expect-no-error: Updated.
svn path=/trunk/mcs/; revision=32936
* Makefile
(run-gmcs-tests): New target to run the cs*.cs tests with gmcs.
(run-generics-tests): New target to run the gcs*.cs tests.
(run-tests-local): Run run-mcs-tests, run-gmcs-tests and
run-generics-tests.
* do-tests.pl: Don't return an error value if more tests pass than
expected.
* mcs-expect-no-error, mcs-expect-wrong-error: Updated to the
current situation, ie. make all the tests pass.
* gmcs-expect-no-error, gmcs-expect-wrong-error: New files.
* generics-expect-wrong-error: Formerly known as
gmcs-expect-wrong-error.
svn path=/trunk/mcs/; revision=32933
MailMessageWrapper.cs: Added a comment to add Date header.
SmtpClient.cs: Updated functionality to add RelatedBodyPart to
MIME message.
svn path=/trunk/mcs/; revision=32928
* XmlAttribute.cs : some property getters threw NullReferenceException
when the attribute is not added to an element.
* XmlNode.cs : When a node is not appended to another node, BaseURI
is empty. Bug #64120 is fixed.
svn path=/branches/mono-1-0/mcs/; revision=32915
* XmlAttribute.cs : some property getters threw NullReferenceException
when the attribute is not added to an element.
* XmlNode.cs : When a node is not appended to another node, BaseURI
is empty. Bug #64120 is fixed.
svn path=/trunk/mcs/; revision=32914
* MonoSymbolFile.cs (MonoSymbolFile..ctor): Set
`reader.BaseStream.Position' to 12 before reading the GUID so we
actually read it from the correct file offset.
svn path=/trunk/mcs/; revision=32910
* MonoSymbolFile.cs (MonoSymbolFile.ReadSymbolFile): pass name to
MonoSymbolFile.ctor, not filename, so we load the .mdb file
instead of the .dll.
(MonoSymbolFile.ctor): pass FileAccess.Read to the FileStream
ctor.
svn path=/trunk/mcs/; revision=32909
* MonoSymbolFile.cs (MonoDebuggerSupport.GetGuid): The function is
called Module.Mono_GetGuid(), not Module.MonoDebugger_GetGuid().
svn path=/trunk/mcs/; revision=32907
* ApplicationSecurityManager.cs: New stub for Fx 2.0 application trust
security manager.
* ApplicationSecurityManagerCodeGroup.cs: New stubbed code group for
NET_2_0 profile.
* ApplicationTrustCollection.cs: New. ApplicationTrust collection for
NET_2_0 profile.
* ApplicationTrustEnumerator.cs: New. ApplicationTrust enumerator for
NET_2_0 profile.
svn path=/trunk/mcs/; revision=32905
* TdsComm.cs:
Tds70.cs:
Make Tds70 work on Big Endian machines.
BitConverter uses unsafe and returns things in host order; we need to
swap some values to put them back into the approrpiate order for the wire.
svn path=/trunk/mcs/; revision=32898
* ecore.cs (Constantify): Get underlying type via
System.Enum.GetUnderlyingType to avoid StackOverflow on the
Windows in special cases.
svn path=/trunk/mcs/; revision=32893
* typemanager.cs (GetAddMethod): Used GetAddMethod (true)
for obtaining also private methods.
(GetRemoveMethod): Used GetRemoveMethod (true)
for obtaining also private methods.
svn path=/trunk/mcs/; revision=32892
* corlib_test.dll.sources: Added System.Security.Policy/
ApplicationDirectoryTest.cs, HashMembershipConditionTest.cs,
HashTest.cs and IBuiltInEvidenceTest.cs to unit tests.
svn path=/trunk/mcs/; revision=32890
* ApplicationDirectory.cs: Fixed directory validation and ToString.
* CodeGroup.cs: Fixed PermissionSetName when policy is null.
* Evidence.cs: Fixed Merge for null case. Fixed IsSynchronized for
NET_2_0. Uncommented some code for NET_2_0 DomainManager usage.
* FileCodeGroup.cs: Fixed Resolve and ResolveMatchingGroup wrt new
unit tests.
* Gac.cs: Implemented IBuiltInEvidence methods.
* Hash.cs: Removed TODO from NET_2_0 as it's hashing seems compatible
with Mono ;-). Fixed properties for use with NET_2_0.
* HashMembershipCondition.cs: Fixed To|FromXml serialization. Make
copies of hash value (not references).
* PermissionRequestEvidence.cs: Now make copies of permission sets.
* Publisher.cs: Namespace cleanup, implemented GetRequiredSize.
* Site.cs: Namespace cleanup, implemented GetRequiredSize.
* StrongName.cs: Namespace cleanup.
* UnionCodeGroup.cs: Namespace cleanup, converted spaces to tabs.
* Url.cs: Namespace cleanup, implemented GetRequiredSize.
* Zone.cs: Namespace cleanup, globalization and added more details in
exception.
svn path=/trunk/mcs/; revision=32888
* testmbas/WriteOk.vb : Use Mono.GetOptions from VB.NET
* Makefile : exercise new option processing in test program [make-run-local target]
svn path=/trunk/mcs/; revision=32887
* XmlTextWriter.cs : In CheckState(), don't create indentation string
at every time. WriteIndent() now handles the indentation without
recomputation.
svn path=/branches/mono-1-0/mcs/; revision=32886
* SecurityElement.cs: Fixed the new Copy() in Fx 2.0 as it isn't a
deep copy. Throw proper exceptions in FromString (Fx 2.0).
* SecurityManager.cs: Throw a NullReference exception in
SavePolicyLevel as MS won't fix it (FDBK13121).
svn path=/trunk/mcs/; revision=32884
* ApplicationDirectoryTest.cs: New. For NET_2_0 profile.
* EvidenceTest.cs: Added more tests for 1.1 and new tests for 2.0.
* FileCodeGroupTest.cs: Added more tests for Resolve,
ResolveMatchingCodeGroups and new Fx 2.0 Scope property.
* HashMembershipConditionTest.cs: New. Unit tests for hash membership.
* HashTest.cs: New. Unit tests for hash.
* IBuiltInEvidenceTest.cs: New. Unit tests for the internal
IBuiltInEvidence interface. All tests are [Ignore]d for the
* NetCodeGroupTest.cs: Ajusted PermissionSetName for Fx 2.0.
* PermissionRequestEvidenceTest.cs: Ajusted existing tests for 2.0.
Converted tests to NUnit 2.2 format. Converted to UNIX line endings.
Added test to see that the original permission sets are copied but
the instance copy can be changed (not copied on output).
* PolicyLevelTest.cs: Added more tests for Resolve and
ResolveMatchingCodeGroups.
* UnionCodeGroupTest.cs: Added more properties validation in tests.
svn path=/trunk/mcs/; revision=32883
* XmlTextWriter.cs : In CheckState(), don't create indentation string
at every time. WriteIndent() now handles the indentation without
recomputation.
svn path=/trunk/mcs/; revision=32882
* XPath2Expression.cs :
Fixed PathRootExpr.Evaluate() that always failed.
Renamed PathChildExpr to PathSlashExpr, PathDescendantExpr to
PathSlash2Expr, and added abstract PathStepExpr.
PathSlash2Expr.Evaluate() now uses PathStepIterator
* XPathSequence.cs :
- Modified MoveNextCore() as protected.
- Fixed SingleItemIterator.MoveNext() to be simple.
- Renamed ChildPathIterator to PathStepIterator. Mostly copied
SlashIterator logic from Iterator.cs into PathStepIterator.
- Removed DescendantPathIterator ("//" should be the same as
"/descendant-or-self::node()/").
- NodeIterator.Node should come from current node, not context node.
- Added dummy flag for NodeIterator's copy constructor (that resulted
in incorrect copying for some usecases).
* XQueryParser.jay : Fixes in sync with Expr class name changes.
svn path=/trunk/mcs/; revision=32871
* XPath2Expression.cs : in Compiler(), function call's arguments must
also be compiled.
* XQueryASTCompiler.cs : When function is external, it should not try
to compile body, and tries to handle it as a native CLI method (I
don't like this name resolution design very much, so it is likely
to be redesigned).
* XQueryCliFunction.cs : trivial code comment fix.
* XQueryFunction : added user-specified function call support.
When CLI function returned null, don't wrap null and just return
XQueryEmptySequence.
* XQueryFunctionCliImpl.cs : fn:nilled() requires certain node.
Implemented numeric functions (in the future they might be
rewritten to avoid boxing).
* XQueryTokenizer.cs : Skip XQuery comment inside default state.
PI and XML comment are not read correctly.
svn path=/trunk/mcs/; revision=32856
* Parser.cs:
* expression.cs: made Binary is IAssignable, added fields assign
and right_side, added method ResolveAssign (which now receives an
extra parameter, being the right side of the assigment). Take care of being
inside a function for array indexing. Take care of lvalue case
too. Assign.Emit just calls left.Emit since left knows everything
about the right side of the assigment after Resolve process.
* BitwiseBinary.cs, CodeGenerator.cs, Equality.cs, NumericBinary.cs, : updates for BinaryOp change.
svn path=/trunk/mcs/; revision=32854
* BinaryOp.cs: renamed current_op to simply op as with the new
parser we no longer need to keep track of the old_op.
svn path=/trunk/mcs/; revision=32853
* Updated files from gborg cvs. Added support for geometric types.
Improved Unicode encoding support. It was possible to characters in unicode cross the stream buffer and be discarded. Now we use Decoders which handle that situation. Thanks Oskars Ozols (oskars dot ozols at di dot lv)
Improved connection startup code. Now new connections in ms.net goes a lot faster. Thanks Mikko Korkalo (mikko.korkalo at f-solutions dot net) for the patch.
Fixed a problem with plan execution in 7.3 backend versions. The text parameters weren't being quoted and backend complained about that.
- gborg 898: Added HasRows method to NpgsqlDataReader. Thanks [email protected] for feature request.
- gborg 899: Fixed return of IsClosed after closing NpgsqlDataReader. Thanks Mikko Korkalo (mikko.korkalo at f-solutions dot net) for the patch.
svn path=/trunk/mcs/; revision=32851
* support.cs (ReflectionParameters..ctor): If this is a generic
method, retrieve and store its type parameters.
(InternalParameters..ctor): Added `TypeParameter[]' argument.
(ReflectionParameters.GenericConstraints): The argument specifies
the type parameter, not the method parameter.
(InternalParameters.GenericConstraints): Likewise.
* generic.cs (TypeParameter.DefineType): Correctly handle
constraints wrt. generic methods in interfaces and their
implementations.
svn path=/trunk/mcs/; revision=32846
* loader.c (mono_get_method_from_token): Abstract methods can also
be generic and thus have type parameters.
* metadata-internals.h
(MonoDynamicImage): Added `GPtrArray *gen_params'.
* reflection.c (mono_image_get_generic_param_info): Don't create a
metadata row, just add an entry to the `gen_params' array.
(build_compressed_metadata): Sort the `gen_params' array and then
actually create the metadata.
svn path=/trunk/mono/; revision=32844
* XPath2Expression.cs :
Check write state before writing document node.
Check if navigator's SchemaInfo is null or not before atomizing.
Use individual axis-based iterator in AxisStepExpr.Evaluate().
* XPathSequence.cs : added individual axis-based iterator.
Removed commented NodeKindTestIterator.
* XQueryCliFunction.cs, XQueryContext.cs, XQueryFunction.cs :
Now XQueryContext.CurrentItem explicitly throws exception if
no context node was provided (also XQueryCommand.Execute() is
fixed not to provide empty document as input).
Now XQueryFunction should not access to CurrentItem unless it is
required.
* XQueryFunctionCliImpl.cs : fixed more method signatures.
svn path=/trunk/mcs/; revision=32827
* XPathAtomicValue.cs : Value was not returning expected value when
it is created as new XPathAtomicValue (object, XmlSchemaType).
Compute stringValue and reuse.
* XPathNavigator.cs : Temporarily stubbed as to ignore SchemaInfo
(for checking XQuery implementation).
svn path=/trunk/mcs/; revision=32826
MailMessageWrapper.cs: Added NET_2_0 property and another missing
property from NET_1_1.
RelatedBodyPart.cs: Error detection and handling.
SmtpClient.cs: Upgraded for NET_1_1 and WIP for NET_2_0.
svn path=/trunk/mcs/; revision=32822
When deserializing an encoded method response, assign to the return value
the first element of the message, whatever it is. The return type doesn't
need to be Object, it seems to be true for all return types.
svn path=/trunk/mcs/; revision=32813
* SequenceType.cs : moved type inference method to XPathAtomicValue.
Use IsArray in runtime type inference. Initialize fields completely.
Handle collection to runtime type for functions that takes array.
* XPath2Expression.cs : Add whitespaces on serializing XPath items.
EBV != atomized boolean value. Add Atomize() for XPathItem (Atomize()
for XPathSequence should be removed in the future).
Replaced some ExprSequence to ExprSingle for optimization.
* XQueryFunctionCliImpl.cs : Fixed some return types.
* XQueryTokenizer.cs : Fixed weird ReadDecimal().
svn path=/trunk/mcs/; revision=32812
* XPathAtomicValue.cs : Handle .ctor() with object parameter more
precisely (still not enough, for list argument).
Removed commended blocks.
svn path=/trunk/mcs/; revision=32811
* XmlSchemaSimpleType.cs : Fill list types such as xs:IDREFS.
* XmlSchemaType.cs :
Fixed TypeCode more (broken on predefined list types and xs:anyType).
svn path=/trunk/mcs/; revision=32810
* generic.cs (TypeParameter.IsSubclassOf): New public method.
(Constraints.IsSubclassOf): New internal method.
* typemanager.cs (TypeManager.FindMembers): Added special support
for GenericTypeParameterBuilder's.
(TypeManager.IsSubclassOf, IsFamilyAccessible): Added support for
type parameters.
svn path=/trunk/mcs/; revision=32784
* typemanager.cs
(TypeManager.IsSubclassOf): Renamed to IsFamilyAccessible; use
this for accessibility checks.
(TypeManager.IsSubclassOrNestedChildOf): Renamed to
IsNestedFamilyAccessible.
(TypeManager.IsSubclassOf): New method, do what the name actually
says.
svn path=/trunk/mcs/; revision=32781
* cpu-amd64.md: sreg1 of div instructions must be %rax.
* mini-amd64.c: Register allocator fixes.
* mini.c: Add an optimization to emit_state to avoid allocation of new
registers on some platforms.
svn path=/trunk/mono/; revision=32776
* UrlMembershipCondition.cs: Check now only iterate host provided
evidences.
* ZoneMembershipCondition.cs: FromXml doesn't throw exceptions if Zone
attribute is missing.
svn path=/trunk/mcs/; revision=32771
* AllMembershipConditionTest.cs: Renamed GetHashCode and
ToString tests to remove compiler warnings.
* ApplicationDirectoryMembershipConditionTest.cs: Renamed GetHashCode
and ToString tests to remove compiler warnings.
* ApplicationMembershipConditionTest.cs: Renamed GetHashCode and
ToString tests to remove compiler warnings.
* DomainApplicationMembershipConditionTest.cs: Renamed GetHashCode and
ToString tests to remove compiler warnings.
* GacMembershipConditionTest.cs: Added some new unit tests for
FromXml to match other *MembershipCondition classes.
* PublisherMembershipConditionTest.cs: Renamed GetHashCode and
ToString tests to remove compiler warnings.
* SiteMembershipConditionTest.cs: Completed. Converted existing unit
tests to NUnit 2.2 format.
* UrlMembershipConditionTest.cs: Completed. Converted existing unit
tests to NUnit 2.2 format.
* ZoneMembershipConditionTest.cs: Added some new unit tests to match
other *MembershipCondition classes.
svn path=/trunk/mcs/; revision=32768
* expression.cs: do not pass the operand as a parameter to the
constructor as it gets after the parent gets constructed, same
with binary. Added code generation for array index access.
* Parser.cs: added ToJStoken which converts Token to JSToken,
factored the code for creation the Unary nodes. Take care of
parent relationship.
* LateBinding.cs: back to Microsoft.JScript namespace.
svn path=/trunk/mcs/; revision=32760
GetComponentType should always return the type if
specified, GetId can now be !=0 for base64 arrrays.
* SoapTypeMapper.cs: Register byte[] as base64 xml type.
* SoapWriter.cs: Handle base64 encoded byte arrays.
svn path=/trunk/mcs/; revision=32759
* ConformanceChecker.cs: Added service list property in
ConformanceCheckContext.
* MessagePart.cs: Added some convenient internal properties.
* OperationMessageCollection.cs: Added property for getting the fault
message.
* ServiceDescriptionFormatExtensionCollection.cs: The find method now
can return subclasses of the provided class.
* WebServicesInteroperability.cs: Set the context schema when processing
a schema.
svn path=/trunk/mcs/; revision=32758
* XPathAtomicValue.cs : DateTime should be convertible to string.
Use schemaType's TypeCode for .ctor() that takes object.
* XPathNavigator.cs : copied get_InnerXml from XPathEditableNavigator.
* XPathEditableNavigator.cs : set_InnerXml should be different (new)
property from get_InnerXml. Removed get_InnerXml and get_OuterXml
overrides.
svn path=/trunk/mcs/; revision=32756
* SequenceType.cs : added ToRuntimeType().
* XPath2Expression.cs : override is required.
* XPathSequence.cs : fixed ExprSequenceIterator.MoveNext() that caused
infinite loop.
* XQueryCompileContext.cs : CultureInfo was missing.
* XQueryContext.cs : CurrentContext must be created after setting
currentSequence.
* XQueryConvert.cs : DateTimeToString() was missing.
* XQueryFunction.cs : convert parameters to runtime type before
being used in Invoke(). Use function's ReturnType to create typed
atomic.
* XQueryParser.jay : create XQueryFunctionArgumentList instance
for function calls that does not have parameters.
svn path=/trunk/mcs/; revision=32755
- Added handling of form closing
- Fixed reporting of MessageLoop property
- Removed some unneeded code, should provide a bit of a speedup
svn path=/trunk/mcs/; revision=32736
- Added code to properly perform layout when Anchor or Dock property is
changed
- Changed 'interpretation' of ResumeLayout. MS seems to have a LAMESPEC,
tried to do it in a way that makes sense
svn path=/trunk/mcs/; revision=32732
* AllMembershipConditionTest.cs: New. Unit tests in NUnit 2.2 format.
* ApplicationDirectoryMembershipConditionTest.cs: New. Unit tests in
NUnit 2.2 format.
* ApplicationMembershipConditionTest.cs: New. Unit tests in NUnit 2.2
format.
* DomainApplicationMembershipConditionTest.cs: New. Unit tests in
NUnit 2.2 format.
* PublisherMembershipConditionTest.cs: Completed. Converted
existing unit tests to NUnit 2.2 format.
svn path=/trunk/mcs/; revision=32728
* AllMembershipCondition.cs: Use common template for membership
condition.
* ApplicationDirectoryMembershipCondition.cs: Use common template for
membership condition. Limit evidences checks to host provided.
"Mostly" functionnal - still need to check c14n issues.
* ApplicationMembershipCondition.cs: New. For NET_2_0 profile.
* DomainApplicationMembershipCondition.cs: New. For NET_2_0 profile.
* GacMembershipCondition.cs: Use common template for membership
condition. Limit evidences checks to host provided.
* HashMembershipCondition.cs: Use common template for membership
condition. Limit evidences checks to host provided.
* MembershipConditionHelper.cs: Internal class for common membership
condition classes functionalities.
* PublisherMembershipCondition.cs: Use common template for membership
condition.
* SiteMembershipCondition.cs: Use common template for membership
condition.
* StrongNameMembershipCondition.cs: Use common template for membership
condition.
* UrlMembershipCondition.cs: Use common template for membership
condition.
* ZoneMembershipCondition.cs: Use common template for membership
condition.
svn path=/trunk/mcs/; revision=32727
* Parser.cs: pass the skip_count to ArrayLiteral constructor.
* Missing.cs: back to Microsoft.JScript namespace.
* ArrayLiteral.cs: added field skip_count, it tells us if this is
a spaced-arrayliteral, in which case we add a null value in the
list, added null check in the resolve and code generation process.
svn path=/trunk/mcs/; revision=32710
* SequenceType.cs, XPath2Expression.cs, XQueryASTCompiler.cs,
XQueryCliFunction.cs, XQueryCompileOptions.cs, XQueryContext.cs,
XQueryConvert.cs, XQueryExpression.cs, XQueryFunction,cs,
XQueryFunctionCliImpl.cs, XQueryFunctionTable.cs,
XQueryModuleProlog.cs, XQueryParser.jay, XQueryStaticContext.cs,
XQueryTokenizer.cs :
Eliminate MS.Internal.Xml.* classes. More null check everywhere and
make Compile() pass though as a dummy. Unified FunctionParam into
XQueryFunctionArgument. More kind error message. Several fixes.
svn path=/trunk/mcs/; revision=32703
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=32700
Back to the old error reporting system :-)
* report.cs (Message): Removed.
(Report.MessageData, ErrorData, WarningData): Removed.
(Report.Error, Warning): Back to the old system.
svn path=/trunk/mcs/; revision=32698
Back to the old error reporting system :-)
* report.cs (Message): Removed.
(Report.MessageData, ErrorData, WarningData): Removed.
(Report.Error, Warning): Back to the old system.
svn path=/trunk/mcs/; revision=32694
* metadata.c (mono_metadata_parse_type): Alloc pinned, byref and
custom modifiers to be in any order. Fixes#61990.
svn path=/trunk/mono/; revision=32690
* FormsAuthenticationModule.cs: don't renew expired cookies. Only renew
the cookie if SlidingExpiration is set. Thanks to Jim Pease.
svn path=/branches/mono-1-0/mcs/; revision=32677
* FormsAuthenticationModule.cs: don't renew expired cookies. Only renew
the cookie if SlidingExpiration is set. Thanks to Jim Pease.
svn path=/trunk/mcs/; revision=32676
* flowanalysis.cs (FlowBranching.UsageVector.MergeChild): If we're
a switch and may break, reset the barrier. Fixes#59867.
svn path=/trunk/mcs/; revision=32665
CLS-Compliance speed up (~5% for corlib)
* attribute.cs (AttributeTester.VerifyTopLevelNameClsCompliance):
New method. Tests container for CLS-Compliant names
* class.cs (TypeContainer.VerifyClsName): New method.
Checks whether container name is CLS Compliant.
(Constructor): Implements IMethodData.
* decl.cs (MemberCache.GetPublicMembers ): New method. Builds
low-case table for CLS Compliance test.
(MemberCache.VerifyClsParameterConflict): New method.
Checks method parameters for CS3006 error.
* enum.cs (EnumMember): Is derived from MemberCore.
(Enum.VerifyClsName): Optimized for better performance.
svn path=/trunk/mcs/; revision=32663
* Microsoft.JScript.dll.sources: added In.cs, Token.cs,
TokenStream.cs and Parser.cs to the build. Don't build
JScriptLexer.cs and JScriptParser.cs
svn path=/trunk/mcs/; revision=32654
* expression.cs: added interface ICallable and and function AddArg
to class Call. Added class New.
* driver.cs: made it use the new lexer and parser.
* ast.cs: added field line_number, added property InFunction,
added class Function that factores all the code shared between
FunctionDeclaration and FunctionExpression.
* With.cs: constructor receives line number.
* VariableStatement.cs: constructor receives line number.
* VariableDeclaration.cs: Added check for parent being
FunctionDeclaration and FunctionExpression.
* Try.cs: Moved the code that used to take care of the catch to
Catch class. Constructor receives forming elements and line
number. Removed mangle_id.
* Throw.cs: constructor receives line number.
* Statement.cs: If, DoWhile, Return constructor receives line number. Renamed
identifier to label in Continue and Break class, its constructor now
receives the label and line number. For class, constructor
receives its forming parts. Switch class, constructor receives
line number, added function AddClause and AddStm. Added class
Catch. Added class Labelled.
* SemanticAnalyser.cs: Added field anon_method_counter, properties
NextAnonymousMethod and CurrentAnonymousMethod.
* Parser.cs: function ArgumentList receives a ICallable list
instead of a AST. Now we add the arguments of a callable. Build
Call's ast.
* Literal.cs: added constructor for 'this' literal and
ObjectLiteral constructor. Added RegExpLiteral class, will take
care of regular expressions semantic analysis and code generation.
* JSScanner.cs: use no more the antlr based lexer. Fix typo.
* JSParser.cs: make it use the new port of Rhino's Parser.
* FunctionObject.cs: Added constructor that receives the function name.
* FunctionExpression.cs: made it inherit from Function class. Added
constructor. Factored the code that used to set the prefix to
Function.set_prefix (it's shared with FunctionDeclaration). Added
fields local_script_func and field. Implemented Resolve and Emit
(now we can do: var x = function (this, method, is, anonymous) {... };).
* FunctionDeclaration.cs: made it inherit from Function class in
order to share code with FunctionExpression. Added new
constructor. Moved the code that used to built the prefix to
Function inside function set_prefix. When building the closure
added check for setting the type of a FunctionExpression. Moved
set_function_type and set_custom_attr to class Function.
* ForIn.cs: added constructor and fields lhs, obj and body.
* Block.cs: added default constructor and line number based
constructor. Check for elems not being null before adding.
* ArrayLiteral.cs: set elements in constructor.
svn path=/trunk/mcs/; revision=32652
* amd64/amd64-codegen.h (X86_IS_BYTE_REG): Redefine X86_IS_BYTE_REG
since under amd64, all 16 registers have a low part.
svn path=/trunk/mono/; revision=32632
* mini-amd64.c (read_tls_offset_from_method): Add another code
sequence.
* tramp-amd64.c (amd64_class_init_trampoline): Use a more efficient
instruction sequence for nullifying class init trampolines.
svn path=/trunk/mono/; revision=32624
* object.c (mono_class_get_allocation_ftn): Return to calling
mono_object_new_fast, since it seems faster to compute the object
size in unmanaged code than passing it as a parameter.
svn path=/trunk/mono/; revision=32595
* UrlIdentityPermission.cs: Basic (without wildcards) implementation
for Intersect, IsSubsetOf and Union. Fixed to pass all new unit tests.
svn path=/trunk/mcs/; revision=32587
* XQueryExpression.cs : Content for XmlTextConstructor might be null,
and use literal text for constructor argument if supplied.
* XQueryParser.jay, XQueryTokenizer.cs : Element content literal
string was not parsed and kept correctly. Parse CDATA section.
svn path=/trunk/mcs/; revision=32582
* driver.c (mono_main): Set mono_stats.enabled if needed.
* mini.c (handle_alloc): New helper function used by CEE_NEWOBJ and
CEE_BOX.
svn path=/trunk/mono/; revision=32580
* gc-internal.h gc.c: Add mono_gc_out_of_memory () function. Register
this function with Boehm as the oom handler, so we don't have to check
the result of GC_malloc.
* object.c: Remove checks for oom.
* object.h object.c (mono_class_get_allocation_ftn): New function to
return the icall which can be used to allocate an instance of a given
class.
* object.c: Handle common allocation requests using GC_gcj_fast_malloc.
* class-internals.h: Add 'enabled' field.
svn path=/trunk/mono/; revision=32579
* SiteIdentityPermission.cs: Basic (without wildcards) implementation
for Intersect, IsSubsetOf and Union. Fixed to pass all new unit tests.
svn path=/trunk/mcs/; revision=32573
* CodeAccessSecurityAttributeTest.cs: New unit tests for abstract
class CodeAccessSecurityAttribute.
* DataProtectionPermissionAttributeTest.cs: New unit tests for Fx 2.0
DataProtectionPermissionAttribute class.
* HostProtectionAttributeTest.cs: New unit tests for Fx 2.0
HostProtectionAttribute class.
* IsolatedStoragePermissionAttributeTest.cs: New unit tests for
abstract class IsolatedStoragePermissionAttribute.
* KeyContainerPermissionAttributeTest.cs: New unit tests for Fx 2.0
KeyContainerPermissionAttribute class.
* SecurityAttributeTest.cs: New unit tests for abstract class
SecurityAttribute.
* SiteIdentityPermissionTest.cs: New unit tests for
SiteIdentityPermission. Lacks tests for wilcards.
svn path=/trunk/mcs/; revision=32572
* Event_dll.vb:
* Event_exe.vb:
New tests for invoking event form other assembly
* Test.Sources: Updated with new file names
* Makefile: Added new dll name
svn path=/trunk/mcs/; revision=32571
* XQueryCommand.cs : Now it delegates all implementation logic to
Mono.Xml.XQuery.XQueryCommandImpl class (now Execute() is also
invoked.)
svn path=/trunk/mcs/; revision=32570
* statement.cs: Bug fixing - Prevent AddHandler from getting resolved second time. This is critical for ASP programs with VB.
svn path=/trunk/mcs/; revision=32566
* XmlTextReader.cs : Fixed EOF not to return true when it is just
closed. Element and EndElement location is now adjusted to be the
same as MS.NET does. This fixes bug #63505 and #63507.
ResetState() now throws InvalidOperationException() as MS.NET does.
* WriteState.cs : added missing 2_0 enumeration.
* XmlReader.cs : ReadTypedValue() is virtual.
* XmlValidatingReader.cs : ReadTypedValue() is override under 2_0.
svn path=/trunk/mcs/; revision=32558
* XmlTextReader.cs : Fixed EOF not to return true when it is just
closed. Element and EndElement location is now adjusted to be the
same as MS.NET does. This fixes bug #63505 and #63507.
svn path=/branches/mono-1-0/mcs/; revision=32556
- Added a way to re-initialize with a different display handle
- Fixed setting of the window background color
- Added various X11 imports related to colors and colormaps
svn path=/trunk/mcs/; revision=32543
* CodeAccessSecurityAttributeTest.cs: New unit tests for abstract
class CodeAccessSecurityAttribute.
* DataProtectionPermissionAttributeTest.cs: New unit tests for Fx 2.0
DataProtectionPermissionAttribute class.
* EnvironmentPermissionAttributeTest.cs: Added tests to check class's
attributes. Converted existing tests to NUnit 2.2 format. Fixed small
behaviour difference with Fx 2.0.
* FileDialogPermissionAttributeTest.cs: Added tests to check class's
attributes. Converted existing tests to NUnit 2.2 format.
* FileIOPermissionAttributeTest.cs: Added tests to check class's
attributes. Converted existing tests to NUnit 2.2 format. Added tests
for new Fx 2.0 properties.
* HostProtectionAttributeTest.cs: New unit tests for Fx 2.0
HostProtectionAttribute class.
* IsolatedStoragePermissionAttributeTest.cs: New unit tests for
abstract class IsolatedStoragePermissionAttribute.
* KeyContainerPermissionAttributeTest.cs: New unit tests for Fx 2.0
KeyContainerPermissionAttribute class.
* PermissionSetAttributeTest.cs: Added tests to check class's
attributes. Converted existing tests to NUnit 2.2 format. Added tests
for new Fx 2.0 properties.
* PrincipalPermissionAttributeTest.cs: Added tests to check class's
attributes. Converted existing tests to NUnit 2.2 format.
* PublisherIdentityPermissionAttributeTest.cs: Added tests to check
class's attributes. Converted existing tests to NUnit 2.2 format.
* ReflectionPermissionAttributeTest.cs: Added tests to check class's
attributes. Converted existing tests to NUnit 2.2 format.
* RegistryPermissionAttributeTest.cs: Added tests to check class's
attributes. Converted existing tests to NUnit 2.2 format. Added tests
for new Fx 2.0 properties.
* SecurityAttributeTest.cs: New unit tests for abstract class
SecurityAttribute.
* SecurityPermissionAttributeTest.cs: Removed unrequired line.
* SiteIdentityPermissionAttributeTest.cs: Added tests to check class's
attributes. Converted existing tests to NUnit 2.2 format.
* StrongNameIdentityPermissionAttributeTest.cs: Removed unrequired line.
* UIPermissionAttributeTest.cs: Removed unrequired line.
* UrlIdentityPermissionAttributeTest.cs: Added tests to check class's
attributes. Converted existing tests to NUnit 2.2 format.
* ZoneIdentityPermissionAttributeTest.cs: Removed unrequired line.
svn path=/trunk/mcs/; revision=32538
* CodeAccessSecurityAttribute.cs: Namespace clean-up (removing System.)
* EnvironmentPermission.cs: Common exception for flags validation.
Fixed Fx 2.0 return values (String.Empty not null).
* EnvironmentPermissionAttribute.cs: Namespace clean-up.
* FileIOPermission.cs: Updated to use the common template. Added Fx
2.0 properties.
* FileIOPermissionAttribute.cs: Added Fx 2.0 properties.
* HostProtectionAttribute.cs: Namespace clean-up (removing System.)
* IsolatedStoragePermissionAttribute.cs: Namespace cleanup.
* KeyContainerPermissionAttribute.cs: Added default values. Removed
unrequired flags validations. Can now create unrestricted permissions.
* PermissionSetAttribute.cs: Added new Fx 2.0 Hex property.
* PrincipalPermission.cs: Updated to use the common template.
* PrincipalPermissionAttribute.cs: Namespace cleanup.
* PublisherIdentityPermissionAttribute.cs: Namespace cleanup.
* RegistryPermission.cs: Updated to use the common template.
* RegistryPermissionAttribute.cs: Added Fx 2.0 properties.
* SecurityAttribute.cs: Namespace clean-up (removing System.)
* SiteIdentityPermission.cs: Updated to use the common template.
* SiteIdentityPermissionAttribute.cs: Move unrestricted responsability
check to SiteIdentityPermission constructor.
* StrongNamePermissionAttribute.cs: Move unrestricted responsability
check to StrongNameIdentityPermission constructor.
* UrlIdentityPermission.cs: Updated to use the common template.
* UrlIdentityPermissionAttribute.cs: Move unrestricted responsability
check to UrlIdentityPermission constructor.
* ZoneIdentityPermissionAttribute.cs: Move unrestricted responsability
check to ZoneIdentityPermission constructor.
svn path=/trunk/mcs/; revision=32537
* mini-x86.c, cpu-pentium.md, inssel-x86.brg:
set tree->dreg correctly with tls. Allow any
register to be used.
* mini-x86.c (read_tls_offset_from_method): add new code
generation pattern seen with GCC.
svn path=/trunk/mono/; revision=32533
* mini-exceptions.c, exceptions-x86.c, exceptions-amd64.c,
exceptions-ppc.c, exceptions-s390.c, exceptions-s390x.c,
exceptions-sparc.c: fix some performance issues in exception
handling and setting of the stack trace for exceptions that were
already thrown.
svn path=/trunk/mono/; revision=32531
* handles.c (_wapi_handle_count_signalled_handles): Fix thinko
introduced with the fd offset stuff: unlock handles properly when
backing off. Fixes the monologue hang at exit.
svn path=/trunk/mono/; revision=32528
* Makefile: Changed the makefile to support multiple file compilation sothat we can compile files A1.vb, A2.vb, A3.vb as A*.vb
svn path=/trunk/mcs/; revision=32525
* SecurityPermissionAttributeTest.cs: Added unit tests for invalid
SecurityAction, Flags effects and custom attributes. Converted
existing tests to NUnit 2.2 format.
* SecurityPermissionTest.cs: New. Unit tests for SecurityPermission.
svn path=/trunk/mcs/; revision=32521
that are marked as Optional.
* dump.c: Fixed dump_table_constant so that the parent field's
description is correctly displayed.
* tabledefs.h: Corretced PARAM_ATTRIBUTE_OPTIONAL to the right
value 0x0010.
svn path=/trunk/mono/; revision=32519
that are not yet implemented. check value of Integrated Security
keyword, check value of bool keywords, improve error reporting
for int keywords, added support for the following keyword
synonyms : APP, TIMEOUT, NETWORK, PERSISTSECURITYINFO, WSID,
LANGUAGE, USER. Throw NotImplementedException when encrypt keyword
is set to true, enlist keyword is set to false or attachdbfilename
keyword (or one of its synonyms) is set. Added FIXME for PERSIST
SECURITY INFO keyword, throwing a NotImplementedException here
would break lots of apps
svn path=/trunk/mcs/; revision=32516
* Override_dll.vb:
* Override_exe.vb:
New test cases to test Overriding functions across assemblies
* Delegate_dll.vb:
* Delegate_exe.vb:
New test cases to check delegates invoking functions across assemblies
* Makefile: Added new dll names to the dependency list
svn path=/trunk/mcs/; revision=32515
* CodeAccessPermission.cs : csc build fix. Currently mcs has bugs on
CS0136 error detection (variable identifiers in switch cases share
the scope).
svn path=/trunk/mcs/; revision=32513
* DateTime.cs : When hour format is "hh", MS.NET (maybe incorrectly)
allows 12, that should not be accepted (13 is rejected) and
interpreted as 0. This fixes bug 63376.
svn path=/branches/mono-1-0/mcs/; revision=32509
* DateTime.cs : When hour format is "hh", MS.NET (maybe incorrectly)
allows 12, that should not be accepted (13 is rejected) and
interpreted as 0. This fixes bug 63376.
svn path=/trunk/mcs/; revision=32507
* mini.h: new arch functions for TLS intrinsics.
All platforms updated with a stub.
* mini.c: use the new intrinsics
* mini-x86.c, cpu-pentium.md, inssel-x86.brg, mini-ops.h:
arch specific intrinsic for tls variables
svn path=/trunk/mono/; revision=32493
* corlib_test.dll.sources: Added GacIdentityPermissionTest.cs and
GacIdentityPermissionAttributeTest.cs to unit tests. Added
IsolatedStorageFilePermissionTest.cs.
svn path=/trunk/mcs/; revision=32491
* IsolatedStorageContainment.cs: Added new enums values for NET_2_0.
* IsolatedStorageFilePermissionAttribute.cs: Removed unrequired using
clause.
* IsolatedStorageFilePermission.cs: Updated to use the common template.
Completed TODOs and now pass all unit tests.
* IsolatedStoragePermission.cs: Updated to use the common template.
Completed TODOs and now pass all unit tests.
svn path=/trunk/mcs/; revision=32490
* StreamWriter.cs: Flush the buffer if AutoFlush is set to true.
Fixes bug 63063, patch by Laurent Debacker ([email protected]).
svn path=/branches/mono-1-0/mcs/; revision=32487
* StreamWriter.cs: Flush the buffer if AutoFlush is set to true.
Fixes bug 63063, patch by Laurent Debacker ([email protected]).
svn path=/trunk/mcs/; revision=32486
* sockets.c:
* io.c: Check that new fds fit in the table, return error if not
* daemon.c (_wapi_daemon_main):
* handles.c (shared_init): Have all processes agree on a size for
the fd table.
svn path=/trunk/mono/; revision=32484
* Makefile.am (libmetadata_la_LIBADD): Avoid linking libmonoos into
multiple libraries since this don't work on windows.
svn path=/trunk/mono/; revision=32482
* GacIdentityPermission.cs: Update to use the common template. Now
pass all unit tests.
* GacIdentityPermissionAttribute.cs: Added FIXME comment.
svn path=/trunk/mcs/; revision=32480
* DataView.cs - Completed most of the event handling.
* DataTable.cs - Changed Access modifiers of class/methods since it was used by DataView
svn path=/trunk/mcs/; revision=32475
* class-internals.h
(MonoMethodNormal): Moved `MonoGenericParam *gen_params' here from
MonoMethodHeader.
* metadata.h (MonoMethodHeader): Moved the `gen_params' field to
MonoMethodNormal since we also need it for abstract and interface
methods.
* reflection.c
(build_compressed_metadata): Sort the GenericParam table.
(mono_image_create_token): Added `gboolean create_methodspec'
argument; this is false when generating a MethodImpl token.
(reflection_methodbuilder_to_mono_method): Abstract and interface
methods may also have generic parameters.
svn path=/trunk/mono/; revision=32473
* StrongNameIdentityPermission.cs: Update to use the common template.
Completed TODOs and now pass all unit tests.
* StrongNamePermissionAttribute.cs: Fixed public key convertion (as it
wasn't base64 encoded).
* StrongNamePublicKeyBlob.cs: Made static FromString() more robust.
svn path=/trunk/mcs/; revision=32459
* StrongNameIdentityPermissionTest.cs: New. Unit tests for
StrongNameIdentityPermission.
* StrongNameIdentityPermissionAttributeTest.cs: Added unit test to
check the behavior of using an invalid SecurityAction. Added tests
for CreatePermission. Converted existing tests to NUnit 2.2 format.
svn path=/trunk/mcs/; revision=32457
* mono/os/gc_wrapper.h: Only use thread local alloc if using the included libgc, since the stock one has broken headers.
svn path=/trunk/mono/; revision=32451
* daemon.c (process_new):
* handles.c (_wapi_handle_new_internal): Cope when the space
reserved for file descriptors is larger than the shared segment
size. Fixes the crash reported when running mono under gdb on
macosx.
svn path=/trunk/mono/; revision=32436
* ZoneIdentityPermissionAttributeTest.cs: Added unit tests to check
the behavior of using invliad enums for properties (no checks).
* ZoneIdentityPermissionTest.cs: Added new unit tests for XML decoding.
svn path=/trunk/mcs/; revision=32431
* DataProtectionPermission.cs: New permission for NET_2_0. Use common
permission template.
* DataProtectionPermissionAttribute.cs: New security attribute for
NET_2_0.
* DataProtectionPermissionFlags.cs: New flags for NET_2_0.
* HostProtectionAttribute.cs: New security attribute for NET_2_0.
* HostProtectionPermission.cs: New internal permission for NET_2_0.
Use common permission template.
* KeyContainerPermission.cs: New permission for NET_2_0. Use common
permission template.
* KeyContainerPermissionAccessEntry.cs: New class for NET_2_0.
* KeyContainerPermissionAccessEntryCollection.cs: New for NET_2_0.
* KeyContainerPermissionAccessEntryEnumerator.cs: New for NET_2_0.
* KeyContainerPermissionAttribute.cs: New security attrib for NET_2_0.
* KeyContainerPermissionFlags.cs: New flags for NET_2_0.
svn path=/trunk/mcs/; revision=32427
* EnvironmentPermission.cs: Updated to use the common template.
* FileDialogPermission.cs: Updated to use the common template.
* PublisherIdentityPermission.cs: Updated to use the common template.
* ReflectionPermission.cs: Updated to use the common template.
svn path=/trunk/mcs/; revision=32426
* IBuiltInPermission.cs: Added a new internal enum to store the index
of all corlib's permissions (as the index can changes in newer
versions of the framework, e.g. 2.0).
* SecurityAttribute.cs: Removed the validation when setting the Action
property to match MS implementation.
* UIPermission.cs: Update to use the common template. Completed TODOs
and now pass all unit tests.
svn path=/trunk/mcs/; revision=32425
* CodeAccessPermission.cs: Added common methods to help building all
Permissions classes in corlib. Most are declared static as they can
also help non CodeAccessPermission-derived permissions.
svn path=/trunk/mcs/; revision=32424
* IBuiltInPermissionTest.cs: New. Unit tests to check the result of
the "somewhat undocumented" IBuiltInPermission.GetTokenIndex on all
permissions inside corlib.
* UIPermissionTest.cs: New. Unit tests for UIPermission.
* UIPermissionAttributeTest.cs: Added unit tests to check the behavior
of using invliad enums for properties (no checks).
svn path=/trunk/mcs/; revision=32422
* class.cs:
* typemanager.cs:
-Bug fixed to resolve the ReadOnly properties from base class
-Fixed bug in resolving properties from different assembly
svn path=/trunk/mcs/; revision=32421
* appdomain.c: Bumped MONO_CORLIB_VERSION to 24.
* icall.c
(ves_icall_System_MonoType_getFullName): Added `gboolean full_name'
argument.
* class.c (mono_type_get_full_name): New public function.
(mono_type_get_name): Don't include the type arguments.
svn path=/trunk/mono/; revision=32409
* MonoType.cs (MonoType.getFullName): Added `bool full_name'
argument specifying whether or not to include the type arguments.
(MonoType.FullName): Don't include the type arguments.
(MonoType.ToString): Include them here.
* Environment.cs: Bumped mono_corlib_version to 24.
svn path=/trunk/mcs/; revision=32408
* NameObjectCollectionBase.cs: Fix line endings. It's mostly in
DOS endings, so I left it at that.
(GetEnumerator): Made virtual.
* ConfigurationElement.cs (InitializeDefault): Made virtual.
* AppSettingsSection.cs:
* Configuration.cs:
* ConfigurationLocation.cs:
* ConfigurationLocationCollection.cs:
* ConfigurationSection.cs:
* ConfigurationSectionCollection.cs:
* ConfigurationSectionGroup.cs:
* ConfigurationSectionGroupCollection.cs:
* ConnectionStringsSection.cs: Added stubs and bits of implementation.
Other than ConfigurationElementCollection and
ConnectionStringsSectionCollection, we now have the basic skeleton for
implementing the configuration system in the System.Configuration
namespace.
svn path=/trunk/mcs/; revision=32398
* cs-tokenizer.cs (Tokenizer.TypeOfParsing): New public property.
(Token.GENERIC_DIMENSION): New token; this is returned if we
encounter an unbound generic type in a typeof() expression.
* cs-parser.jay (opt_type_argument_list): Added GENERIC_DIMENSION;
this token is only generated while parsing a typeof() expression.
(typeof_expression): Removed the old unbound_type hack.
* generic.cs (TypeArguments.IsUnbound): New public property.
* decl.cs (MemberName): Added support for unbound types.
svn path=/trunk/mcs/; revision=32392
* 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
(up-to-date fixes that are applied to HEAD.)
* NewMonoXSD.cs : /language should support custom assembly qualified
name specification. This fixes bug #63081.
Also fixed usage message. "VB" is considered as valid.
2004-08-07 Atsushi Enomoto <[email protected]>
* NewMonoXSD.cs : /generator (/g) option didn't work, since it usually
ends with .dll (or .exe) and regarded as mere assembly filename.
2004-07-12 Lluis Sanchez Gual <[email protected]>
* NewMonoXSD.cs: Accept files with absolute paths.
svn path=/branches/mono-1-0/mcs/; revision=32363
* 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=/branches/mono-1-0/mcs/; revision=32307
* 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=/branches/mono-1-0/mcs/; revision=32305
* 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
* 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=/branches/mono-1-0/mcs/; revision=32296
* 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
* SqlDataReader.cs - In Close method, the remaining resultsets are drained
out, to read output parameters & to avoid stream overlap
svn path=/branches/mono-1-0/mcs/; revision=32257
* 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
* DataSet.cs : DataSet's ExtendedProperties were not XmlConverted.
2004-08-05 Atsushi Enomoto <[email protected]>
* XmlConstants.cs : Added constants for "msprop" support.
* DataSet.cs : ExtendedProperties should be written in the schema.
This fixes bug #61233.
svn path=/branches/mono-1-0/mcs/; revision=31968
* 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
* cfold.cs: Synchronize the folding with the code in expression.cs
Binary.DoNumericPromotions for uint operands.
svn path=/branches/mono-1-0/mcs/; revision=31885
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=/branches/mono-1-0/mcs/; revision=31863
* 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
* OdbcDataReader.cs - Fixed bug 61832 - Column names were not filled, due to which name based lookup of columns failed.
svn path=/branches/mono-1-0/mcs/; revision=31854
* 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=/branches/mono-1-0/mcs/; revision=31824
* 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=/branches/mono-1-0/mcs/; revision=31810
* 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
* gc.c, object.h: mono_gc_handle_*() interface and
AddrOfPinnedObject fixes. GC handle support even without GC.
svn path=/branches/mono-1-0/mono/; revision=31801
(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=/branches/mono-1-0/mcs/; revision=31775
* 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 is not always the same as
that of other when current is not attribute. Ditto for currentNS
(when current is not namespace).
svn path=/branches/mono-1-0/mcs/; revision=31659
* 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=/branches/mono-1-0/mcs/; revision=31630
* 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=/branches/mono-1-0/mono/; revision=31561
* 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=/branches/mono-1-0/mono/; revision=31517
* 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
* debug-mono-symfile.c: fix one more endianess issue, from a patch
by Geoff Norton (<[email protected]>).
svn path=/branches/mono-1-0/mono/; revision=31515
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=/branches/mono-1-0/mcs/; revision=31495
* 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=/branches/mono-1-0/mono/; revision=31439
* 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=/branches/mono-1-0/mono/; revision=31387
* 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=/branches/mono-1-0/mcs/; revision=31383
* 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=/branches/mono-1-0/mcs/; revision=31325
* 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=/branches/mono-1-0/mcs/; revision=31300
* 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.
svn path=/branches/mono-1-0/mcs/; revision=31256
* 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
* 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=/branches/mono-1-0/mcs/; revision=31250
* 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=/branches/mono-1-0/mcs/; revision=31214
* 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
* CSharpCodeCompiler.cs (CompileAssemblyFromDomBatch): Include
counter in the extension so that batch compilations work.
(CompileAssemblyFromSourceBatch): Same.
2004-07-12 Fawad Halim <[email protected]>
* CSharpCodeGenerator.cs : Have GenerateField generate field sans the type for enums.
svn path=/branches/mono-1-0/mcs/; revision=31212
* 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=/branches/mono-1-0/mcs/; revision=31210
* 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
* 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=/branches/mono-1-0/mcs/; revision=31197
* 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
* KeyUsageExtension.cs: Added Encode to extension so it can be used
by makecert. Fix bug # 61240. Patch provided by Ianier Munoz.
svn path=/branches/mono-1-0/mcs/; revision=31195
* 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=/branches/mono-1-0/mcs/; revision=31182
* 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=/branches/mono-1-0/mcs/; revision=31179
* 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
xsd type is not part of the last schema specification, but the google api
uses it and ms.net accepts it.
svn path=/branches/mono-1-0/mcs/; revision=31168
* 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=/branches/mono-1-0/mono/; revision=31158
* 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=/branches/mono-1-0/mcs/; revision=31152
* 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=/branches/mono-1-0/mcs/; revision=31135
* 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=/branches/mono-1-0/mcs/; revision=31108
* 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
* inssel-ppc.brg: arguments on the stack are always
relative to the stack pointer (spotted by Neale Ferguson).
svn path=/branches/mono-1-0/mono/; revision=31042
* 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
* WebConnection.cs:
* WebConnectionStream.cs: when the status code is 1xx, 204 or 304,
"responses MUST NOT include a message-body". We tried to read the
stream even when getting those codes and considered the 0 length
read as a failure.
svn path=/branches/mono-1-0/mcs/; revision=31026
* 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
* 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.
svn path=/branches/mono-1-0/mono/; revision=31007
* 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=/branches/mono-1-0/mono/; revision=30996
* 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
* 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=/branches/mono-1-0/mcs/; revision=30958
* 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=/branches/mono-1-0/mono/; revision=30956
* 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=/branches/mono-1-0/mono/; revision=30933
* 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=/branches/mono-1-0/mcs/; revision=30901
* 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
* statement.cs (Lock.Resolve): Set ec.NeedReturnLabel() if we do
not always return, just like we're doing in Using.Resolve().
svn path=/branches/mono-1-0/mcs/; revision=30881
* 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=/branches/mono-1-0/mono/; revision=30877
* 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=/branches/mono-1-0/mcs/; revision=30830
* 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)
svn path=/branches/mono-1-0/mcs/; revision=30827
* 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
2004-07-07 Juraj Skripsky <[email protected]>
* SessionStateModule.cs: set path in session cookie to application
path.
svn path=/branches/mono-1-0/mcs/; revision=30821
* 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=/branches/mono-1-0/mcs/; revision=30789
* io.c (file_setfiletime): Check for underflow when converting to
time_t values. Set error codes when returning failure. Fixes bug
60970.
svn path=/branches/mono-1-0/mono/; revision=30788
* 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
parameters from the SoapMessage by position, not by name, since names
may be different. This fixes bug #60427.
svn path=/branches/mono-1-0/mcs/; revision=30784
* 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=/branches/mono-1-0/mono/; revision=30747
* 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=/branches/mono-1-0/mcs/; revision=30745
* 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=/branches/mono-1-0/mcs/; revision=30742
* 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
properties of providers. This fixes bug #60934.
* ServerIdentity.cs, RemotingServices.cs: When disposing an identity, detach
the identity from the object, so it can be safely marshalled again.
svn path=/branches/mono-1-0/mcs/; revision=30685
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
2004-07-02 Gonzalo Paniagua Javier <[email protected]>
* 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=/branches/mono-1-0/mcs/; revision=30639
* 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=/branches/mono-1-0/mcs/; revision=30604
* 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
/// Returns a string containing a specified number of characters from the left side of a string.
/// </summary>
/// <param name="Str">Required. String expression from which the leftmost characters are returned.</param>
/// <param name="Length">Required. Integer expression. Numeric expression indicating how many characters to return. If 0, a zero-length string ("") is returned. If greater than or equal to the number of characters in Str, the entire string is returned.</param>
publicstaticstringLeft(stringStr,
intLength)
/// <param name="Length">Required. Integer expression. Numeric expression indicating how many characters to return.
/// If 0, a zero-length string ("") is returned. If greater than or equal to the number of characters in Str,
/// the entire string is returned.</param>
publicstaticstringLeft(stringStr,intLength)
{
if(Length<0)
thrownewArgumentException("Argument 'Length' must be non-negative.","Length");
thrownewInvalidConstraintException("Cannot clear table "+fc.RelatedTable+" because ForeignKeyConstraint "+fc.ConstraintName+" enforces constraints and there are child rows in "+fc.Table);
}
}
}
}
// Foriegn key constraints are checked in _rows.Clear method
Loaded 100 of 374 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.