jfrijters
baf6228d28
Removed our version of System.Runtime.CompilerServices.ExtensionAttribute and instead add System.Core.jar to the compilation, this will allow us to reference the real ExtensionAttribute when it is available and yet the build will still work (albeit with a warning and without the ExtensionAttribute) when it is not available (i.e. when building on .NET 2.0).
2008-11-18 05:35:58 +00:00
jfrijters
b34cc1414c
Removed files that are no longer needed no that GNU Classpath support has been dropped.
2008-08-06 12:51:07 +00:00
jfrijters
9baab31e8c
Converted tabs to spaces.
2008-06-11 09:04:56 +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
bb95669b58
Regenerated for .NET 2.0 version.
2008-04-24 05:57:19 +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
2e60f0611f
Set sun.nio.MaxDirectMemorySize to -1 to allow "unlimited" direct byte buffers.
2008-04-14 05:06:31 +00:00
jfrijters
41bfcaa06f
- Improved java.library.path for Windows, Linux and Mac OS X.
...
- Added support for setting os.name and os.ver on Mac OS X.
- Try to guess os.arch based on IntPtr.Size.
2008-04-07 04:53:44 +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
6bb8fa27d1
- Regenerated mscorlib.jar for .NET 2.0
...
- Updated FileChannelImpl to use SafeFileHandle and GC.Add|RemoveMemoryPressure
- Added GC.KeepAlive to "native" methods of MappedByteBuffer
2007-11-26 12:51:21 +00:00
jfrijters
8a2fd17b8e
Made to compile again with Classpath cvs.
2007-11-14 08:48:23 +00:00
jfrijters
96094d6cee
Made AssemblyClassLoader public and moved it to ikvm.runtime package.
2007-10-25 12:56:18 +00:00
jfrijters
191dbcb00e
Make "classpath" build target build again.
2007-10-24 04:24:12 +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
f3cdf14db2
Fixed URL.equals() for "ikvmres:" urls.
2007-10-18 05:53:28 +00:00
jfrijters
f987aad795
Fixed handling of methods that don't have a DeclaringType.
2007-10-01 10:46:30 +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
fa2950fd18
Regenerated (to get StructLayoutAttribute.Annotation).
2007-08-21 07:22:58 +00:00
jfrijters
14c840cfbd
Refactored system properties initialization.
2007-08-16 14:04:59 +00:00
jfrijters
4d28e15c3e
Changed ikvmres protocol handler to be compatible with both GNU Classpath and OpenJDK url parse exception throwing convention.
2007-08-15 14:01:23 +00:00
jfrijters
a35c6d89ba
Added "native" method that I introduced in AtomicBoolean.
2007-08-09 07:09:13 +00:00
jfrijters
20235b06e8
Changed AtomicBoolean.value field to int to be serialization compatible with JDK.
2007-08-08 09:23:07 +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
fef5a8394d
Updated to compile with Classpath HEAD again.
2007-07-03 06:34:54 +00:00
jfrijters
422436961b
Fix to make sure that if there is only system code on the stack, the resulting AccessControlContext isn't empty.
2007-07-02 14:12:56 +00:00
jfrijters
6def6adebc
*** empty log message ***
2007-06-21 06:39:00 +00:00
jfrijters
5502c68773
Disambiguate CodeSource constructor invocation.
2007-06-19 10:21:17 +00:00
jfrijters
5ce13f3b9d
Integrated OpenJDK's java.io.FileDescriptor, FileInputStream, FileOutputStream & RandomAccessFile.
2007-06-18 09:16:19 +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
eb23eacd45
- Integrated OpenJDK's java.lang.System and friends.
...
- Fixed a couple of OpenJDK Thread issues.
2007-06-09 08:33:09 +00:00
jfrijters
e96aab2872
Changed to use public StackTraceElement constructor instead of GNU Classpath specific one.
2007-06-01 14:03:54 +00:00
jfrijters
aa8f2a1d46
Added tweak to exception stack trace filtering to handle x64 tail call optimization.
2007-06-01 13:54:01 +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
jfrijters
eaca3c6926
Removed VMClass dependencies and added some sun.misc.Unsafe methods.
2007-05-18 06:10:27 +00:00
jfrijters
e25c6d15d1
Removed generics signature that is no longer needed since the Classpath generics branch merge.
2007-05-18 06:05:26 +00:00
jfrijters
9d3fc25b1f
Removed VMClass dependency.
2007-05-18 06:01:33 +00:00
jfrijters
c01a3fb191
Removed workaround for x64 CLR JIT bug from sun.misc.FloatingDecimal and added generic workaround to the compiler.
2007-05-11 13:42:47 +00:00
jfrijters
66bee2b0ba
Imported Sun's GPLed Double/Float toString and parsing code to fix the long standing incompatibilities. Update license and copyright texts to note the inclusion of Sun code.
...
Note that FloatingDecimal has a couple of IKVM specific changes to work around a bug in the x64 CLR JIT. These changes are marked with /*IKVM*/
2007-05-11 08:55:35 +00:00
jfrijters
539bbd8235
Fixed read() to handle -1 return values from implRead() for non byte array backed buffers.
2007-05-08 12:22:28 +00:00
jfrijters
d74b2258c2
Fixed to reflect connectedness on underlying DatagramSocket.
2007-05-08 12:21:36 +00:00
jfrijters
52682398ad
Fixed getOption(SO_OOBLINE) to return Boolean instead of Integer.
2007-05-08 12:20:40 +00:00
jfrijters
64854740b1
Fixed to set initial SO_BROADCAST option to enabled.
2007-05-08 12:19:50 +00:00
jfrijters
72f0b2849e
*** empty log message ***
2007-05-05 15:37:51 +00:00
jfrijters
8bcc5e19e5
*** empty log message ***
2007-05-02 06:01:22 +00:00
jfrijters
384314435c
- Fixed Throwable.printStackTrace() to call Throwable.printStackTrace(OutputStream) to support exception classes that only override printStackTrace(OutputStream).
...
- Fixed Throwable.printStackTrace(...) to use PrintWriter/PrintStream.println() to trigger flushing on auto-flush writers/streams.
- Fixed Throwable constructor to set cause correctly if an exception was instantiated but not thrown immediately.
2007-05-01 09:18:29 +00:00
jfrijters
fe40ad070a
Added hack to support Double.MIN_VALUE and Double.MAX_VALUE toString/parse roundtripping (to fool some tests).
2007-05-01 09:13:50 +00:00
jfrijters
7b9eeaf1b7
Implemented NIO Pipe support.
2007-04-28 10:42:13 +00:00
jfrijters
ce3a59a14f
- Fixed SocketChannel's underlying socket state for SocketChannels returned by ServerSocketChannel.accept()
...
- Fixed handling of read returning -1
2007-04-28 10:41:47 +00:00
jfrijters
1fabf39e09
- Fixed bind to set the localport after binding.
...
- Fixed read to return -1 instead of 0 for closed sockets (this fixes SocketChannel.read, the non-nio socket InputStream previously had the conversion.)
2007-04-28 10:40:13 +00:00
jfrijters
e977649160
Fixed String.lastIndexOf(String, int) regression.
2007-04-26 08:17:16 +00:00
jfrijters
e68499a4ba
Simplified VM -> Class Library interface by taking advantage of the fact that IKVM.Runtime.dll is now compiled in two passes with the second pass linking against the class library.
2007-04-23 08:24:33 +00:00
jfrijters
d08a2fabe6
Optimized various String methods.
2007-04-23 08:14:55 +00:00
jfrijters
33830ec0dc
Fixed potential deadlock when a dying thread is interrupted.
2007-04-22 09:27:17 +00:00
jfrijters
2504760734
Fixed various String methods (indexOf, lastIndexOf, startsWith, endsWith, contains, replace) to use ordinal semantics instead of culture dependent word matching. Thanks to Louis Boydstun for tracking this bug down.
2007-04-19 10:14:05 +00:00
jfrijters
afc60d7d65
Implemented connect with timeout.
2007-04-18 08:08:00 +00:00
jfrijters
a81760a177
*** empty log message ***
2007-04-18 05:28:32 +00:00
jfrijters
a6e9d0bdbd
Added system property "ikvm.apartmentstate" to enable setting the COM ApartmentState for threads created in Java code.
2007-04-16 06:06:33 +00:00
jfrijters
b9df51e1d2
Implement major chunk of custom attribute as annotations support.
2007-04-12 09:27:17 +00:00
jfrijters
0f138837fb
- Fixed exception handling to continue working during AppDomain finalization for unload.
...
- Removed static initializer from ExceptionInfoHelper.
- Use Activator.CreateInstance() hack to create NOT_REMAPPED and CAUSE_NOT_SET to prevent them from ending up in the exceptions map.
2007-04-12 09:24:30 +00:00
jfrijters
f7f7b161c8
Clarified comment.
2007-04-12 09:19:54 +00:00
jfrijters
d066a8164b
fixed ByteBuffer.allocateDirect() to zero initialize the memory it allocated.
2007-04-10 12:06:07 +00:00
jfrijters
321b67182e
Updated version numbers.
2007-04-09 08:32:48 +00:00
jfrijters
0180d6d80b
*** empty log message ***
2007-04-08 11:05:48 +00:00
jfrijters
ff8c714d87
Added ikvm.runtime.Util.throwException() method to throw CLI exceptions without declaring them.
2007-04-08 10:50:19 +00:00
jfrijters
0a1a172d3b
- .NET "generic class loaders" now return something sensible when toString() is called on them.
...
- Ikvmc no longer warns about generic stubs.
- Ikvmstub now has WHIDBEY conditional code to properly determine if a class is a generic type instance (instead of the name based hack).
- Fixed .NET generic type name mangling bug (nested generic types were double encoded).
- Added support for loading .NET generic type stubs.
- Fixed several .NET generic type loading bugs.
- Fixed ikvm.runtime.Util.getInstanceTypeFromClass() to return null instead of throw an exception when it is called on a "dynamic only" class.
2007-03-29 09:17:19 +00:00
jfrijters
6f0ff28388
As pointed out by FxCopy: Runtime.addShutdownHook() indirectly exposes the AppDomain.ProcessExit event, which has a LinkDemand, so we're adding the LinkDemand to addShutdownHook.
2007-03-15 08:01:50 +00:00
jfrijters
8e649671fa
As pointed out by FxCopy: GetLastWin32Error should be called immediately after the P/Invoke call.
2007-03-15 08:00:30 +00:00
jfrijters
37666f7cbe
Implemented support in ikvmc to automatically add an implementation of IDisposable or IEnumerable to classes that implement java.io.Closeable or java.lang.Iterable.
2007-03-11 14:14:52 +00:00
jfrijters
8d0a1a272d
Changed mscorlib reference from path to partial name to work around build problem on x64
2007-03-07 07:54:34 +00:00
jfrijters
bfa44c7e05
Updated for current GNU Classpath cvs.
2007-03-05 14:56:40 +00:00
jfrijters
62b76ef1af
- Regenerated mscorlib.jar and System.jar
...
- Changed RetentionPolicy on .NET custom attribute annotations to RUNTIME, so that ikvmc sees them (fixes a regression).
- Handled method signature clashes in .NET types.
2007-02-20 16:11:46 +00:00
jfrijters
108cf12114
Fixed setReadable & setWritable to return success if the requested operation is a no-op.
2007-02-16 07:44:53 +00:00
jfrijters
7d6ea3276d
Restructured mutual dependency of IKVM.Runtime and IKVM.GNU.Classpath to work around Mono C# compiler limitation.
2007-02-16 07:42:32 +00:00
jfrijters
3388fd8d7a
Added new VMFile methods.
2007-02-10 05:54:59 +00:00
jfrijters
97a04156cd
Fixed firstNonNullClassLoader to handle reflection scenarios.
2007-02-07 07:28:01 +00:00
jfrijters
bd161a0a12
Updated year in copyright messages.
2007-02-03 14:26:17 +00:00
jfrijters
e60b03e18b
Fixed system property initialization to handle case where IKVM.GNU.Classpath doesn't have a Location
2007-02-03 14:23:44 +00:00
jfrijters
ba59c08c17
- added ikvm.internal.LibraryVMInterface to exclude.lst to prevent new ikvmc warning message
2007-02-01 08:35:04 +00:00
jfrijters
93ffd65020
Implemented annotation support in StubGenerator.
2007-01-23 15:48:48 +00:00
jfrijters
9d08a9141c
Cleaned up error handling.
2007-01-23 09:51:46 +00:00
jfrijters
559e856f15
*** empty log message ***
2007-01-21 10:10:00 +00:00
jfrijters
2ca898ba69
*** empty log message ***
2007-01-16 14:31:21 +00:00
jfrijters
b59ad51ab7
*** empty log message ***
2007-01-15 05:52:00 +00:00