Commit Graph
63 Commits
Author SHA1 Message Date
Marek Safar 8d56b51656 Fixes build 2014-02-06 18:08:38 +01:00
Marek Safar 21aae7666a [corlib] Fix some AssemblyName tests 2014-02-06 18:08:37 +01:00
Alexander Köplinger 4f37c78e6a Implemented AssemblyName.ReferenceMatchesDefinition () 2013-09-05 03:58:40 -07:00
Martin Baulig 9ec4d6984f Implement new .NET 4.5 Reflection APIs. 2013-03-12 18:07:53 -04:00
Rodrigo Kumpera 07a220c61c Mobile should not have the COM types set. 2013-03-01 18:58:35 -05:00
Marek Safar 13d9a0f334 Fix compiler warnings 2013-02-28 09:19:47 +01:00
Sebastien Pouliot 7576b68413 Use an internal call (to an existing function) so it allow dropping SHA1 (and dependencies) when linking applications. Saves 2kb on (unstripped) mscorlib and 4kb on the final binary (release). 2013-02-22 13:36:01 -05:00
Sebastien Pouliot 2162983f67 Do a lighter check for public keys in the mobile profile. It's faster and also quite smaller, once linked. That saves 67kb on (unstripped) mscorlib and 110kb on the final binary (release). 2013-02-22 13:03:50 -05:00
Marek Safar 6c06b7d204 Optmize some empty array allocations 2013-02-21 14:38:30 +01:00
Marek Safar 425d8ff709 Fix public token property for mobile 2013-02-07 16:34:22 +01:00
Rodrigo Kumpera 09585375ea Avoid bringing the whole Crypto stack in AssemblyName under FullAOT. 2012-11-06 18:18:15 -05:00
Rodrigo Kumpera 83dccf8fe7 Add all missing sequential layout directives to corlib and system. 2011-12-13 11:57:23 -02:00
Zoltan Varga 8560b5d39f Add support for assembly names with embedded and starting spaces. 2010-10-15 18:22:17 +02:00
Jb Evain 8aed2fcb2d NET_1_1 removal
svn path=/trunk/mcs/; revision=146812
2009-11-24 13:21:38 +00:00
Miguel de Icaza 3400094d1a System.Reflection's turn to be de-ifdefified
svn path=/trunk/mcs/; revision=145240
2009-11-03 01:20:56 +00:00
Marek Safar cc9c53a109 Warnings cleanup
svn path=/trunk/mcs/; revision=111713
2008-08-27 15:40:13 +00:00
Zoltan Varga 5871c65651 2008-02-20 Zoltan Varga <[email protected]>
* AssemblyName.cs (ReferenceMatchesDefinition): Add error checking and some 
	simple cases required by ikvm.

svn path=/trunk/mcs/; revision=96237
2008-02-20 11:33:47 +00:00
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