Граф коммитов

2244 Коммитов

Автор SHA1 Сообщение Дата
jfrijters 7eb3a6e788 Allow blob decoding for unbaked attribute types. 2010-05-06 14:18:35 +00:00
jfrijters bb41551896 Constructed types (Generic types, arrays and pointers) should forward CheckBaked to element type. 2010-05-06 13:50:36 +00:00
jfrijters 222b6d7040 Removed CheckBaked() from __GetDeclaredXxx methods and moved it to .NET compatible APIs only. There is really no good reason not to allow unbaked builders to be interrogated. 2010-05-06 13:40:43 +00:00
jfrijters 48d3595082 Fixed Type.GetEnumUnderlyingType(). Only for EnumBuilder should it work on unbaked types. 2010-05-06 13:24:29 +00:00
jfrijters 542d3eca35 Ignore version info custom attributes that were specified using blob. This is same behavior as .NET. 2010-05-06 12:40:07 +00:00
jfrijters 5a8ac674bd Implemented ModuleBuilder.GetArrayMethod(). Based on patch from Kornel Pal. 2010-05-06 12:35:41 +00:00
jfrijters f72c9f6cf8 Fixed AssemblyName.GetAssemblyName() to throw the proper exceptions (and by consequence Universe.LoadFile() now also throws the proper exceptions, module a race condition). 2010-05-06 06:45:30 +00:00
jfrijters b790897da7 Avoid depending on IKVM.Reflection specific pseudo custom attribute support that will be removed in the future (TypeForwardedToAttribute and DefaultParameterValueAttribute). 2010-05-06 06:11:56 +00:00
jfrijters 8b9c9843c6 Delete .pdb file before initializing PDB writer to make sure we get a sensible exception, instead of the random COM error that the PDB writer produces. 2010-05-06 06:09:03 +00:00
jfrijters 6e3e5cdc5e Give a propery error message instead of dying with an exception if output file can't be created/overwritten. 2010-05-06 06:07:13 +00:00
jfrijters 463498ab09 Added AssemblyBuilder.__AddTypeForwarder() to allow type forwarders to be added explictly, because the pseudo custom attribute will be removed (because .NET doesn't support that pseudo custom attribute). 2010-05-06 06:03:34 +00:00
jfrijters 7ba2398596 Made forwarded type resolution lazy. 2010-05-06 05:59:17 +00:00
jfrijters c8922e0994 Fixed Assembly.GetTypes() bug that caused it to return types in manifest module twice for multi-module assemblies. Thanks to Kornel Pal for this fix.. 2010-05-06 05:48:40 +00:00
jfrijters 321d8e5cbb SetCustomAttribute(ConstructorInfo, byte[]) overload should forward to SetCustomAttribute(CustomAttributeBuilder) overload instead of directly calling ModuleBuilder.SetCustomAttribute(), otherwise we miss the pseudo custom attribute support. 2010-05-06 05:38:52 +00:00
jfrijters 816fd75719 Marked a few fields readonly. 2010-05-06 05:23:47 +00:00
jfrijters da5287c315 Added ikvmc option to disable automagic serialization. 2010-05-03 07:58:01 +00:00
jfrijters c1b4c62675 Implemented OperatingSystemMXBean. 2010-05-02 08:20:59 +00:00
jfrijters 0ec793d843 Implemented RuntimeMXBrean. Feature request #2994310. 2010-04-30 07:59:03 +00:00
jfrijters f296e383cb Prepare for forking. 2010-04-30 07:46:54 +00:00
jfrijters 68a8b9557a Remove use of reflection for getting the slot of a java.lang.reflect.Field. 2010-04-28 14:22:51 +00:00
jfrijters 50b99df3bf Removed mcs specific flag that is no longer required. 2010-04-28 09:39:53 +00:00
jfrijters f9b686b757 Don't NPE when -nostdlib is used without any -reference 2010-04-23 07:53:21 +00:00
jfrijters 14048a6620 Next snapshot version. 2010-04-23 06:29:53 +00:00
jfrijters 0431018659 Added .dll extension to referenced assemblies, to avoid relying on what is now a legacy feature of ikvmc. 2010-04-23 05:05:13 +00:00
jfrijters c773ca6986 - Rewrote assembly loading for ikvmc and ikvmstub (and unified it). It now no longer depends on the runtime to do assembly name to path resolution and behaves more csc like.
- Added -nostdlib and -lib options to ikvmc and ikvmstub.
- openjdk.build now uses our System.Core.dll (unless we're building on .NET 4.0).
2010-04-23 04:58:36 +00:00
jfrijters b366e8e9b3 Made signature resolution lazy. 2010-04-21 10:13:56 +00:00
jfrijters e904756592 Changed ikvm.runtime.Startup.setProperties() to take an IDictionary instead of Hashtable. This allows a Dictionary<string, string> to be passed in now and avoids future problems if/when we want to target Silverlight (which doesn't have System.Collections.Hashtable). 2010-04-21 06:51:18 +00:00
jfrijters 5a91126566 Removed lib/security/local_policy.jar from vfs.zip (because OpenJDK builds the restricted version, by default) and instead make a vfs alias for it that points to the unrestricted US_export_policy.jar. 2010-04-21 06:16:37 +00:00
jfrijters 5cf23ddfc5 Pass context assembly to Load() as the requestingAssembly, to make type name resolution in custom attributes pass the correct RequestingAssembly to the AssemblyResolve event. 2010-04-21 06:13:23 +00:00
jfrijters 2ce9ef352e Made MethodDefImpl's ParameterInfoImpl a little more light weight by getting the type and custom modifiers from the method's signature instead of caching it. 2010-04-20 13:39:53 +00:00
jfrijters 0d7db78121 Use Util.Copy() instead of Clone() to copy a Type arrays. 2010-04-20 13:18:31 +00:00
jfrijters e6d7e01941 Made custom modifier packing more efficient and shared between MethodSignature and MethodBuilder. 2010-04-20 13:06:09 +00:00
jfrijters 71b3df3913 required/optional modifier arguments were in incorrect order. 2010-04-20 12:52:05 +00:00
jfrijters ba8394267b Don't eagerly get or cache method name. 2010-04-20 09:48:27 +00:00
jfrijters 16ad8561dc Made method signature reading lazy. This makes building assemblies with circular dependencies easier (and probably increases perf). 2010-04-20 06:17:21 +00:00
jfrijters 71125010ba Added some more files to clean up. 2010-04-20 05:40:12 +00:00
jfrijters 3e9d36b9fb Added System.Core target to build a tiny custom version of System.Core.dll that contains only System.Runtime.CompilerServices.ExtensionAttribute and will allow us to build on .NET 2.0 without having to figure out where System.Core.dll lives (or without it even being present). 2010-04-20 05:33:11 +00:00
jfrijters dc0086237d Fixed default assembly resolver to throw/not throw the right exceptions. 2010-04-20 05:25:05 +00:00
jfrijters 50e6420147 Dynamic assemblies should also be visible in the universe. 2010-04-20 05:21:58 +00:00
jfrijters c1bee9537f Audited CriticalCtrlHandler and added .NET 4.0 security attributes. 2010-04-20 05:18:41 +00:00
jfrijters 1f7e86dc1a AssemblyBuilder.GetName() should return a name with a public key when were doing delay signing. 2010-04-20 05:16:59 +00:00
jfrijters 3f5845db15 Added support for delay signing (i.e. setting the public key without having the private key). 2010-04-19 13:55:18 +00:00
jfrijters c5ccc4f4fd A Version object that only has Major.Minor set will return -1 for Build and Revision. Handle that case by setting these parts to zero, instead of casting to 65535. 2010-04-19 13:52:59 +00:00
jfrijters 24d6872c77 Made __GetDataFromRVA more generic by taking an offset and a length (to be able to reuse the byte array) and this also removes the need for the field type to have a StructLayout. 2010-04-19 05:26:28 +00:00
jfrijters 9762f5302c Having PinvokeImpl set doesn't necessarily imply having an ImplMap record (for mixed mode assemblies). 2010-04-19 05:25:02 +00:00
jfrijters a1f07f74e6 Null check was in the wrong place. 2010-04-19 05:23:09 +00:00
jfrijters 68974001b1 Added support for custom modifiers in generic type instantions (in signatures). 2010-04-18 09:25:47 +00:00
jfrijters 1b42a3946a Workaround for broken compiler(s) that add terminating NUL to type names in custom attribute data. 2010-04-18 09:23:52 +00:00
jfrijters 9ef69e669c Fixed type name parsing bug (thanks to Jb Evain for reporting this). Generic type parameter type names can be without assembly name and then need to be resolved in context. 2010-04-18 09:21:54 +00:00
jfrijters 90efa2a447 Implemented ModuleRef ResolutionScope for TypeRef. 2010-04-18 09:05:26 +00:00