Commit Graph
46 Commits
Author SHA1 Message Date
Gert Driesen a0065f3330 * AppDomainTest.cs: Added test for DefineDynamicAssembly overload
taking IEnumerable<CustomAttributeBuilder>.
* AssemblyBuilderTest.cs: Added tests for DefineUnmanagedResource and  
DefineVersionInfoResource overloads that check whether only a single
unmanaged resource can be defined. Improved test for SetCustomAttribute.
* AssemblyNameTest.cs: Added test for effect of AssemblyNameFlags on
FullName. Added test for PublicKey with value "null". Added ctor test
for Retargetable spec.
* AssemblyName.cs: Added support for Retargetable spec in FullName.

svn path=/trunk/mcs/; revision=93348
2008-01-20 15:51:42 +00:00
Gert Driesen 75fa72c63c * AssemblyBuilder.cs (UnprotectedGetName): Set the public key token
as well.
* AssemblyBuilderTest.cs: Improved existing AssemblyName related tests.
Enabled AssemblyName tests that previously failed.
* AssemblyNameCas.cs: Sync test methods with AssemblyNameTest.cs.
* AssemblyNameTest.cs: Removed AssertEqualsByteArrays method since
NUnit supports this out-of-the-box. Use more meaningful names for
some existing tests. Improved existing tests and added lots more.
Enabled tests that were previously failing.  Fixed and improved
tests for public key; the original "public key" was actually a         
key pair.
* AssemblyName.cs: Fixed default value for ProcessorArchitecture to
match MS. On 2.0 profile, return zero-length in FullName is no name
is set, and throw a SecurityException in FullName and GetPublicKeyToken
if a public key is set with no corresponding public key token. 
Fixed FullName to also include PublicKeyToken spec with "null" value
if public key is empty byte array. Fixed corlib part of bug #351057.   
In SetPublicKey, modify Flags accordingly. On the 2.0 profile, verify
the public key when the public key token is computed.

svn path=/trunk/mcs/; revision=92314
2008-01-05 19:35:02 +00:00
Atsushi Eno e5e54f36c0 2007-11-13 Atsushi Enomoto <[email protected]>
* AssemblyName.cs : remove extraneous MonoTODO.


svn path=/trunk/mcs/; revision=89527
2007-11-13 08:58:57 +00:00
Atsushi Eno 5fe6a5b42d 2007-07-04 Atsushi Enomoto <[email protected]>
* Type.cs : 2.0 TypeHandle and ContainsGenericParameters are virtual
	  (required fix for 2.0 reflection API fixes).

	* CustomAttributeNamedArgument.cs CustomAttributeTypedArgument.cs
	  CustomAttributeData.cs : implemented Equals() and GetHashCode().
	* Missing.cs : ISerializable.
	* AssemblyName.cs : ReferenceMatchesDefinition() stub.
	* Module.cs : missing method stubs with generic type/method args.
	* ExceptionHandlingClause.cs : ToString() stub.
	* MethodBase.cs TypeDelegator.cs ModuleResolveEventHandler.cs
	  TypeFilter.cs MemberFilter.cs
	  FieldInfo.cs ParameterInfo.cs MethodInfo.cs DynamicMethod.cs :
	  miscellaneous cosmetic API fixes.


svn path=/trunk/mcs/; revision=81311
2007-07-04 02:19:18 +00:00
Miguel de Icaza 8a1af5fd38 2006-11-16 Miguel de Icaza <[email protected]>
* DirectoryInfo.cs (GetFiles): Implement option with SearchOptions
	== AllDirectories

And a lot of MonoTODOs updated as well


svn path=/trunk/mcs/; revision=67998
2006-11-16 14:14:01 +00:00
Gert Driesen e2b1fa634d * AssemblyName.cs: Revert change where filename was not converted to
absolute path before passing it to Assembly.InternalGetAssemblyName
as the CodeBase is not set in that case.
* AssemblyNameTest.cs: Added test for CodeBase of AssemblyName
filled by AssemblyName.GetAssemblyName. Added tests for bug #79661.

