smallsql
b49e2890ef
deleting of an not existing Preferences Key should not throw an exception. see JUnit test
2009-11-28 18:51:49 +00:00
jfrijters
d6f78332b0
Moved FindMainMethod into runtime, to avoid the need for hacks (to avoid NoClassDefFoundErrors).
2009-11-25 10:18:29 +00:00
jfrijters
c7ae133d38
- Fixed IsPackageAccessibleFrom to consider class loaders, instead of InternalsVisibleToAttribute
...
- Added automatic access to internal accessibility members across assemblies in multi target compilation (previously this was only done for -sharedclassloader scenarios)
- Cleaned up existing field access stubs (now known as "type 1") and added type 2 access stubs to make public fields that have a non-public field type accessible.
2009-11-13 15:08:20 +00:00
jfrijters
3aef367009
Added copyright header and removed UTF-8 byte-order-marker.
2009-11-09 09:02:11 +00:00
jfrijters
73112679ae
- Moved enum helper methods into new EnumHelper class.
...
- Changed .NET EnumEnum field to call ByteCodeHelper method, instead of emitting code in place.
2009-11-09 08:52:17 +00:00
jfrijters
ab25242ac2
Implemented enum parsing.
2009-11-09 07:49:32 +00:00
jfrijters
bb7aa6ebb3
- Removed unused method.
...
- Marked some runtime only code with #if !STATIC_COMPILER.
2009-11-09 07:48:12 +00:00
jfrijters
1d979c5789
Use IKVM.Reflection.Emit's new-style declarative security APIs.
2009-11-09 06:39:17 +00:00
jfrijters
5e56f47c94
Removed unnecessary complexity in enum handling.
2009-11-09 05:33:09 +00:00
jfrijters
fe352a35e2
Baked type clean up makes no sense for IKVM.Reflection.Emit.
2009-11-09 05:32:29 +00:00
jfrijters
09631e3f11
Use StaticCompiler.GetRuntimeType() to get type from the runtime assembly.
2009-11-06 07:48:06 +00:00
jfrijters
6dccbf20d5
Removed unused methods.
2009-11-06 07:46:39 +00:00
jfrijters
95cdfd8edd
Renamed ILGenerator.__GetILOffset() to ILGenerator.ILOffset to match with .NET 4.0.
2009-11-06 05:13:37 +00:00
jfrijters
8726f76d94
Removed .NET 4.0 workaround.
2009-11-05 07:41:05 +00:00
jfrijters
50fda7c073
Removed micro optimization that requires full trust on .NET 4.0.
2009-11-05 07:37:46 +00:00
jfrijters
0674e3d1fa
When there is no Java code on the stack JNIEnv->FindClass() should use the system class loader instead of the boot class loader.
2009-11-04 13:29:53 +00:00
jfrijters
19aee11985
Fixed interface method resolution (via JNI) and various other minor method resolution compatibility tweaks.
2009-11-04 13:25:56 +00:00
jfrijters
f293dcb61d
Changed CompiledTypeWrapper.Interfaces to avoid using the class loader to resolve the interface names. Moved common code to get interface type wrappers into GetImplementedInterfacesAsTypeWrappers() helper method.
2009-11-04 06:06:22 +00:00
jfrijters
e443e2acb4
Wrapped a couple of forgotten TypeWrapper.Finish() calls to convert exceptions to their Java form.
2009-11-04 05:17:51 +00:00
jfrijters
5b509c42a2
DynamicGetTypeAsExceptionType should be available during FIRST_PASS because it is used by ikvmc (if there is a configuration issue during boot class library build).
2009-11-04 05:16:32 +00:00
jfrijters
f6acb0a796
Added (optional) per-module initialization to custom assembly class loaders.
2009-11-03 07:15:37 +00:00
jfrijters
1f255d4f65
Added public API to get ClassLoader from Assembly.
2009-11-03 07:06:36 +00:00
jfrijters
b78d5d8b09
Fix for #2887316 .
2009-10-28 11:11:59 +00:00
jfrijters
28456850ca
Optimized field reflection. We now delay creating the dynamic methods to access the field until after the field has been accessed a couple of times, this saves a lot of memory for fields that are only usused a couple of times.
2009-10-28 05:54:05 +00:00
jfrijters
d6f58ab3df
Removed unnecessary class.
2009-10-26 05:22:02 +00:00
jfrijters
7dc5c17027
Removed two unnecessary fields from FieldAccessorImplBase.
2009-10-26 05:20:46 +00:00
jfrijters
67a4a2d1b1
Fixed automagic serialization interop to work correctly in the face of a __WorkaroundBaseClass__ base type.
2009-10-23 06:29:54 +00:00
jfrijters
33f074087f
Simplified the obj1.getClass() == obj2.getClass() intrinsic to avoid RuntimeTypeHandle. It turns out that on .NET 4.0 RuntimeTypeHandle.Value requires full trust and using RuntimeTypeHandle.Equals is actually slower than simply comparing the types (on .NET 4.0 beta 2, on .NET 2.0 this new approach is actually a bit slower, but the fact that the code is simpler and smaller is also worth something).
2009-10-23 05:58:41 +00:00
jfrijters
98ec2e69e2
Make Compiler class sealed and made most fields readonly.
2009-10-23 05:48:19 +00:00
jfrijters
5166b04d4a
More ikvmc assembly/type refactoring.
2009-10-21 04:54:39 +00:00
jfrijters
f1ff4f82f1
Fix for bug #2881954 .
2009-10-21 04:47:26 +00:00
jfrijters
5cdb8b43e4
Removed .NET 4.0 beta 1 workarounds and did some minor updates for .NET 4.0 beta 2.
2009-10-21 04:43:27 +00:00
jfrijters
e38521ae81
Fixed exception message.
2009-10-20 05:17:27 +00:00
jfrijters
1b0bfa6703
Use Type.IsVisible that is available since .NET 2.0, instead our own version.
2009-10-19 05:29:50 +00:00
jfrijters
9089864b8c
More type funneling.
2009-10-16 07:06:50 +00:00
jfrijters
d53f46aa7c
Forgot to add new file...
2009-10-15 06:17:23 +00:00
natl
3c1930d4eb
- code cleanup as per Jereon's suggestion
...
- add support for java.awt.Image
- fix problem with HDROP
2009-10-14 15:31:47 +00:00
jfrijters
dac3109b6b
Replaced most type literals with static field access (in Types class) or warpped JVM.Import() around them.
2009-10-14 14:58:41 +00:00
natl
efb671c7f1
add primitive support for clipboard and drag and drop
2009-10-14 13:44:27 +00:00
jfrijters
7ffb79655d
Don't use Type.Assembly property directly (because it isn't implemented on IKVM.Reflection.Emit types).
2009-10-14 09:50:33 +00:00
jfrijters
d82183aba5
Fix for bug #2876211 .
2009-10-12 04:22:46 +00:00
jfrijters
23c23fb857
Fixed regression introduced when we started allowing generic type definitions to be visible.
2009-10-08 04:59:52 +00:00
jfrijters
4a58e5042a
Fixed NRE when trying to access a non-existing directory in vfs.
2009-10-02 05:36:07 +00:00
jfrijters
f1b8d9042a
Expose more custom attributes from mscorlib.
2009-10-02 03:56:10 +00:00
jfrijters
bc86e620cc
Rewrote custom assembly class loader initialization to avoid running user code (static initializer) while holding a lock and to better handle invocation of getClassLoader() during the class loader constructor (or static initializer).
2009-09-09 05:17:04 +00:00
jfrijters
57a6125414
Removed asserts that no longer hold.
2009-09-07 04:53:03 +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
69d6408db6
Moved AssemblyClassLoader and BootstrapClassLoader into AssemblyClassLoader.cs.
2009-09-07 04:19:04 +00:00
jfrijters
8068af56fa
Moved DotNetTypeWrapper class into its own source file.
2009-08-31 06:16:04 +00:00
jfrijters
4fe0cf25d1
Moved BakedTypeCleanupHack to DynamicTypeWrapper.
2009-08-31 06:05:15 +00:00