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

52 Коммитов

Автор SHA1 Сообщение Дата
jfrijters ca21edeb75 Fixed some minor class modifiers issues:
- stub generator now reproduces exact class modifier bits
- unused bits are now properly masked and returned
- non-abstract interfaces now properly return ACC_ABSTRACT
2012-07-09 06:07:39 +00:00
jfrijters eb146fb371 Fixed regression introduced in 7.0 that caused the manifest to be ignored when creating the Package objects. 2012-05-23 09:09:23 +00:00
jfrijters 27f408b3a4 Removed legacy remap feature that allowed final fields as properties to be defined (long time ago this was used for the System.in/out/err fields). 2011-11-24 12:31:38 +00:00
jfrijters 917376e242 Added support for classes that represent arrays of remapped .NET types and .NET primitives. 2011-11-24 08:35:47 +00:00
jfrijters 4062e32cd6 Set system property "sun.boot.class.path" to point to the /classes/ directory of IKVM.OpenJDK.Core.dll 2010-08-19 09:26:20 +00:00
jfrijters 612e0c73a3 Don't generate stub class if the assembly already contains a resource with the same name. 2010-08-19 09:04:25 +00:00
jfrijters 4e7910d43d Fixed regression that caused getResources() on generic class loader to throw NPE. 2010-08-11 08:02:32 +00:00
jfrijters e5f4247e1c Massive change to change resource handling. Java resources are now stored in jars that are stored as managed .NET resources. The jars are projected into VFS and the assembly class loaders know how to load resources from these jars. 2010-08-05 13:43:00 +00:00
jfrijters 969cd0f5ea Made MapException generic, instead of passing the type explicitly. 2010-05-31 05:58:37 +00:00
jfrijters ce4dfa49da Removed exception mapping methods from Throwable and consolidated into a single method (actually, two methods, but the dynamic one should not be necessary and should be removed later). 2010-05-30 06:53:49 +00:00
jfrijters b242c1026b Moved ExceptionHelper into proper namespace and some cleanup. 2010-05-27 16:07:56 +00:00
jfrijters 63fac84c10 - Added new public API to unmap exception (ikvm.runtime.Util.unmapException()).
- Moved (parts of) mapping and unmapping to C# side.
2010-05-27 14:08:58 +00:00
jfrijters 1dc4ffa32b More object -> java.lang.Class updates. 2010-05-27 10:54:34 +00:00
jfrijters 5cc1b2e805 The AssemblyClassLoader should not claim to be able to load .class resources for dynamically loaded classes. 2010-05-21 06:25:06 +00:00
jfrijters d029e87abc We don't need to use our own version of IsDefined to test for custom attributes, because there is no confusion about what runtime types to use anymore. 2010-05-20 06:00:48 +00:00
jfrijters c5641ac723 Added a couple of checks to avoid problems when user code tries to convert .NET types that aren't supported into a Class. 2010-05-10 04:47:34 +00:00
jfrijters 16ad3d2523 Replaced incorrect usages of Type.IsArray with ReflectUtil.IsVector(). 2010-02-26 13:31:39 +00:00
jfrijters ab73c7385e When an object is an instance of a HideFromJava type, hide that type and traverse up the type hierarchy to find the first non-HideFromJava non-abstract type. 2010-02-11 10:00:16 +00:00
jfrijters daf3ffcf28 Removed ReflectionOnly support from runtime. Now that ikvmstub no longer requires it, there's no good reason to allow Java code to see ReflectionOnly types. 2010-01-29 07:08:56 +00:00
jfrijters 1f255d4f65 Added public API to get ClassLoader from Assembly. 2009-11-03 07:06:36 +00:00
jfrijters a4ba87a35f Moved GetAssemblyClassLoader() (and related stuff) from ClassLoaderWrapper to AssemblyClassLoader and renamed it to FromAssembly(). 2009-09-07 04:46:01 +00:00
jfrijters 285bf4dfbb Added support for exposing open generic types as Java classes (special "handle" classes that can only be used for stack walking). 2009-08-27 14:40:42 +00:00
jfrijters 2f2e69613c - Set runtime version during build, instead of computing it a runtime.
- Set OpenJDK version in openjdk.build instead of VMSystemProperty source.
2009-07-03 06:57:06 +00:00
jfrijters 0e0dd9b037 - Consolidated system property initialization in VMSystemProperties.
- Fixed bug that caused startup properties set with ikvm.runtime.Startup.setProperties() to be forgotten when doing a System.setProperties(null).
2009-07-03 06:40:51 +00:00
jfrijters 7a856abc0a Moved VMSystemProperties from gnu.classpath to java.lang. 2009-07-03 05:55:58 +00:00
jfrijters 6dd2495ad8 Made dynamic assembly detection more reliable and moved the utility method to ReflectUtil. 2009-05-28 05:58:35 +00:00
jfrijters 2250bf14c1 Changed DynamicClassLoader API to make it easier to move from global AssemblyBuilder to per ClassLoader. 2009-05-26 10:17:57 +00:00
jfrijters 830f9aedf0 Reverted previous optimization that I'm not sure about anymore. The startup overhead of using a ConcurrentHashMap here may be too great. 2009-02-27 05:57:35 +00:00
jfrijters e228cf5ed0 Added caching to speed up Object.getClass(). 2009-02-24 06:11:54 +00:00
jfrijters 007b01b8a4 Renamed AssemblyClassLoader.Assembly to MainAssembly. 2009-02-10 07:27:25 +00:00
jfrijters 5eebd6f17b Added AssemblyClassLoader.GetAssembly(TypeWrapper) and changed most code that assumed that an AssemblyClassLoader represented a single assembly to use it. 2009-02-04 07:24:44 +00:00
jfrijters baf6228d28 Removed our version of System.Runtime.CompilerServices.ExtensionAttribute and instead add System.Core.jar to the compilation, this will allow us to reference the real ExtensionAttribute when it is available and yet the build will still work (albeit with a warning and without the ExtensionAttribute) when it is not available (i.e. when building on .NET 2.0). 2008-11-18 05:35:58 +00:00
jfrijters 684cdf651e Generified all collections. 2008-08-15 12:01:06 +00:00
jfrijters 379dd8bee3 - Added ghost array tagging to be able to report the instantiated class (instead of object[] which is allocated instead).
- Fixed ldc <class> where <class> is a ghost array.
- Fixed bug in instanceof <class> where <class> is a Serializable[].
2008-08-06 05:25:18 +00:00
jfrijters 5e4182edb5 - Implemented CallerID infrastructure.
- Marked various methods with HasCallerID annotation.
- Rewrote some methods to explicitly use CallerID.
2008-05-31 15:20:29 +00:00
jfrijters 9c2dfec3c5 Added workarounds for mcs compiler bug (related to the mutual dependency of the runtime and class library assemblies). 2008-05-20 07:36:50 +00:00
jfrijters 828a4de95d Replaced notion of DynamicOnly types with Fake types. Fake types are implemented as generic type instances and can have DynamicOnly methods. 2008-03-03 07:05:19 +00:00
jfrijters 71870de395 Made ExtensionAttribute public during first-pass compilation, otherwise ikvmc won't see it. 2008-02-15 15:20:14 +00:00
jfrijters b5c5f18679 - Added support for defining extension methods in the core class library assembly (without taking a System.Core.dll dependency).
- Added the first two extension methods.
2008-02-10 11:20:52 +00:00
jfrijters 6cd0a9e34b Restructured VM <-> Library interface to take advantage of InternalsVisibleTo to remove public methods and reflection usage. 2007-12-19 11:28:09 +00:00
jfrijters 160d93fc1f Made all "native" method classes internal. 2007-12-18 11:05:30 +00:00
jfrijters ab95ffee45 More .NET 1.1 -> 2.0 work. 2007-11-26 09:01:35 +00:00
jfrijters 3072c89696 - Removed .NET 1.1 specific code
- Removed conditional compilation of .NET 2.0 specific code
2007-11-26 08:38:38 +00:00
jfrijters d280cd460b Fixed AppDomainAssemblyClassLoader to ignore AssemblyBuilders. 2007-11-02 05:11:47 +00:00
jfrijters 42f0aba28d - Did more work to keep up the pretense that an AssemblyClassLoader has already loaded all classes in the assembly.
- Restructured AssemblyClassLoader.GetProtectionDomain() to avoid calling any code while holding the lock.
2007-10-26 07:11:17 +00:00
jfrijters 96094d6cee Made AssemblyClassLoader public and moved it to ikvm.runtime package. 2007-10-25 12:56:18 +00:00
jfrijters 895ad8516d Implemented two custom assembly class loaders. 2007-10-22 08:09:19 +00:00
jfrijters 2628d5ab4b Changed AssemblyClassLoader to be useable as a delegation parent for custom assembly class loaders. 2007-10-22 05:13:08 +00:00
jfrijters b4a7cb4d91 Refactored assembly class loading to be more like regular class loading and prepare for future custom assembly class loaders. 2007-10-18 13:54:11 +00:00
jfrijters 63deb9d487 Handle types that aren't exposed to Java. 2007-09-11 12:06:21 +00:00