svn path=/trunk/mcs/; revision=66822
2006-10-19 20:32:06 +00:00
Gert Driesen 7408ffa894 * corlib_test.dll.sources: Added BadImageFormatExceptionTest.cs.
* BadImageFormatException.cs: Changed message for default ctor to
match MS. Use internal message field of Exception to check whether
Message is null. Match MS default messages when no message is
set. Fixed ToString to match MS.
* BadImageFormatExceptionTest.cs: Added ctors tests.
* AssemblyName.cs: No need to convert filename to absolute path before
passing it to Assembly.InternalGetAssemblyName. This allows our
exception messages to be better match those of MS.

svn path=/trunk/mcs/; revision=66696
2006-10-15 14:11:37 +00:00
Carlos Alberto Cortez 9d40fe1434 2005-09-26 Carlos Alberto Cortez <[email protected]>
* AssemblyName.cs: Add ParseName internal call, to parse
	long format assembly names. 
	

svn path=/trunk/mcs/; revision=50758
2005-09-26 12:27:41 +00:00
Sebastien Pouliot 8e80fefe0e 2005-09-08 Sebastien Pouliot <[email protected]>
* AssemblyName.cs: Apply second half of Chris Micacchi's patch


svn path=/trunk/mcs/; revision=49755
2005-09-08 23:25:51 +00:00
Miguel de Icaza 9cfbb27cdc Patch from Chris Micacchi
svn path=/trunk/mcs/; revision=49736
2005-09-08 20:40:16 +00:00
Sebastien Pouliot 571bd38886 2005-06-15 Sebastien Pouliot <[email protected]>
* Assembly.cs, AssemblyName.cs, ConstructorInfo.cs, EventInfo.cs,
	FieldInfo.cs, MemberInfo.cs, MethodBase.cs, MethodInfo.cs, Module.cs,
	ParameterInfo.cs, PropertyInfo.cs: Added some missing interfaces and
	attributes that were added in 1.1 SP1 or 2.0 beta2.


svn path=/trunk/mcs/; revision=46031
2005-06-15 10:45:00 +00:00
Sebastien Pouliot 4c74e8776b 2005-06-14 Sebastien Pouliot <[email protected]>
* Assembly.cs: UnprotectedGetName is now virtual to allow for more
	initialization in AssemblyBuilder. The [Granted|Refused]PermissionSet
	now use the ResolvingPolicyLevel to support the policy 
	FullTrustAssemblies during resolution.
	* AssemblyName.cs: Return null instead of "new byte [0]" if no public
	key is available.


svn path=/trunk/mcs/; revision=45969
2005-06-14 14:17:53 +00:00
Zoltan Varga fae5147e4c 2005-06-09 Zoltan Varga <[email protected]>
* *.cs: Updates for net 2.0 beta 2.

svn path=/trunk/mcs/; revision=45685
2005-06-09 10:38:09 +00:00
Zoltan Varga 601f4125e5 2005-06-06 Zoltan Varga <[email protected]>
* *.cs: Add net 2.0 ComVisibleAttribute.

svn path=/trunk/mcs/; revision=45510
2005-06-06 18:03:29 +00:00
Carlos Alberto Cortez 653dd35583 2005-06-03 Carlos Alberto Cortez <[email protected]>
* AssemblyName.cs: Changes to support the creation of version
	instance from icalls. This change also helps to keep the
	AssemblyName tests running fine.
	

svn path=/trunk/mcs/; revision=45384
2005-06-03 19:46:09 +00:00
Sebastien Pouliot 9aa6a9a352 2005-04-04 Sebastien Pouliot <[email protected]>
* AssemblyName.cs: Added a demand for SerializationFormatter on
	GetObjectData method.


svn path=/trunk/mcs/; revision=42536
2005-04-04 19:23:39 +00:00
Sebastien Pouliot 9a0d9e9fbd 2005-04-04 Sebastien Pouliot <[email protected]>
* AssemblyName.cs: Implemented EscapedCodeBase using the copy of 
	System.Uri (System.dll) located in Mono.Security.Uri. Added missing
	null check in GetObjectData.
	* Module.cs: Added a FileIOPermission for PathDiscovery on 
	FullyQualifiedName property (but not on Name property like MS).
	Added missing null check in GetObjectData.


