jfrijters
c75b9ffb8c
Renamed StaticCompiler.GetType() that is used exclusively by map.xml processing to make it more obvious and added error message (and abort the compile). The remaining StaticCompiler.GetType() now behaves more like Type.GetType() in that it returns null if the type isn't found.
2010-09-20 15:08:45 +00:00
jfrijters
3a5fc585a9
Added extra indirection thru MethodWrapper for intrinsic method call emitting to allow .NET delegate constructor optimization to use instrinsic infrastructure instead of requiring EmitNewobj to pass a MethodAnalyzer and opcode index.
2010-09-14 12:29:22 +00:00
jfrijters
3797879e66
Moved local variable analysis from verifier.cs to new file LocalVars.cs.
2010-09-14 07:38:42 +00:00
jfrijters
0e80c2034a
Added explanatory message to Link Error is it is caused by a missing reference.
2010-09-10 08:14:42 +00:00
jfrijters
bc4db05d7c
Don't seal @Internal classes.
2010-08-18 07:17:30 +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
c8f5ffec2d
Forgot to commit this change when the changes for the target specific warning handling went in.
2010-07-28 12:37:25 +00:00
jfrijters
6f443b4fc9
Added support for comment lines in ikvmc response files.
2010-07-16 09:08:20 +00:00
jfrijters
b19ac2ac06
Added -writeSuppressWarningsFile:<file> ikvmc option.
2010-07-16 08:56:13 +00:00
jfrijters
3fa99010ee
Made most static compiler warnings local to the target that is being compiled (in multi target mode), to allow warnings to be suppressed (or turned into an error) for a specific target.
2010-07-16 08:50:40 +00:00
jfrijters
20b0629491
Added the ability to nest response files and added error handling to response file reading.
2010-07-16 08:44:05 +00:00
jfrijters
cae5add927
Add feature to expand environment variables in system properties specified with -D ikvmc option.
2010-06-10 08:44:40 +00:00
jfrijters
23862ca0c5
Report FileFormatLimitationExceededException as a simple compiler error, not as a critical failure.
2010-06-09 04:55:52 +00:00
jfrijters
689a16e02d
Set type name as exception message.
2010-05-27 08:27:37 +00:00
jfrijters
873c7828da
When we're compiling with the -sharedclassloader option we can't do the "effectively final" optimization, because classes in another assembly can be part of the same package (and hence extend the packge private class).
2010-05-21 06:27:22 +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
71ea18a0dc
Removed JVM.GetType().
2010-05-20 04:59:13 +00:00
jfrijters
2c28fc98a8
Custom attribute types in map.xml should be resolved via the referenced assemblies, not globally.
2010-05-20 04:58:12 +00:00
jfrijters
b105375099
Fixed regression introduced when ikvm.runtime.Startup.setProperties() signature was changed. It should also be changed here. Also changed to using Dictionary<string, string> instead of Hashtable.
2010-05-20 04:26:35 +00:00
jfrijters
aaaedb90a9
If the locations don't match, canonicalize them and compare them again to make sure.
2010-05-18 06:55:15 +00:00
jfrijters
8b6e49771b
Made all AssemblyResolver warnings into formal ikvmc warnings.
2010-05-18 06:48:40 +00:00
jfrijters
afd0317df2
Fix. Imported the wrong types.
2010-05-16 07:47:08 +00:00
jfrijters
b5625e2153
Changed StaticCompiler.GetType() to be multi-target aware. Instead of looking thru all assemblies currently loaded, only the relevant referenced assemblies are searched.
...
Note that this is a (minor) breaking change. Types referenced in -remap:map.xml file are now only resolved against directly referenced assemblies.
2010-05-16 06:31:20 +00:00
jfrijters
6bab77a5df
- Removed use of Universe.LoadMscorlib().
...
- Removed unncessary return value from Init().
2010-05-12 15:23:17 +00:00
jfrijters
6a2f0245c2
Moved resolver back to compiler from StaticCompiler, because messing with StaticCompiler.LoadFile isn't a good idea.
2010-05-12 15:15:25 +00:00
jfrijters
54763e3a6f
- Consolidated and improved error handling in LoadFile.
...
- Added warning when LoadFile returns previously loaded assembly, instead of the one specified.
2010-05-12 08:43:13 +00:00
jfrijters
9b58ae25ca
Base assembly ref/def matching on Universe.CompareAssemblyIdentity().
2010-05-11 15:22:15 +00:00
jfrijters
dcb2a61ca8
Added check to avoid loading assemblies that require a newer version of mscorlib than the one were using (to avoid weird exceptions and potential other problems).
2010-05-11 09:34:58 +00:00
jfrijters
0557143861
Don't ignore return code of AssemblyResolver.Init()
2010-05-11 07:53:37 +00:00
jfrijters
e358b6835e
Hookup AssemblyResolver's assembly version warning in ikvmc.
2010-05-11 06:12:12 +00:00
jfrijters
495e209de8
Added strong named assembly version "policy" support. Reject lower versions, accept higher versions with optional warning and prefer exact matches.
2010-05-11 06:11:03 +00:00
jfrijters
ac852b5dcc
We shouldn't use StaticCompiler, but our own universe reference.
2010-05-11 04:15:29 +00:00
jfrijters
c4a4ae3c12
Resolver should also resolve assemblies that have already been loaded.
2010-05-10 08:22:03 +00:00
jfrijters
69d207170f
Recognize mscorlib by its name, not by having a System.Object type.
2010-05-10 07:18:05 +00:00
jfrijters
9340756ca4
Oops. Lame bug in previous commit caused error when not strong naming.
2010-05-07 12:16:15 +00:00
jfrijters
bcd5fe602a
Added ikvmc -delaysign option.
2010-05-07 12:05:52 +00:00
jfrijters
96d9ab24db
Added support for AssemblyVersionAttribute and AssemblyCultureAttribute to ikvmc.
...
Added warnings for AssemblyDelaySignAttribute, AssemblyKeyFileAttribute and AssemblyKeyNameAttribute.
Throw NotImplementedException for AssemblyAlgorithmIdAttribute and AssemblyFlagsAttribute (that exception isn't reachable because these two attributes are not exposed as annotations.)
2010-05-07 05:48:22 +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
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
da5287c315
Added ikvmc option to disable automagic serialization.
2010-05-03 07:58:01 +00:00
jfrijters
f9b686b757
Don't NPE when -nostdlib is used without any -reference
2010-04-23 07:53:21 +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
a2dd178187
Added parameter validation to ikvmc's -version option (fix bug #2987144 ).
2010-04-14 14:43:21 +00:00
jfrijters
811a28e6f4
Workaround for Mono bug http://bugzilla.novell.com/show_bug.cgi?id=583669
2010-02-26 13:28:41 +00:00
jfrijters
90761eac3b
Fix for bug #2946842 .
2010-02-19 08:07:37 +00:00
jfrijters
bbdd948ff0
Added hack to automatically load OpenJDK assemblies from the same location as OpenJDK.Core (when a non-default OpenJDK.Core assembly is specified).
2010-02-10 16:31:48 +00:00
jfrijters
457c3289e8
Simplified StrongNameKey handling and added command line argument validation to ikvmc -key: and -keyfile: options.
2010-02-03 15:12:58 +00:00
jfrijters
3ff562c468
Workaround for issue when probe location is on DEVPATH.
2010-02-03 15:09:18 +00:00
jfrijters
d1e163408f
Removed IKVM_REF_EMIT, as STATIC_COMPILER or STUB_GENERATOR now always implies IKVM.Reflection.
2010-01-28 09:18:33 +00:00
jfrijters
9dc2df605a
Moved non-throwing signature parsing from ClassFile.cs to ClassLoaderWrapper.cs (and merged it with the throwing variant). This avoids new stub generator having to include ClassFile.cs.
2010-01-28 06:37:48 +00:00