Eric Scharff
1d04186a0c
Fixed bug in ByteBuffer.getLong()
2007-10-31 09:27:26 -06:00
Eric Scharff
2fd2df53fd
Fixed thinko in ByteArrayInputStream
2007-10-30 16:52:24 -06:00
Eric Scharff
b85c643251
Minor optimization for ByteArrayInputStream
2007-10-30 15:37:46 -06:00
Eric Scharff
907ce57975
Order of arraycopy backwards
2007-10-30 15:10:32 -06:00
Eric Scharff
df79f410f1
Optimize bulk reads from ByteArrayInputStream
2007-10-30 15:08:49 -06:00
Eric Scharff
958d39aa03
Add debug information for ByteBuffer
2007-10-30 14:55:00 -06:00
Joel Dice
67faa23d83
Merge branch 'master' of dice:git/vm
2007-10-29 15:42:48 -06:00
Joel Dice
956106f518
implement StringBuilder.delete() more efficiently
2007-10-29 15:40:05 -06:00
Eric Scharff
c97b16b8bc
implement a few classpath methods required by SWT for Mac OS X
2007-10-29 15:23:13 -06:00
Eric Scharff
bcd2c75f41
Implements String.delete(char oldChar, String newChar), StringBuffer and
...
StringBuilder delete(int startIndex, int endIndex), and
replace (int startIndex, int endIndex, String replacementString)
2007-10-29 15:07:36 -06:00
Joel Dice
78ee14fff5
Merge branch 'master' of dice:git/vm
2007-10-29 14:57:40 -06:00
Joel Dice
75d4a4ff96
implement a few classpath methods required by SWT for Win32
2007-10-29 14:57:33 -06:00
Eric Scharff
8e95590dea
Added a temporary hack for logging.
...
if the System property rt.log.dir is set, standard logging messages are
written both to standard out and to the file log.txt inside the directory
provided. This allows us to get debugging information quickly.
2007-10-29 12:04:26 -06:00
Joel Dice
09cedfd7cb
make Boolean, Byte, Short, etc. implement Comparable
2007-10-28 18:51:08 -06:00
Joel Dice
6710ca85d7
clean up JNIEXPORT definitions
2007-10-26 18:20:37 -06:00
Joel Dice
8e1637ec6b
Merge branch 'master' of dice:git/vm
2007-10-26 18:05:02 -06:00
Joel Dice
4b92017ea9
fix several win32 bugs in SocketSelector
2007-10-26 18:04:55 -06:00
Eric Scharff
789cc8e9a2
On the Mac, building in the vm object is complicated. Instead,
...
rely on external files.
2007-10-26 16:10:12 -06:00
Joel Dice
f354abb4a0
build fixes and refactoring
2007-10-26 15:02:39 -06:00
Joel Dice
e892f1bff5
refactor System.getProperty() to reduce coupling with native code
2007-10-26 12:13:21 -06:00
Joel Dice
ccdc7fdda3
eliminate bin2c and use objcopy instead to translate binary data to an object file
2007-10-26 11:38:36 -06:00
Eric Scharff
25275933ce
Print line numbers correctly for native and unknown source
2007-10-25 17:57:56 -06:00
Eric Scharff
a81b77a37e
fixes i2f i2d implementation. Fixes image drawing bugs on Mac OS X.
...
Also fixes a crash caused by implementing StringBuffer.toString(float)
2007-10-25 14:26:51 -06:00
Joel Dice
b12b779c7f
add support for passing properties to the VM via JNI; use vm.builtins property to specify builtin libraries
2007-10-25 12:33:43 -06:00
Joel Dice
c694b8c7e6
fix unix build breakage
2007-10-24 15:03:59 -06:00
Joel Dice
eaf1d205cd
more windows port fixes
2007-10-24 11:24:19 -06:00
Joel Dice
5bfd90cfed
more system-specific tweaks for windows port
2007-10-24 10:24:02 -06:00
Joel Dice
ea6f67a7c7
tweak os-specific system properties
2007-10-24 09:44:51 -06:00
Joel Dice
e145d09523
fix posix build breakage
2007-10-23 17:22:42 -06:00
Joel Dice
1381267e70
mork work on the windows port
2007-10-23 11:22:48 -06:00
Eric Scharff
52bc20ace2
Optimized calendar implementation. Year can now be computed with arithmetic,
...
not a loop to find the current year.
2007-10-22 15:53:46 -06:00
Eric Scharff
7eb08c5fc4
If a Calendar changes values, update the (cached) fields.
2007-10-22 12:23:56 -06:00
Eric Scharff
8902cf2a73
Added a working implementation of calendar that fills in the important
...
fields (year, month, day, hour, minute, second) for the Gregorian calendar.
Specifically, it fills in YEAR, MONTH, DAY_OF_MONTH, HOUR_OF_DAY, MINUTE,
and SECOND.
2007-10-22 12:03:15 -06:00
Joel Dice
f84b865f03
implement TreeSet.toString()
2007-10-16 19:17:37 -06:00
Eric Scharff
6be84b4653
Adds some missing methods to TreeSet, which really ought to be an instance of Collection
2007-10-16 12:14:03 -06:00
Eric Scharff
91ffeb6aed
Signature of removeElementAt() was not correct, fixes exception in SWT
2007-10-15 14:06:06 -06:00
Joel Dice
64313aa243
fix return value of HashMap.put()
2007-10-13 15:46:20 -06:00
Eric Scharff
a9bbaff74f
Added Math.ceil() and Math.sin()
2007-10-12 12:53:56 -06:00
Eric Scharff
79ad3bdb76
Exception thrown by ByteBuffer
2007-10-11 17:04:45 -06:00
Eric Scharff
15d1fe8b75
Fix hashmap insertion bug (entire bucket was getting erased in some put() operations)
2007-10-11 17:03:51 -06:00
Eric Scharff
32946417b7
Fixed subtle bug in getLong()
2007-10-11 16:42:33 -06:00
Eric Scharff
3fbe5b9a01
Add Math.pow() and Math.sqrt() native peers
2007-10-11 16:41:52 -06:00
Eric Scharff
9d3027540b
Add meaningful toString() methods
2007-10-11 16:41:07 -06:00
Eric Scharff
00cfa587bc
Various bug fixes and optimizations
2007-10-11 15:41:23 -06:00
Eric Scharff
75c51bb5ec
Added user.home system property
2007-10-11 15:39:21 -06:00
Eric Scharff
db2b7e8fa7
Semantics of getChars was incorrect. It should specify a begin
...
and end index, not a bunch of lengths
2007-10-11 10:00:35 -06:00
Eric Scharff
e831a41e90
Implemented ByteBuffer.clear()
2007-10-11 09:59:52 -06:00
Eric Scharff
b59d234b16
Math.floor() is used by SWT. Defers to the libm (or GCC builtin)
...
for floor
2007-10-11 09:59:22 -06:00
Eric Scharff
782081d1ff
Use custom initialization scheme to allow the java-nio library to be linked without
...
the stdc++ library, using a custom operator new
2007-10-08 13:05:56 -06:00
Eric Scharff
9368dd2acc
Fix another off-by-one error when EOS is hit on the socket
2007-10-07 11:35:48 -06:00