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

2238 Коммитов

Автор SHA1 Сообщение Дата
jfrijters 5aa5c27cd0 Use a LinkedHashMap to preserve annotation order (but only in dynamic mode, because for compiled code we get the .NET attributes in unspecified order). By my reading of the API spec there is no guarantee about the ordering, but the Google Guice test suite depends on it anyway. 2010-06-04 13:38:45 +00:00
jfrijters 0e42ec9e72 Make synthesized .class resources available via getResources (note the plural) as well. 2010-06-03 14:28:50 +00:00
jfrijters 7a55f7c03c Moved type flow and optimization passes into separate methods. 2010-06-02 12:38:15 +00:00
jfrijters f9bb92b3f2 Fixed theoretical issue in RemoveAssertions optimization. 2010-06-02 12:29:16 +00:00
jfrijters 9752893b47 Split analysis steps into separate methods. 2010-06-02 10:31:58 +00:00
jfrijters 9004a9f65a Add forgotten HideFromJava to ExceptionInfoHelper constructor that collects stack trace. 2010-06-02 10:15:53 +00:00
jfrijters 4126779d1b Made the "unnecessary" exception handler removal a little less conservative. 2010-06-02 07:43:51 +00:00
jfrijters 393dc88577 Moved exception untangling code into MethodAnalyzer where it makes more sense. 2010-06-02 06:37:35 +00:00
jfrijters f3106c0868 Fixed loop counter integer overflow. Bug #3009543. 2010-06-01 04:09:48 +00:00
jfrijters 6d3632f144 Removed unused code. 2010-05-31 09:33:28 +00:00
jfrijters a6922fa16a New snapshot version. 2010-05-31 09:32:40 +00:00
jfrijters 969cd0f5ea Made MapException generic, instead of passing the type explicitly. 2010-05-31 05:58:37 +00:00
jfrijters 7a4ce163e6 Fixed regression in dynamic exception handling and made it simpler. 2010-05-31 05:08:57 +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 64563f9af9 Removed unused field. 2010-05-30 06:20:26 +00:00
jfrijters 53021cbad9 Made constructor security critical, instead of the type to avoid problem with .NET 4.0 verifier complaining about IKVM.Runtime.dll built for .NET 2.0 2010-05-29 13:59:27 +00:00
jfrijters 3b953eaf24 Disable stack trace collection for remapped exceptions that are discarded in their handler. 2010-05-29 13:53:32 +00:00
jfrijters 96794bab50 Tiny optimization. Don't examine the same frame twice. 2010-05-28 11:06:06 +00:00
jfrijters 4d867300b6 Implemented a more efficient (in terms of the MSIL size) MapException API. 2010-05-28 11:05:18 +00:00
jfrijters 0f1a9fbcaa Fix FIRST_PASS build break. 2010-05-28 10:22:04 +00:00
jfrijters f6a7da207d Minor clean up. 2010-05-28 05:48:35 +00:00
jfrijters 82730f124b - More filtering regression fixes.
- Synchronize on SyncRoot for Exception.Data collection access.
2010-05-28 05:36:03 +00:00
jfrijters 9085b75ad8 More clean up and added HideFromJava to two more Map methods. 2010-05-28 05:18:12 +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 b242c1026b Moved ExceptionHelper into proper namespace and some cleanup. 2010-05-27 16:07:56 +00:00
jfrijters 2cbe4b732b Moved the last part of ExceptionHelper from Java to C# side. 2010-05-27 15:24:29 +00:00
jfrijters 0d2012757f Moved the remainder of the exception mapping to the C# side. 2010-05-27 14:54:41 +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 d67bc55267 Moved more ExceptionHelper methods to C# side. 2010-05-27 13:23:04 +00:00
jfrijters fa0e1b04f0 Yet more ExceptionHelper moving. 2010-05-27 13:03:26 +00:00
jfrijters fe0f5df2a1 Moved a few more ExceptionHelper methods to C# side. 2010-05-27 12:36:40 +00:00
jfrijters 4da8e27cf7 Moved printStackTrace to C# side. 2010-05-27 12:08:01 +00:00
jfrijters d18d00788b Moved ExceptionHelper.getStackTrace() to "native" code of Thread. 2010-05-27 11:47:41 +00:00
jfrijters aae1ef7119 Added error message (instead of simply crashing) for the case when a native method is not found in managed code and there is no JNI assembly available (as is the case during the core library build). 2010-05-27 11:22:18 +00:00
jfrijters a4500fdb47 Moved readObject/writeObject to C# side. 2010-05-27 11:21:23 +00:00
jfrijters 1dc4ffa32b More object -> java.lang.Class updates. 2010-05-27 10:54:34 +00:00
jfrijters 40dcf95916 More type safety. TypeWrapper.ClassObject is now typed as java.lang.Class. 2010-05-27 09:25:15 +00:00
jfrijters 195f6ce2c6 First step of moving all exception handling code to C#. 2010-05-27 09:17:56 +00:00
jfrijters 36a5e0ce64 First stab at making the "native" method signatures more statically typed. 2010-05-27 09:17:13 +00:00
jfrijters a3b30e87e1 Add a dummy IKVM.OpenJDK.Core.dll to the build to make it possible to use core types in method signatures during first-pass build of IKVM.Runtime.dll. 2010-05-27 08:38:48 +00:00
jfrijters 12a597a359 When we're statically compiling, register the TypeBuilder -> TypeWrapper early on, to support cyclic dependency compilation. 2010-05-27 08:31:46 +00:00
jfrijters 689a16e02d Set type name as exception message. 2010-05-27 08:27:37 +00:00
jfrijters e921dbc01d ConstructorInfoImpl.ImportTo() should forward to MethodInfo.ImportTo() because we don't want to cache the non-canonical underlying MethodInfo in the module as this is both unneeded and breaks for ModuleBuilder which also uses the cache to reverse lookup tokens. 2010-05-27 08:23:46 +00:00
jfrijters 44e6663f50 Wrap all reflective field access to convert FieldAccessException into java.lang.IllegalAccessException. 2010-05-26 13:09:55 +00:00
jfrijters 6deb604258 Turn MethodAccessExceptions that happen during reflective method invocation (in partial trust scenarios) into java.lang.IllegalAccessExceptions. 2010-05-26 10:12:13 +00:00
jfrijters 97b0466c35 Workaround x64 JIT bug. 2010-05-26 10:07:07 +00:00
jfrijters 4184d2c165 Added explicit cast to generated reflection argument conversion code, to improve partial trust compatibility and to avoid an x64 JIT bug. 2010-05-26 09:50:48 +00:00
jfrijters fd4d23369a When a fast method/constructor invoker throws an exception at the call site (e.g. MethodAccessException in partial trust scenarios) we shouldn't wrap it in an InvocationTargetException. 2010-05-26 05:42:56 +00:00
jfrijters add8b2963b New snapshot version. 2010-05-25 04:31:23 +00:00
jfrijters f1bffde708 Handle the case where the exception block ends at the end of the method (scala compiler generates code like this). 2010-05-21 13:38:46 +00:00