svn path=/trunk/mcs/; revision=42512
2005-04-04 12:23:01 +00:00
Raja R Harinath e809a07446 remove svn:executable
svn path=/trunk/mcs/; revision=41039
2005-02-22 13:59:31 +00:00
Zoltan Varga 83796b4a2f 2004-11-05 Zoltan Varga <[email protected]>
* AssemblyName.cs (FullName): Omit default values from full name.

svn path=/trunk/mcs/; revision=35741
2004-11-05 21:20:38 +00:00
Sebastien Pouliot 0fa12c2f85 2004-08-08 Sebastien Pouliot <[email protected]>
* 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
2004-08-08 14:50:05 +00:00
Gert Driesen 678c1fac55 * AssemblyName.cs: added TODO for serialization
* Pointer.cs: fixed Box method to return object instead of
Pointer

svn path=/trunk/mcs/; revision=29628
2004-06-15 18:18:59 +00:00
Duncan Mak 13d1764537 Add license and copyright to all source files in corlib
svn path=/trunk/mcs/; revision=29249
2004-06-11 02:09:36 +00:00
Lluis Sanchez d2c82b10e3 * AssemblyName.cs: Added missing fields to serialization methods.
* StrongNameKeyPair.cs: Made it compatible with MS serialization.

svn path=/trunk/mcs/; revision=29243
2004-06-10 21:38:02 +00:00
Jackson Harper 9ced84c8d8 * AssemblyName.cs (GetAssemblyName): Send a fullpath to the
runtime. This way the codebase is set properly. The codebase is
	using g_filename_to_uri which expects a full path.

svn path=/trunk/mcs/; revision=29079
2004-06-09 04:44:55 +00:00
Lluis Sanchez 4e06ac2b42 * ICustomAttributeProvider.cs, IReflect.cs, MemberInfo.cs, AssemblyName.cs:
Removed completed	TODOs.
	* MonoProperty.cs: In GetAccessors(), GetGetMethod() and GetSetMethod(),
	  do not return private methods if nonPublic == false.
	* ReflectionTypeLoadException.cs: Implemented serialization support.

svn path=/trunk/mcs/; revision=26051
2004-04-27 11:02:44 +00:00
Lluis Sanchez b370142742 * Assembly.cs: Removed TODO for CreateQualifiedName.
* AssemblyName.cs: Fixed serialization code.
	* AssemblyNameProxy.cs: Implemented.
	* Module.cs: Implemented GetMethod() methods, FindTypes() and GetObjectData.

svn path=/trunk/mcs/; revision=25694
2004-04-19 17:35:08 +00:00
Zoltan Varga 78dead5f6b 2003-11-16 Zoltan Varga <[email protected]>
* Assembly.cs (InternalGetAssemblyName): New icall.

	* AssemblyName.cs (GetAssemblyName): Implement this without loading
	the assembly in question. Fixes #51035.

svn path=/trunk/mcs/; revision=20067
2003-11-16 17:22:06 +00:00
Todd Berman 77b0fcb51f 2003-11-11 Todd Berman <[email protected]>
* AssemblyName.cs (FullName): Fixed to include a proper PublicKeyToken.

svn path=/trunk/mcs/; revision=19853
2003-11-12 02:44:12 +00:00
Zoltan Varga bd75209320 2003-10-17 Zoltan Varga <[email protected]>
* AssemblyName.cs: Fix Version property when some version fields are
	undefined.

svn path=/trunk/mcs/; revision=19129
2003-10-17 12:38:24 +00:00
Sebastien Pouliot 8482be0aef 2002-12-30 Sebastien Pouliot <[email protected]>
* AssemblyName.cs: Fixed null cultureinfo in FullName (as reported by
	Zoltan).

svn path=/trunk/mcs/; revision=9972
2002-12-30 14:45:18 +00:00
Sebastien Pouliot 926b1a1224 2002-12-23 Sebastien Pouliot <[email protected]>
* AssemblyName.cs: GetPublicKey now return an empty array (not null)
	when an assembly isn't signed with a StrongName (to match MS
	implementation) and null when no assembly is referenced. Also removed
	commented code (no bug reported so it was probably not used).

