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

3528 Коммитов

Автор SHA1 Сообщение Дата
jfrijters 3ef5552551 Construct the System assembly name from the mscorlib name to support other runtimes. 2012-09-12 11:40:15 +00:00
jfrijters a9b1ae47d6 Removed more ConstructorBuilder usage to fix regression (constructor custom attributes specified map.xml were not applied). 2012-09-11 12:00:46 +00:00
jfrijters 8150ae4f19 Do the "no serialization" check before calling Serialization.AddAutomagicSerialization() to avoid triggering the class initializer (which will try to load SerializableAttribute, which is not available everywhere). 2012-09-11 10:25:11 +00:00
jfrijters 46816a2e7e Added TypeInfo (from .NET 4.5). 2012-09-05 08:58:51 +00:00
jfrijters 48c59aa20c Added another Object.getClass() intrinsification (specifically for java.util.Hashtable's check if the key is a String, where for some reason they use "k.getClass() == String.class" instead of "k instanceof String"). 2012-08-31 15:03:12 +00:00
jfrijters 0c4e17e7bc Made the intrinsification of Unsafe.objectFieldOffset(Class.getDeclaredField("xxx")) applicable to more cases (but it is now restricted to core class library). 2012-08-31 14:01:59 +00:00
jfrijters c9df2ba937 Merged OpenJDK 7u6. 2012-08-31 11:24:27 +00:00
jfrijters 168129b3d0 Merged in security manager check to Font.createFont(int, File) from OpenJDK. 2012-08-30 08:57:29 +00:00
jfrijters b8df431272 Implemented VM.isBooted() with respect to system property initialization to support 7u6 which depends on VM.isBooted() to figure out whether it is safe to query a system property in Hashtable (which is itself used during system property initialization, because java.util.Properties is a Hashtable subclass). 2012-08-30 08:56:24 +00:00
jfrijters 7e3aaea45f Disallow Unsafe.getUnsafe() from being called via reflection (for JDK compatibility). 2012-08-30 08:52:55 +00:00
jfrijters 05b0aa6977 Pass a bogus field type to the Field objects constructed for the intrinsified unsafe field accessors to make Field.toString() return something instead of crashing. 2012-08-30 08:52:13 +00:00
jfrijters af27fb805e Use .NET Hashtable instead of Java HashSet to avoid initialization order issues. 2012-08-30 08:51:10 +00:00
jfrijters 103765dea0 Added IconFactory.cs to project. 2012-08-30 06:39:12 +00:00
smallsql f51bff7cfe Fix Window.setIconImages. Now all images are used. Before only the first image was used. 2012-08-29 21:19:36 +00:00
smallsql ce6495803b Add a factory for an Icon object with multiple image sizes. 2012-08-29 21:17:27 +00:00
jfrijters dfb0ec0d23 Add app.config files for executables to allow them to run on .NET 4.5 on Windows 8 without triggering the .NET 3.5 auto download. 2012-08-29 12:12:37 +00:00
jfrijters d1b1a41aab Whitespace changes to match up with 7u6. 2012-08-29 11:59:48 +00:00
jfrijters 60079526c3 Add new to 7u6 (package private) String constructor. 2012-08-29 11:54:35 +00:00
jfrijters f70ca066b6 Optimized String.valueOf(char). 2012-08-29 07:25:42 +00:00
jfrijters 2f73fd3e14 Updated copyright year. 2012-08-29 07:18:06 +00:00
jfrijters 8258466426 Fixed regression caused by ConstructorBuilder removal. We can no longer test for MethodInfo or ConstructorInfo to distinguish the two. 2012-08-29 07:05:37 +00:00
smallsql 1bb5da8583 If the page count was not known before printing then an additional blank page was printed. 2012-08-24 09:11:44 +00:00
smallsql 4e0b735683 implements the method isAttributeValueSupported for the Win32PrintService 2012-08-23 12:37:29 +00:00
smallsql 4b39a908cb MediaSizes must always portrait. 2012-08-23 09:24:50 +00:00
jfrijters feadf74ac1 Fixed InternalsVisibleToAttribute handling to take the public key into account as well. 2012-08-16 11:32:26 +00:00
jfrijters ed39d39fe3 Apply custom attribute annotations on annotation types to the corresponding custom attribute that is generated (and allow AttributeUsageAttribute to override the default AttributeUsageAttribute generated from the @Target annotation). 2012-08-15 11:52:55 +00:00
jfrijters 0963971a71 Remove usage of AssemblyName.ReferenceMatchesDefinition() because it is broken on .NET and not implemented on Mono. 2012-08-15 09:19:24 +00:00
jfrijters 15d12a5439 Stop using ConstructorBuilder (always use MethodBuilder). 2012-08-15 08:45:39 +00:00
jfrijters 165abbec78 Removed unnecessary casting (now that we have a CodeEmitter.Emit() overload that takes a MethodBase). 2012-08-15 08:17:51 +00:00
jfrijters 3c9696ddf8 Added API extension to wrap MethodInfo in a ConstructorInfo. 2012-08-15 08:14:28 +00:00
jfrijters bba8e29dae Automatically add default constructor when necessary (using the same criteria as Ref.Emit). 2012-08-15 06:15:01 +00:00
jfrijters 79e5757ad4 Bug fix. When enumerating virtual methods, we should only skip match actual base methods, not any method with the same signature. 2012-08-09 21:20:57 +00:00
jfrijters d15c9e3590 Moved GhostMethodWrapper out of MethodWrapper and removed MethodWrapper.Create() as it was used in only one place. 2012-08-06 15:40:12 +00:00
jfrijters 9b1605afb8 Added ClassFile.Method.IsConstructor helper property. 2012-08-06 14:52:11 +00:00
smallsql 15e88c2588 Fix a ClassCastException in printerJob.defaultPage() if the default paper format is not a standard paper format. This can occur with label printer. 2012-08-06 14:47:53 +00:00
jfrijters 8b71ecabaf Merged SmartCallMethodWrapper and SmartConstructorMethodWrapper into TypicalMethodWrapper. 2012-08-06 14:33:54 +00:00
jfrijters 8202009fca Merged CodeEmitter.Emit(OpCode, MethodInfo) and CodeEmitter.Emit(OpCode, ConstructorInfo) into CodeEmitter.Emit(OpCode, MethodBase) and removed unnecessary downcasting. 2012-08-06 13:01:41 +00:00
jfrijters 0e1544a6e7 - Marked MemberWrapper class abstract.
- Marked all classes that don't (and shouldn't) have subclasses sealed.
2012-08-06 12:12:03 +00:00
jfrijters 3920ebc4e6 Remove SmartMethodWrapper.PreEmit() because it was only used in one place. 2012-08-06 11:10:47 +00:00
jfrijters 56dff1e5f4 Make GenericTypeParameterBuilder override CheckBaked(). 2012-07-31 18:28:15 +00:00
jfrijters f39890b545 Removed unused using. 2012-07-31 17:50:07 +00:00
jfrijters 91e71aca12 Add support for running with headless awt toolkit. Fix for #3552089. 2012-07-31 03:34:03 +00:00
jfrijters b0ef2c1491 Bug fixes:
- if a finally/fault handler contains reachable code before the handler's start index, the handler should branch to the handler start index.
- after emitting a finally/fault handler block, we should emit the block leave stubs (even though you can't leave the block, they also emit the backward branch stubs).
2012-07-23 07:50:00 +00:00
jfrijters b8492e30a6 Bug fix. If a Java class extends a remapped .NET type (cli.System.Object or cli.System.Exception), we should correctly report the base class. 2012-07-21 06:35:51 +00:00
jfrijters de559a8207 Bug fix. There was a logic error in FindBaseMethods7() that caused LinkAndGetMethod() to be called if TryGetClassFileVersion() succeeded and the class version was greater than 51. 2012-07-20 11:42:07 +00:00
jfrijters 29cb564480 Bug fix. It is not valid to call TypeWrapper.IsInterfaceOrInterfaceArray on an UnloadableTypeWrapper. 2012-07-20 08:47:34 +00:00
jfrijters 6147f462ae Bug fix. If a bytecode instruction refers to an invalid constant pool entry, MarkLinkRequiredConstantPoolItem should not throw an exception, but simply ignore the mark, the incorrect bytecode will be reported later during verification. 2012-07-20 08:46:34 +00:00
jfrijters de9e5f584c Bug fix. If we encounter a jsr or ret instruction, we should throw a VerifyError (instead of NotImplementedException). 2012-07-20 08:42:24 +00:00
jfrijters 8a754c4ef1 Bug fix. If we encounter an invokedynamic in a method that has a jsr (which is always invalid because of class version rules), we need to throw a VerifyError. 2012-07-20 08:38:24 +00:00
jfrijters 2c6ce2c364 - Fixed GenericTypeParameterBuilder.IsBaked (should also work for type parameters on methods).
- Implemented GenericTypeParameterBuilder.MetadataToken (after the type has been baked it should return the token).
- Implemented GenericTypeParameterBuilder.GetCurrentToken() to allow custom attributes to be queried.
2012-07-16 15:13:58 +00:00