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

103 Коммитов

Автор SHA1 Сообщение Дата
jfrijters 0e42ec9e72 Make synthesized .class resources available via getResources (note the plural) as well. 2010-06-03 14:28:50 +00:00
jfrijters 85b418c2e9 - Util.mapException() shouldn't be HideFromJava as that would be a breaking change, and were explicitly filtering it from the stack trace anyway.
- Minor ExceptionHelper clean up.
2010-05-28 04:23:58 +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 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 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 393bfcc810 Moved Posix file flushing to C# to be able to use delegate instead of reflection to invoke the Mono.Posix method. Also added DangerousAddRef/Release to prevent the handle from being closed while flushing. 2010-04-08 13:06:36 +00:00
jfrijters 5eebe0dc4f Cleaned up Windows/MacOSX detection and added compile time dependency on PlatformID.MacOSX (which was added in .NET 2.0 SP2).
Mono specific MacOSX detection code is unfortunately still necessary.
2010-04-08 12:37:39 +00:00
jfrijters 3098014dc4 Forgot to cache the classLoader. Thanks to Mainsoft for this fix. 2010-02-03 15:00:55 +00:00
smallsql 28b2619037 Move init of CTRL-BREAK from System to Startup. It should be init if a Java application run and not if a library is linked. 2010-01-31 14:08:26 +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 e5bea7a81b Removed support for "ikvm.stubgen.serialver" property that is no longer needed now that ikvmstub doesn't use the runtime to generate stubs. 2010-01-28 08:05:34 +00:00
jfrijters 1f255d4f65 Added public API to get ClassLoader from Assembly. 2009-11-03 07:06:36 +00:00
jfrijters ce1c1d3aee Don't add private interfaces to ikvmstub exported classes, because they only cause problems. 2009-10-19 05:31:06 +00:00
jfrijters 315bb89a4c Take advantage of the fact that a callerID generated inside core class library has a known class loader (i.e. null) to avoid calling Class.getClassLoader(). 2009-07-14 08:44:55 +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 049ea653fe Moved startup system properties temporary cache from VMSystemProperties to Startup to allow VMSystemProperties to be private instead of internal. 2009-07-03 06:22:10 +00:00
jfrijters 7a856abc0a Moved VMSystemProperties from gnu.classpath to java.lang. 2009-07-03 05:55:58 +00:00
jfrijters 3e43bbd26d Dynamic assemblies don't have a CodeBase. 2009-05-28 05:32:37 +00:00
jfrijters 83fea48abe Unmap exception after we printed the stack trace. 2009-03-16 05:24:56 +00:00
jfrijters 7bc8df7b63 - Updated mscorlib.jar (to get the new default constructor in MulticastDelegate).
- Added utility class ikvm.runtime.Delegates to make it easier to create Runnables and PrivilegeActions from .NET languages.
2009-03-07 08:40:04 +00:00
jfrijters 84ce7cc3e6 - Replaced all Double.longBitsToDouble() constants with compile time constants.
- Optimized sin/cos by moving temporary array allocation outside of fast path.
- Optimized __ieee754_rem_pio2 by doing temporary array allocation only when needed.
- Fix bug in copysign().
- Changed copysign/setLO/setHI/__HI/__LO to use doubleToRawLongBits instead of doubleToLongBits.
2009-02-16 05:19:12 +00:00
jfrijters d78b7ace3d - Imported JMath.java.
- Updated license/copyright information.
2009-02-13 08:53:40 +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 909d78b0f7 - Renamed ClassLoader.NIL_CLASSLOADER to ClassLoader.DUMMY.
- Removed unused ClassLoader.registerNatives().
- Removed unnecessary field initializers in ClassLoader.
- Moved necessary field initializers in ClassLoader to constructor.
- Changed Thread to make use of ClassLoader.DUMMY, instead of having an extra field to keep track of contextClassLoader status.
2008-06-04 05:12:46 +00:00
jfrijters 90168fabfc Removed dependency on constructor having run, to protect against finalizer attacks. 2008-06-02 04:15:44 +00:00
jfrijters 8c73f6947e Added optimization to omit callerid nested type inside core library. 2008-06-02 04:04:39 +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 90caa038dd Added support for turning Java fields into .NET properties with an annotation. 2008-04-14 05:13:41 +00:00
jfrijters 97a347333c Added Mac OS X platform detection. 2008-04-07 04:27:02 +00:00
jfrijters 1b4ea1f0b4 A new helper class to contain Mono specific methods. 2008-04-07 04:26:09 +00:00
jfrijters a019b9d628 Added the proper meta annotations. 2008-03-30 05:59:10 +00:00
jfrijters c591de8029 Ripped out annotation/constant pool support that is no longer needed. 2008-03-03 08:28:22 +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 dab108cc67 Added new utility class to enumerate maps. 2008-02-18 07:59:51 +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 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 26af678899 Use Enum.valueOf() instead of reflection to get enum value. Reflection would fail if enum wasn't public. 2007-09-10 06:13:10 +00:00
jfrijters c0533934bc Only seal packages that are sealed in the manifest. 2007-09-07 13:11:49 +00:00
jfrijters 2b50089bcc - Added WINDOWS constant to ikvm.internal.Util to check if we're running on Windows.
- Added a bunch of native methods to openjdk.cs (some real implementations, some stubs)
- Added OpenJDK derived PlainSocketImpl/SocketInputStream/SocketOutputStream implementations.
- Added OpenJDK derived file protocol handler (a single class that supports both Windows and non-Windows)
2007-07-12 08:40:32 +00:00
jfrijters 9de8f80b31 - Added workaround for .NET 1.1 reflection bug (methods that explicitly override a method are returned twice)
- Removed duplicate method workaround from stub generator.
2007-07-04 12:19:49 +00:00
jfrijters 5502c68773 Disambiguate CodeSource constructor invocation. 2007-06-19 10:21:17 +00:00
jfrijters 1aebb753ea More bootstrap issues. 2007-06-18 09:14:59 +00:00
jfrijters 9673d4db41 Simplified the available() fix. 2007-06-15 08:40:01 +00:00
jfrijters d2c9597e11 Removed NormalizerDataReader specific workaround and fixed InputStreamWrapper in a more generic way. 2007-06-15 06:47:03 +00:00
jfrijters 70a1c1e4f7 - Added system property to control whether serialVersionUID is included or not and syntesize serialVersionUID for Serializable classes that don't have the field.
- Removed unnecessary getOwerType() check.
2007-06-14 06:35:40 +00:00
jfrijters ffa2501472 Fixed exception mapping memory leak. 2007-05-31 07:04:47 +00:00
jfrijters 43b7e4a70f Integrated OpenJDK's java.lang.reflect.* classes (except for Array). 2007-05-29 16:27:08 +00:00
jfrijters cae14c9023 Restructured to allow openjdk.cs to reuse the annotation encoding. 2007-05-23 12:44:38 +00:00