svn path=/trunk/mcs/; revision=9856
2002-12-24 03:47:27 +00:00
Gonzalo Paniagua Javier 5f3aa2d0b8 Oops, now I unveiled my secret debugging tricks ;-)
svn path=/trunk/mcs/; revision=9455
2002-12-08 22:17:02 +00:00
Gonzalo Paniagua Javier 62babaf12e 2002-12-08 Gonzalo Paniagua Javier <[email protected]>
* AssemblyName.cs: little fix in FullName.

svn path=/trunk/mcs/; revision=9454
2002-12-08 21:52:24 +00:00
Sebastien Pouliot cec172518b 2002-12-07 Sebastien Pouliot <[email protected]>
* AssemblyName.cs: Added missing methods/interfaces. Fixed some
	code to match the MS Framework.
	* StrongNameKeyPair.cs: Completed the "visible" implementation.
	There must be some internal methods to allow signing with the key.

svn path=/trunk/mcs/; revision=9453
2002-12-08 20:59:17 +00:00
Gonzalo Paniagua Javier f3a7ced97e 2002-08-20 Gonzalo Paniagua Javier <[email protected]>
* Assembly.cs: FullName now returns a proper string instead of
	something like 'file://...'.

	* AssemblyName.cs: added missing ToString method.

svn path=/trunk/mcs/; revision=6782
2002-08-20 03:07:28 +00:00
Paolo Molaro 059e3fa88a Sat May 4 15:00:39 CEST 2002 Paolo Molaro <[email protected]>
* Assembly.cs, AssemblyName.cs: updates and fixes.

svn path=/trunk/mcs/; revision=4268
2002-05-04 09:14:56 +00:00
Piers Haken cc63806f23 minor CLS conformance tweaks (visibility, virtual, abstract, sealed, etc...)
svn path=/trunk/mcs/; revision=3568
2002-04-03 06:28:53 +00:00
Piers Haken 610d7923ac added missing [Serializable] attribute
svn path=/trunk/mcs/; revision=3540
2002-04-01 20:22:40 +00:00
Piers Haken 84187bf9a6 fixed member accessibility to match MS (corcompare).
svn path=/trunk/mcs/; revision=3531
2002-04-01 06:07:43 +00:00
Duncan Mak 01beb5e5b9 Serialization bits for System.Collection.Hashtable, System.Reflection.AssemblyName and System.Security.SecurityException
svn path=/trunk/mcs/; revision=2259
2002-02-07 17:33:39 +00:00
Miguel de Icaza 32d4648a81 2002-01-23 Miguel de Icaza <[email protected]>
* AppDomain.cs (GetAssemblies): Use foreach construct instead of
	manually getting the enumerator.

	(AppDomain.AppDomain): Prime the loaded assemblies with the
	assemblies loaded by the runtime in our behalf.

	* AppDomainSetup.cs: Remove private keyword, that is the default.
	Add a new property DisallowPublisherPolicy.

2002-01-23  Miguel de Icaza  <[email protected]>

	* Assembly.cs (Assembly.CodeBase): Implement.
	(Assembly.FullName): simplistic and broken implementation.  Gets
	us where we were yesterday.

	Code style fix.

svn path=/trunk/mcs/; revision=2124
2002-01-23 17:59:32 +00:00
Dietmar Maurer 3805a7d69e added some AppDomain methods
svn path=/trunk/mcs/; revision=2122
2002-01-23 09:49:10 +00:00
Paolo Molaro 32fb0da568 Added copyright notices.
svn path=/trunk/mcs/; revision=1120
2001-10-08 12:02:19 +00:00
Paolo Molaro 9b95f6e327 Updates and fixes.
svn path=/trunk/mcs/; revision=1072
2001-10-04 13:34:37 +00:00
Paolo Molaro 5bdd0bb7c7 Updates and some implementation bits.
svn path=/trunk/mcs/; revision=1046
2001-10-01 14:53:39 +00:00
Paolo Molaro b7556d202f Some more stubs and fixes.
svn path=/trunk/mcs/; revision=1003
2001-09-27 13:51:14 +00:00