Ben Limmer
b3850ac76d
Initial attempt at resolving SWT3.7 missing operatons in Avian. Everything seems to be working except floatToIntBits, hence the test case failing.
2011-12-28 15:52:53 -07:00
Ben Limmer
21610c1c9b
Merge branch 'master' of ssh://git.ecovate.com/avian
2011-11-09 13:26:51 -07:00
Ben Limmer
89cdd9d0d2
Fixed bug where calling Process.destroy() on a PID that no longer exist kills all processes in Pgroup.
2011-11-09 13:26:36 -07:00
JET
2b2a2e9446
Completion of previous fix.
2011-11-03 19:30:44 -06:00
JET
216b9a05ea
RandomAccessFile now correctly reports lengths for growing files.
2011-11-03 13:39:24 -06:00
Joshua Warner
90dc552463
implement Process.destroy
2011-11-03 12:30:51 -06:00
JET
3b1c769d2b
Fixed RandomAccessFile to update position after reads.
2011-10-24 09:01:17 -06:00
JET
39bee886e3
ByteBuffer and InputStream now better match the standard.
2011-10-20 13:45:47 -06:00
Seth Goings
9d636c7ebb
Merge branch 'bufferedReaderFix'
2011-09-01 10:18:06 -06:00
Seth Goings
6ea444f6bf
Fixed incorrect handling of \r\n
2011-09-01 10:17:21 -06:00
Joel Dice
4cc5b5d902
Merge remote branch 'origin/bufferedReaderFix'
2011-09-01 09:35:28 -06:00
Seth Goings
fb3a23f02d
Fixed behavior of readLine accepting *\n\n as a line, not two
2011-09-01 09:31:08 -06:00
Seth Goings
97e03b9f28
Fixed possible ArrayIndexOutOfBounds exception
2011-09-01 09:11:39 -06:00
Seth Goings
c75b06ddc1
Added support for non POSIX line endings. Will now accept: \r and \r\n as line endings (per Sun's JavaDoc)
2011-08-31 20:46:15 -06:00
Joel Dice
d09e5ee8eb
fix Windows build regression
2011-08-15 16:37:15 -06:00
Anonymous
16aa5c3d59
improve IOException message in the case of a Runtime.exec() failure
...
We now properly forward the errno value from the child when execvp()
fails, which the parent then uses to for the errno message as well as
including the failed command's name in the message.
2011-08-15 07:12:52 -06:00
Joel Dice
1c59aa51d8
add fields and methods to AbstractList for compatibility
...
Google Protocol Buffers relies on these.
2011-08-12 14:29:22 -06:00
Topher Lamey
10183a9870
Added AbstractMap for protobuf, and String getByte encoding for Latin-1
2011-08-12 13:30:51 -06:00
Anonymous
3d7c65d314
implement File.getAbsolutePath()/File.getAbsoluteFile() on Unix platforms
2011-08-11 08:52:49 -06:00
Anonymous
7ed580cf84
fix boolean deserialization in ObjectInputStream
2011-08-11 08:52:09 -06:00
Joel Dice
792653e190
strip leading slashes from name in ZipFile.getEntry
...
This is necessary to allow resource loading of the form
Foo.class.getResourceAsStream("/foo.txt") from JAR files.
2011-07-26 09:09:04 -06:00
Joel Dice
c3824c6844
fix crash when encountering invokespecial call to abstract method
...
We must throw an AbstractMethodError when such a call is executed (not
when the call is compiled), so we compile this case as a call to a
thunk which throws such an error.
2011-07-17 19:54:55 -06:00
Joel Dice
f00317c415
clarify javadoc in Continuations.java
2011-07-16 19:07:54 -06:00
Joel Dice
e3662f13a9
update copyright years and increment version number
2011-07-13 08:25:21 -06:00
Joel Dice
c3fa08c430
fix Thread.interrupt and Thread.interrupted
...
These were both totally broken; the latter wasn't even implemented.
This commit fixes/implements them and adds a simple test to exercise
them.
2011-07-12 14:15:43 -06:00
Joel Dice
272789cf16
use getcwd instead of getenv("PWD") to get workding directory
...
The PWD environment variable is not always set; getcwd is more
reliable.
2011-07-11 10:44:06 -06:00
Joel Dice
506ec7838e
remove unused Classes.vmClass method
2011-07-08 11:45:23 -06:00
Anonymous
794a45cb79
fix various ObjectOutputStream/ObjectInputStream bugs
2011-07-01 08:43:43 -06:00
Topher Lamey
9700b7def1
Changes for protobuf support
2011-06-21 14:37:08 -06:00
Topher Lamey
19856bc346
Changes for protobuf support
2011-06-21 14:37:08 -06:00
Topher Lamey
9aae57ee03
Additions for Protobuf support
2011-06-17 11:23:09 -06:00
Topher Lamey
b891db43bc
Additions for Protobuf support
2011-06-17 11:23:08 -06:00
Joel Dice
50a699a08f
Merge remote branch 'origin/B14038_Lion_appshare' into oss-master
2011-06-03 17:35:40 -06:00
Joel Dice
bcc72e8c9d
Merge remote branch 'remotes/origin/B14038_Lion_appshare' into oss-master
2011-06-03 14:39:50 -06:00
Matt Klich
c7c0a45a61
Revert "OSX Lion build changes"
...
This commit introduced conditional includes which is not the preferred
method. Will do it in the makefile instead.
This reverts commit 7148556979
.
2011-06-01 13:56:03 -06:00
Joel Dice
4514833700
Changes to add end function to Inflater and Deflater per the java spec
2011-05-31 14:46:15 -06:00
Mike Jensen
6b4b4b0b8c
Changes to add end function to Inflater and Deflater per the java spec
2011-05-31 14:31:06 -06:00
Matt Klich
7148556979
OSX Lion build changes
2011-05-26 11:57:30 -06:00
Joel Dice
d4da92d300
fix bugs in Deflater and DeflaterOutputStream
...
Previously, Deflater.deflate would pass Z_SYNC_FLUSH to zlib
unconditionally, which caused the output to be enormous when setInput
was called repeatedly with very small input buffers. In order to
allow zlib to buffer output and thereby maximize compression, we must
use Z_NO_FLUSH until Deflater.finish is called, at which point we
switch to Z_FINISH. We also modify DeflaterOutputStream.close to call
Deflater.finish and write any remaining output to the wrapped stream.
2011-05-16 17:12:41 -06:00
Joel Dice
e788a18bc7
implement java.util.zip.CRC32
2011-05-16 17:12:10 -06:00
Joel Dice
18a6393ecf
fix ClassCastException in ZipFile.getInputStream
...
This was being thrown when the parameter passed was a
JarFile.MyJarEntry, not a ZipFile.MyZipEntry, yet we cast it to the
latter.
2011-05-16 10:30:56 -06:00
Joel Dice
f617c5c9ef
Merge remote branch 'origin/localization' into oss-master
2011-04-09 21:43:44 -06:00
Joel Dice
00b829b8e8
fix Class.getDeclaredMethods
...
Internally, the VM augments the method tables for abstract classes
with any inherited abstract methods to make code simpler elsewhere,
but that means we can't use that table to construct the result of
Class.getDeclaredMethods since it would include methods not actually
declared in the class. This commit ensures that we preserve and use
the original, un-augmented table for that purpose.
2011-04-09 21:20:56 -06:00
Joel Dice
c0f39fbe0c
implement System.nanoTime
...
This is a quick and coarse, but servicable, implementation.
2011-04-08 20:32:33 -06:00
Marcel van den Boer
76fa43548d
Implementation of String.replace(CharSequence, CharSequence)
2011-04-08 20:31:33 -06:00
JET
706f9d91ad
Fixed bug with *nix LANG var region parsing.
2011-04-05 15:13:29 -06:00
Joel Dice
b0ae6343ad
provide proper implementations of JVM_GetDeclaredClasses, JVM_GetDeclaringClass
2011-03-31 19:47:26 -06:00
Joel Dice
1c7abe782d
specify valid code source for system classes
...
This enables use of a class's protection domain to determine what JAR
or directory it came from.
2011-03-31 19:38:44 -06:00
Joel Dice
9fe41b2afc
only return declared interfaces from Class.getInterfaces
...
The result of Class.getInterfaces should not include interfaces
declared to be implemented/extended by superclasses/superinterfaces,
only those declared by the class itself. This is important because it
influences how java.io.ObjectStreamClass calculates serial version
IDs.
2011-03-27 20:29:31 -06:00
Joel Dice
686cbc3637
implement JVM_ResolveClass
...
This just reuses code in avian.Classes which was formerly only used in
the Avian classpath build.
2011-03-26 23:24:48 -06:00