* 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=/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-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
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
* 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
/// 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
* CustomAttributeBuilder.cs: Applied patch from Marcus Urban ([email protected]). Add support for defining custom marshallers by calling SetCustomAttribute.
* VersionTest.cs: Added tests when cloning a version with no build and
Loaded 100 of 179 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.