Joel Dice
b4c3eea0f1
set InvocationTargetException target
...
When using the OpenJDK classpath, the target exception and the
Throwable cause are two different fields; we must set them both.
2013-04-18 11:23:59 -06:00
Joel Dice
81d7786716
fix Class.getModifiers for inner classes and implement JVM_GetDeclaringClass and JVM_GetEnclosingMethodInfo properly
...
This fixes a couple of tests in the Scala test suite
(run/reflection-modulemirror-toplevel-badpath.scala and
run/reflection-constructormirror-nested-good.scala).
2013-04-17 15:12:58 -06:00
Joel Dice
d873f096a1
set SO_NOSIGPIPE socket option when available
...
This ensures we avoid SIGPIPE on socket disconnect on Darwin.
2013-03-18 11:43:00 -06:00
Joel Dice
ff19ab6c13
add avian.trace.port property
...
Setting this property (e.g. -Davian.trace.port=5555) will cause the VM
to start an extra daemon thread which listens on the specified TCP
port for incoming connections and dumps stack traces for all running
threads to that socket. You can retrieve that dump using e.g. netcat:
nc localhost 5555
2013-03-08 14:47:27 -07:00
Joel Dice
b3978c0a0a
fix msvc build
2013-03-04 11:09:59 -07:00
Joel Dice
5e2d00010b
move headers from src to src/avian
...
This is necessary to avoid name conflicts on various platforms. For
example, iOS has its own util.h, and Windows has a process.h. By
including our version as e.g. "avian/util.h", we avoid confusion with
the system version.
2013-02-27 13:33:29 -07:00
Joel Dice
9060a31348
Merge remote-tracking branch 'github/master' into dicej
...
Conflicts:
src/classpath-openjdk.cpp
2013-02-22 14:43:20 -07:00
Joel Dice
8546ca5670
fix Avian classpath build
2013-02-22 11:55:01 -07:00
Joel Dice
42d39b1af1
more Android class library work
2013-02-21 15:37:17 -07:00
Joel Dice
d414fd4c7b
more progress on Android class library port
...
Hello.java works. Yay.
2013-02-20 10:22:40 -07:00
Joshua Warner
b9e281612b
move runtime-array to include
2013-02-19 22:56:05 -07:00
Joshua Warner
3589d5c205
Merge branch 'master' of git://github.com/ReadyTalk/avian
...
Conflicts:
src/codegen/arm/assembler.cpp
src/common.h
src/machine.cpp
2013-02-12 17:37:19 -07:00
Joshua Warner
964d054117
move RUNTIME_ARRAY into it's own header
2013-02-10 18:07:11 -07:00
Joel Dice
b38eecbefa
specify O_BINARY when opening files on Windows
2013-02-07 11:35:48 -07:00
Alexey Pelykh
f2d2c9af29
Fix for windows ::open
2013-02-07 11:43:39 +02:00
Alexey Pelykh
023af5102e
Remove empty lines
...
Conflicts:
classpath/java-lang.cpp
2013-02-07 11:39:24 +02:00
Alexey Pelykh
0ff703d1c0
Culture fixes ; Path extensions
2013-02-07 11:39:22 +02:00
Alexey Pelykh
2362235b4c
getErrorStr() for Windows platforms
2013-02-07 11:39:21 +02:00
Alexey Pelykh
41c7269896
Support new WinRT interop
2013-02-07 11:39:20 +02:00
Alexey Pelykh
34179f3332
Added comments regarding java.io.File.toAbsolute() and WinRT/WP8
2013-02-07 11:39:19 +02:00
Alexey Pelykh
c33c148b6b
Add notifications about improvements possible
2013-02-07 11:39:18 +02:00
Alexey Pelykh
cb46cb0ba8
WP8/WinRT : Proper absolute path
...
WP8/WinRT : Last modified time
2013-02-07 11:39:17 +02:00
Alexey Pelykh
ebf6277660
java.io.RandomAccessFile for WinPhone8 / WinRT
2013-02-07 11:39:16 +02:00
Alexey Pelykh
3f22c6d8e3
Remove debug code
2013-02-07 11:39:15 +02:00
Alexey Pelykh
a03fda0c1d
Instead of throwing exception, just return initial file name
2013-02-07 11:39:15 +02:00
Alexey Pelykh
4840f4a019
Fixes to WP8/WinRT support
2013-02-07 11:39:03 +02:00
Victor Shcherb
ce1f76a3e9
Add last modified to file
2013-02-07 11:39:01 +02:00
Alexey Pelykh
a78959a480
Replaced TODO comments with messages ; More correct AVIAN_AOT_ONLY usage
2013-02-07 11:38:59 +02:00
Alexey Pelykh
0cbaad6495
Windows Phone 8 / Windows RT initial support
...
Conflicts:
makefile
2013-02-07 11:38:57 +02:00
Victor Shcherb
ba80761128
Add android redirect to logcat
2013-02-07 11:38:55 +02:00
Victor Shcherb
4cd8ab5910
Add android platform
2013-02-07 11:38:52 +02:00
Victor Shcherb
eea079ea70
Fix RAF
2013-02-07 11:38:51 +02:00
Alexey Pelykh
57f4463c4c
RandomAccessFile
2013-02-07 11:38:50 +02:00
Victor Shcherb
7699c12597
Add java lang math methods
2013-02-07 11:38:49 +02:00
Alexey Pelykh
13848cb520
java.lang.Math.log() and java.lang.Math.tan()
2013-02-07 11:38:48 +02:00
Simon Ochsenreither
57a67fb312
Fix field names, add getters to j.l.Package
2013-02-04 14:14:45 +01:00
Simon Ochsenreither
1db67e463f
Add Class#isEnum and improve error handling in Enum.valueOf
2013-02-03 16:03:15 +01:00
Simon Ochsenreither
b1eb4b9718
Adds code to get the Scala REPL working
2013-01-30 04:31:38 +01:00
Mike Keesey
5061d7fe4d
Making Thread's isInterrupted() non-static and make it use the current instance's interrupted variable.
2012-12-25 18:12:03 -07:00
Pierre Carrier
74b070f9cc
classpath: java.nio.ByteOrder
...
Used by jruby.
(Not saying I'm gonna implement String.format :)
2012-11-11 06:06:18 +01:00
Pierre Carrier
f8ea506021
classpath: j.l.{Integer,Long}.to{Octal,Binary}String
...
Offer support for toOctalString and toBinaryString in Integer and Long.
2012-11-05 00:10:02 +01:00
Pierre Carrier
be952acbcb
classpath: Closeable & Flushable
2012-11-04 02:14:17 +01:00
Joshua Warner
33fed1b710
Merge branch 'master' of github.com:ReadyTalk/avian
2012-10-30 14:00:16 -06:00
Joshua Warner
4c20465294
add basic URLClassLoader implementation
2012-10-30 09:34:16 -06:00
Joel Dice
3e0ab35ba1
fix PersistentSet.remove side-effect bug
...
The whole point of PersistentSet is to provide non-destructive write
operations, which means the add and remove methods should have no
effect on previous revisions. However, a bug in remove caused shared
tree nodes to be modified, corrupting any revisions with which they
were shared.
2012-10-13 09:39:14 -06:00
Joel Dice
a3c4b60f43
rename package avian.avian_vm_resource to avian.avianvmresource
...
This package name must match the URL protocol we use for loading
embedded resources, but OpenJDK's URL class won't tolerate underscores
in a protocol name. Also, I had not updated the names of the native
methods in avian.avianvmresource.Handler, leading to
UnsatisfiedLinkErrors when they were called.
2012-10-06 15:33:24 -06:00
Joel Dice
2d9bbec214
fix a couple of ByteBuffer regressions
...
The compact() and put(ByteBuffer) methods regressed as of the recent
refactoring to support direct byte buffers.
2012-09-14 11:40:26 -06:00
Mike Jensen
3372210f45
Added .get() implementation
2012-08-16 16:13:51 -06:00
Joel Dice
2687333a37
Merge remote-tracking branch 'github/master'
2012-08-12 15:03:40 -06:00
Joel Dice
b98abe3f94
fix float to integer conversion
...
Java requires that NaNs be converted to zero and that numbers at or
beyond the limits of integer representation be clamped to the largest
or smallest value that can be represented, respectively.
2012-08-12 14:31:58 -06:00