Joel Dice
5ade8d1cf6
use GetSystemTimeAsFileTime instead of _ftime on Windows
...
It seems that _ftime has devolved to only giving 1-second resolution
on Windows 7. GetSystemTimeAsFileTime does better, so that's what
we'll use.
2010-10-28 20:30:49 -06:00
Joel Dice
5cbfee467c
fix Runtime.exec on Posix
...
Due to a silly cut-and-paste error, we were incorrectly passing the
stdout and stderr file descriptors back from native code to Java,
which prevented reading the output of the child process.
2010-10-22 14:39:38 -06:00
jet
0713f8d5cb
Locale system changes to better mimic Sun's VM.
2010-10-14 16:20:41 -06:00
Joel Dice
b3accf1b30
ServerSocketChannel throws IOException, not Exception
2010-10-13 13:38:31 -06:00
jet
cddc305a75
Locale error checking is now more robust.
2010-10-07 16:32:59 -06:00
jet
8feb5a8124
Fixed bug where locale region became a copy of the language.
2010-10-05 22:29:41 -06:00
JET
45e6cd5a60
The localization properties are now functional. Only 16 languages are currently reported on Windows.
2010-10-05 17:53:17 -06:00
jet
1fdc016e58
Beginning of branch. Being pushed for testing purposes.
2010-10-05 17:24:44 -06:00
Joel Dice
c1c9d2111b
remove GNU Classpath and Apache Harmony compatibility code
...
Rather than try to support mixing Avian's core classes with those of
an external class library -- which necessitates adding a lot of stub
methods which throw UnsupportedOperationExceptions, among other
comprimises -- we're looking to support such external class libraries
in their unmodified forms. The latter strategy has already proven
successful with OpenJDK's class library. Thus, this commit removes
the stub methods, etc., which not only cleans up the code but avoids
misleading application developers as to what classes and methods
Avian's built-in class library supports.
2010-09-27 15:58:02 -06:00
Joel Dice
268d2de175
cache array class lookups in element class; misc. bugfixes
2010-09-25 15:54:01 -06:00
Joel Dice
c939d16687
formatting tweak in Classes.java
2010-09-25 15:51:30 -06:00
Joel Dice
0456a9fd49
define user.dir property in Java_java_lang_System_getProperty
2010-09-20 17:28:42 -06:00
Joel Dice
64e42da348
implement avian.Handler.ResourceInputStream.available
2010-09-17 16:11:04 -06:00
Joel Dice
7fffba29e6
Keep reading in BufferedInputStream.read until in.available() <= 0
...
This corresponds to the documented behavior of OpenJDK's version.
2010-09-17 16:08:42 -06:00
Joel Dice
d0d53e2e10
fix custom-classloader-related concurrency problems and other bugs
...
The main changes in this commit ensure that we don't hold the global
class lock when doing class resolution using application-defined
classloaders. Such classloaders may do their own locking (in fact,
it's almost certain), making deadlock likely when mixed with VM-level
locking in various orders.
Other changes include a fix to avoid overflow when waiting for
extremely long intervals and a GC root stack mapping bug.
2010-09-16 20:49:02 -06:00
Joel Dice
f485016637
implement more JVM_* methods and avoid duplicate array class loading
2010-09-14 18:52:57 -06:00
Joel Dice
d819a75f36
more work towards OpenJDK classpath support
...
The biggest change in this commit is to split the system classloader
into two: one for boot classes (e.g. java.lang.*) and another for
application classes. This is necessary to make OpenJDK's security
checks happy.
The rest of the changes include bugfixes and additional JVM method
implementations in classpath-openjdk.cpp.
2010-09-14 10:49:41 -06:00
Joel Dice
76132bec90
set wsaInitialized to true on success in Java_java_net_Socket_init
2010-09-13 19:50:24 -06:00
Joel Dice
74a87a7f4f
use _waccess on windows to implement File.can{Read|Write}
2010-09-12 14:46:14 -06:00
Joel Dice
345c7d38a9
Merge http://github.com/gzsombor/avian into gzsombor
2010-09-12 14:33:02 -06:00
Joel Dice
522f8ca1a5
javadoc grammar correction in Continuations.java
2010-09-12 14:29:27 -06:00
Zsombor Gegesy
6752505cb8
add File.canRead()/File.canWrite() implementation
2010-09-11 21:23:46 +02:00
Zsombor Gegesy
7376425b24
dummy SecurityManager and related classes added
2010-09-11 21:23:46 +02:00
Zsombor Gegesy
6985e81503
add Properties.load(Reader) implementation
2010-09-11 21:23:46 +02:00
Zsombor Gegesy
5dadac2cb8
API additions for compatibility with harmony's java.util package
2010-09-11 21:23:46 +02:00
Zsombor Gegesy
fc2c6d5100
implement toLowerCase(Locale) in the default case
2010-09-11 21:23:46 +02:00
Joel Dice
64100d17c7
Merge branch 'master' of oss.readytalk.com:/var/local/git/avian into openjdk
2010-09-10 15:58:43 -06:00
Joel Dice
cddea7187d
preliminary support for using OpenJDK's class library
...
Whereas the GNU Classpath port used the strategy of patching Classpath
with core classes from Avian so as to minimize changes to the VM, this
port uses the opposite strategy: abstract and isolate
classpath-specific features in the VM similar to how we abstract away
platform-specific features in system.h. This allows us to use an
unmodified copy of OpenJDK's class library, including its core classes
and augmented by a few VM-specific classes in the "avian" package.
2010-09-10 15:05:29 -06:00
Joel Dice
250a77dc13
handle empty strings properly in Pattern.split
...
We were incorrectly returning an empty array when the input was empty,
whereas we ought to return an array containing a single empty string.
When the pattern to match was empty, we went into a loop to create an
infinite list of empty strings, only to crash once we've run out of
memory. This commit addresses both problems.
2010-09-06 11:16:27 -06:00
Eric Scharff
a26eb1b2b9
Fix missing flush in PrintStream
2010-09-05 09:07:18 -06:00
Joel Dice
17c1a552d5
break each Class, Field, and Method into separate classes
...
In order to facilitate making the VM compatible with multiple class
libraries, it's useful to separate the VM-specific representation of
these classes from the library implementations. This commit
introduces VMClass, VMField, and VMMethod for that purpose.
2010-09-01 10:13:52 -06:00
Joel Dice
4273ff834c
remove uncessary parentheses from Enum.java
2010-09-01 10:10:11 -06:00
Zsombor Gegesy
4169425307
add error classes
2010-08-16 09:23:48 -06:00
Zsombor Gegesy
a50fda1a5e
add ClassLoader.getResources calls
2010-08-16 09:23:48 -06:00
Zsombor Gegesy
03b66375f4
add Collections.enumeration(Collection<T> c)
2010-08-16 09:23:48 -06:00
Zsombor Gegesy
4dc05844df
add java.util.Properties.propertyNames() method
2010-08-16 09:23:48 -06:00
Zsombor Gegesy
1daa93d3c4
add ability to append to files
2010-08-16 09:23:48 -06:00
Joel Dice
f0f35a920f
return a useful value from InflaterInputStream.available
...
Note the following excerpt from PNGFileFormat.java in SWT:
/*
* InflaterInputStream does not consume all bytes in the stream
* when it is closed. This may leave unread IDAT chunks. The fix
* is to read all available bytes before closing it.
*/
while (stream.available() > 0) stream.read();
stream.close();
This code relies on the documented behavior of
InflaterInputStream.available, which must return "0 after EOF has been
reached, otherwise always return 1". This is unlike
InputStream.available, which is documented to return "the number of
bytes that can be read (or skipped over) from this input stream
without blocking by the next caller of a method for this input
stream", and says nothing about how many bytes are left until the end
of stream.
This commit modifies InflaterInputStream.available to behave according
to Sun's documentation.
2010-08-04 18:54:47 -06:00
Joel Dice
f0129665c6
fix corruption of old revisioins in PersistentSet
...
In PersistentSet.remove, we were modifying the child node in place
instead of making a copy to update, which would corrupt older
revisions. This commit ensures that we always create a copy if
necessary.
2010-07-30 12:23:41 -06:00
Joel Dice
b3da635b63
add java.nio.channels.Channels implementation
2010-07-13 18:03:25 -06:00
Joel Dice
a3daeee1f6
Merge branch 'dns'
2010-07-02 12:39:41 -06:00
Joel Dice
5e7e539c2a
fix non-windows java-net.cpp build
2010-07-02 09:36:55 -06:00
Joel Dice
cdc48da493
grammar tweaks to Continuations.java JavaDoc
2010-06-15 18:40:12 -06:00
Joel Dice
1b31fb67e1
Merge branch 'master' of oss.readytalk.com:/var/local/git/avian
2010-06-15 18:27:51 -06:00
Joel Dice
47d9039b69
switch from gethostbyname to getaddrinfo on POSIX systems
...
gethostbyname may return any combination of IPv4 and IPv6 addresses,
and it's not safe to assume the first address is IPv4, which is all
our code is currently prepared to handle. In contrast, getaddrinfo
allows us to specify whether we want IPv4, IPv6, or both.
We should eventually make this switch on Windows as well, but the
status of getaddrinfo in Windows 2000 is not clear, and MinGW's
ws2tcpip.h only declares it for XP and above.
This commit also adds InetAddress.getByName for explicit DNS lookups.
2010-06-14 16:09:56 -06:00
Joel Dice
f3a1c3253e
use closesocket instead of close on Windows
...
MinGW's close apparently does nothing, and MSVC's headers don't even
declare it, so closesocket is the way to go.
2010-06-04 18:45:13 -06:00
Joel Dice
b908f575d5
fix several blocking SocketChannel bugs
...
In java-nio.cpp, we can't use GetPrimitiveArrayCritical when reading
from or writing to blocking sockets since it may block the rest of the
VM indefinitely.
In SelectableChannel.java, we can't use a null test on
SelectableChannel.key to determine whether the channel is open since
it might never be registered with a Selector. According to the Sun
documentation, a SelectableChannel is open as soon as it's created, so
that's what we now implement.
2010-06-04 15:37:22 -06:00
Matt Klich
83c51f4801
Fix signed vs. unsigned comparison for 32bit build with mingw64
2010-05-13 16:59:08 -06:00
mjensen
a6998238d5
Additional of several interfaces which can be used in serialization
2010-05-10 10:17:06 -06:00
JET
c666ab58e3
Improved (should now be complete) Unicode support (UTF-8 for *nix and UTF-16 for Windows).
2010-04-20 10:03:07 -06:00
JET
b6936fb597
optimized InputStreamReader.read()
2010-04-14 09:43:56 -06:00
JET
b2f5e71d22
ARM and UTF-8 work
2010-04-14 09:26:50 -06:00
Joel Dice
a650f1affa
provide more useful message when throwing exception from Field.set
2010-03-07 12:03:17 -07:00
Joel Dice
fdf9c5087b
register socket with exceptfds when calling select on Windows
...
This allows us to get connection errors like WSAECONNREFUSED in
non-blocking mode.
2010-02-19 16:41:27 -07:00
Joel Dice
5d781a0584
declare Long.MAX_VALUE and Long.MIN_VALUE as longs, not Longs
2010-02-02 09:33:10 -07:00
Joel Dice
2c4e229e6e
convert forward slashes to back slashes in Windows paths
2010-01-11 08:31:01 -07:00
Joel Dice
b1a1391093
skip "." and ".." in File.list{Files} to match Sun
2010-01-09 19:18:39 -07:00
Joel Dice
585dba004b
ignore redundant calls to File{In|Out}putStream.close
...
Previously, we threw an IOException, which did not match Sun's behavior.
2010-01-09 18:22:16 -07:00
Joel Dice
9a056da2f7
increase default buffer size in BufferedInputStream
...
The previous value of 32 bytes did not perform well. This increases it to 4096 bytes, which matches BufferedOutputStream.
2010-01-09 18:20:15 -07:00
Joel Dice
664cb3cd39
don't try to parse annotation tables more than once; use defining classloader when loading array classes during linking
2009-12-24 17:58:48 -07:00
Joel Dice
f588a62ae3
fix Classpath 0.98 compatibility issues
2009-12-22 21:34:04 -07:00
Joel Dice
30db38ebd6
replace calls to ExceptionOccurred with calls to ExceptionCheck
...
The latter is cheaper (avoids a state transition and possible memory
allocation) when we just want to know if an exception is thrown
without needing a handle to that exception.
2009-12-16 19:25:03 -07:00
Joel Dice
70da0df46b
add Class.getExceptionTypes method
2009-12-15 10:04:51 -07:00
Joel Dice
875a1a45a3
pass valid pReturnValue parameter to _wgetenv_s
2009-12-12 17:55:00 -07:00
Joel Dice
f0c14fa1f1
Merge branch 'master' of oss.readytalk.com:/var/local/git/avian
2009-12-06 13:35:07 -07:00
Joel Dice
bec3766180
fix misuse of term "recursive" in Continations JavaDoc
2009-12-06 13:34:31 -07:00
Joel Dice
ccbb4796f2
fix typo in JavaDoc comment
2009-12-05 22:49:23 -07:00
Joel Dice
0c85fc7527
throw OutOfMemoryError if malloc returns null pointer
2009-12-05 15:51:12 -07:00
Joel Dice
112e2a71d5
update copyright years
2009-12-05 15:50:23 -07:00
jent
99a1c12682
Files to add Deflater and DeflaterOutputStream to java.util.zip for
...
avian
2009-12-04 12:01:31 -07:00
Joel Dice
6118792ffd
update copyright years
2009-12-02 19:08:29 -07:00
jent
f39469e71c
Changes for better memory managment
2009-12-01 09:54:36 -07:00
Joel Dice
6475beda83
don't null out array in HashMap when size drops to zero
...
As in ArrayList, we want to avoid thrashing in cases where the map is frequently emptied and refilled.
2009-11-19 12:55:53 -07:00
Joel Dice
adcac443e4
don't null out array in ArrayList when size goes to zero
...
This avoids thrashing in the case of a list which is frequently
emptied and refilled with a small number of elements.
2009-11-19 11:43:11 -07:00
Joel Dice
3862128a3a
tolerate EINTR in ServerSocketChannel.accept implementation
...
On POSIX systems, Avian sends a special signal to a thread to
implement Thread.getStackTrace() when called from a different thread.
If the target thread is blocked on a call to accept when this happens,
it will return -1, with errno set to EINTR. Instead of treating this
as an error, we now just loop and call accept again.
2009-11-16 17:23:09 -07:00
Joel Dice
ef00ff80ef
avoid EAGAIN or EWOULDBLOCK errors due to SocketSelector.wakup being called many times between calls to select
2009-10-30 08:55:55 -06:00
Joel Dice
efdfb796d9
implement SocketChannel.isConnected
2009-10-29 16:19:33 -06:00
Joel Dice
3c893b2ee3
Merge commit 'origin/master' into wip
2009-10-27 10:36:19 -06:00
Joel Dice
1fd00dd55d
revert all __attribute__ ((externally_visible)) changes because it's not clear yet how to detect whether it's supported
2009-10-27 10:35:26 -06:00
Joel Dice
8bf3487ff1
Merge commit 'origin/master' into wip
2009-10-27 09:35:13 -06:00
Joel Dice
51fcf1ef74
ammend recent commit to avoid using __attribute__ ((externally_visible)) when it is not available
2009-10-27 09:34:46 -06:00
Joel Dice
2efff818ea
Merge commit 'origin/master' into wip
2009-10-27 09:17:54 -06:00
Joel Dice
b15ff58542
provide a useful error message when throwing IOExceptions from Java_java_nio_channels_SocketChannel_natFinishConnect
2009-10-27 09:17:08 -06:00
Joel Dice
4570b86da0
add __attribute__ ((externally_visible)) to EXPORT macros to facilitate whole-program optimization using GCC 4.5
2009-10-27 09:16:08 -06:00
Joel Dice
a68742200b
return empty stack trace for thread which isn't running
2009-10-26 11:44:29 -06:00
Joel Dice
5967246b37
Merge commit 'origin/master' into wip
2009-10-20 14:15:35 -06:00
Joel Dice
53588b94f3
compare lengths first in String.equals[IgnoreCase] for efficiency
2009-10-19 10:36:48 -06:00
Joel Dice
984f3106fd
fix powerpc build
2009-10-19 10:31:34 -06:00
Joel Dice
7b0378c180
support darwin/x86_64
2009-10-14 10:01:37 -06:00
Joel Dice
1b893c7a19
check for EINPROGRESS in Java_java_nio_channels_SocketChannel_natFinishConnect
2009-10-12 09:28:04 -06:00
Joel Dice
59ba4aecf2
implement non-blocking socket connections
2009-10-08 16:26:20 -06:00
Mike Keesey
77fb0083a4
updated nio native code to properly check for PIPE closure on POSIX OSes
2009-10-05 09:23:53 -06:00
Joel Dice
447741d6ec
implement java.io.File.renameTo
2009-09-28 17:45:47 -06:00
Joel Dice
fb40b046fd
fix regression in SocketSelector when selecting ServerSocketChannels
2009-09-28 16:54:49 -06:00
Joel Dice
1faf93c163
fix typo in Proxy.makeInvokeCode
2009-09-19 16:27:28 -06:00
Joel Dice
953cb69e5e
move proxy and annotation code from C++ to Java
...
This allows code shrinkers to remove it if it's not used by the application.
2009-09-19 16:21:15 -06:00
Joel Dice
1a2eb3836c
Merge branch 'master' of oss.readytalk.com:/var/local/git/avian
2009-09-18 18:01:57 -06:00
Joel Dice
7aa906d97b
support runtime-visible annotations and java.lang.reflect.Proxy
2009-09-18 18:01:54 -06:00
Joel Dice
6fa25f992c
Properties.setProperty should return an Object
2009-09-18 17:51:05 -06:00
Joel Dice
3446ed0fce
fix MSVC build regression in java-io.cpp
2009-09-05 15:35:00 -06:00
Joel Dice
e47c149fb1
fix misuse of FindFirstFile
2009-09-03 17:57:32 -06:00
Joel Dice
0a96f4c552
ensure WeakHashMap.MyCell objects are registered with the ReferenceQueue
2009-09-01 17:22:31 -06:00
Joel Dice
987330fed5
Merge branch 'master' of oss.readytalk.com:/var/local/git/avian
2009-08-28 16:18:36 -06:00
Joel Dice
cd41751912
ensure primitive names are zero-terminated in Class.getName
2009-08-28 16:17:23 -06:00
Joel Dice
73dc058c14
implement StackTraceElement.getFileName properly
2009-08-27 16:28:44 -06:00
Joel Dice
1a0eef7e2d
add support for building with MSVC on Windows
2009-08-26 18:26:44 -06:00
Joel Dice
d4e2e05b31
add AccessControlException
2009-08-24 16:40:25 -06:00
Joel Dice
77ae259e41
throw ClassCastException if asked to compare Enums of different types
2009-08-21 16:06:12 -06:00
Joel Dice
c14bb5768e
throw FileNotFoundException from doOpen when appropriate
2009-08-21 09:23:03 -06:00
Joel Dice
4c14a9ab66
implement enough of java.util.regex to ensure String methods work for trivial regular expressions
2009-08-20 11:14:05 -06:00
Joel Dice
71f1efc4cb
add a couple of StringBuffer.append overloads
2009-08-20 08:59:22 -06:00
Joel Dice
c4b5ecec90
implement Runtime.addShutdownHook and Thread.setDaemon; avoid segfaults due to an application calling e.g. CallStaticBooleanMethod when it really meant CallStaticVoidMethod
2009-08-19 14:27:03 -06:00
Joel Dice
c4edabdc02
implement ClassLoader.resolveClass and ensure class is linked in e.g. Class.getMethods; minor bugfixes
2009-08-18 14:26:28 -06:00
Joel Dice
6d54b6cec8
add classes which I meant to add in earlier commits
2009-08-14 08:51:10 -06:00
Joel Dice
9553d56977
add AccessibleObject.setAccessible(AccessibleObject[],boolean)
2009-08-13 09:03:44 -06:00
Joel Dice
f96fa82607
add methods to Throwable
2009-08-13 09:03:04 -06:00
Joel Dice
017116d060
add ThreadGroup(String) constructor
2009-08-13 09:02:32 -06:00
Joel Dice
0d7a2fa2bc
add methods to StringBuilder and fix logic error in getChars
2009-08-13 09:02:00 -06:00
Joel Dice
ae02212dd9
add a few methods to String; support ISO-8859-1 charset
2009-08-13 09:00:07 -06:00
Joel Dice
864a28f2ce
throw IllegalArgumentException from Enum.valueOf if name does not match any value
2009-08-13 08:57:58 -06:00
Joel Dice
fb37f48237
add various methods to Class and fix getComponentType for primitive arrays
2009-08-13 08:57:06 -06:00
Joel Dice
58e3c3013a
pass start and end indexes to String.getChars in Writer.write, not start and length
2009-08-13 08:55:35 -06:00
Joel Dice
0544ab381f
fix Class.isArray for case this == Class.class
2009-08-12 19:40:52 -06:00
Joel Dice
dd82b58dad
add String.lastIndexOf(String,int); defer to Pattern.split in String.split
2009-08-12 19:39:29 -06:00
Joel Dice
df1aee5981
replace slashes with dots in class name passed to Class.forName in Method.getParameterTypes
2009-08-11 09:25:05 -06:00
Joel Dice
d868815737
put thread into runnable state in Thread.start
2009-08-10 17:36:11 -06:00
Joel Dice
001000364d
add classloader parameter to functions which may directly or indirectly load classes; include methods inherited from interfaces (but not explicitly declared) in method tables and virtual tables of abstract classes
2009-08-10 07:56:16 -06:00
Joel Dice
58c3a37277
specify classloader when calling Class.forCanonicalName in Field and Method; tolerate null argument array in Method.invoke
2009-08-10 07:48:44 -06:00
Joel Dice
5c72746d2c
inherit thread group from current thread
2009-08-10 07:46:59 -06:00
Joel Dice
97ea23e3bb
optionally specify classloader to Class.forCanonicalName
2009-08-10 07:46:05 -06:00
Joel Dice
1a2deff97d
Merge branch 'master' of oss.readytalk.com:/var/local/git/avian
2009-08-09 14:43:53 -06:00
jet
1ffe46a545
added ARM interpreted mode supported
2009-08-06 11:52:36 -06:00
Joel Dice
6d27274aea
update Class.PrimitiveFlag value to reflect change in machine.h; make Class.getName work for primitive types
2009-08-05 15:57:51 +00:00
Joel Dice
2de750768b
add java.lang.reflect.Modifier.isInterface
2009-08-05 14:14:45 +00:00
Joel Dice
7050448ec5
implement Class.{get|set}Signers
2009-08-04 18:31:14 -06:00
Joel Dice
e18ab49f4d
always pass null instance to native version of Method.invoke when invoking static methods
2009-08-04 18:30:16 -06:00
Joel Dice
626c514373
add listFiles and isFile methods to java.io.File
2009-08-04 17:59:07 -06:00
Joel Dice
590238bbfc
add indexOf and lastIndexOf methods to java.util.List
2009-08-04 17:58:31 -06:00
Joel Dice
0a7f94abfe
add java.util.Collection.toArray()
2009-08-04 17:36:25 -06:00
Joel Dice
7911989055
add AbstractList and AbstractSequentialList classes to java.util and listIterator methods to java.util.List
2009-08-04 17:24:29 -06:00
Joel Dice
93597a4d1d
implement ArrayList.listIterator()
2009-08-04 11:34:46 -06:00
Joel Dice
08dd7d0a5a
Merge branch 'gnu'
2009-08-03 09:01:16 -06:00
Joel Dice
80d4385cb8
implement blocking mode for SocketChannel and ServerSocketChannel
2009-08-03 08:58:56 -06:00
Joel Dice
54ceb80116
implement stub versions of java.security classes
2009-08-03 08:56:19 -06:00
Joel Dice
8c18f27e89
avoid NPE in String.equalsIgnoreCase
2009-07-28 17:00:11 -06:00
jent
c2e9b3ed76
Commit to implement property os.arch for use in bug 8574
...
I had thought about using other means, ie using sysctl or utsname for
osx/linux....but this solution is more universal between OS's as well as
provided by the compiler, not via system operations
2009-07-28 10:16:27 -06:00
Joel Dice
30be3945ae
update copyright year in TreeMap.java
2009-07-27 07:55:28 -06:00
Joel Dice
27d863790c
Merge branch 'win64' into gnu
...
Conflicts:
makefile
src/compile-x86.S
src/x86.S
src/x86.cpp
2009-07-25 20:48:36 -06:00
Joel Dice
f869e5be21
Merge branch 'master' into gnu
...
Conflicts:
classpath/java/util/TreeSet.java
2009-07-25 18:38:57 -06:00
Joel Dice
d3a249a3fa
Merge branch 'master' of oss.readytalk.com:/var/local/git/avian
2009-07-25 18:36:27 -06:00
Joel Dice
d327f6ba5a
implement java.util.TreeMap
2009-07-25 15:41:43 -06:00
Joel Dice
29858a5299
implement Selector.selectNow() and select()
2009-07-23 13:08:41 -06:00
Joel Dice
e72ff8db0b
Merge branch 'master' into gnu
...
Conflicts:
src/compile.cpp
2009-07-11 12:11:59 -06:00
Joel Dice
ab5ba9c954
Merge branch 'master' of oss.readytalk.com:/var/local/git/avian
2009-07-10 09:57:29 -06:00
jent
8335dc4297
Now using the CoreServices instead of the Carbon framework....this
...
allows for cocoa and future compatability
2009-07-02 03:30:05 -06:00
jent
8c3d65a835
Hopefully including the top carbon header will fix the issues we had
...
when we tried to include just Gestalt.h
2009-07-02 03:13:39 -06:00
jent
2639d94ebc
Commented out changes to avian till I can figure out why I can compile
...
using the deploy script, but no one else can
2009-07-02 02:24:25 -06:00
jent
3367ac88e3
Added in code to support os.version for Windows/Linux/OSX
...
The make file had to be modified to include the carbon framework in OSX
2009-07-01 09:13:01 -06:00
Eric Scharff
c3c06e4e0e
Fix mac build
...
Remove a compiler error by removing an unnecessary method
2009-06-19 13:43:57 -06:00
Joel Dice
70eedcdf97
replace slashes with dots in value returned by StackTraceElement.getClassName to make Classpath's java.util.logging.Logger happy
2009-06-06 21:08:36 -06:00
Joel Dice
61ba2d617e
meant to include this in the last commit
2009-06-06 20:38:02 -06:00
Joel Dice
20ea82ec2e
various tweaks for Classpath compatibility
2009-06-06 20:32:44 -06:00
Joel Dice
4fca1d64ba
fix thinko in String.regionMatches; ignore case when checking charsetName in String ctor
2009-06-06 20:30:58 -06:00
Joel Dice
a201d28e5c
handle null loader parameter properly in Class.forName
2009-06-06 20:29:15 -06:00
Josh warner
c7e134eb7a
updated machine-word-dependent cast to be agnostic
2009-06-05 14:32:36 -06:00
Josh warner
e8f02be3dd
fix mingw64 build by including direct.h
2009-06-05 14:31:53 -06:00
Josh warner
bcad89dc17
handle null parameter types in various class methods
2009-06-05 14:28:55 -06:00
Joel Dice
16537a32bc
fix logic in Thread.join(long) (second try)
2009-06-04 18:08:51 -06:00
Joel Dice
a064c744f4
fix logic in Thread.join(long)
2009-06-04 18:07:00 -06:00
Joel Dice
44e3ee5bd7
fix misspelling in comment
2009-06-04 18:03:09 -06:00
Joel Dice
d0f11cd2e5
move non-standard classes to avian package
2009-06-04 17:59:34 -06:00
Joel Dice
0857f53651
more progress on GNU Classpath compatibility
2009-06-04 17:21:42 -06:00
Joel Dice
98be5c509e
more progress towards GNU Classpath compatibility
2009-06-03 16:17:55 -06:00
Joel Dice
0615b8a09f
add classes and methods needed for GNU Classpath compatibility
...
Most of these methods are stubs which throw
UnsupportedOperationExceptions for now.
2009-06-02 17:14:38 -06:00
Joel Dice
01f302d4b5
give avian/Continuations a private constructor; documentation tweaks
2009-05-31 14:16:51 -06:00
Joel Dice
9d6a3021ca
make Hashtable.toString synchronized
2009-05-31 14:16:08 -06:00
Joel Dice
f1ff0d75bf
avian.Continuations documentation tweaks
2009-05-29 19:09:32 -06:00
Joel Dice
b5cb1692fb
document avian.Continuations
2009-05-29 18:32:16 -06:00
Joel Dice
9ddbf14b6c
add classpath/avian/Machine.java
2009-05-25 23:31:13 -06:00
Joel Dice
31d9700c9b
move SystemClassLoader and Runtime.dumpHeap to avian package
2009-05-25 21:36:29 -06:00
Joel Dice
d11af47dca
add classpath/avian/IncompatibleContinuationException.java
2009-05-24 18:21:19 -06:00
Joel Dice
364f31b785
finish initial sketch of dynamicWind implementation
2009-05-23 19:49:14 -06:00
Joel Dice
4305fdc7f3
begin dynamicWind implementation
2009-05-23 16:15:06 -06:00
Joel Dice
66c4867f18
more work on continuation support
2009-05-05 18:29:05 -06:00
Joel Dice
abc9da9b31
Merge branch 'master' of oss.readytalk.com:/var/local/git/avian
2009-04-27 14:19:53 +00:00
Joel Dice
605ddffa31
avoid unecessary array copy in Long.toString
2009-04-26 12:46:55 -06:00
Joel Dice
4091e871a7
tolerate null caller in Logger.log
2009-04-25 20:14:29 -06:00
Eric Scharff
ed4c24c7f6
Removed temp files
2009-04-22 16:27:58 -06:00
mweaver
6b89ecd0ee
Like a noob, I missed some things... broke the compilation.
2009-04-22 15:24:26 -06:00
mweaver
f68f1e5888
should be fixed
2009-04-22 11:43:22 -06:00
mweaver
d6fb1e0c7c
Adding changes to fix Map/Collections
...
Merge branch 'master' of ssh://oss.readytalk.com/var/local/git/avian
Conflicts:
classpath/java/util/HashMap.java
classpath/java/util/Map.java
2009-04-22 11:34:32 -06:00
mweaver
34da6da3db
brought in line with Sun's SDK, should no longer break on values call
2009-04-22 10:04:38 -06:00
mweaver
c5dd57f74c
Brought more in line with Sun's SDK
2009-04-22 10:04:23 -06:00
mweaver
9023899c81
Brought interface in line with Sun
2009-04-22 10:03:53 -06:00
Eric Scharff
af784f4cbc
"Fix" Map.containsKey() and Map.containsValue()
...
java.util.Map.containsKey() and java.util.Map.containsValue() take
Object parameters, not K and V. Changed to improve classpath
compatibility.
2009-04-17 08:57:49 -06:00
Joel Dice
d1018bf078
update copyright years
2009-03-15 12:02:36 -06:00
J. Treadwell
8150d4a3b6
added toHexString() to java.lang.Long
2009-03-09 14:54:31 -06:00
Joel Dice
1d04fed6de
implement Collections.shuffle
2009-03-04 08:18:18 -07:00
Joel Dice
8659c709b7
avoid passing null arguments to native methods in SocketChannel
2009-03-02 15:22:17 -07:00
Eric Scharff
bf8c856a3c
Partially handle cascading logging levels.
...
We now maintain a virtual root loger, on which you can set the log
level. When any logger logs, it finds the effective log level by going
up the parent chain, and finding a meaningful log lvel. Thus, one can
now do Logger.getLogger("").setLevel(Level.FINER) and set the log level
for all other loggers (that do not specify their own default) to the
level specified.
2009-02-19 15:53:10 -07:00
Joel Dice
8bcc78b5b7
add InputStreamReader(InputStream,String)
2009-02-16 18:22:19 -07:00
Zsombor
8411cfbe8f
add new constructor to the String :
...
public String(byte bytes[], int offset, int length, String
charsetName)
throws UnsupportedEncodingException;
2009-02-16 18:15:41 -07:00
Zsombor
8c68bc0e1b
add logp methods to Logger
2009-02-16 18:11:05 -07:00
Zsombor
7c1a5fe57d
add level handling to Logger
2009-02-16 18:10:31 -07:00
Zsombor
d682ccaceb
add synchronized map
2009-02-16 17:52:27 -07:00
Zsombor
9ba62e25b9
fix and-ing, or-ing, etc BitSet with variant size
2009-02-16 17:51:37 -07:00
Ryan Forbes
46e19f9c80
Fixed bug where seconds were always zero because % was misspelled as /
2009-02-03 15:30:03 -07:00
Ryan Forbes
277278b331
Fixed off by one in list method.
2009-02-03 15:28:39 -07:00
JET
e86acf4543
added separator to String and added IOException to vm.pro
2009-01-02 13:25:05 -07:00
Joel Dice
7d68c9b0a5
Merge branch 'bootimage' of oss.readytalk.com:/var/local/git/avian
...
Conflicts:
src/heapdump.cpp
2008-12-04 14:29:17 -07:00
Joel Dice
25ade1484a
lots of bugfixes and refactoring
2008-12-01 19:38:00 -07:00
Joel Dice
a3c8a0460d
silence GCC 4.3.2 warning in Java_java_lang_Runtime_exec
2008-11-24 17:03:00 -07:00
Joel Dice
035aa0ecd4
Merge branch 'master' of oss.readytalk.com:/var/local/git/avian into bootimage
...
Conflicts:
src/compile.cpp
src/machine.h
src/util.h
2008-11-23 17:02:34 -07:00
Joel Dice
20cf42c5e4
more work on boot image creation
2008-11-23 16:58:01 -07:00
Joel Dice
fccf906349
add minimal java.net.Socket implementation to support Socket.setTcpNoDelay
2008-11-22 15:32:53 -07:00
J. Treadwell
3001c2067c
changed String(byte[] bytes, String charsetName) to support only UTF-8
2008-11-12 10:19:21 -07:00
J. Treadwell
1f7f9319c3
Added UTF-8 support (still absent with string literals)!
2008-11-11 17:43:11 -07:00
Joel Dice
63c78d9d84
implement ResourceBundle.getKeys
2008-11-03 15:18:44 -07:00
Joel Dice
6a5116e7a7
implement primitive heap dump facility for memory profiling, accessible via Runtime.dumpHeap
...
The proper way to do this is to implement a subset of JVMTI, but this
will do the job for now.
2008-10-21 17:38:20 -06:00
Joel Dice
96d7bf571d
implement a few methods to make SWT 3.4 happy
2008-10-10 11:49:28 -06:00
Joel Dice
f423d39b25
explicitly include stdint.h in java-nio.cpp
2008-10-10 11:49:07 -06:00
Joel Dice
3575e28e87
Merge branch 'master' of oss.readytalk.com:/var/local/git/avian
2008-10-10 10:55:14 -06:00
Frank Jacobs
68513521ef
support building on Windows using MinGW
...
Here is a patch for getting Avian to build in Windows. I used MinGW
and MSYS for the build environment. The patch has the following
changes:
1. java-nio.cpp: Had to add an include and remove a function
declaration that was reported as duplicate.
2. readme.txt: Updated the instructions to include notes about
building on Windows.
3. makefile: Added a conditional for MinGW. I left the existing "ifeq
($(platform),windows)" conditional alone so as to not break
cross-compiled Windows builds. There are some similarities between the
two, so it might be possible to combine portions of them in an elegant
manner. Since I'm not sure how the cross-compiled builds have been
done, I didn't want to mess with that portion of the makefile.
2008-10-10 08:06:31 -06:00
dain
7dbd4903f0
set default locale to en, us
2008-10-09 18:30:24 -06:00
dain
4aa731bacf
implemented getDeclaredConstructor method
2008-10-09 18:29:53 -06:00
dain
b19ce6378a
Add Integer valueOf(String) method
2008-10-08 13:51:19 -06:00
Joel Dice
aeafb52bcb
add ZipFile(File) constructor and ZipFile.close
2008-10-06 17:30:48 -06:00
Joel Dice
114bf777bb
avoid null pointer deref in Java_java_io_RandomAccessFile_open
2008-10-06 17:30:07 -06:00
Joel Dice
ae75be5683
add copyright headers
2008-10-03 14:57:40 -06:00
Joel Dice
2684b7c024
remove debug logging
2008-10-03 14:26:23 -06:00
Joel Dice
4c307ae8c6
implement minimal, read-only versions of RandomAccessFile and ZipFile
2008-10-03 14:15:47 -06:00
Joel Dice
025cf59bb6
Vector.setElementAt should return void
2008-09-26 18:16:35 -06:00
Joel Dice
066714933c
implement Random.nextBytes and Random.nextLong
2008-09-26 15:30:08 -06:00
Joel Dice
a16a00a7fb
implement ByteArrayOutputStream.reset
2008-09-26 15:29:38 -06:00
Joel Dice
93a96f3833
fix backwards logic in Stack.empty
2008-09-26 08:10:16 -06:00
J. Treadwell
8e79618392
added StringBuffer/Builder methods
2008-09-22 09:31:10 -06:00
Joel Dice
27efbcf5e1
fix single-byte BufferedInputStream.read to generate unsigned result
2008-09-02 14:54:34 -06:00
Joel Dice
e0e827596e
make Long.parseLong more efficient
2008-08-29 11:37:53 -06:00
Joel Dice
9017b5996a
implement HashSet.toString
2008-08-22 14:02:38 -06:00
Joel Dice
c8cc7d931b
maintain a table to look up methods called via JNI
...
This simplifies the JNI implementation for looking up methods. It also
fixes a bug where an applications calls GetStaticMethodID with class A
and then calls CallStatic<Type>Method with class B which extends A. The
old code would look in the wrong method table and thus call the wrong
method.
2008-08-15 12:32:33 -06:00
Matt Weaver
56e708aab0
Added the final method "name()", not being used presently, but useful if toString() is overridden.
2008-08-12 16:21:39 -06:00
Joel Dice
86dfaf9ff0
implement ByteBuffer.getInt(int)
2008-08-12 11:09:17 -06:00
Eric Scharff
e45b1f68c7
prepend copyright notice and license to source files
2008-08-05 14:15:10 -06:00
Eric Scharff
7e0941f6fb
Added java.lang.AssertionError
2008-08-05 14:06:37 -06:00
Eric Scharff
f601897d9e
Accept uppercase letters as digits, per the spec for Character.digit
2008-08-05 14:05:36 -06:00
Matt Weaver
0bd29069f4
Added override, soley for documentation purposes (mark methods overriding parent)
2008-07-22 11:33:55 -06:00
Joel Dice
b59422fa94
fix windows build, where hstrerror is not available
2008-07-21 15:29:02 -06:00
Joel Dice
5b94b17ea2
clean up exception handling in java-nio.cpp
2008-07-21 15:35:14 -06:00
Joel Dice
a677a2da17
fix class cast exception in TreeSet ctor
2008-07-17 15:46:54 -06:00
Matt Weaver
244393430d
Merge branch 'master' of git://oss.readytalk.com/avian
2008-07-16 11:26:29 -06:00