]>
Commit | Line | Data |
---|---|---|
e75a9d77 WL |
1 | 1999-07-02 Warren Levy <warrenl@cygnus.com> |
2 | ||
3 | * java/net/PlainDatagramSocketImpl.java (ttl): Removed. | |
4 | * java/net/natPlainDatagramSocketImpl.cc (setTimeToLive): Implemented. | |
5 | (getTimeToLive): Implemented. | |
6 | (setOption): Implemented IP_MULTICAST_IF. | |
7 | ||
659c26fc BM |
8 | 1999-07-01 Bryce McKinlay <bryce@albatross.co.nz> |
9 | ||
10 | * java/lang/String.java (toString): Check for this == null and throw | |
11 | NullPointerException. | |
12 | ||
cb1902ad WL |
13 | 1999-07-01 Warren Levy <warrenl@cygnus.com> |
14 | ||
15 | * gnu/gcj/convert/BytesToUnicode.java (read): Changed outlength | |
16 | to count and revised comments to match. | |
17 | * gnu/gcj/convert/Input_EUCJIS.java (read): Same as Input_8859_1.java. | |
18 | * gnu/gcj/convert/Input_JavaSrc.java (read): ditto. | |
19 | * gnu/gcj/convert/Input_SJIS.java (read): ditto. | |
20 | * gnu/gcj/convert/Input_UTF8.java (read): ditto. | |
21 | * gnu/gcj/convert/natInput_EUCJIS.cc (read): ditto. | |
22 | * gnu/gcj/convert/natInput_SJIS.cc (read): ditto. | |
23 | ||
24 | 1999-07-01 John-Marc Chandonia <jmc@cmpharm.ucsf.edu> | |
25 | ||
26 | * gnu/gcj/convert/Input_8859_1.java (read): Use 3rd parameter | |
27 | properly as count rather than outlength. | |
28 | * java/io/BufferedOutputStream.java (write(byte[],int,int): Flush | |
29 | output on overflow rather than buffer fill. | |
30 | * java/io/BufferedReader.java (fill): Don't clear out the buffer | |
31 | if markPos is 0 and there is still room in the buffer. | |
32 | ||
0d072f22 AH |
33 | 1999-07-01 Andrew Haley <aph@cygnus.com> |
34 | ||
35 | * include/i386-signal.h: Replace sigaction () with __sigaction (). | |
36 | This is a workaround for a bug in glibc's pthreads package which | |
37 | doesn't deliver any sigcontext information to a signal handler. | |
38 | ||
2dc130a7 TT |
39 | 1999-06-24 Tom Tromey <tromey@cygnus.com> |
40 | ||
41 | * java/lang/e_asin.c: Don't use __int32_t or __uint32_t. | |
42 | * java/lang/fdlibm.h (HUGE): Conditionally define. | |
43 | ||
0d16618c TT |
44 | Fri May 28 22:20:03 1999 Anthony Green <green@cygnus.com> |
45 | ||
46 | * java/lang/fdlibm.h: Don't use __uint32_t. Include mprec.h. | |
47 | * java/lang/e_log.c: Don't use __uint32_t. | |
48 | ||
49 | 1999-05-27 Eric Christopher <echristo@cygnus.com> | |
50 | ||
51 | * configure: Rebuilt | |
52 | * configure.in: Fixed ISO C9X and namespace collision with __uint32_t | |
53 | * acconfig.h: Rebuilt | |
54 | * include/config.h.in: Rebuilt | |
55 | ||
56 | * java/lang/mprec.h, java/lang/e_acos.c, java/lang/e_asin.c, | |
57 | java/lang/e_atan2.c, java/lang/e_exp.c, java/lang/e_fmod.c, | |
58 | e_log.c, java/lang/e_pow.c, java/lang/e_rem_pio2.c, | |
59 | java/lang/e_remainder.c, java/lang/e_sqrt.c, java/lang/fdlibm.h, | |
60 | k_tan.c, java/lang/mprec.h, java/lang/s_atan.c, | |
61 | java/lang/s_ceil.c, java/lang/s_copysign.c, java/lang/s_fabs.c, | |
62 | s_floor.c, java/lang/s_rint.c, java/lang/sf_rint.c: Fixed ISO C9X | |
63 | and namespace collision with __uint32_t | |
64 | ||
34043bd2 TT |
65 | 1999-06-23 Tom Tromey <tromey@cygnus.com> |
66 | ||
67 | * java/util/zip/InflaterInputStream.java (read): Throw | |
68 | ZipException if inflater throws a DataFormatException. | |
69 | ||
05dfd09c WL |
70 | 1999-06-23 Warren Levy <warrenl@cygnus.com> |
71 | ||
72 | * java/net/DatagramSocketImpl.java (localPort): Fixed typo to match JDK. | |
73 | * java/net/natPlainDatagramSocketImpl.cc (bind): ditto. | |
74 | * java/text/ChoiceFormat.java (nextDouble(double, boolean)): Method | |
75 | is not final per JDK. | |
76 | * java/util/PropertyResourceBundle.java (handleGetObject): Method is | |
77 | public per JDK. | |
78 | * java/util/zip/DataFormatException.java: Class extends Exception. | |
79 | * java/util/zip/Deflater.java (finalize): Method is protected per JDK. | |
80 | * java/util/zip/ZipEntry.java: Class implements ZipConstants. | |
81 | * java/util/zip/ZipInputStream.java: ditto. | |
82 | (closeEntry): Changed method name to match JDK spec. | |
83 | ||
b48ed568 TT |
84 | 1999-06-21 Tom Tromey <tromey@cygnus.com> |
85 | ||
e8d49b5b TT |
86 | * java/lang/ieeefp.h (__IEEE_LITTLE_ENDIAN): Define for alpha. |
87 | From Jeff Sturm. | |
88 | ||
b48ed568 TT |
89 | * Makefile.in: Rebuilt. |
90 | * Makefile.am (toolexeclibdir): Define as libdir when | |
91 | appropriate. | |
92 | * configure: Rebuilt. | |
93 | * configure.in (USE_LIBDIR): New conditional. | |
94 | ||
e0cb3930 BM |
95 | 1999-06-18 Bryce McKinlay <bryce@albatross.co.nz> |
96 | ||
97 | * java/net/natInetAddress.cc (lookup): Preserve caller-supplied | |
98 | hostname in returned InetAddress objects. | |
99 | (getLocalHostname): Fix typo. | |
100 | * java/net/InetAddress.java (getByName): Set hostname on return | |
101 | object. | |
102 | (getLocalHost): Call lookup directly to ensure that a fully-qualified | |
103 | name is returned. | |
104 | ||
1920afb3 BM |
105 | 1999-06-17 Bryce McKinlay <bryce@albatross.co.nz> |
106 | ||
107 | * java/net/natPlainSocketImpl.cc (bind): Bind to any/all network | |
108 | interfaces if host==NULL. | |
109 | (accept): Throw message with InterruptedIOException. | |
110 | (getOption): Cache localAddress. | |
111 | * java/net/natPlainDatagramSocketImpl.cc (bind): Don't need | |
112 | 'address' for DatagramSocket. | |
113 | (setTimeToLive): Fix compiler warnings. | |
114 | (getOption): Cache localAddress. | |
115 | * java/net/Socket.java (getLocalAddress): Don't need local | |
116 | InetAddress object. Add FIXME comment about calling checkConnect(). | |
117 | * java/net/ServerSocket.java (ServerSocket(int)): Initialize | |
118 | connection queue to 50 as per JDK 1.2 docs. | |
119 | (ServerSocket(int,int)): Listen on all network interfaces by | |
120 | default, per JDK 1.2 docs. | |
121 | * java/net/PlainDatagramSocketImpl.java: Don't need 'address'. | |
122 | Add localAddress caching. | |
123 | ||
cb81310a BM |
124 | 1999-06-15 Bryce McKinlay <bryce@albatross.co.nz> |
125 | ||
126 | * java/io/FilterOutputStream.java (write(byte[])): Rewrite according | |
127 | to JDK 1.2 docs. | |
128 | (write(byte[],int,int)): ditto. | |
129 | ||
00af55a2 BM |
130 | 1999-06-14 Bryce McKinlay <bryce@albatross.co.nz> |
131 | ||
132 | * posix-threads.cc (_Jv_CondWait): Fix currentTimeMillis() overflow. | |
133 | ||
2fdf4c3e WL |
134 | 1999-06-11 Warren Levy <warrenl@cygnus.com> |
135 | ||
136 | * mauve-libgcj: Activated java.net Mauve tests. | |
137 | ||
53dfe297 | 138 | 1999-06-10 Bryce McKinlay <bryce@albatross.co.nz> |
00af55a2 | 139 | |
53dfe297 BM |
140 | * java/net/natInetAddress.cc (aton): Fix typos. |
141 | (lookup): Use a bigger buffer size for gethostbyname_r on all | |
142 | versions of glibc. Updated FIXME comment explaining this. | |
143 | Modified while loops to not set herr = ERANGE to work around glibc | |
144 | problems. Use user specified hostname in InetAddress result when | |
145 | available (consistent with JDK). | |
146 | ||
a21f23fc WL |
147 | 1999-06-10 Warren Levy <warrenl@cygnus.com> |
148 | ||
149 | * java/io/FileDescriptor.java (FileDescriptor(String, int)): | |
150 | Throw FileNotFoundException instead of IOException. | |
151 | (open): ditto. | |
152 | * java/io/FileInputStream.java (FileInputStream): Doesn't throw | |
153 | IOException. | |
154 | * java/text/Collator.java (CANONICAL_DECOMPOSITION): Fixed typo | |
155 | in static field name. | |
daf469e2 WL |
156 | * java/text/DecimalFormat.java: Throw IllegalArgumentException |
157 | throughout rather than ParseException. | |
a21f23fc | 158 | |
00af55a2 | 159 | 1999-06-09 Bryce McKinlay <bryce@albatross.co.nz> |
1e45a141 BM |
160 | |
161 | * java/lang/Runtime.java (exec): Convert prog name and arguments | |
162 | to string array. | |
163 | * java/lang/natPosixProcess.cc (startProcess): Fix typo in | |
164 | environment array conversion. Preserve current environment if envp | |
165 | not passed. Preserve PATH unless explicitly specified. | |
166 | * java/io/DataInputStream.java (readLine): Fix case where '\r' is | |
167 | followed by EOF. Set a flag when a line is terminated by '\r' and | |
168 | ignore following '\n' if set. | |
169 | ||
a259a248 WL |
170 | 1999-06-02 Warren Levy <warrenl@cygnus.com> |
171 | ||
172 | * java/net/URL.java (URL(URL,String)): Initialize port to -1. | |
173 | Ignore context if spec is an absolute URL. Fix braindead | |
174 | string comparison. | |
175 | (hashCode): Use JDK 1.2 style algorithm. | |
176 | * java/net/URLStreamHandler.java (parseURL): Reimplement to handle | |
177 | context URL properly. | |
178 | ||
179 | 1999-05-30 Anthony Green <green@cygnus.com> | |
180 | ||
181 | * java/net/URLStreamHandler.java (parseURL): Parse relative URLs | |
1920afb3 | 182 | correctly. Clean up "/../" an\e[Bd "/./" path fragments. |
a259a248 | 183 | |
07515641 WL |
184 | 1999-05-28 Warren Levy <warrenl@cygnus.com> |
185 | ||
186 | * java/net/DatagramSocket.java (laddr): Removed. | |
187 | (DatagramSocket): Removed attempts to get or set laddr if null. | |
188 | (getLocalAddress): Reimplemented per spec. | |
189 | * java/net/MulticastSocket.java (setTimeToLive): Throw exception | |
190 | when ttl is 0. | |
191 | (joinGroup): Throw NullPointerException if any argument is null. | |
192 | (leaveGroup): ditto. | |
193 | * java/net/PlainDatagramSocketImpl.java: Updated comments. | |
194 | * java/net/PlainSocketImpl.java (timeout): Added. | |
195 | (getInputStream): Added FIXME comment on how to support timeouts | |
196 | for TCP. | |
197 | * java/net/ServerSocket.java (ServerSocket): Added FIXME comment. | |
198 | * java/net/Socket.java: Added FIXME comments to identify | |
199 | conflicting specs between the JCL and JDK 1.2 documents. | |
200 | * java/net/natPlainDatagramSocketImpl.cc (bind): Use INADDR_ANY | |
201 | if host is null. Get localport value resolved by kernel if bind | |
202 | lport is 0. | |
203 | (receive): Implemented support for timeouts in UDP. | |
204 | (setOption): Implemented based on natPlainSocketImpl version. | |
205 | (getOption): ditto. | |
206 | * java/net/natPlainSocketImpl.cc (bind): Get localport value | |
207 | resolved by kernel if bind lport is 0. | |
208 | (connect): Get localport value resolved by kernel if bind wasn't | |
209 | done to set localport. | |
210 | (accept): Implemented support for timeouts for ServerSocket. | |
211 | (setOption): Save value for SO_TIMEOUT. | |
212 | (getOption): Return timeout for SO_TIMEOUT. | |
213 | ||
f2ed9e96 WL |
214 | 1999-05-26 Bryce McKinlay <bryce@albatross.co.nz> |
215 | ||
216 | * java/net/DatagramSocket.java (getSoTimeout): Verify class type. | |
217 | * java/net/DatagramSocketImpl.java (getOption): Made abstract. | |
218 | (setOption): Made abstract. | |
219 | * java/net/PlainDatagramSocketImpl.java: Mirror SocketOptions fields | |
220 | to avoid cpp conflicts in native code. | |
221 | * java/net/PlainSocketImpl.java: Mirror SocketOptions fields to avoid | |
222 | cpp conflicts in native code. | |
223 | * java/net/ServerSocket.java (toString): Prepended "ServerSocket". | |
224 | * java/net/Socket.java (getLocalAddress): Implemented. | |
225 | (setTcpNoDelay): Implemented. | |
226 | (getTcpNoDelay): Implemented. | |
227 | (setSoLinger): Implemented. | |
228 | (getSoLinger): Implemented. | |
229 | (getSoTimeout): Verify class type. | |
230 | (setSendBufferSize): Implemented. | |
231 | (getSendBufferSize): Implemented. | |
232 | (setReceiveBufferSize): Implemented. | |
233 | (getReceiveBufferSize): Implemented. | |
234 | (toString): Prepended "Socket". | |
235 | * java/net/SocketImpl.java (toString): Rewritten. | |
236 | (getOption): Made abstract. | |
237 | (setOption): Made abstract. | |
238 | * java/net/natPlainSocketImpl.cc (connect): Set localport properly. | |
239 | (setOption): Implemented. | |
240 | (getOption): Implemented. | |
241 | ||
242 | 1999-05-26 Warren Levy <warrenl@cygnus.com> | |
243 | ||
244 | * java/net/DatagramSocket.java (DatagramSocket): Get local host | |
245 | address when null. Set SO_REUSEADDR for multicasts. | |
246 | (getSoTimeout): Implemented. | |
247 | (setSoTimeout): Implemented. | |
248 | * java/net/DatagramSocketImpl.java: Implement SocketOptions interface. | |
249 | * java/net/MulticastSocket.java (getInterface): Implemented. | |
250 | (setInterface): Implemented. | |
251 | (setTimeToLive): Check for invalid ttl. | |
252 | (joinGroup): Verify multicast address and security. | |
253 | (leaveGroup): Verify multicast address and security. | |
254 | (send): Implemented. | |
255 | * java/net/PlainDatagramSocketImpl.java (timeout): Added. | |
256 | (iface): Added. | |
257 | (ttl): Added. | |
258 | (setOption): Added. | |
259 | (getOption): Added. | |
260 | (mcastGrp): Added. | |
261 | (getTTL): Implemented as non-native. | |
262 | (setTTL): ditto. | |
263 | (join): ditto. | |
264 | (leave): ditto. | |
265 | * java/net/ServerSocket.java (setSoTimeout): Implemented. | |
266 | (getSoTimeout): Implemented. | |
267 | (setSocketFactory): Made synchronized. | |
268 | * java/net/Socket.java (setSoTimeout): Implemented. | |
269 | (getSoTimeout): Implemented. | |
270 | (close): Made synchronized. | |
271 | (setSocketImplFactory): Made synchronized. | |
272 | * java/net/SocketImpl.java: Implement SocketOptions interface. | |
273 | * java/net/natInetAddress.cc: Corrected module name at top of file. | |
274 | * java/net/natPlainDatagramSocketImpl.cc (McastReq): Added union. | |
275 | (bind): Added FIXME. | |
276 | (peek): Implemented. | |
277 | (setTTL): Removed. | |
278 | (getTTL): Removed. | |
279 | (join): Removed. | |
280 | (leave): Removed. | |
281 | (mcastGrp): Added. | |
282 | (setOption): Implemented for SO_REUSEADDR. | |
283 | (getOption): Implemented for SO_REUSEADDR. | |
284 | ||
a81eb010 TT |
285 | 1999-05-24 Tom Tromey <tromey@cygnus.com> |
286 | ||
287 | * java/util/ResourceBundle.java (getBundle): Throw | |
288 | NullPointerException if baseName is null. | |
289 | ||
93d627ac TT |
290 | 1999-05-22 Tom Tromey <tromey@cygnus.com> |
291 | ||
292 | * java/util/zip/ZipInputStream.java (fill): New method. | |
293 | (compressed_len): New instance variable. | |
294 | (getNextStream): Set it. | |
295 | (read): Reset inflater on EOF. Only read via `super' if entry is | |
296 | deflated. | |
297 | (skip): Only skip via `super' if entry is deflated. | |
298 | * java/util/zip/Deflater.java (last_input_count): Removed. | |
299 | * java/util/zip/natDeflater.cc (deflate): Return 0 if input array | |
300 | is length 0. | |
301 | (needsInput): Don't use last_input_count. | |
302 | (setInput): Don't set last_input_count. | |
303 | * java/util/zip/natInflater.cc (getRemaining): Return correct | |
304 | result. | |
305 | (inflate): Return 0 if input array is length 0. | |
306 | (setInput): Don't set last_input_count. | |
307 | * java/util/zip/Inflater.java (last_input_count): Removed. | |
308 | ||
41e0e0cd TT |
309 | 1999-05-21 Tom Tromey <tromey@cygnus.com> |
310 | ||
311 | * Makefile.in: Rebuilt. | |
312 | * Makefile.am (INCLUDES): Added $(ZINCS). | |
313 | * configure: Rebuilt. | |
314 | * configure.in (ZINCS): New subst. | |
315 | ||
21635bd6 AH |
316 | 1999-05-21 Andrew Haley <aph@cygnus.com> |
317 | ||
318 | * include/sparc-signal.h (INIT_FPE, INIT_SEGV): SA_NODEFER added | |
319 | to signal options to allow the same exceptions to be rethrown | |
320 | later. | |
321 | ||
554b61bb AH |
322 | 1999-05-20 Andrew Haley <aph@cygnus.com> |
323 | ||
324 | * libjava/prims.cc (catch_fpe): Call to HANDLE_DIVIDE_OVERFLOW | |
325 | added. | |
326 | * include/i386-signal.h (HANDLE_DIVIDE_OVERFLOW): New macro. | |
327 | (INIT_FPE): Exception string made more informative. | |
328 | * include/sparc-signal.h (INIT_FPE): Exception string made more | |
329 | informative. | |
330 | * testsuite/libjava.lang/Divide_1.java: New file. | |
331 | * testsuite/libjava.lang/Divide_1.out: New file. | |
332 | ||
3f969ec0 TT |
333 | 1999-05-19 Tom Tromey <tromey@cygnus.com> |
334 | ||
550c2492 TT |
335 | * aclocal.m4, configure: Rebuilt. |
336 | * acinclude.m4 (version): New variable; pass to AM_INIT_AUTOMAKE. | |
337 | ||
2d40265f TT |
338 | * java/util/zip/GZIPOutputStream.java (write(byte[])): New |
339 | method. | |
340 | ||
6ada3468 TT |
341 | * java/util/zip/natInflater.cc (inflate): Cast `len' to unsigned. |
342 | Include <stdlib.h>. | |
343 | * java/util/zip/natDeflater.cc (deflate): Cast `len' to unsigned. | |
344 | Include <stdlib.h>. | |
345 | (update): Fail in default case. Always initialize `strat'. | |
346 | ||
3f969ec0 TT |
347 | * mauve-libgcj: Enable java.util.zip. |
348 | ||
39b1a058 WL |
349 | 1999-05-18 Warren Levy <warrenl@cygnus.com> |
350 | ||
351 | * Makefile.am (ordinary_java_source_files): Added DatagramPacket.java, | |
352 | DatagramSocket.java, DatagramSocketImpl.java, MulticastSocket.java, | |
353 | PlainDatagramSocketImpl.java, and SocketOptions.java. | |
354 | (nat_source_files): Added natPlainDatagramSocketImpl.cc. | |
355 | * Makefile.in: Rebuilt. | |
356 | ||
357 | * java/net/DatagramPacket.java: New file. | |
358 | * java/net/DatagramSocket.java: New file. | |
359 | * java/net/DatagramSocketImpl.java: New file. | |
360 | * java/net/MulticastSocket.java: New file. | |
361 | * java/net/PlainDatagramSocketImpl.java: New file. | |
362 | * java/net/SocketOptions.java: New file. | |
363 | * java/net/natPlainDatagramSocketImpl.cc: New file. | |
364 | ||
0ffac832 TT |
365 | 1999-05-18 Tom Tromey <tromey@cygnus.com> |
366 | ||
367 | * java/util/zip/ZipOutputStream.java (level): Initial value is | |
368 | Deflater.DEFAULT_COMPRESSION. | |
369 | (close): New method. | |
370 | (closeEntry): Likewise. | |
371 | (finish): Likewise. | |
372 | (put_version): Likewise. | |
373 | (write_entry): Likewise. | |
374 | (put2, put4): Now return `int'. | |
375 | (comment): Default to empty string. | |
376 | (bytes_written): New instance variable. | |
377 | (chain): Likewise. | |
378 | * java/util/zip/ZipEntry.java (setComment): Limit length of | |
379 | comment string. | |
380 | (setCrc): Check CRC validity. | |
381 | (setExtra): Check argument validity. | |
382 | (setMethod): Likewise. | |
383 | (setSize): Likewise. | |
384 | (ZipEntry): Likewise. | |
385 | * include/javaprims.h: Updated namespace declarations. | |
386 | * Makefile.in: Rebuilt. | |
387 | * Makefile.am (ordinary_java_source_files): Mention new files. | |
388 | (nat_source_files): Likewise. | |
389 | * java/util/zip/ZipFile.java (readu2): Throw ZipException, not | |
390 | EOFException. | |
391 | (read4): Likewise. | |
392 | (getInputStream): Handle compressed entries. | |
393 | * java/util/zip/GZIPOutputStream.java: New file. | |
394 | * java/util/zip/GZIPInputStream.java: New file. | |
395 | * java/util/zip/DataFormatException.java: New file. | |
396 | * java/util/zip/CheckedInputStream.java: New file. | |
397 | * java/util/zip/CheckedOutputStream.java: New file. | |
398 | * java/util/zip/InflaterInputStream.java: Implemented. | |
399 | * java/util/zip/natInflater.cc: New file. | |
400 | * java/util/zip/Deflater.java: Implemented. | |
401 | * java/util/zip/natDeflater.cc: New file. | |
402 | * java/util/zip/DeflaterOutputStream.java: Implemented. | |
403 | ||
404 | * java/util/zip/ZipInputStream.java (closeZipEntry): Throw | |
405 | ZipException, not IOException. | |
406 | * java/util/zip/ZipFile.java (readDirectory): Throw ZipException, | |
407 | not IOException. | |
408 | ||
a1b7f572 TT |
409 | 1999-05-17 Tom Tromey <tromey@cygnus.com> |
410 | ||
411 | * java/lang/natSystem.cc (init_properties): URL now points to | |
412 | sourceware. | |
413 | ||
68ca6de4 PB |
414 | 1999-05-12 Per Bothner <bothner@cygnus.com> |
415 | ||
416 | * java/util/Calendar.java (set): First call computeFields if needed. | |
417 | * java/util/natGregorianCalendar.cc (computeTime): Cast 1000 to jlong. | |
418 | ||
4b7f154f TT |
419 | 1999-05-12 Tom Tromey <tromey@cygnus.com> |
420 | ||
421 | * configure: Rebuilt. | |
422 | * configure.in: Look for -ldl when using the Boehm collector. | |
423 | Look for sched_yield in -lposix4. | |
424 | ||
c41dc2ff PB |
425 | 1999-05-12 Per Bothner <bothner@cygnus.com> |
426 | ||
427 | * java/io/File.java (mkdirs): Handle a null parent directory. | |
428 | ||
42962a48 TT |
429 | 1999-05-12 Tom Tromey <tromey@cygnus.com> |
430 | ||
431 | * include/javaprims.h: Updated namespace declarations. | |
432 | * classes.pl (scan): Uniquify class list. | |
433 | * Makefile.in, configure: Rebuilt. | |
434 | * Makefile.am (nat_source_files): Added natConcreteProcess.cc. | |
435 | (built_java_source_files): New macro. | |
436 | (nat_headers): Added built_java_source_files. | |
437 | (javao_files): Likewise. | |
438 | (EXTRA_libgcj_la_SOURCES): Likewise. | |
439 | (libgcj.zip): Create built class files. | |
440 | ($(built_java_source_files:.java=.class)): New target. | |
441 | (jv_convert_LDADD): Added -L$(here)/.libs. | |
442 | * configure.in: Create links for ConcreteProcess.java and | |
443 | natConcreteProcess.cc. | |
444 | * java/lang/Runtime.java (exec): Create a ConcreteProcess. | |
445 | * java/lang/natEcosProcess.cc: New file. | |
446 | * java/lang/EcosProcess.java: New file. | |
447 | * java/lang/PosixProcess.java: New file. | |
448 | * java/lang/natPosixProcess.cc: New file. | |
449 | ||
7d9a55eb WL |
450 | 1999-05-12 Warren Levy <warrenl@cygnus.com> |
451 | ||
452 | * java/net/PlainSocketImpl.java: Corrected copyright & header comments. | |
453 | * java/net/SocketImpl.java: Added marker for JDK 1.2 work. | |
454 | * java/net/natPlainSocketImpl.cc (bind): Throw BindException. | |
455 | (connect): Throw ConnectException. | |
456 | ||
f994389b TT |
457 | 1999-05-11 Tom Tromey <tromey@cygnus.com> |
458 | ||
81d4a072 TT |
459 | * Makefile.in: Rebuilt. |
460 | * Makefile.am (jv_convert_DEPENDENCIES): Include libgcj.spec. | |
461 | * libgcj.spec.in: Don't use `+'. Instead, put old lib spec after | |
462 | our libraries. | |
463 | ||
fc9527b3 TT |
464 | * Makefile.in: Rebuilt. |
465 | * Makefile.am (jv_convert_LDADD): Removed `-L.'; it is not needed | |
466 | and it causes problems with libtool. | |
467 | ||
f994389b TT |
468 | * Makefile.in, configure: Rebuilt. |
469 | * Makefile.am (jv_convert_LDFLAGS): Removed -nodefaultlibs. | |
470 | (jv_convert_LDADD): Added ZLIBS. Removed -lm, -lc, -lgcc. | |
471 | (jv_convert_DEPENDENCIES): Added ZDEPS. | |
472 | * configure.in (GCSPEC): Added `-L' to point to boehm-gc build | |
473 | directory. | |
474 | (THREADSPEC): Added `-L' to point to qthreads build directory. | |
475 | (ZLIBS): New subst. | |
476 | (ZDEPS): New subst. | |
477 | ||
478 | * configure, Makefile.in: Rebuilt. | |
479 | * Makefile.am (toolexeclib_DATA): New macro. | |
480 | * configure.in: Create libgcj.spec. Look for -lsocket and -lnsl. | |
481 | Recognize --with-system-zlib. | |
482 | (GCSPEC): New subst. | |
483 | (THREADSPEC): New subst. | |
484 | (SYSTEMSPEC): New subst. | |
485 | (ZLIBSPEC): New subst. | |
486 | * libgcj.spec.in: New file. | |
487 | ||
a31b081d TT |
488 | 1999-05-10 Tom Tromey <tromey@cygnus.com> |
489 | ||
9733e4ee TT |
490 | * java/io/InputStreamReader.java (read): If length is 0, return |
491 | 0. Reset `wpos' and `wcount' when buffer has been filled and | |
492 | emptied. | |
493 | ||
494 | * java/util/Properties.java (save): Removed `FIXME' comment. | |
495 | (load): Invalid characters in \u now treated as terminators. | |
496 | Make sure to append character resulting from `\' handling. | |
497 | Cast to `char' when appending to key or value. | |
498 | (skip_ws): Inverted test for whitespace. | |
499 | ||
f2646f9c TT |
500 | * java/io/RandomAccessFile.java (RandomAccessFile): Removed |
501 | `FIXME' comment. | |
502 | (readLine): Likewise. | |
503 | (readFully): Implemented. | |
504 | ||
a619dc1e TT |
505 | * java/lang/natObject.cc (sync_init): Use _Jv_AllocBytesChecked. |
506 | ||
d5dde534 TT |
507 | * java/awt/natToolkit.cc: Added copyright header. |
508 | * java/util/zip/InflaterInputStream.java: Added copyright header. | |
509 | ||
510 | * java/io/FilterWriter.java (FilterWriter): Removed `FIXME' | |
511 | comment. | |
512 | * java/io/SequenceInputStream.java (SequenceInputStream): Removed | |
513 | `FIXME' comment. | |
514 | (getNextStream): Likewise. | |
515 | ||
2b607265 TT |
516 | * java/util/ResourceBundle.java (partialGetBundle): Explicitly use |
517 | locale.toString(). | |
518 | (getBundle): Don't explicitly throw null pointer exception. | |
519 | ||
a31b081d TT |
520 | * gnu/gcj/RawData.java: Added copyright header. |
521 | ||
522 | * include/jni.h (_Jv_va_list): Always define as va_list. | |
523 | ||
e3884aee AG |
524 | 1999-05-9 Anthony Green <green@cygnus.com> |
525 | ||
526 | * java/text/DateFormat.java (computeInstance): Separate time | |
527 | and date styles. | |
528 | (getDateTimeInstance): Ditto. | |
529 | (getDateTimeInstance(int,int)): New method. | |
530 | ||
531 | * Makefile.in: Rebuilt. | |
532 | * Makefile.am (ordinary_java_source_files): Add new classes. | |
533 | ||
534 | * java/util/PropertyResourceBundle.java: New file. | |
535 | * gnu/gcj/util/EnumerationChain.java: New file. | |
536 | ||
1040ca3d TT |
537 | 1999-05-07 Tom Tromey <tromey@cygnus.com> |
538 | ||
01b02b11 TT |
539 | * acconfig.h (GCJVERSION): New undef. |
540 | * java/lang/natSystem.cc (init_properties): Define java.version, | |
541 | java.class.version, os.name, os.arch, os.version. | |
542 | Include <sys/utsname.h> if required. | |
543 | * configure: Rebuilt. | |
544 | * configure.in: Compute and define GCJVERSION. | |
545 | ||
546 | * java/lang/natSystem.cc (default_file_encoding): Now static. | |
547 | ||
c59c5e9a TT |
548 | * java/lang/natCharacter.cc (isLowerCase): Use a binary search. |
549 | ||
a06fcbd4 TT |
550 | * libtool-version: New file. |
551 | * Makefile.in: Rebuilt. | |
552 | * Makefile.am (libgcj_la_LDFLAGS): Use -version-info, not | |
553 | -release. | |
554 | ||
109257e9 TT |
555 | * mauve-libgcj: Don't omit Utf8Encoding or StringTest. |
556 | Comment out FieldPosition, ParsePosition, and SimpleDateFormat | |
557 | again (oops). | |
558 | ||
1040ca3d TT |
559 | * mauve-libgcj: Test more from java.text. Don't mention 1.1 tests |
560 | (we pick those up already). | |
561 | ||
775de547 PB |
562 | 1999-05-05 Per Bothner <bothner@cygnus.com> |
563 | ||
564 | * java/awt/*: Check a bunch of classes, a few complete, but mostly | |
565 | stub classes. (This is enough to get Kawa to compile against libgcj.) | |
566 | ||
567 | * gnu/gcj/RawData.java: New class. | |
568 | * doc/cni.sgml: Document RawData. | |
569 | ||
570 | * java/util/zip/InflaterInputStream.java: New stub class. | |
571 | * java/util/zip/ZipInputStream.java: New class. Partly works. | |
572 | * java/util/zip/ZipConstants.java: Add two (internal) constants. | |
573 | * java/util/zip/ZipEntry.java (timeFromDOS): New static method. | |
574 | * java/util/zip/ZipFile.java: Now mostly works (unless compressed). | |
575 | * java/util/zip/ZipOutputStream.java: Start implementation. | |
576 | ||
577 | * java/lang/natSystem.cc (DEFAULT_FILE_ENCODING): New macro. | |
578 | (default_file_encoding): New global, initial value is above macro. | |
579 | (init_properties): Default file.encoding to default_file_encoding. | |
580 | ||
581 | * Makefile.am: Add new classes. | |
582 | ||
9096b279 TT |
583 | 1999-05-05 Tom Tromey <tromey@cygnus.com> |
584 | ||
585 | * Makefile.in: Rebuilt. | |
586 | * Makefile.am (CLEANFILES): Don't mention $(class_files). | |
587 | (clean-local): New target | |
588 | ||
589 | * java/lang/natRuntime.cc: Include <ltdl.h> if required. | |
590 | (load, loadLibrary): Now native. | |
591 | (init): New method. | |
592 | * java/lang/Runtime.java (load, loadLibrary): Now native. | |
593 | (init): New native method. | |
594 | (Runtime): Use init. | |
595 | * prims.cc: Include <ltdl.h> if required. | |
596 | (JvRunMain): Call LTDL_SET_PRELOADED_SYMBOLS. | |
597 | ||
395e3bf9 GZ |
598 | 1999-05-05 Gilles Zunino <Gilles.Zunino@hei.fr> |
599 | ||
600 | * configure.in: Switch from irix threads to posix threads | |
601 | * configure: Regenerate. | |
602 | ||
d8f8e9ba TT |
603 | 1999-04-30 Tom Tromey <tromey@cygnus.com> |
604 | ||
605 | * Makefile.in: Rebuilt. | |
606 | * Makefile.am (jv_convert_LDADD): Added -lgcc. | |
607 | ||
a0e894a8 TT |
608 | 1999-04-29 Tom Tromey <tromey@cygnus.com> |
609 | ||
610 | * java/lang/StringBuffer.java (ensureCapacity): Don't resize | |
611 | vector when shared. | |
612 | ||
613 | * java/util/Locale.java (Locale(String,String)): Implement in | |
614 | terms of 3-argument version; variant now defaults to empty | |
615 | string. | |
616 | (toString): Assume variant is not null. | |
617 | (equals): Assume all strings are not null. | |
618 | (Locale): Throw NullPointerException if any argument is null. | |
619 | ||
620 | * java/util/ResourceBundle.java (getBundle): Don't try the base | |
621 | name; now implicit in partialGetBundle call. | |
622 | (trySomeGetBundle): Search for parent bundles and call setParent | |
623 | as required. | |
624 | (partialGetBundle): Added `langStop' argument. Use | |
625 | `Locale.toString' to compute bundleName. | |
626 | (resource_cache): New static field. | |
627 | (partialGetBundle): Cache the returned resource bundle. Now | |
628 | synchronized. | |
629 | ||
630 | * gnu/gcj/text/LocaleData_en.java (contents): [collatorRule] Added | |
631 | missing `<'. | |
632 | ||
633 | * mauve-libgcj: Enable Collator and RuleBasedCollator. | |
634 | * java/text/natCollator.cc (decomposeCharacter): `base' now | |
635 | `const'. | |
636 | * Makefile.in: Rebuilt. | |
637 | * Makefile.am (ordinary_java_source_files): Added | |
638 | CollationElementIterator, CollationKey, Collator, | |
639 | RuleBasedCollator. | |
640 | (nat_source_files): Added natCollator.cc. | |
641 | * java/text/RuleBasedCollator.java (ceiNext): No longer static. | |
642 | (compare): Pass `this' to CollationElementIterator constructor. | |
643 | (getCollationElementIterator): Likewise. | |
644 | (ceiNext): Fix off-by-one error when finding initial substring. | |
645 | (next): Correctly mask off bits when computing return value. | |
646 | Fixed return values when one string is shorter than the other. | |
647 | * java/text/CollationElementIterator.java (collator): New field. | |
648 | (CollationElementIterator): Added collator argument. | |
649 | (next): Call ceiNext on collator object. | |
650 | ||
d5d9a8b6 TT |
651 | 1999-04-26 Tom Tromey <tromey@cygnus.com> |
652 | ||
6c269730 TT |
653 | * natCollator.cc: New file. |
654 | ||
3cc26081 TT |
655 | * java/util/GregorianCalendar.java (setDefaultTime): New method. |
656 | (GregorianCalendar): Use it in all constructors. | |
657 | * java/util/Calendar.java (Calendar): Changed argument name to | |
658 | `zone' to match code. | |
659 | ||
660 | * gnu/gcj/text/LocaleData_en.java: Added collatorRule element. | |
661 | * java/text/CollationKey.java: New file. | |
662 | * java/text/CollationElementIterator.java: New file. | |
663 | * java/text/Collator.java: New file. | |
664 | * java/text/RuleBasedCollator.java: New file. | |
665 | ||
d5d9a8b6 TT |
666 | * Makefile.in: Rebuilt. |
667 | * Makefile.am (jv_convert_LDFLAGS): Added -nodefaultlibs. | |
668 | (jv_convert_LDADD): Explicltly add -lm -lc. | |
669 | ||
a3ffcff3 TT |
670 | 1999-04-26 Tom Tromey <tromey@cygnus.com> |
671 | ||
672 | * configure, Makefile.in: Rebuilt. | |
673 | * configure.in: Added AM_PROG_LIBTOOL. | |
674 | (GCOBJS): Use `.lo' form of files. | |
675 | (THREADOBJS): Likewise. | |
676 | (GCDEPS): Use `.la' form of library. | |
677 | (GCLIBS): Set to be the same as GCDEPS. | |
678 | (THREADDEPS): Use `.la' form of library. | |
679 | (THREADLIBS): Set to be the same as THREADDEPS. | |
680 | * Makefile.am (toolexeclib_LTLIBRARIES): Renamed from | |
681 | toolexeclib_LIBRARIES. | |
682 | (libgcj_la_SOURCES): Renamed for libtoolization. | |
683 | (EXTRA_libgcj_la_SOURCES): Likewise. | |
684 | (libgcj_la_DEPENDENCIES): Likewise. | |
685 | (libgcj_la_LIBADD): Likewise. | |
686 | ($(nat_files)): Use LTCXXCOMPILE. | |
687 | ($(c_files)): Use LTCOMPILE. | |
688 | (GCJCOMPILE): New macro. | |
689 | (.class.o): Use it. | |
690 | (.java.o): Likewise. | |
691 | ($(javao_files)): Likewise. | |
692 | (jv_convert_LINK): Use LIBTOOL. | |
693 | (nat_files): Use `.lo' files. | |
694 | (c_files): Likewise. | |
695 | (javao_files): Likewise. | |
696 | (.class.lo): Renamed. | |
697 | (.java.lo): Likewise. | |
698 | ($(nat_files)): Depend on %.lo. | |
699 | ($(c_files)): Likewise. | |
700 | ($(javao_files)): Likewise. | |
701 | (jv_convert_LDADD): Link against .lo files. | |
702 | (jv_convert_DEPENDENCIES): Depend on .lo files. | |
703 | (maintainer-check): Depend on libgcj.la, but examine .a file. | |
704 | (jv_convert_DEPENDENCIES): Depend on libgcj.la. | |
705 | (libgcj_la_LDFLAGS): New macro. | |
706 | ||
12571b1f WL |
707 | 1999-04-23 Warren Levy <warrenl@cygnus.com> |
708 | ||
709 | * Makefile.am: Added URLDecoder and URLEncoder. | |
710 | * Makefile.in: Rebuilt. | |
711 | ||
712 | * java/net/ServerSocket.java (setSocketFactory): Renamed from | |
713 | setSocketImplFactory to match spec. | |
714 | * java/net/Socket.java (getSoLinger): Changed return type to | |
715 | match spec. | |
716 | ||
717 | * java/net/URLDecoder.java: New file. | |
718 | * java/net/URLEncoder.java: New file. | |
719 | ||
47e26109 TT |
720 | 1999-04-21 Tom Tromey <tromey@cygnus.com> |
721 | ||
baa288f3 TT |
722 | * java/lang/natString.cc (getBytes): Reverted earlier change and |
723 | applied correct fix from Per Bothner. | |
724 | ||
9d9cf166 TT |
725 | * java/lang/String.java: Don't throw |
726 | UnsupportedEncodingException. | |
727 | ||
47e26109 TT |
728 | * java/lang/natString.cc (getBytes): Correctly size result |
729 | buffer. From Bryce McKinlay <bryce@albatross.co.nz>. | |
730 | ||
01f78a02 AH |
731 | 1999-04-20 Andrew Haley <aph@cygnus.com> |
732 | ||
733 | * include/sparc-signal.h: new file. | |
734 | * configure.in: include/sparc-signal.h added. | |
735 | * configure: regenerated. | |
736 | * prims.cc (JvRunMain): signal handling code rewritten to be more | |
737 | portable. | |
738 | (catch_segv): ditto. | |
739 | (catch_fpe): ditto. | |
740 | * include/i386-signal.h: reorganized. | |
741 | * include/default-signal.h: reorganized. | |
742 | ||
3d79e10b TT |
743 | 1999-04-19 Tom Tromey <tromey@cygnus.com> |
744 | ||
745 | * java/lang/natSystem.cc (init_properties): Only declare pwd_entry | |
746 | once. From Anthony Green. | |
747 | ||
80e93e9a AH |
748 | 1999-04-19 Andrew Haley <aph@cygnus.com> |
749 | ||
750 | * Makefile.in: Processed with new automake. | |
751 | ||
0cf347a3 TT |
752 | 1999-04-19 Tom Tromey <tromey@cygnus.com> |
753 | ||
754 | * include/javaprims.h: Removed security namespace. | |
755 | ||
08a0a89b AG |
756 | 1999-04-20 Anthony Green <green@cygnus.com> |
757 | ||
758 | * java/io/PrintStream.java (println): Remove extra println. | |
759 | ||
fac61898 AG |
760 | 1999-04-19 Anthony Green <green@cygnus.com> |
761 | ||
762 | * Makefile.in: Rebuilt. | |
763 | * Makefile.am (ordinary_java_source_files): Add new security files. | |
764 | ||
765 | * java/security/NoSuchAlgorithmException.java, | |
766 | java/security/MessageDigest.java: New files. | |
767 | ||
768 | * include/javaprims.h: Add security namespace. | |
769 | ||
714091c6 PB |
770 | 1999-04-16 Per Bothner <bothner@cygnus.com> |
771 | ||
772 | * gnu/gcj/convert/JIS0201.h: New file, generated from Unicode table. | |
773 | * gnu/gcj/convert/Input_JavaSrc.java: New BytesToUnicode class. | |
774 | * gnu/gcj/convert/Input_SJIS.java: New BytesToUnicode class. | |
775 | * gnu/gcj/convert/Output_EUCJIS.java: New UnicodeToBytes class. | |
776 | * gnu/gcj/convert/Output_SJIS.java: New UnicodeToBytes class. | |
777 | * gnu/gcj/convert/natInput_EUCJIS.cc: New file. | |
778 | * gnu/gcj/convert/natInput_SJIS.cc: New file. | |
779 | * gnu/gcj/convert/natOutput_EUCJIS.cc: New file. | |
780 | * gnu/gcj/convert/natOutput_SJIS.cc: New file. | |
781 | * gnu/gcj/convert/make-trie.c: New file: functions to make a trie. | |
782 | * gnu/gcj/convert/gen-from-JIS.c: Invoke make-trie for output. | |
783 | * gnu/gcj/convert/Unicode_to_JIS.cc: New generated trie table. | |
784 | * Makefile.am: Various changes for new files and conversions. | |
785 | ||
786 | * gnu/gcj/convert/UnicodeToBytes.java (write(String,int,int,char[])): | |
787 | New overloading, allows greater efficiency. | |
788 | * gnu/gcj/convert/Output_8859_1.java (write(String,int,int,char[])): | |
789 | New overloading (for efficiency - avoids copying). | |
790 | ||
791 | * gnu/gcj/convert/Output_UTF8.java: Fix typo: 0xC0 -> 0c3F. | |
792 | * gnu/gcj/convert/Input_UTF8.java: Fix typos in bit masks. | |
793 | ||
bf69fb7e PB |
794 | * java/io/InputStreamReader.java (<init>): Set super.in correctly. |
795 | * java/io/OutputStreamWriter.java (<init>): Set super.in correctly. | |
796 | (writeChars): Don't be quite so eager to flush. | |
797 | * java/io/PrintStream.java: Rewrite. Now more similar to | |
798 | OutputStreamWriter, using explicit UnicodeToBytes converter. | |
799 | Also, autoflush does not need to flush so often. | |
800 | * java/lang/natString.cc (getBytes): More efficient algorithm. | |
801 | (init(jbyteArray,jint,jint,jstring)): More efficient. | |
802 | ||
d825fa87 WL |
803 | 1999-04-15 Warren Levy <warrenl@cygnus.com> |
804 | ||
805 | * Makefile.am (ordinary_java_source_files): Added new Connection | |
806 | and Handler classes in gnu.gcj.protocol.file package. | |
807 | * Makefile.in: Rebuilt. | |
808 | ||
809 | * gnu/gcj/protocol/file/Connection.java: New file. | |
810 | * gnu/gcj/protocol/file/Handler.java: New file. | |
811 | * gnu/gcj/protocol/http/Connection.java (getInputStream): Check | |
812 | if doInput allows input. | |
813 | (getOutputStream): Check if doOutput allows output. | |
814 | * java/net/URLStreamHandler.java (parseURL): Fix indentation. | |
815 | ||
9ce392af TT |
816 | 1999-04-14 Tom Tromey <tromey@cygnus.com> |
817 | ||
818 | * java/net/natInetAddress.cc (lookup): On glibc2.0 systems, make | |
819 | buffer larger to work around bug. | |
820 | From Bryce McKinlay <bryce@albatross.co.nz>. | |
821 | ||
2b37afcb AH |
822 | 1999-04-14 Andrew Haley <aph@cygnus.com> |
823 | ||
824 | * java/lang/natDouble.java (doubleToLongBits): ensure that all | |
825 | NaNs are always converted to the same long value. | |
826 | * java/lang/natFloat.java (floatToIntBits): ditto, but for float | |
827 | converted to int. | |
828 | ||
4ac19b2c TT |
829 | 1999-04-13 Tom Tromey <tromey@cygnus.com> |
830 | ||
b8119421 TT |
831 | * java/lang/natSystem.cc (arraycopy): Don't always use jbyteArray; |
832 | instead switch on actual element type. | |
833 | ||
4ac19b2c TT |
834 | * Makefile.in: Rebuilt. |
835 | * Makefile.am (AM_MAKEFLAGS): Added JC1FLAGS. | |
836 | ||
a4e44caa AH |
837 | 1999-04-13 Andrew Haley <aph@cygnus.com> |
838 | ||
839 | * include/i386-signal.h, include/default-signal.h: New files. | |
840 | * prims.cc (catch_segv): Call MAKE_THROW_FRAME in exception | |
841 | handler. | |
842 | (catch_fpe): New function. | |
843 | * configure.in: Make link to appropriate include/java-signal.h. | |
844 | * configure: Rebuilt. | |
845 | * Makefile.am: include/java-signal.h added to dependency list. | |
846 | * Makefile.in: Rebuilt. | |
847 | ||
808ce120 UW |
848 | 1999-04-12 Urban Widmark <urban@svenskatest.se> |
849 | ||
850 | * java/io/DataInputStream.java (readLine): Corrected handling of | |
851 | empty lines, from null to "". | |
852 | ||
69d5914b TT |
853 | 1999-04-12 Tom Tromey <tromey@cygnus.com> |
854 | ||
b6d37991 TT |
855 | * Makefile.in: Rebuilt. |
856 | * Makefile.am (libgcj.zip): Put `gnu' classes into zip file. | |
857 | ||
69d5914b TT |
858 | * java/lang/natSystem.cc (SystemClass): New define. |
859 | (init_properties): Synchronize. | |
860 | ||
825bd5ae GB |
861 | 1999-04-08 Geoff Berry <gcb@gnu.org> |
862 | ||
863 | * natInetAddress.cc (lookup): Fix typo (AF_INET16 -> AF_INET6). | |
864 | * natPlainSocketImpl.cc (accept): Add missing else if check | |
865 | for AF_INET6. | |
866 | ||
e086449d TT |
867 | 1999-04-08 Tom Tromey <tromey@cygnus.com> |
868 | ||
c86e69b2 TT |
869 | * java/lang/Long.java (parseLong): Corrected overflow detection |
870 | code. | |
871 | * java/lang/Integer.java (parseInt): Corrected overflow detection | |
872 | code. | |
873 | ||
e086449d TT |
874 | * java/io/PrintStream.java (print): Handle null string argument. |
875 | (println): Likewise. | |
876 | ||
9a566c09 WL |
877 | 1999-04-07 Warren Levy <warrenl@cygnus.com> |
878 | ||
879 | * java/lang/natString.cc (init(jbyteArray,jint,jint,jstring)): | |
880 | Set count to 0 when InputStreamReader returns -1 for EOF. | |
881 | ||
dc4618f9 TT |
882 | 1999-04-07 Tom Tromey <tromey@cygnus.com> |
883 | ||
884 | * mauve-libgcj: Omit java.text.Collator, | |
885 | java.text.RuleBasedCollator. | |
886 | ||
ee9dd372 TT |
887 | 1999-04-06 Tom Tromey <tromey@cygnus.com> |
888 | ||
889 | * gnu/gcj/protocol/http/Connection.java (getHeaderField): Catch | |
890 | IOException from getHttpHeaders(). | |
891 | (getHeaderFieldKey): Likewise. | |
892 | ||
893 | * include/javaprims.h: Regenerated declarations. | |
894 | ||
895 | * Makefile.in: Rebuilt. | |
896 | * Makefile.am (ordinary_java_source_files): Updated for removed | |
897 | files. | |
898 | ||
899 | 1999-04-06 Per Bothner <bothner@cygnus.com> | |
900 | ||
901 | * java/util/zip/Adler32.java: New class. | |
902 | * java/util/zip/CRC32.java: Add working method bodies. | |
903 | * Makefile.am (ordinary_java_source_files): Add new Adler32 class. | |
904 | * Makefile.in: Re-generate. | |
905 | ||
906 | Tue Apr 6 18:28:42 1999 Warren Levy <warrenl@cygnus.com> | |
907 | ||
908 | * gnu/gcj/protocol/http/Connection.java: New file. Rewritten | |
909 | from version in removed www hierarchy. | |
910 | * gnu/gcj/protocol/http/Handler.java: New file. Copied from | |
911 | version in removed www hierarchy. | |
912 | ||
913 | * gnu/gcj/www/protocol/http/Connection.java: Removed. | |
914 | * gnu/gcj/www/protocol/http/Handler.java: Removed. | |
915 | * gnu/gcj/www/protocol/http: Removed dir. | |
916 | * gnu/gcj/www/protocol: Removed dir. | |
917 | * gnu/gcj/www: Removed dir. | |
918 | ||
919 | * java/net/HttpURLConnection.java: Revised comments to indicate | |
920 | missing JDK 1.2 methods. | |
921 | ||
922 | * java/net/URL.java (setURLStreamHandler): Look in gnu/gcj/protocol | |
923 | hierarchy rather than the gnu/gcj/www/protocol one. | |
924 | * java/net/URLConnection.java: Updated status comments. | |
925 | (setContentHandler): Look in gnu/gcj/content hierarchy rather than | |
926 | the gnu/gcj/www/content one. | |
927 | ||
928 | 1999-04-06 Per Bothner <bothner@cygnus.com> | |
929 | ||
930 | * Makefile.am (JIS0208_to_Unicode.cc, JIS0212_to_Unicode.cc): | |
931 | The gen-from-JIS program is in $(CONVERT_DIR). | |
932 | ||
933 | 1999-04-06 Tom Tromey <tromey@cygnus.com> | |
934 | ||
935 | * mauve-libgcj: Renamed from mauve-libjava. | |
936 | ||
937 | Tue Apr 6 03:18:38 1999 Warren Levy <warrenl@cygnus.com> | |
938 | ||
939 | * java/net/HttpURLConnection.java (getResponseCode): Implemented. | |
940 | (getResponseMessage): Implemented. | |
941 | (getResponseVals): New private method. | |
942 | ||
943 | * java/net/URLConnection.java (getContent): Implemented. | |
944 | (setContentHandler): Convert non-alphabetic/numeric chars per spec. | |
945 | ||
946 | 1999-04-05 Tom Tromey <tromey@cygnus.com> | |
947 | ||
948 | * Makefile.am (bin_PROGRAMS): Renamed convert to jv-convert. | |
949 | (jv_convert_SOURCES): Renamed. | |
950 | (EXTRA_jv_convert_SOURCES): Likewise. | |
951 | (jv_convert_LDFLAGS): Likewise. | |
952 | (jv_convert_LINK): Likewise. | |
953 | (jv_convert_LDADD): Likewise. | |
954 | (jv_convert_DEPENDENCIES): Likewise. | |
955 | ||
956 | * Makefile.in: Rebuilt. | |
957 | * Makefile.am (toolexeclibdir): Reference toolexecdir, not | |
958 | tooldir. | |
959 | ||
960 | Mon Apr 5 02:14:35 1999 Warren Levy <warrenl@cygnus.com> | |
961 | ||
962 | * java/net/HttpURLConnection.java (setRequestMethod): Use String.equals | |
963 | method for comparison. | |
964 | ||
965 | * java/net/URLConnection.java (getContentLength): Implemented. | |
966 | (getContentType): Implemented. | |
967 | (getContentEncoding): Implemented. | |
968 | (getExpiration): Implemented. | |
969 | (getDate): Implemented. | |
970 | (getLastModified): Implemented. | |
971 | (getHeaderFieldInt): Implemented. | |
972 | (getHeaderFieldDate): Implemented. | |
973 | ||
974 | Fri Apr 2 18:04:52 1999 Warren Levy <warrenl@cygnus.com> | |
975 | ||
976 | * java/net/URLConnection.java (toString): Implemented. | |
977 | (setContentHandlerFactory): Implemented. | |
978 | (setContentHandler): Wrote new private helper method. | |
979 | ||
980 | 1999-04-01 Tom Tromey <tromey@cygnus.com> | |
981 | ||
982 | * Makefile.in: Rebuilt. | |
983 | * Makefile.am ($(java_source_files:.java=.class): Reverted change | |
984 | of 1999-03-31; we always want to build all the .class files. | |
985 | Depend on java_source_files, not libgcj.zip. | |
986 | (nat_headers): Define in terms of ordinary_java_source_files. | |
987 | ||
988 | 1999-03-31 Tom Tromey <tromey@cygnus.com> | |
989 | ||
990 | * Makefile.in: Rebuilt. | |
991 | * Makefile.am (special_java_source_files): New macro. | |
992 | (java_source_files): Use it. | |
993 | (ordinary_java_source_files): New macro. | |
994 | (java_source_files): Use it. | |
995 | ($(ordinary_java_source_files:.java=.class)): Renamed to avoid | |
996 | creating headers for those files with hand-maintained headers. | |
997 | ||
998 | * include/javaprims.h: Regenerated namespace declarations. | |
999 | * classes.pl (scan): Include [0-9] in regexp for matching class | |
1000 | names; for java.util.zip.CRC32. | |
1001 | ||
1002 | * Makefile.in: Rebuilt. | |
1003 | * Makefile.am (nat_headers): Redefined to generate all possible | |
1004 | header files. | |
1005 | ||
1006 | * java/util/zip/ZipException.java: In package java.util.zip, not | |
1007 | java.net. | |
1008 | ||
1009 | 1999-03-30 Tom Tromey <tromey@cygnus.com> | |
1010 | ||
1011 | * configure: Rebuilt. | |
1012 | * configure.in (EH_COMMON_INCLUDE): Look in ../compat-include for | |
1013 | eh-common.h when not building in tree with gcc. | |
1014 | ||
1015 | * Makefile.in: Rebuilt. | |
1016 | * Makefile.am ($(nat_files) $(GCOBJS) $(THREADOBJS) | |
1017 | $(libgcj_a_OBJECTS)): Changed how we list files that depend on | |
1018 | nat_headers. | |
1019 | ($(java_source_files:.java=.class)): New target. | |
1020 | ||
1021 | * Makefile.in: Rebuilt. | |
1022 | * Makefile.am (java_source_files): Added | |
1023 | java/net/HttpURLConnection.java and | |
1024 | gnu/gcj/www/protocol/http/Connection.java. | |
1025 | ||
1026 | Tue Mar 30 15:20:45 1999 Warren Levy <warrenl@cygnus.com> | |
1027 | ||
1028 | * gnu/gcj/www/protocol/http/Connection.java: New file. | |
1029 | * gnu/gcj/www/protocol/http/Handler.java (openConnection): Implemented. | |
1030 | * java/net/HttpURLConnection.java: New file. | |
1031 | * java/net/URLConnection.java (getHeaderField): Implemented default. | |
1032 | (getHeaderFieldKey): Implemented default method. | |
1033 | ||
1034 | 1999-03-30 Tom Tromey <tromey@cygnus.com> | |
1035 | ||
1036 | * gnu/gcj/convert/JIS0212.h, gnu/gcj/convert/JIS0208.h: Rebuilt. | |
1037 | ||
1038 | * java/util/zip/Deflater.java: Added copyright header. | |
1039 | * java/util/zip/CRC32.java: Added copyright header. | |
1040 | ||
1041 | * Makefile.am ($(srcdir)/$(CONVERT_DIR)/JIS0208.h): Note in file | |
1042 | that it is automatically generated. | |
1043 | ($(srcdir)/$(CONVERT_DIR)/JIS0212.h): Likewise. | |
1044 | ||
1045 | * gnu/gcj/convert/BytesToUnicode.java, | |
1046 | gnu/gcj/convert/Convert.java, gnu/gcj/convert/Input_8859_1.java, | |
1047 | gnu/gcj/convert/Input_EUCJIS.java, | |
1048 | gnu/gcj/convert/Input_UTF8.java, | |
1049 | gnu/gcj/convert/JIS0208_to_Unicode.cc, | |
1050 | gnu/gcj/convert/JIS0212_to_Unicode.cc, | |
1051 | gnu/gcj/convert/Output_8859_1.java, | |
1052 | gnu/gcj/convert/Output_JavaSrc.java, | |
1053 | gnu/gcj/convert/Output_UTF8.java, | |
1054 | gnu/gcj/convert/UnicodeToBytes.java, | |
1055 | gnu/gcj/convert/natInput_EUCJIS.cc: Added copyright headers. | |
1056 | ||
1057 | * gnu/gcj/convert/gen-from-JIS.c (main): Fixed incorrect fprintf. | |
1058 | ||
1059 | * Makefile.in, configure: Rebuilt. | |
1060 | * configure.in (TESTSUBDIR): Enable if testsuite subdir exists, | |
1061 | not if test subdir exists. | |
1062 | (--enable-gcj-classes): Removed; gcj always used to generate | |
1063 | .class files. | |
1064 | (JAVA, JAVAC): Removed. | |
1065 | (--enable-single-compilation, --enable-source-compilation): | |
1066 | Removed. | |
1067 | (here): New subst. | |
1068 | (NATIVE): New conditional. | |
1069 | * Makefile.am (toolexecdir): Renamed from tooldir to allow | |
1070 | `install-exec' to work. | |
1071 | (toolexeclibdir): Likewise. | |
1072 | (toollib_LIBRARIES): Likewise. | |
1073 | (AM_MAKEFLAGS): Don't pass tooldir. | |
1074 | (JAVAC): New macro. | |
1075 | (javao_files): Redefined. | |
1076 | (java_source_files): New macro. | |
1077 | (c_source_files): New macro. | |
1078 | (c_files): Redefined in terms of c_source_files. | |
1079 | (java_io_files, java_lang_files, java_net_files, java_text_files, | |
1080 | java_util_files, gnu_files, java_files): Removed. | |
1081 | (class_io_files, class_lang_files, class_net_files, | |
1082 | class_text_files, class_util_files, class_gnu_files, class_files): | |
1083 | Removed. | |
1084 | (nat_source_files): New macro. | |
1085 | (nat_files): Redefined in terms of nat_source_files. | |
1086 | (EXTRA_libgcj_a_SOURCES): Added c_source_files, | |
1087 | java_source_files. Removed no-such-file.c. | |
1088 | (here): Removed. | |
1089 | (ETAGS_ARGS): Removed. | |
1090 | (TAGS_DEPENDENCIES): Likewise. | |
1091 | (libgcj.zip): Depend on java_source_files. Use $(here) and not | |
1092 | pwd in rule. | |
1093 | (src_io_files, src_lang_files, src_text_files, src_util_files, | |
1094 | src_gnu_files): Removed. | |
1095 | Removed ALL_AT_ONCE and COMPILE_FROM_CLASS code. | |
1096 | (BUILT_SOURCES): Removed. | |
1097 | (header-check): New target. | |
1098 | (javadir): Removed. | |
1099 | (noinst_PROGRAMS): New macro. | |
1100 | ($(srcdir)/$(CONVERT_DIR)/JIS0208_to_Unicode.cc): Conditionalize | |
1101 | on MAINTAINER_MODE. | |
1102 | ($(srcdir)/$(CONVERT_DIR)/JIS0212_to_Unicode.cc): Likewise. | |
1103 | (gen-from-JIS): Build in top directory. | |
1104 | (convert_source_files): New macro. | |
1105 | (convert_SOURCES): New macro. | |
1106 | (convert_LDFLAGS): Likewise. | |
1107 | (convert_LINK): Likewise. | |
1108 | (convert_LDADD): Likewise. | |
1109 | (convert_DEPENDENCIES): Likewise. | |
1110 | (convert): Removed. | |
1111 | (gen-from-JIS): Removed. | |
1112 | (gen_from_JIS_SOURCES): New macro. | |
1113 | (gen_from_JIS_LDADD): Likewise. | |
1114 | (gen_from_JIS_DEPENDENCIES): Likewise. | |
1115 | ||
1116 | * configure: Rebuilt. | |
1117 | * configure.in (CANADIAN): Set to `yes', not `canadian'. | |
1118 | (NULL_TARGET): Initialize to `no'. Correctly examine $NULL_TARGET | |
1119 | when defining conditional. | |
1120 | ||
1121 | Tue Mar 30 10:36:27 1999 Per Bothner <bothner@cygnus.com> | |
1122 | ||
1123 | * gnu/gcj/convert/{JIS0208.TXT,JIS0212.TXT}: Remove these files. | |
1124 | The Unicode Consortium does not permit their re-distribution. | |
1125 | * Makefile.am, Makefile.in: Add comments with URLs for removed files. | |
1126 | (JIS0208.h, JIS0212.h): Do not depend on removed files. | |
1127 | ||
1128 | Mon Mar 29 18:58:13 1999 Per Bothner <bothner@cygnus.com> | |
1129 | ||
1130 | * natSystem.c (init_properties): Use malloc, realloc, free after all. | |
1131 | ||
1132 | Mon Mar 29 13:41:02 1999 Per Bothner <bothner@cygnus.com> | |
1133 | ||
1134 | * gnu/gcj/convert/{JIS0208.TXT,JIS0212.TXT}: New mapping tables | |
1135 | from Unicode Consortium. | |
1136 | * gnu/gcj/convert/{JIS0208.h,JIS0212.h}: New generated headers. | |
1137 | * gnu/gcj/convert/gen-from-JIS.c: New utility for maintainers only. | |
1138 | * gnu/gcj/convert/{JIS0208_to_Unicode.cc,JIS0212_to_Unicode.cc}: | |
1139 | New tables, generated using gen-from-JIS. | |
1140 | * gnu/gcj/convert/Output_JavaSrc.java: New UnicodeToBytes class. | |
1141 | * gnu/gcj/convert/Output_UTF8.java: Fix bug. | |
1142 | * gnu/gcj/convert/Input_EUCJIS.java: New BytesToUnicode class. | |
1143 | * gnu/gcj/convert/natInput_EUCJIS.cc: Native methods for new class. | |
1144 | ||
1145 | * gnu/gcj/convert/Convert.java: New application. | |
1146 | * Makefile.am, Makefile.in (convert): New program, using Convert. | |
1147 | Build the various JIS conversion tables (in maintainer mode). | |
1148 | ||
1149 | Fri Mar 26 16:51:30 1999 Warren Levy <warrenl@cygnus.com> | |
1150 | ||
1151 | * gnu/gcj/www/protocol/http/Handler.java: New file - stubbed. | |
1152 | ||
1153 | * java/net/URL.java (URL): Deal with null property value. Use "." | |
1154 | as separator in building class name. | |
1155 | * java/net/URLConnection.java: Implemented majority of stubbed methods. | |
1156 | * java/net/URLStreamHandler.java (parseURL): Use "" in string | |
1157 | manipulations instead of 'null'. Comment cleanup. Use 0 for the | |
1158 | beginning of the substring rather than 'start'. | |
1159 | ||
1160 | 1999-03-26 Tom Tromey <tromey@cygnus.com> | |
1161 | ||
1162 | * include/java-chartables.h: Rebuilt. | |
1163 | * include/java-chardecomp.h: New file. | |
1164 | * chartables.pl: Generate output files directly. Added support | |
1165 | for generating decomposition header. | |
1166 | (canonical_decomposition, full_decomposition): New globals. | |
1167 | (DECOMPOSITION): New constant. | |
1168 | (process_char): Call add_decomposition. | |
1169 | (add_decomposition): New sub. | |
1170 | (write_decompositions): New sub. | |
1171 | ||
1172 | 1999-03-25 Tom Tromey <tromey@cygnus.com> | |
1173 | ||
1174 | * java/text/CollationElementIterator.java: New file. | |
1175 | ||
1176 | * mauve-libjava: Omit StringTest. | |
1177 | ||
1178 | Wed Mar 24 15:17:49 1999 Warren Levy <warrenl@cygnus.com> | |
1179 | ||
1180 | * java/net/URL.java (URL(URL, String, URLStreamHandler)): Allow URLs | |
1181 | without a '/' when parsing protocol. Handle ref outside of parseURL. | |
1182 | (hashCode): Implemented. | |
1183 | (set): Don't expand -1 to default port. | |
1184 | (getDefaultPort): Removed. | |
1185 | ||
1186 | * java/net/URLStreamHandler.java (parseURL): Implemented. | |
1187 | (toExternalForm): Implemented. | |
1188 | ||
1189 | 1999-03-23 Tom Tromey <tromey@cygnus.com> | |
1190 | ||
1191 | * java/text/BreakIterator.java (getSentenceInstance): | |
1192 | Implemented. | |
1193 | * gnu/gcj/text/SentenceBreakIterator.java: New file. | |
1194 | ||
1195 | * Makefile.in: Rebuilt. | |
1196 | * Makefile.am (nat_headers): Added IllegalAccessException. | |
1197 | * java/lang/natClass.cc (newInstance): Throw | |
1198 | IllegalAccessException, not IllegalAccessError. | |
1199 | Include IllegalAccessException.h. | |
1200 | ||
1201 | 1999-03-22 Tom Tromey <tromey@cygnus.com> | |
1202 | ||
1203 | * gnu/gcj/text/LineBreakIterator.java: New file. | |
1204 | * java/text/BreakIterator.java (getLineInstance): Implemented. | |
1205 | ||
1206 | * gnu/gcj/text/WordBreakIterator.java (WordBreakIterator): Made | |
1207 | copy constructor private. | |
1208 | (previous, next): Removed erroneous comment about line | |
1209 | separators. | |
1210 | (previous): Correctly recognize break between non-letter on the | |
1211 | left and letter on the right. Handle apostrophes correctly. | |
1212 | ||
1213 | * java/text/BreakIterator.java (getWordInstance): Implemented. | |
1214 | * gnu/gcj/text/WordBreakIterator.java: New file. | |
1215 | * gnu/gcj/text/CharacterBreakIterator.java: Extend | |
1216 | BaseBreakIterator. | |
1217 | * gnu/gcj/text/BaseBreakIterator.java: New file. | |
1218 | ||
1219 | 1999-03-19 Tom Tromey <tromey@cygnus.com> | |
1220 | ||
1221 | * java/text/BreakIterator.java: New file (partially stubbed out). | |
1222 | * gnu/gcj/text/CharacterBreakIterator.java: New file. | |
1223 | ||
1224 | * include/config.h.in: Rebuilt. | |
1225 | * acconfig.h (STRUCT_TM_HAS_GMTOFF): New define. | |
1226 | (HAVE_TIMEZONE): Likewise. | |
1227 | * configure: Rebuilt. | |
1228 | * configure.in: Added timezone checks. | |
1229 | * java/util/natGregorianCalendar.cc (computeTime): Adjust for | |
1230 | timezone. | |
1231 | ||
1232 | Fri Mar 19 15:26:35 1999 Per Bothner <bothner@cygnus.com> | |
1233 | ||
1234 | * gnu/gcj/convert/BytesToUnicode.java: New abstract class. | |
1235 | * gnu/gcj/convert/UnicodeToBytes.java: New abstract class. | |
1236 | * gnu/gcj/convert/Input_8859_1.java: New BytesToUnicode sub-class. | |
1237 | * gnu/gcj/convert/Input_UTF8.java: New BytesToUnicode sub-class. | |
1238 | * gnu/gcj/convert/Output_8859_1.java: New UnicodeToBytes sub-class. | |
1239 | * gnu/gcj/convert/Output_UTF8.java: New UnicodeToBytes sub-class. | |
1240 | * java/io/InputStreamReader.java: Rewrite to use BytesToUnicode. | |
1241 | * java/io/OutputStreamWriter.java: Rewrite to use UnicodeToBytes. | |
1242 | ||
1243 | * java/io/natFileDescriptorPosix.cc (open): Use O_BINARY flag. | |
1244 | (BSD_COMP): Kludge needed for Solaris2. | |
1245 | ||
1246 | Fri Mar 19 01:49:46 1999 Warren Levy <warrenl@cygnus.com> | |
1247 | ||
1248 | * java/net/URL.java (URL(java.net.URL, string): Moved code to | |
1249 | URL(java.net.URL, string, URLStreamHandler) and call it with a | |
1250 | null handler. In latter constructor, added SecurityManager check. | |
1251 | (set): Expect null handler on bad protocol rather than an exception. | |
1252 | (setURLStreamHandler): Simplified exception handling; return null | |
1253 | on invalid protocol. | |
1254 | ||
1255 | 1999-03-18 Tom Tromey <tromey@cygnus.com> | |
1256 | ||
1257 | * java/text/DecimalFormat.java (format(long,...)): Rewrote. | |
1258 | ||
1259 | * java/lang/natSystem.cc (setOut, setIn, setErr): New native | |
1260 | methods. | |
1261 | Include PrintStream.h, InputStream.h. | |
1262 | * java/lang/System.java (ForwardingInputStream, | |
1263 | ForwardingOutputStream): Removed. | |
1264 | (setErr, setIn, setOut): Now native. | |
1265 | ||
1266 | Reverted patch from 1999-02-12 to work around problem in | |
1267 | libgcc2.c. | |
1268 | * exception.cc (_Jv_eh_alloc): Use malloc, not _Jv_AllocBytes. | |
1269 | (_Jv_eh_free): Use free. | |
1270 | ||
1271 | * java/io/natFileDescriptorPosix.cc (open): Allocate enough space | |
1272 | for path name. Minor formatting fixes. | |
1273 | ||
1274 | * boehm.cc (_Jv_MarkObj): Always mark `methods' field. | |
1275 | ||
1276 | * prims.cc (fail_on_finalization): New function. | |
1277 | (_Jv_GCWatch): Likewise. | |
1278 | ||
1279 | * prims.cc (JvRunMain): Initialize `nullp'. | |
1280 | (nullp): New global. | |
1281 | (catch_segv): Throw nullp. | |
1282 | ||
1283 | * Makefile.in: Rebuilt. | |
1284 | * Makefile.am (ZIP): In "null target" case, zip is found in the | |
1285 | build tree. | |
1286 | ||
1287 | * prims.cc (_Jv_PrimClass): Initialize all elements of class | |
1288 | object. | |
1289 | Include Modifier.h. | |
1290 | ||
1291 | * java/lang/StringBuffer.java (StringBuffer): Don't use | |
1292 | ensureCapacity to set initial capacity. | |
1293 | (capacity): Subtract `length' from return result. | |
1294 | ||
1295 | Thu Mar 18 01:53:35 1999 Warren Levy <warrenl@cygnus.com> | |
1296 | ||
1297 | * java/io/natFileDescriptorPosix.cc (open): Throw | |
1298 | FileNotFoundException, but with filename and errno in msg. | |
1299 | ||
1300 | Wed Mar 17 11:09:30 1999 Warren Levy <warrenl@cygnus.com> | |
1301 | ||
1302 | * gnu/gcj/www/protocol/URLStreamHandlerFactory.java: Removed; | |
1303 | functionality folded into java/net/URL.java per spec. | |
1304 | ||
1305 | * java/io/natFileDescriptorPosix.cc (open): Check for ENOENT rather | |
1306 | than EEXIST for throwing FileNotFoundException. | |
1307 | ||
1308 | * java/net/URL.java: Folded in default URLStreamHandlerFactory | |
1309 | algorithm per JDK 1.2 doc. Added SecurityManager checks. | |
1310 | ||
1311 | * java/net/URLStreamHandler.java (parseURL): Added stub. | |
1312 | ||
1313 | 1999-03-15 Andrew Haley <aph@cygnus.com> | |
1314 | ||
1315 | * java/text/ChoiceFormat.java (nextDouble): Simplify and fix off | |
1316 | by one errors. | |
1317 | ||
1318 | 1999-03-15 Andrew Haley <aph@cygnus.com> | |
1319 | ||
1320 | * java/lang/natSystem.cc (currentTimeMillis): Restore eCos clock | |
1321 | support. | |
1322 | ||
1323 | 1999-03-12 Tom Tromey <tromey@cygnus.com> | |
1324 | ||
1325 | * prims.cc (catch_segv): New function. | |
1326 | Include <signal.h> if HANDLE_SEGV defined. Include | |
1327 | NullPointerException.h. | |
1328 | (JvRunMain): If HANDLE_SEGV defined, install catch_segv as SIGSEGV | |
1329 | handler. | |
1330 | ||
1331 | * java/text/SimpleDateFormat.java (equals): Ensure that object is | |
1332 | a SimpleDateFormat, not just a DateFormat. | |
1333 | (defaultCenturyStart, formatData, pattern): Now private. | |
1334 | (append): Now `final'. Use `NumberFormat.format'. | |
1335 | (parse): Wrote. | |
1336 | (SimpleDateFormat): Turn off groupin in NumberFormat object. | |
1337 | ||
1338 | * java/lang/natString.cc (indexOf): Add `fromIndex' to successful | |
1339 | result. | |
1340 | ||
1341 | * java/text/MessageFormat.java (format): Use default MessageFormat | |
1342 | constructor. | |
1343 | (parse, parseObject): Wrote. | |
1344 | ||
1345 | * java/text/SimpleDateFormat.java (SimpleDateFormat): Wrote no-arg | |
1346 | constructor. | |
1347 | ||
1348 | 1999-03-12 Andrew Haley <aph@cygnus.com> | |
1349 | ||
1350 | * java/lang/String.java (indexOf): Replace with native method for | |
1351 | better performance. | |
1352 | * java/lang/natString.cc (IndexOf): As above. | |
1353 | ||
1354 | * java/lang/natString.cc (init(jbyteArray,jint,jint,jint)): | |
1355 | Argument check corrected. | |
1356 | (init(jbyteArray,jint,jint,jstring)): Likewise. | |
1357 | ||
1358 | * java/lang/StringBuffer.java (ensureCapacity): Replace with JDK | |
1359 | 1.2 compliant method. | |
1360 | ||
1361 | * java/lang/Double.java (byteValue, shortValue): JDK 1.1 methods | |
1362 | added. | |
1363 | * java/lang/Float.java (byteValue, shortValue): Likewise. | |
1364 | ||
1365 | 1999-03-11 Tom Tromey <tromey@cygnus.com> | |
1366 | ||
1367 | * java/text/DecimalFormat.java (parse): Wrote. | |
1368 | ||
1369 | * java/text/ChoiceFormat.java (parse): Set error index on | |
1370 | ParsePosition object. | |
1371 | ||
1372 | * java/lang/Integer.java (parseInt): Throw exception on overflow | |
1373 | when intermediate result is most negative number. Changed | |
1374 | overflow detection as well. | |
1375 | * java/lang/Long.java (parseLong): Likewise. | |
1376 | ||
1377 | * configure, Makefile.in: Rebuilt. | |
1378 | * configure.in (NULL_TARGET, CANADIAN): New conditionals. Set | |
1379 | CANADIAN when building in source tree that doesn't include gcc. | |
1380 | * Makefile.am (ZIP, GCJ, GCJH): Use automake conditionals to | |
1381 | define. | |
1382 | ||
1383 | * java/text/ChoiceFormat.java (nextDouble): Correct some | |
1384 | off-by-one errors when masking or adding. | |
1385 | ||
1386 | * java/text/DecimalFormat.java (format): Fill in FieldPosition | |
1387 | parameter, if given. Use `%', not IEEEremainder. | |
1388 | (scanFix): Throw error if multiplier already set. | |
1389 | (computePattern): Wrote. | |
1390 | ||
1391 | 1999-03-11 Andrew Haley <aph@cygnus.com> | |
1392 | ||
1393 | * java/text/ChoiceFormat.java (mantissaBits): Use correct value of | |
1394 | 52. | |
1395 | (nextDouble): Corrected masking logic. Handle interaction between | |
1396 | `next' and negative numbers. | |
1397 | ||
1398 | Wed Mar 10 18:58:37 1999 Warren Levy <warrenl@cygnus.com> | |
1399 | ||
1400 | * gnu/gcj/www/protocol/URLStreamHandlerFactory.java: Created. | |
1401 | * java/net/URL.java: Added general comments. | |
1402 | ||
1403 | 1999-03-10 Tom Tromey <tromey@cygnus.com> | |
1404 | ||
1405 | * java/text/ChoiceFormat.java (parse): Wrote. | |
1406 | ||
1407 | * java/text/ChoiceFormat.java (toPattern): Use `#', not `<'. | |
1408 | ||
1409 | * java/text/MessageFormat.java (MessageFormatElement.setLocale): | |
1410 | Create ChoiceFormat objects. | |
1411 | (format): Special-case ChoiceFormat. | |
1412 | (scanFormatElement): Include { and } in generated style string. | |
1413 | ||
1414 | 1999-03-09 Tom Tromey <tromey@cygnus.com> | |
1415 | ||
1416 | * java/text/ChoiceFormat.java: New file. | |
1417 | ||
1418 | Tue Mar 9 17:09:18 1999 Warren Levy <warrenl@cygnus.com> | |
1419 | ||
1420 | * java/net/BindException.java: Created. | |
1421 | * java/net/ConnectException.java: Created. | |
1422 | * java/net/ContentHandler.java: Created. | |
1423 | * java/net/ContentHandlerFactory.java: Created. | |
1424 | * java/net/FileNameMap.java: Created. | |
1425 | * java/net/MalformedURLException.java: Created. | |
1426 | * java/net/NoRouteToHostException.java: Created. | |
1427 | * java/net/ProtocolException.java: Created. | |
1428 | * java/net/ServerSocket.java (@author): Fixed typo. | |
1429 | * java/net/Socket.java (@author): Fixed typo. | |
1430 | * java/net/SocketImpl.java (@author): Fixed typo. | |
1431 | * java/net/SocketImplFactory.java (@author): Fixed typo. | |
1432 | * java/net/URL.java: Created - nearly complete. | |
1433 | * java/net/URLConnection.java: Created - near-empty stub. | |
1434 | * java/net/URLStreamHandler.java: Created - incomplete stub. | |
1435 | * java/net/URLStreamHandlerFactory.java: Created. | |
1436 | * java/net/UnknownServiceException.java: Created. | |
1437 | ||
1438 | 1999-03-09 Tom Tromey <tromey@cygnus.com> | |
1439 | ||
1440 | * java/lang/System.java (ForwardingInputStream): New class. | |
1441 | (ForwardingOutputStream): Likewise. | |
1442 | (in, out, err): Now `final' forwarding streams. | |
1443 | (setIn, setOut, setErr): Use appropriate method on forwarding | |
1444 | streams. | |
1445 | ||
1446 | * java/text/MessageFormat.java (MessageFormatElement): Now `final' | |
1447 | class. | |
1448 | ||
1449 | Tue Mar 9 12:16:53 1999 Per Bothner <bothner@cygnus.com> | |
1450 | ||
1451 | * java/util/zip/CRC32.java: New class (just an incomplete stub). | |
1452 | * java/util/zip/Checksum.java: New interface (complete). | |
1453 | * java/util/zip/Deflater.java: New class (near-empty stub). | |
1454 | * java/util/zip/DeflaterOutputStream.java: New class (incomplete stub). | |
1455 | * java/util/zip/ZipConstants.java: New interface (near-empty stub). | |
1456 | * java/util/zip/ZipEntry.java: New class (complete). | |
1457 | * java/util/zip/ZipException.java: New class (complete). | |
1458 | * java/util/zip/ZipFile.java: New class (incomplete stub). | |
1459 | * java/util/zip/ZipOutputStream.java: New class (incomplete stub). | |
1460 | ||
1461 | 1999-03-09 Tom Tromey <tromey@cygnus.com> | |
1462 | ||
1463 | * java/text/MessageFormat.java (MessageFormatElement): Removed | |
1464 | `public' specifiers. | |
1465 | ||
1466 | * java/text/DecimalFormat.java (scanFormat): Increment index | |
1467 | before processing exponential format. Fixed a couple typos in | |
1468 | exception messages. | |
1469 | (format): Correct normalization of exponent. | |
1470 | ||
1471 | 1999-03-08 Tom Tromey <tromey@cygnus.com> | |
1472 | ||
1473 | * java/text/SimpleDateFormat.java (parse): Throw | |
1474 | IllegalArgumentException, not ParseException. | |
1475 | ||
1476 | 1999-03-05 Tom Tromey <tromey@cygnus.com> | |
1477 | ||
1478 | * java/text/SimpleDateFormat.java (SimpleDateFormat): Use locale | |
1479 | when constructing DateFormatSymbols. Initialize numberFormat | |
1480 | field of superclass. | |
1481 | ||
1482 | * java/text/DateFormat.java (equals): Rewrote. | |
1483 | (getAvailableLocales): New method. | |
1484 | (getDateInstance): New methods. | |
1485 | (getDateTimeInstance): Likewise. | |
1486 | (getTimeInstance): Likewise. | |
1487 | (getInstance): New method. | |
1488 | (computeInstance): New method. | |
1489 | ||
1490 | * java/text/DateFormatSymbols.java (zoneStringsDefault): Completed | |
1491 | for US. | |
1492 | (safeGetResource): New method. | |
1493 | (DateFormatSymbols): Use Locale paramater. | |
1494 | (equals): Now protected. | |
1495 | Made instance variables private. | |
1496 | ||
1497 | 1999-03-04 Tom Tromey <tromey@cygnus.com> | |
1498 | ||
1499 | * java/text/DecimalFormat.java: New file. | |
1500 | ||
1501 | * java/text/NumberFormat.java (groupingUsed, | |
1502 | maximumFractionDigits, maximumIntegerDigits, | |
1503 | minimumFractionDigits, minimumIntegerDigits, parseIntegerOnly): | |
1504 | New fields. | |
1505 | (setDecimalSeparatorAlwaysShown, setMultiplier, | |
1506 | setPositivePrefix): Removed. | |
1507 | (setMinimumFractionDigits, setMaximumFractionDigits): | |
1508 | Implemented. | |
1509 | (format): Now final. | |
1510 | Added many new methods. | |
1511 | ||
1512 | * Makefile.in: Rebuilt. | |
1513 | * Makefile.am (gnu_files): New macro. | |
1514 | (java_files): Added gnu_files. | |
1515 | (class_gnu_files): New macro. | |
1516 | (class_files): Use it. | |
1517 | (src_gnu_files): New macro. | |
1518 | (gnu.o): New target. | |
1519 | (javao_files): Added gnu.o. | |
1520 | ||
1521 | * gnu/gcj/text/LocaleData_en_US.java: New file. | |
1522 | * gnu/gcj/text/LocaleData_en.java: New file. | |
1523 | * java/text/DecimalFormatSymbols.java: Import ResourceBundle. | |
1524 | (DecimalFormatSymbols): Use ResourceBundle to find resources. | |
1525 | (safeGetString): New method. | |
1526 | (safeGetChar): Likewise. | |
1527 | ||
1528 | 1999-03-03 Tom Tromey <tromey@cygnus.com> | |
1529 | ||
1530 | * java/text/NumberFormat.java (INTEGER_FIELD, FRACTION_FIELD): New | |
1531 | constants. | |
1532 | ||
1533 | * java/text/FieldPosition.java (equals): Don't check for null | |
1534 | object; instanceof does this. | |
1535 | ||
1536 | * java/util/Locale.java (clone): New method. | |
1537 | (equals): Likewise. | |
1538 | ||
1539 | Wed Mar 3 17:20:15 1999 Anthony Green <green@cygnus.com> | |
1540 | ||
1541 | * doc/cni.sgml: New file. | |
1542 | ||
1543 | 1999-03-03 Tom Tromey <tromey@cygnus.com> | |
1544 | ||
1545 | * prims.cc (_Jv_Abort): Mention libgcj, not libjava. | |
1546 | ||
1547 | * java/text/DecimalFormatSymbols.java: New file. | |
1548 | ||
1549 | 1999-03-02 Tom Tromey <tromey@cygnus.com> | |
1550 | ||
1551 | * java/io/natFileDescriptorPosix.cc: Include sys/filio.h if it | |
1552 | exists. | |
1553 | * configure: Rebuilt. | |
1554 | * configure.in: Check for sys/filio.h. | |
1555 | ||
1556 | * java/lang/Runtime.java (checkLink): Throw NullPointerException | |
1557 | if required. | |
1558 | (load): Always throw UnsatisfiedLinkError. | |
1559 | (loadLibrary): Likewise. | |
1560 | ||
1561 | 1999-03-02 Anthony Green <green@cygnus.com> | |
1562 | ||
1563 | * LIBGCJ_LICENSE: New file. | |
1564 | * LIBJAVA_LICENSE: Removed. | |
1565 | * Many files: libjava now libgcj. | |
1566 | ||
1567 | 1999-03-02 Tom Tromey <tromey@cygnus.com> | |
1568 | ||
1569 | * include/java-chartables.h: Rebuilt. | |
1570 | * chartables.pl (print_block): Make table `const'. | |
1571 | (print_numerics): Likewise. | |
1572 | (print_single_map): Likewise. | |
1573 | (print_all_block): Likewise. | |
1574 | (print_case_table): Likewise. | |
1575 | (print_fast_tables): Likewise. | |
1576 | * java/lang/natCharacter.cc (table_search): `table' argument now | |
1577 | const. | |
1578 | ||
1579 | 1999-03-01 Tom Tromey <tromey@cygnus.com> | |
1580 | ||
1581 | * java/util/Date.java (before, after): Inverted logic. | |
1582 | ||
1583 | * java/util/Date.java (parse): Handle case where first character | |
1584 | in string is open parenthesis. | |
1585 | (skipParens): Rewrote. | |
1586 | ||
1587 | * java/lang/reflect/natArray.cc: Include <stdlib.h>. | |
1588 | * java/lang/reflect/natField.cc: Include <stdlib.h>. | |
1589 | ||
1590 | * java/util/Date.java (parse): Correctly compute beginning of | |
1591 | punctuation. | |
1592 | ||
1593 | * java/util/Hashtable.java (get): Throw NullPointerException if | |
1594 | key is null. | |
1595 | (containsKey): Likewise. | |
1596 | ||
1597 | * java/util/Properties.java (list): Truncate value to 37 | |
1598 | characters and add `...'. | |
1599 | ||
1600 | * java/lang/Byte.java (parseByte): Pass `radix' to | |
1601 | Integer.parseInt. | |
1602 | ||
1603 | * prims.cc (_Jv_Abort): In non-DEBUG case, use System.err, not | |
1604 | fprintf. | |
1605 | Include System.h, PrintStream.h. | |
1606 | ||
1607 | * java/lang/natSystem.cc (init_properties): Don't use malloc, | |
1608 | realloc, or free. | |
1609 | ||
1610 | * java/lang/natSystem.cc (init_properties): Use getpwuid_r if it | |
1611 | exists. | |
1612 | * configure: Rebuilt. | |
1613 | * configure.in: Check for getpwuid_r. Look for `pwd.h', not | |
1614 | `pwd.d'. | |
1615 | ||
1616 | * mauve-libjava: Omit AttibutedCharacterIterator, ACIAttribute. | |
1617 | ||
1618 | * java/lang/SecurityManager.java: Import java.net.*. | |
1619 | (checkMulticast): New methods. | |
1620 | ||
1621 | Fri Feb 26 14:54:52 1999 Per Bothner <bothner@cygnus.com> | |
1622 | ||
1623 | * Makefile.am, Makefile.in (java/lang/reflect/Method.h): New rule. | |
1624 | (nat_files): Add java/lang/reflect/natArray.o. | |
1625 | (nat_headers): Add Field.h and NoSuchFieldException.h. | |
1626 | ||
1627 | * include/java-field.h (_Jv_GetStaticLongField, _Jv_GetStaticIntField, | |
1628 | _Jv_GetStaticShortField, _Jv_GetStaticByteField): New inline methods. | |
1629 | (_Jv_FromReflectedField): Fix buglet. | |
1630 | * include/jvm.h (_Jv_NewMultiArray): New declaration. | |
1631 | * include/java-assert.h (JvFail): Pass message string to _Jv_Abort. | |
1632 | * prims.cc (_Jv_Abort): Include message in print-out. | |
1633 | ||
1634 | * prims.cc (_Jv_equal): New method (compare Utf8Const and jstring). | |
1635 | (new_multi_array): Rename to _Jv_NewMultiArray. Make non-static. | |
1636 | * include/jvm.h (_Jv_NewMultiArray, _Jv_equal): New declarations. | |
1637 | ||
1638 | * configure.in (AC_CHECK_HEADERS), configure: Add pwd.h. | |
1639 | * include/config.h.in (HAVE_PWD_H): New feature macro. | |
1640 | * java/lang/natSystem.cc (init_properties): Set file.encoding, | |
1641 | user.name, user.home, user.dir. | |
1642 | ||
1643 | * java/lang/reflect/Array.java: New class. | |
1644 | * java/lang/reflect/natArray.cc: New native methods. | |
1645 | * include/javaprims.h: Declare java::lang::reflect::Array. | |
1646 | ||
1647 | * java/lang/Class.h (getField): New private method. Add friends. | |
1648 | * java/lang/Class.java (getField): Add private overload. | |
1649 | * java/lang/natClass.cc (getField, getField, getDeclaredField, | |
1650 | getDeclaredMethods): Add working implementations. | |
1651 | * java/lang/reflect/Field.java, java/lang/reflect/natField.cc: | |
1652 | Finish implementation, except for access control. | |
1653 | ||
1654 | * java/lang/reflect/Modifier.java (toString): New overload. | |
1655 | * include/java-method.h: New file. | |
1656 | * java/lang/reflect/Method.java (index): Replaced by offset field. | |
1657 | Remove various private fields - get them from _Jv_Field instead. | |
1658 | * java/lang/reflect/natMethod.cc (getModifiers, getName, getType): | |
1659 | New method implementations. | |
1660 | ||
1661 | * java/text/NumberFormat.java: Add a bunch of methods. | |
1662 | ||
1663 | Mon Feb 22 17:52:34 1999 Per Bothner <bothner@cygnus.com> | |
1664 | ||
1665 | * java/lang/StringBuffer.java (getChars): Fix bounds checks. | |
1666 | ||
1667 | 1999-02-26 Tom Tromey <tromey@cygnus.com> | |
1668 | ||
1669 | * include/config.h.in: Rebuilt. | |
1670 | * acconfig.h (GETHOSTBYNAME_R_RETURNS_INT, | |
1671 | GETHOSTBYADDR_R_RETURNS_INT, HAVE_GETHOSTBYNAME_R, | |
1672 | HAVE_GETHOSTBYADDR_R): New defines. | |
1673 | * java/net/natInetAddress.cc (lookup): Use gethostbyname_r and | |
1674 | gethostbyaddr_r if available. | |
1675 | Include <errno.h>. | |
1676 | * configure: Rebuilt. | |
1677 | * configure.in: Check for gethostbyname_r, gethostbyaddr_r. | |
1678 | ||
1679 | * java/net/natInetAddress.cc (aton): Use _Jv_AllocBytesChecked. | |
1680 | Don't use JvFree. | |
1681 | (lookup): Likewise. | |
1682 | Include <jvm.h>. | |
1683 | * include/jvm.h (_Jv_AllocBytesChecked): Declare. | |
1684 | * prims.cc (_Jv_AllocBytesChecked): New function. | |
1685 | ||
1686 | * Makefile.in: Rebuilt. | |
1687 | * Makefile.am (SUBDIRS): Removed `test'. | |
1688 | * configure: Rebuilt. | |
1689 | * configure.in: Don't build test/Makefile. | |
1690 | * test/*: Removed all files. | |
1691 | ||
1692 | Thu Feb 25 17:27:37 1999 Warren Levy <warrenl@cygnus.com> | |
1693 | ||
1694 | * java/lang/reflect/Constructor.java: Make class final to match spec. | |
1695 | * java/lang/reflect/Method.java: Ditto. | |
1696 | ||
1697 | 1999-02-25 Tom Tromey <tromey@cygnus.com> | |
1698 | ||
1699 | * java/net/natInetAddress.cc: Include <sys/types.h> before | |
1700 | <sys/socket.h>. | |
1701 | * java/net/natPlainSocketImpl.cc: Include <sys/types.h> before | |
1702 | <sys/socket.h>. | |
1703 | ||
1704 | * java/net/natInetAddress.cc: Declare gethostname if required. | |
1705 | * include/config.h.in: Rebuilt. | |
1706 | * acconfig.h (HAVE_GETHOSTNAME_DECL): New define. | |
1707 | * configure: Rebuilt. | |
1708 | * configure.in: Define HAVE_GETHOSTNAME_DECL when gethostname is | |
1709 | declared in unistd.h. | |
1710 | ||
1711 | 1999-02-24 Tom Tromey <tromey@cygnus.com> | |
1712 | ||
1713 | * Makefile.in: Rebuilt. | |
1714 | * Makefile.am (java/io/FileDescriptor.h): Removed target. | |
1715 | * java/io/FileDescriptor.java (FileDescriptor): Changed protection | |
1716 | from private to "none". | |
1717 | ||
1718 | * include/javaprims.h: Regenerated class declarations with new | |
1719 | classes.pl. | |
1720 | * classes.pl (scan): Only generate decls for java.lang, java.io, | |
1721 | and java.util. | |
1722 | ||
1723 | 1999-02-24 Tom Tromey <tromey@cygnus.com> | |
1724 | ||
1725 | * posix-threads.cc (_Jv_InitThreads): Mask SIGINT in all threads. | |
1726 | (_Jv_ThreadWait): Allow SIGINT to be delivered to waiting thread. | |
1727 | ||
1728 | 1999-02-23 Tom Tromey <tromey@cygnus.com> | |
1729 | ||
1730 | * java/util/natGregorianCalendar.cc (_REENTRANT): Only define if | |
1731 | not already defined. | |
1732 | * java/io/natFile.cc (_REENTRANT): Only define if not already | |
1733 | defined. | |
1734 | * include/config.h.in: Rebuilt. | |
1735 | * acconfig.h (HAVE_BOEHM_GC): New define. | |
1736 | * configure: Rebuilt. | |
1737 | * configure.in: Define HAVE_BOEHM_GC if using it. | |
1738 | * posix-threads.cc: Include boehm-config.h and gc.h if | |
1739 | HAVE_BOEHM_GC. | |
1740 | * include/posix-threads.h: Added explanatory note about Boehm GC. | |
1741 | ||
1742 | * java/io/BufferedReader.java (readLine): Only return null when | |
1743 | EOF seen before any characters read. (In particular, an empty | |
1744 | line should not return null.) | |
1745 | ||
1746 | * java/io/BufferedInputStream.java (read): Only refill once per | |
1747 | invocation. | |
1748 | ||
1749 | * mauve-libjava: Added java.text.StringCharacterIterator.iter, | |
1750 | java.lang.Character.classify12, java.lang.String.hash, | |
1751 | java.text.FieldPosition.Test, java.text.ParsePosition.Test, | |
1752 | java.text.SimpleDateFormat.getAndSet2DigitYearStart | |
1753 | ||
1754 | * java/text/StringCharacterIterator.java (setIndex): No error if | |
1755 | index == end. | |
1756 | (next): Check for `pos == end', not `end - 1'. | |
1757 | (StringCharacterIterator): Allow `pos == end'. Explicitly check | |
1758 | for null text in each constructor. | |
1759 | (clone): Fixed order of arguments to constructor. | |
1760 | ||
1761 | 1999-02-22 Tom Tromey <tromey@cygnus.com> | |
1762 | ||
1763 | * include/config.h.in: Rebuilt. | |
1764 | * acconfig.h (HAVE_INET6): New define. | |
1765 | (HAVE_SOCKLEN_T): Likewise. | |
1766 | * java/net/PlainSocketImpl.java: Added copyright header. | |
1767 | * java/net/natPlainSocketImpl.cc: Added copyright header. | |
1768 | (union SockAddr): Use HAVE_INET6, not AF_INET6. | |
1769 | (bind): Likewise. | |
1770 | (connect): Likewise. | |
1771 | (accept): Likewise. | |
1772 | (socklen_t): New typedef. | |
1773 | (accept): Use socklen_t. | |
1774 | * java/net/natInetAddress.cc: Added copyright header. | |
1775 | (HAVE_GETHOSTNAME): Don't define. | |
1776 | (HAVE_INET_ADDR): Likewise. | |
1777 | (lookup): Fixed typo. | |
1778 | (aton): Don't use `address' as name of local variable. | |
1779 | (lookup): Use HAVE_INET6, not AF_INET6. | |
1780 | ||
1781 | * configure: Rebuilt. | |
1782 | * configure.in: Look for functions inet_aton, inet_addr, | |
1783 | gethostname, inet_pton, uname. Check for sockaddr_in6 structure. | |
1784 | Check for socklen_t typedef. | |
1785 | ||
1786 | * exception.cc (__throw): Declare as __noreturn__. | |
1787 | ||
1788 | Mon Feb 22 15:27:35 1999 Per Bothner <bothner@cygnus.com> | |
1789 | ||
1790 | * Makefile.am, Makefile.in: Also build java/net. | |
1791 | (java/io/FileDescriptor.h): Add friend java::net::PlainSocketImpl. | |
1792 | ||
1793 | * java/io/natFile.cc: #define _POSIX_PTHREAD_SEMANTICS and _REENTRANT. | |
1794 | * java/util/natGregorianCalendar.cc: #define _REENTRANT. | |
1795 | ||
1796 | * prims.cc (_Jv_malloc, _Jv_Free): New functions. | |
1797 | * include/cni.h (JvMalloc, JvFree): New inline functions. | |
1798 | (JvThrow): Add __noreturn__ attribute. | |
1799 | * include/javaprims.h (_Jv_Malloc, _Jv_Free): New declarations. | |
1800 | (_Jv_Throw): Add __noreturn__ attribute. | |
1801 | ||
1802 | * java/net/PlainSocketImpl.java: Init fnum to -1. | |
1803 | * java/net/ServerSocket.java: Add missing throws clauses. | |
1804 | * java/lang/Socket.java: For the constructor taking a SocketImpl, | |
1805 | don't call create on the latter. Instead, other constructors | |
1806 | have to explicitly call SocketImpl.create. | |
1807 | * java/net/natPlainSocketImpl.cc (accept): Change variable addrlen | |
1808 | from size_t to int, to match ::accept prototype. | |
1809 | * java/net/natInetAddress.cc: Use JvFree rather than free. | |
1810 | ||
1811 | ||
1812 | 1999-02-22 Tom Tromey <tromey@cygnus.com> | |
1813 | ||
1814 | * include/javaprims.h: Added new classes. | |
1815 | * java/text/StringCharacterIterator.java: New file. | |
1816 | * java/text/CharacterIterator.java: New file. | |
1817 | ||
1818 | * java/text/ParseException.java (errorOffset): Now private. | |
1819 | ||
1820 | Mon Feb 22 12:54:53 1999 Per Bothner <bothner@cygnus.com> | |
1821 | ||
1822 | * java/net: New package. | |
1823 | * java/net/{InetAddress.java,PlainSocketImpl.java,ServerSocket.java, | |
1824 | Socket.java,SocketException.java,SocketImpl.java, | |
1825 | SocketImplFactory.java,UnknownHostException.java,natInetAddress.cc, | |
1826 | natPlainSocketImpl.cc}: New classes. | |
1827 | ||
1828 | * configure.in (AC_CHECK_HEADERS): Also check for <sys/socket.h>, | |
1829 | <netinet.in.h>, <arpa/inet.h> and <netdb.h>. | |
1830 | * include/config.h.in: Add place-holders for HAVE_ARPA_INET_H, | |
1831 | HAVE_NETDB_H, HAVE_NETINET_IN_H, and HAVE_SYS_SOCKET_H. | |
1832 | ||
1833 | * classes.pl: Translate package into "namespace", not "class". | |
1834 | * include/javaprims.h: Update class list, using "namespace". | |
1835 | ||
1836 | 1999-02-21 Tom Tromey <tromey@cygnus.com> | |
1837 | ||
1838 | * java/util/natGregorianCalendar.cc (_POSIX_PTHREAD_SEMANTICS): | |
1839 | Define when appropriate. | |
1840 | ||
1841 | 1999-02-20 Tom Tromey <tromey@cygnus.com> | |
1842 | ||
1843 | * java/lang/natString.cc (_Jv_GetStringUTFRegion): Encode \u007f | |
1844 | as a single byte and \u07ff as two bytes. | |
1845 | (_Jv_GetStringUTFLength): Likewise. | |
1846 | * include/jvm.h (UTF8_GET): Mask first byte of 3-byte encoding | |
1847 | with 0x0f, not 0x1f. | |
1848 | ||
1849 | 1999-02-19 Tom Tromey <tromey@cygnus.com> | |
1850 | ||
1851 | * java/io/DataOutputStream.java (writeUTF): When encoding | |
1852 | character as 3 bytes, `or' first byte with 0xe0, not 0xc0. | |
1853 | * java/io/DataInputStream.java (readUTF): Mask second byte of | |
1854 | 3-byte character with 0x3f, not 0x1f. | |
1855 | ||
1856 | * java/io/DataInputStream.java (readLong): Cast result of | |
1857 | readUnsignedByte to long before using. | |
1858 | ||
1859 | * java/io/FileInputStream.java (finalize): Only finalize `fd' if | |
1860 | it is not null. | |
1861 | ||
1862 | * mauve-libjava: Re-enabled java.io.DataInputOutput. | |
1863 | * include/no-threads.h (_Jv_ThreadInterrupt): Removed name of | |
1864 | argument to avoid warning. | |
1865 | * include/quick-threads.h (_Jv_ThreadInterrupt): Removed name of | |
1866 | argument to avoid warning. | |
1867 | ||
1868 | 1999-02-18 Tom Tromey <tromey@cygnus.com> | |
1869 | ||
1870 | * mauve-libjava: Omit java.io.DataInputOutput and | |
1871 | java.io.Utf8Encoding. | |
1872 | ||
1873 | 1999-02-17 Tom Tromey <tromey@cygnus.com> | |
1874 | ||
1875 | * Makefile.in: Rebuilt. | |
1876 | * Makefile.am (nat_headers): Added InterruptedIOException.h. | |
1877 | * java/io/natFileDescriptorPosix.cc: Include | |
1878 | InterruptedIOException.h, Thread.h. | |
1879 | (write): Throw InterruptedIOException when required. | |
1880 | (read): Likewise. | |
1881 | * posix-threads.cc: Include <signal.h>. | |
1882 | (_Jv_ThreadInterrupt): New function. | |
1883 | (INTR): New define. | |
1884 | (handle_intr): New function. | |
1885 | (_Jv_InitThreads): Register handle_intr via sigaction. | |
1886 | * java/lang/natThread.cc (interrupt): Call _Jv_ThreadInterrupt. | |
1887 | * include/posix-threads.h (_Jv_ThreadInterrupt): Declare. | |
1888 | * include/quick-threads.h (_Jv_ThreadInterrupt): New function. | |
1889 | * include/no-threads.h (_Jv_ThreadInterrupt): New function. | |
1890 | ||
1891 | 1999-02-19 Andrew Haley <aph@cygnus.com> | |
1892 | ||
1893 | * java/lang/ThreadGroup (setMaxPriority): Set the maximum priority | |
1894 | of subgroups. | |
1895 | (ThreadGroup (int)): Set the maximum priority of the initial | |
1896 | ThreadGroup. | |
1897 | ||
1898 | 1999-02-18 Andrew Haley <aph@cygnus.com> | |
1899 | ||
1900 | * java/lang/natClass.cc (forName): Check for the case where a | |
1901 | classname is the name of an array and call FindClassFromSignature | |
1902 | to find the Class. | |
1903 | ||
1904 | 1999-02-18 Andrew Haley <aph@cygnus.com> | |
1905 | ||
1906 | * java/lang/StringBuffer (insert (int, String)): Move up any | |
1907 | characters above the insert position and increase the length of | |
1908 | the string buffer by the length of the argument. | |
1909 | (insert (int, char[])): Likewise. | |
1910 | (insert (int, char)): Likewise. | |
1911 | (StringBuffer (String)): The initial capacity of the string buffer | |
1912 | is 16 plus the length of the argument. | |
1913 | (getChars): Add a JDK 1.2 FIXME. | |
1914 | ||
1915 | 1999-02-18 Andrew Haley <aph@cygnus.com> | |
1916 | ||
1917 | * java/lang/Short.java (parseShort(String, int)): Pass radix to | |
1918 | Integer.parseInt. | |
1919 | ||
1920 | 1999-02-18 Andrew Haley <aph@cygnus.com> | |
1921 | ||
1922 | * java/lang/Double.java (equals): Use a bit-by-bit comparision | |
1923 | instead of floating-point equality. This is necessary for | |
1924 | correct floating-point Hashtables. | |
1925 | * java/lang/Float.java (equals): Ditto. | |
1926 | ||
1927 | 1999-02-16 Tom Tromey <tromey@cygnus.com> | |
1928 | ||
1929 | * java/util/Properties.java (list): Truncate value to 37 | |
1930 | characters and add "...". | |
1931 | ||
1932 | 1999-02-16 Tom Tromey <tromey@cygnus.com> | |
1933 | ||
1934 | * java/util/Vector.java (Vector): Throw IllegalArgumentException | |
1935 | if initCap is negative. | |
1936 | (contains): Implement JDK1.2-style handling of null argument. | |
1937 | (removeElement): Likewise. | |
1938 | (indexOf): Likewise. Also, correctly handle case where idx is | |
1939 | negative. | |
1940 | (lastIndexOf): Likewise. | |
1941 | ||
1942 | 1999-02-16 Tom Tromey <tromey@cygnus.com> | |
1943 | ||
1944 | * java/lang/natString.cc (init): Increment source pointer in | |
1945 | loop. | |
1946 | ||
1947 | 1999-02-16 Tom Tromey <tromey@cygnus.com> | |
1948 | ||
1949 | * exception.cc: Include NullPointerException.h. | |
1950 | (_Jv_Throw): If `value' is NULL, throw a NullPointerException. | |
1951 | ||
1952 | 1999-02-16 Tom Tromey <tromey@cygnus.com> | |
1953 | ||
1954 | * Makefile.in: Rebuilt. | |
1955 | * Makefile.am (AUTOMAKE_OPTIONS): Added `no-installinfo. | |
1956 | ||
1957 | Sat Feb 13 20:25:09 1999 Bonzo Armstrong <bonzo@cygnus.com> | |
1958 | ||
1959 | * configure.in: Don't undefine EH_COMMON_INCLUDE just because | |
1960 | we're compiling canadian. | |
1961 | * configure: Regenerated. | |
1962 | ||
1963 | 1999-02-12 Andrew Haley <aph@cygnus.com> | |
1964 | ||
1965 | * java/lang/sf_rint.c: Resurrected. This file shouldn't have been | |
1966 | deleted from libgcj. | |
1967 | ||
1968 | 1999-02-12 Tom Tromey <tromey@cygnus.com> | |
1969 | ||
1970 | * exception.cc (_Jv_eh_alloc): Use _Jv_AllocBytes, not malloc. | |
1971 | (_Jv_eh_free): Don't call free. | |
1972 | Don't declare malloc or free. | |
1973 | ||
1974 | 1999-02-11 Tom Tromey <tromey@cygnus.com> | |
1975 | ||
1976 | * configure.host: Use `libgcj', not `libjava'. Removed `echo'. | |
1977 | ||
1978 | 1999-02-11 Andrew Haley <aph@cygnus.com> | |
1979 | ||
1980 | * ef_fmod.c, sf_ceil.c, sf_fabs.c, sf_floor.c, sf_rint.c, | |
1981 | wf_fmod.c: Deleted. These are all files from fdlibm which aren't | |
1982 | needed by java.lang.*. | |
1983 | * Makefile.am: ef_fmod.o, sf_ceil.o, sf_fabs.o, sf_floor.o, sf_rint.o, | |
1984 | wf_fmod.o: Removed from libjava.a. | |
1985 | ||
1986 | 1999-02-11 Tom Tromey <tromey@cygnus.com> | |
1987 | ||
1988 | * include/javaprims.h: Reverted previous change; with it | |
1989 | exception.cc can't compile. | |
1990 | ||
1991 | * include/javaprims.h (_Jv_Throw): Mark as noreturn. | |
1992 | ||
1993 | * include/config.h.in: Rebuilt. | |
1994 | * include/posix-threads.h (_Jv_ThreadYield): Conditionalize on | |
1995 | HAVE_SCHED_YIELD. | |
1996 | * configure: Rebuilt. | |
1997 | * configure.in: Check for sched_yield. Look in thread library for | |
1998 | all thread functions. | |
1999 | ||
2000 | * posix-threads.cc (_Jv_MutexInit): Handle case where system has | |
2001 | no recursive mutexes. | |
2002 | (_Jv_MutexDestroy): Define when required. | |
2003 | (_Jv_MutexLock): Likewise. | |
2004 | (_Jv_MutexUnlock): Likewise. | |
2005 | (_Jv_CondWait): Conditionalize on HAVE_RECURSIVE_MUTEX. | |
2006 | * include/posix-threads.h (HAVE_RECURSIVE_MUTEX): New define. | |
2007 | (_Jv_Mutex_t): New structure. | |
2008 | (_Jv_MutexDestroy): Only define if recursive mutexes available. | |
2009 | (_Jv_MutexLock): Likewise. | |
2010 | (_Jv_MutexUnlock): Likewise. | |
2011 | ||
2012 | 1999-02-10 Tom Tromey <tromey@cygnus.com> | |
2013 | ||
2014 | * aclocal.m4, configure, Makefile.in: Rebuilt. | |
2015 | * acinclude.m4: Renamed libjava to libgcj. Updated to use | |
2016 | automake 1.4. | |
2017 | * configure.in: Changed to track library changes. | |
2018 | * Makefile.am (toollib_LIBRARIES): Renamed libjava to libgcj. | |
2019 | (AM_CXXFLAGS): Likewise. | |
2020 | (data_DATA): Likewise. | |
2021 | (AM_CFLAGS): Likewise. | |
2022 | (JC1FLAGS): Likewise. | |
2023 | (libgcj_a_SOURCES): Likewise. | |
2024 | (EXTRA_libgcj_a_SOURCES): Likewise. | |
2025 | (libgcj_a_DEPENDENCIES): Likewise. | |
2026 | (libgcj_a_LIBADD): Likewise. | |
2027 | (libgcj.zip): Likewise. | |
2028 | (CLEANFILES): Likewise. | |
2029 | ($(nat_headers)): Likewise. | |
2030 | (java/lang/FirstThread.h): Likewise. | |
2031 | (java/lang/ThreadGroup.h): Likewise. | |
2032 | (java/lang/String.h): Likewise. | |
2033 | (java/lang/reflect/Field.h): Likewise. | |
2034 | (BUILT_SOURCES): Likewise. | |
2035 | (maintainer-check): Likewise. | |
2036 | (CONFIG_STATUS_DEPENDENCIES): Likewise. | |
2037 | Tue Feb 9 11:06:38 1999 Anthony Green <green@cygnus.com> | |
2038 | ||
2039 | * java/util/natGregorianCalendar.cc (computeFields): Only use | |
2040 | gmtime_r and localtime_r when configured for posix threads. | |
2041 | ||
2042 | * java/io/natFile.cc (get_entry): Only use readdir_r when | |
2043 | configured for posix threads. | |
2044 | ||
2045 | * java/util/natGregorianCalendar.cc: Update copyright notice. | |
2046 | * java/util/TimeZone.java: Ditto. | |
2047 | * java/util/SimpleTimeZone.java: Ditto. | |
2048 | ||
2049 | 1999-02-08 Tom Tromey <tromey@cygnus.com> | |
2050 | ||
2051 | * java/io/PrintStream.java (line_separator): New constant. | |
2052 | (print): Use line_separator, not `file.separator' property. | |
2053 | (println): Use line_separator. | |
2054 | ||
2055 | * java/lang/natClass.cc (newInstance): Throw IllegalAccessError | |
2056 | when trying to instantiate Class. | |
2057 | ||
2058 | * java/lang/ThreadGroup.java (ThreadGroup): Throw | |
2059 | NullPointerException if argument is null. | |
2060 | ||
2061 | * java/lang/Thread.java (setName): Throw NullPointerException, not | |
2062 | IllegalArgumentException. | |
2063 | (Thread): Likewise. | |
2064 | ||
2065 | 1999-02-08 Andrew Haley <aph@cygnus.com> | |
2066 | ||
2067 | * java/lang/natClass.cc (newInstance): Don't allow anyone to | |
2068 | create new Classes with Class.newInstance(). | |
2069 | ||
2070 | * java/lang/natClass.cc (_Jv_FindArrayClass): Only add a | |
2071 | semiciolon to end of an array Class's signature if the elements of | |
2072 | the array aren't themselves arrays. | |
2073 | ||
2074 | * java/lang/natSystem.cc (arraycopy): The size of an element of an | |
2075 | array of objects is always sizeof(jobject), not the size of the | |
2076 | object to which the reference points. | |
2077 | ||
2078 | 1999-02-08 Tom Tromey <tromey@cygnus.com> | |
2079 | ||
2080 | * java/util/BitSet.java (and): Throw NullPointerException when | |
2081 | required. | |
2082 | (or): Likewise. | |
2083 | (xor): Likewise. | |
2084 | ||
2085 | * java/util/BitSet.java (BitSet): Throw NegativeArraySizeException | |
2086 | if argument is negative. | |
2087 | (clear): Correctly compute `offset'. Throw | |
2088 | IndexOutOfBoundsException when required. | |
2089 | (set): Likewise. | |
2090 | (get): Likewise. Also, return correct value. | |
2091 | (ensure): Changed meaning of argument. | |
2092 | (toString): Wrap contents in `{}'; put spaces after commas. | |
2093 | (hashCode): Don't try to examine elements off the end of array. | |
2094 | (or): Correctly include bits past the end of this bit set. | |
2095 | (xor): Likewise. | |
2096 | ||
2097 | Thu Feb 4 12:48:03 1999 Warren Levy <warrenl@cygnus.com> | |
2098 | ||
2099 | * configure.host (mips-tx39-*): Use jmr3904dram.ld link script | |
2100 | instead of the jmr3904app.ld script (i.e. use DRAM instead of SRAM). | |
2101 | ||
2102 | 1999-02-04 Andrew Haley <aph@cygnus.com> | |
2103 | ||
2104 | * java/lang/natClass.cc (Class::forName): Remove code which mapped | |
2105 | '/' in signatures to '.' | |
2106 | (Class::getName): Likewise, | |
2107 | (_Jv_FindArrayClass): Add a semiciolon to end of an array Class's | |
2108 | signature. | |
2109 | * java/lang/natFirstThread.cc (run): Change '/' in main's | |
2110 | signature to '.'. | |
2111 | ||
2112 | 1999-02-03 Andrew Haley <aph@cygnus.com> | |
2113 | ||
2114 | * configure.host: -ffloat-store added when compiling libjava on | |
2115 | x86. fdlibm apparently relies on this. | |
2116 | ||
2117 | * java/lang/ThreadGroup.java (add): throw an exception if the | |
2118 | ThreadGroup has been destroyed. | |
2119 | ||
2120 | * java/lang/natMath.cc (round): Ensure correct NaN and overflow | |
2121 | behaviour. | |
2122 | ||
2123 | 1999-01-27 Tom Tromey <tromey@cygnus.com> | |
2124 | ||
2125 | * java/lang/StringBuffer.java (StringBuffer): Handle null | |
2126 | argument. | |
2127 | ||
2128 | 1999-01-21 Tom Tromey <tromey@cygnus.com> | |
2129 | ||
2130 | * java/lang/natFirstThread.cc (run): Don't require main to be | |
2131 | public. | |
2132 | ||
2133 | Wed Jan 20 15:44:56 1999 Anthony Green <green@cygnus.com> | |
2134 | ||
2135 | * boehm.cc (_Jv_InitGC): Clear out the free lists correctly. | |
2136 | ||
2137 | 1999-01-20 Tom Tromey <tromey@cygnus.com> | |
2138 | ||
2139 | * java/lang/natString.cc (_Jv_StringFindSlot): Synchronize on | |
2140 | StringClass. | |
2141 | (rehash): Likewise. | |
2142 | (intern): Likewise. | |
2143 | (unintern): Likewise. | |
2144 | (_Jv_NewStringUtf8Const): Likewise. | |
2145 | ||
2146 | * java/text/SimpleDateFormat.java (format): Use [a-zA-z], not | |
2147 | Character.isLetter, to see if character is self-quoting. Also, | |
2148 | correctly handle quoted characters. | |
2149 | (parse): Fixed typo. Also now throws ParseException. | |
2150 | ||
2151 | 1999-01-15 Tom Tromey <tromey@cygnus.com> | |
2152 | ||
2153 | * java/lang/natObject.cc (INIT_NEEDED): Added missing close paren. | |
2154 | ||
2155 | * java/lang/natObject.cc (INIT_NEEDED): Added cast in case where | |
2156 | _Jv_SyncInfo has `init' member. | |
2157 | ||
2158 | * include/quick-threads.h (_Jv_MutexUnlock): Return result of | |
2159 | coop_mutex_unlock. | |
2160 | ||
2161 | * java/lang/natObject.cc (_Jv_MonitorExit): Throw | |
2162 | IllegalMonitorStateException if unlock fails. | |
2163 | ||
2164 | * prims.cc (_Jv_NewPrimArray): Assume allocated memory is all | |
2165 | zero. | |
2166 | (_Jv_NewObjectArray): Likewise. | |
2167 | ||
2168 | 1999-01-14 Tom Tromey <tromey@cygnus.com> | |
2169 | ||
2170 | * java/lang/Character.java (isJavaIdentifierPart): Allow | |
2171 | LETTER_NUMBER characters. | |
2172 | ||
2173 | * chartables.pl (process_char): Fixed error messages. | |
2174 | ||
2175 | * include/java-chartables.h: Rebuilt with UniData 2.1.8. | |
2176 | * chartables.pl: Updated comments. Changed detection of non-digit | |
2177 | numeric values (no longer miss \u00b2 and friends). | |
2178 | ||
2179 | * java/lang/Character.java (isJavaIdentifierPart): Recognize | |
2180 | currency symbols and connector punctuation. | |
2181 | (isIdentifierIgnorable): Make 7f-9f ignorable. | |
2182 | ||
2183 | * prims.cc (_Jv_NewObjectArray): Check for overflow. | |
2184 | (_Jv_NewPrimArray): Likewise. | |
2185 | (SIZE_T_MAX): New define. | |
2186 | ||
2187 | * java/lang/ClassLoader.java (system): Now private and final. | |
2188 | ||
2189 | * boehm.cc (_Jv_MarkObj): Handle case where object's class is | |
2190 | null. | |
2191 | ||
2192 | * configure: Rebuilt. | |
2193 | * configure.in (EH_COMMON_INCLUDE): Add -I for `../include' as | |
2194 | well. | |
2195 | * exception.cc: Include gansidecl.h. | |
2196 | ||
2197 | 1999-01-14 Andrew Haley <aph@cygnus.com> | |
2198 | ||
2199 | * java/lang/Math.java, java/lang/natMath.cc: min and max routines | |
2200 | corrected: they didn't treat -0.0 and NaNs correctly. | |
2201 | ||
2202 | Wed Jan 13 13:32:22 1999 Anthony Green <green@cygnus.com> | |
2203 | ||
2204 | * nogc.cc: Use calloc to zero out memory. | |
2205 | ||
2206 | 1999-01-11 Tom Tromey <tromey@cygnus.com> | |
2207 | ||
2208 | * java/lang/natClass.cc (isInstance): Return false if this class | |
2209 | is primitive, not if class of `obj' is primitive. | |
2210 | (_Jv_IsInstanceOf): Rewrote to use Class.isInstance. | |
2211 | ||
2212 | * java/io/SequenceInputStream.java (close): Handle case where `in' | |
2213 | is already null. | |
2214 | ||
2215 | * java/text/DateFormat.java (format): New method. | |
2216 | ||
2217 | * mauve-libjava: Omit java.text.DateFormat. | |
2218 | ||
2219 | 1999-01-08 Tom Tromey <tromey@cygnus.com> | |
2220 | ||
2221 | * posix-threads.cc (_Jv_ThreadInitData): Removed name of unused | |
2222 | argument. | |
2223 | * include/posix-threads.h (_Jv_CondNotify): Removed name of unused | |
2224 | argument. | |
2225 | (_Jv_CondNotifyAll): Likewise. | |
2226 | ||
2227 | * configure: Rebuilt. | |
2228 | * configure.in: Change --enable-source-compilation logic to work | |
2229 | correctly. | |
2230 | ||
2231 | 1999-01-07 Andrew Haley <aph@cygnus.co.uk> | |
2232 | ||
2233 | * Makefile.am (AM_MAKEFLAGS): Remove RUNTEST, EXPECT, | |
2234 | and RUNTESTFLAGS from AM_MAKEFLAGS. | |
2235 | * configure.in: AM_RUNTESTFLAGS added. | |
2236 | * configure.host: AM_RUNTESTFLAGS added. | |
2237 | * Makefile.in, test/Makefile.in, testsuite/Makefile.in: rebuilt. | |
2238 | * configure: rebuilt. | |
2239 | * testsuite/Makefile.am: RUNTESTFLAGS set from AM_RUNTESTFLAGS. | |
2240 | ||
2241 | * testsuite/libjava.mauve/DejaGNUTestHarness.java (main): use of | |
2242 | argv[] made conditional because embedded targets may not have | |
2243 | argv[]. | |
2244 | * testsuite/libjava.mauve/DejaGNUTestHarness.java (main): | |
2245 | explanatory comments added in call to super. | |
2246 | ||
2247 | * testsuite/libjava.mauve/test.exp (test_mauve): Test for an | |
2248 | exception thrown in the test harness itself added. | |
2249 | * testsuite/libjava.mauve/test.exp (test_mauve_sim): New routine. | |
2250 | ||
2251 | Wed Jan 6 17:27:39 1999 Per Bothner <bothner@cygnus.com> | |
2252 | ||
2253 | * java/text/DateFormatSymbols.java (zoneStringsDefault): Make static. | |
2254 | ||
2255 | 1999-01-06 Tom Tromey <tromey@cygnus.com> | |
2256 | ||
2257 | * java/io/natFile.cc (get_entry): New function. | |
2258 | (performList): Use get_entry. | |
2259 | * include/config.h.in: Rebuilt. | |
2260 | * acconfig.h (HAVE_READDIR_R): New define. | |
2261 | * configure: Rebuilt. | |
2262 | * configure.in: Look for readdir_r. | |
2263 | ||
2264 | * java/util/natGregorianCalendar.cc (computeFields): Fixed comment. | |
2265 | ||
2266 | * java/util/natDate.cc: Added copyright header. | |
2267 | ||
2268 | 1999-01-05 Tom Tromey <tromey@cygnus.com> | |
2269 | ||
2270 | * include/config.h.in: Rebuilt. | |
2271 | * acconfig.h (HAVE_ACCESS, HAVE_STAT, HAVE_REALPATH, HAVE_MKDIR, | |
2272 | HAVE_REALPATH, HAVE_RMDIR, HAVE_UNLINK): New macros. | |
2273 | * configure: Rebuilt. | |
2274 | * configure.in: Check for access, stat, mkdir, rename, rmdir, | |
2275 | unlink, and realpath. | |
2276 | * java/io/natFile.cc (access): Conditionalize on HAVE_ACCESS. | |
2277 | (stat): Conditionalize on HAVE_STAT. | |
2278 | (attr): Likewise. | |
2279 | (getCanonicalPath): Conditionalize on HAVE_REALPATH. | |
2280 | (performMkdir): Conditionalize on HAVE_MKDIR. | |
2281 | (performRenameTo): Conditionalize on HAVE_RENAME. | |
2282 | (performDelete): Conditionalize on HAVE_RMDIR and HAVE_UNLINK. | |
2283 | ||
2284 | * include/config.h.in: Rebuilt. | |
2285 | * acconfig.h (HAVE_GMTIME_R, HAVE_LOCALTIME_R): New defines. | |
2286 | * configure: Rebuilt. | |
2287 | * configure.in: Check for gmtime_r and localtime_r. For cross | |
2288 | builds, assume they exist. | |
2289 | ||
2290 | * mauve-libjava: Include java.text.DateFormatSymbols again. | |
2291 | * java/text/DateFormatSymbols.java (setLocalPatternChars): Renamed | |
2292 | from setAmPmStrings. | |
2293 | ||
2294 | * mauve-libjava: Omit java.text.DateFormatSymbols. | |
2295 | ||
2296 | 1999-01-04 Tom Tromey <tromey@cygnus.com> | |
2297 | ||
2298 | * java/io/PushbackReader.java: `off' already includes `numBytes'. | |
2299 | ||
2300 | * java/io/LineNumberReader.java (read): Decrement `count' in | |
2301 | loop. | |
2302 | ||
2303 | * java/io/BufferedWriter.java (write): Correctly determine when | |
2304 | incoming data would overrun buffer. Flush buffer if write causes | |
2305 | it to become full. | |
2306 | ||
2307 | * java/io/BufferedOutputStream.java (write): Increment `count' | |
2308 | after copying data into buffer. | |
2309 | ||
2310 | * java/io/FilterOutputStream.java (close): Call flush first. | |
2311 | ||
2312 | * java/io/PipedReader.java (read): If read causes `out' to catch | |
2313 | up with `in', then set `in' to -1. | |
2314 | ||
2315 | * java/io/LineNumberInputStream.java (read): If no bytes read, | |
2316 | return -1. If no bytes requested, return 0. | |
2317 | ||
2318 | * java/lang/StringBuffer.java (insert): If `str' is null, use | |
2319 | string "null". | |
2320 | ||
2321 | 1998-12-30 Anthony Green <green@cygnus.com> | |
2322 | ||
2323 | * README: Removed. | |
2324 | * LIBJAVA_LICENSE, COPYING.LIB: Created. | |
2325 | ||
2326 | 1998-12-23 Tom Tromey <tromey@cygnus.com> | |
2327 | ||
2328 | * java/io/PushbackInputStream.java (read): `off' already includes | |
2329 | `numBytes'. | |
2330 | ||
2331 | 1998-12-17 Tom Tromey <tromey@cygnus.com> | |
2332 | ||
2333 | * Makefile.in: Rebuilt. | |
2334 | * Makefile.am (GCJ_canadian): Include target_alias. | |
2335 | ||
2336 | * java/lang/natFirstThread.cc (run): Require main's class to be | |
2337 | public. | |
2338 | ||
2339 | 1998-12-16 Tom Tromey <tromey@cygnus.com> | |
2340 | ||
2341 | * java/util/Locale.java (JAPAN): Language is `ja', not `jp'. | |
2342 | ||
2343 | * java/util/ResourceBundle.java (getBundle): Throw | |
2344 | NullPointerException if locale argument is null. | |
2345 | ||
2346 | * java/lang/natClass.cc (forName): Throw NullPointerException if | |
2347 | argument is null. | |
2348 | Include NullPointerException.h. | |
2349 | ||
2350 | 1998-12-14 Tom Tromey <tromey@cygnus.com> | |
2351 | ||
2352 | * java/lang/Character.java (Character): Implement Comparable. | |
2353 | (compareTo): New methods. | |
2354 | ||
2355 | * java/util/Locale.java (CANADA, FRANCE, JAPAN): Now `final'. Use | |
2356 | correct country and language codes. | |
2357 | (UK, US): New constants. | |
2358 | (setDefault): Language codes are lower-case. | |
2359 | ||
2360 | * java/lang/natClass.cc (getDeclaredConstructor): New method. | |
2361 | (getDeclaredConstructors): Likewise. | |
2362 | (getDeclaredField): Likewise. | |
2363 | (getDeclaredFields): Likewise. | |
2364 | (getDeclaredMethod): Likewise. | |
2365 | (getDeclaredMethods): Likewise. | |
2366 | (getField): Likewise. | |
2367 | (getFields): Likewise. | |
2368 | (getMethod): Likewise. | |
2369 | (getMethods): Likewise. | |
2370 | * java/lang/Class.java: Declare new methods. | |
2371 | * java/lang/Class.h: Declare new methods. | |
2372 | ||
2373 | * java/lang/natString.cc: Removed `#pragma implementation'. | |
2374 | * include/cni.h (_Jv_GetStringChars): New function. | |
2375 | * Makefile.in: Rebuilt. | |
2376 | * Makefile.am (java/lang/String.h): Don't generate definition for | |
2377 | _Jv_GetStringChars. | |
2378 | ||
2379 | * java/lang/natString.cc: Added `#pragma implementation'. | |
2380 | ||
2381 | * Makefile.in: Rebuilt. | |
2382 | * Makefile.am (libjava.zip): Put build directory first in class | |
2383 | path to avoid bug in compiler. | |
2384 | ||
2385 | 1998-12-14 Anthony Green <green@cygnus.com> | |
2386 | ||
2387 | * java/util/Locale.java: Add CANADA, FRANCE and JAPAN. | |
2388 | ||
2389 | * include/javaprims.h: Add EventObject, ListResourceBundle and | |
2390 | ResourceBundle. | |
2391 | ||
2392 | 1998-12-13 Anthony Green <green@cygnus.com> | |
2393 | ||
2394 | * mauve-libjava: Run the ResourceBundle tests. | |
2395 | ||
2396 | * java/lang/natClass.cc (_Jv_FindClass): Don't fail when loader is | |
2397 | NULL. | |
2398 | ||
2399 | Sun Dec 13 18:11:21 1998 Per Bothner <bothner@cygnus.com> | |
2400 | ||
2401 | * configure.in, configure: Make --enable-gcj-classes and | |
2402 | --enable-source-compilation the default. (Nervously...) Yeah! | |
2403 | Based on a patch from Tom Tromey. | |
2404 | ||
2405 | 1998-12-13 Tom Tromey <tromey@cygnus.com> | |
2406 | ||
2407 | * java/util/EventObject.java: New file. | |
2408 | * java/util/EventListener.java: New file. | |
2409 | ||
2410 | * include/javaprims.h: Updated class declarations. | |
2411 | * Makefile.in: Rebuilt. | |
2412 | * Makefile.am (nat_headers): Added Constructor.h. | |
2413 | (java/lang/String.h): Don't inline String::length(). | |
2414 | * java/lang/Class.h (getConstructor, getConstructors): Declare. | |
2415 | * java/lang/Class.java (initializeClass, hackRunInitializers, | |
2416 | hackTrampoline): No need to mark `final'. | |
2417 | (getConstructor, getConstructors): Declare. | |
2418 | * java/lang/reflect/Field.java (equals): New method. | |
2419 | * java/lang/natClass.cc (getConstructor): New method. | |
2420 | (getConstructors): Likewise. | |
2421 | Include Method.h, Field.h, Constructor.h. | |
2422 | * java/lang/reflect/Constructor.java: New file. | |
2423 | * java/lang/reflect/Method.java (toString): No space before open | |
2424 | paren. | |
2425 | (equals): Simplified. | |
2426 | ||
2427 | 1998-12-13 Anthony Green <green@cygnus.com> | |
2428 | ||
2429 | * java/util/ResourceBundle.java: New file. | |
2430 | * java/util/ListResourceBundle.java: New file. | |
2431 | ||
2432 | 1998-12-12 Tom Tromey <tromey@cygnus.com> | |
2433 | ||
2434 | * java/lang/System.java (in, out, err): Now buffered streams by | |
2435 | default. | |
2436 | ||
2437 | * include/javaprims.h: Updated class declarations. | |
2438 | * Makefile.in: Rebuilt. | |
2439 | * Makefile.am (nat_headers): Added AccessibleObject.h, Method.h, | |
2440 | InvocationTargetException.h, Void.h, Byte.h, Short.h, Integer.h, | |
2441 | Long.h, Boolean.h. | |
2442 | (nat_files): Added natMethod.o. | |
2443 | * java/lang/reflect/natMethod.cc: New file. | |
2444 | * java/lang/reflect/Field.java (Field): Now extends | |
2445 | AccessibleObject. | |
2446 | * java/lang/reflect/AccessibleObject.java: New file. | |
2447 | * java/lang/reflect/InvocationTargetException.java: New file. | |
2448 | ||
2449 | 1998-12-11 Tom Tromey <tromey@cygnus.com> | |
2450 | ||
2451 | * boehm.cc, prims.cc, include/jvm.h, java/lang/Class.h, | |
2452 | java/lang/Object.h, java/lang/natClass.cc, java/lang/natObject.cc: | |
2453 | Renamed dtable -> vtable and _Jv_DispatchTable -> _Jv_VTable. | |
2454 | ||
2455 | * java/io/OutputStreamWriter.java (buffer): Size at 8192 bytes. | |
2456 | ||
2457 | 1998-12-09 Tom Tromey <tromey@cygnus.com> | |
2458 | ||
2459 | * java/util/natDate.cc (_POSIX_THREAD_SEMANTICS): Define if | |
2460 | HAVE_CTIME_R. | |
2461 | ||
2462 | * java/lang/natCharacter.cc (toTitleCase): Handle case where | |
2463 | character is already titlecase. | |
2464 | ||
2465 | * java/lang/Character.java (isJavaLetter): Follow spec. | |
2466 | (isJavaLetterOrDigit): Likewise. | |
2467 | ||
2468 | * java/util/GregorianCalendar.java (gregorianCutover): Append | |
2469 | `L'. | |
2470 | ||
2471 | * java/lang/Character.java (isWhitespace): Use \r and not \u000d. | |
2472 | ||
2473 | 1998-12-08 Tom Tromey <tromey@cygnus.com> | |
2474 | ||
2475 | * java/lang/reflect/Modifier.java (toString): Replace second | |
2476 | `static' with `synchronized'. | |
2477 | ||
2478 | * java/lang/natObject.cc (_Jv_FinalizeObject): Call hack12_6. | |
2479 | * java/lang/Object.h (Object::hack12_6): Declare. | |
2480 | * java/lang/Object.java (hack12_6): New function. | |
2481 | ||
2482 | 1998-12-07 Tom Tromey <tromey@cygnus.com> | |
2483 | ||
2484 | * include/java-array.h (__JArray::clone): Removed decl. | |
2485 | * prims.cc (__JArray::clone): Removed. | |
2486 | * java/lang/natObject.cc (clone): Incorporate code to clone an | |
2487 | array. | |
2488 | ||
2489 | * java/lang/natClass.cc (_Jv_NewClass): Set class loader. | |
2490 | (_Jv_FindArrayClass): Set dtable_method_count on new class. | |
2491 | Correctly use dtable_method_count. | |
2492 | ||
2493 | 1998-12-07 Andrew Haley <aph@cygnus.co.uk> | |
2494 | ||
2495 | * java/lang/Double.java (isInfinite, isNaN): Handle correct | |
2496 | IEEE754 values. | |
2497 | ||
2498 | 1998-12-06 Anthony Green <green@cygnus.com> | |
2499 | ||
2500 | * mauve-libjava: Don't test ResourceBundle. | |
2501 | ||
2502 | 1998-12-04 Tom Tromey <tromey@cygnus.com> | |
2503 | ||
2504 | More JDK 1.2 spec fixes: | |
2505 | * java/util/Date.java (millis): Now private. | |
2506 | * java/text/DateFormat.java (DateFormat): Constructor now | |
2507 | protected. | |
2508 | * java/lang/Void.java (Void): New private constructor. | |
2509 | * java/lang/System.java (System): New private constructor. | |
2510 | * java/lang/SecurityManager.java (classLoaderDepth): Uncommented | |
2511 | body. | |
2512 | (currentClassLoader): New method. | |
2513 | (currentLoadedClass): New method. | |
2514 | * java/lang/Math.java (Math): New private constructor. | |
2515 | * java/lang/Compiler.java (Compiler): New private constructor. | |
2516 | * java/lang/Class.java (Class): New private constructor. | |
2517 | * java/lang/Double.java (toString): Removed access specifier from | |
2518 | two-argument `toString' method. | |
2519 | ||
2520 | 1998-12-04 Andrew Haley <aph@cygnus.co.uk> | |
2521 | ||
2522 | * java/lang/s_rint.c (rint): Make the variable w volatile; this | |
2523 | causes it to be flushed from an fp register (where it may be | |
2524 | longer than double precision) to a double in memory. This is | |
2525 | essential to ensure correct rounding behaviour. | |
2526 | ||
2527 | 1998-12-04 Tom Tromey <tromey@cygnus.com> | |
2528 | ||
2529 | * include/java-assert.h (_Jv_Abort): Declare as `noreturn' | |
2530 | function. | |
2531 | ||
2532 | * java/lang/Character.java (isIdentifierIgnorable): Added comment | |
2533 | explaining apparent divergence from JDK 1.2. | |
2534 | ||
2535 | 1998-12-04 Per Bothner <bothner@cygnus.com> | |
2536 | ||
2537 | * include/no-threads.h: Remove unused parameter names. | |
2538 | This silences a bunch of warnings. | |
2539 | ||
2540 | 1998-12-04 Tom Tromey <tromey@cygnus.com> | |
2541 | ||
2542 | * include/config.h.in: Rebuilt. | |
2543 | * acconfig.h (HAVE_CTIME_R): New symbol. | |
2544 | ||
2545 | 1998-12-03 Tom Tromey <tromey@cygnus.com> | |
2546 | ||
2547 | * mauve-libjava: Added many more categories to reject. | |
2548 | ||
2549 | Changes to follow JDK1.2 spec: | |
2550 | * java/lang/System.java (arraycopy, init_properties, checkSetIO, | |
2551 | setErr, setIn, setOut): No need to be `final'. | |
2552 | * java/lang/natObject.cc (wait): `nanos' argument is an int. | |
2553 | * java/lang/Object.h (Object::wait): `nanos' argument is an int. | |
2554 | * java/lang/Object.java (wait): `nanos' argument is an int. | |
2555 | * java/lang/VirtualMachineError.java: Class is abstract. | |
2556 | * java/lang/ThreadDeath.java: Made constructors public. | |
2557 | * java/io/FileDescriptor.java (FileDescriptor): Added missing | |
2558 | constructor. | |
2559 | ||
2560 | Thu Dec 3 20:29:38 1998 Warren Levy <warrenl@cygnus.com> | |
2561 | ||
2562 | * java/text/DateFormatSymbols.java (getAmPmStrings, | |
2563 | getLocalPatternChars, setShortWeekdays): Fixed typos in method names. | |
2564 | ||
2565 | Thu Dec 3 19:21:53 1998 Warren Levy <warrenl@cygnus.com> | |
2566 | ||
2567 | * java/io/RandomAccessFile.java (writeInt, writeLong, writeFloat, | |
2568 | writeDouble, writeByte, writeBytes, writeChar, writeChars, | |
2569 | writeShort, writeUTF): Added 'final' to signature to match JDK 1.1 | |
2570 | and 1.2. | |
2571 | ||
2572 | * java/lang/IllegalThreadStateException.java | |
2573 | (IllegalThreadStateException): Changed extending class to match spec. | |
2574 | ||
2575 | * java/lang/NumberFormatException.java | |
2576 | (java/lang/NumberFormatException): Changed extending class to match | |
2577 | spec. | |
2578 | ||
2579 | * java/util/Observer.java (Observer): Changed sig to match JCL. | |
2580 | ||
2581 | Thu Dec 3 19:05:26 1998 Warren Levy <warrenl@cygnus.com> | |
2582 | ||
2583 | * java/io/DataOutputStream.java (writeInt, writeLong, writeFloat, | |
2584 | writeDouble, writeBytes, writeChars, writeUTF): Added 'final' to | |
2585 | signature to match JDK 1.1 and 1.2. | |
2586 | ||
2587 | Thu Dec 3 16:47:42 1998 Warren Levy <warrenl@cygnus.com> | |
2588 | ||
2589 | * Makefile.am: Changed to use $(PERL) rather than hardcoded 'perl'. | |
2590 | * configure.in (PERL): Added AC_CHECK_PROGS to look for installed perl. | |
2591 | * Makefile.in, configure: Rebuilt. | |
2592 | ||
2593 | * java/text/ParsePosition.java (setErrorIndex): Fixed typo in method | |
2594 | name. | |
2595 | ||
2596 | 1998-12-02 Tom Tromey <tromey@cygnus.com> | |
2597 | ||
2598 | * mauve-libjava: New file. | |
2599 | ||
2600 | The remaining `-W -Wall' fixes: | |
2601 | * java/lang/e_sqrt.c (__ieee754_sqrt): Added cast to unsigned to | |
2602 | avoid warning. | |
2603 | * java/lang/s_scalbn.c (scalbn): Added braces to avoid ambiguous | |
2604 | `else'. | |
2605 | * java/lang/s_floor.c (floor): Added cast to unsigned to avoid | |
2606 | warning. | |
2607 | * java/lang/e_pow.c (__ieee754_pow): Added cast to unsigned to | |
2608 | avoid warning. | |
2609 | * java/lang/e_log.c (__ieee754_log): Added braces to avoid | |
2610 | ambiguous `else'. | |
2611 | * java/lang/s_ceil.c (ceil): Cast `i1' to unsigned to avoid | |
2612 | warning. | |
2613 | * java/lang/e_atan2.c (__ieee754_atan2): Added parentheses per gcc | |
2614 | suggestion. | |
2615 | * java/lang/strtod.c (_strtod_r): Added parentheses per gcc | |
2616 | suggestion. | |
2617 | * java/lang/mprec.c (Balloc): Removed unused variable. | |
2618 | (mult): Added parentheses per gcc suggestion. | |
2619 | (pow5mult): Likewise. | |
2620 | (lshift): Likewise. | |
2621 | (ulp): Likewise. | |
2622 | (b2d): Likewise. | |
2623 | (d2b): Likewise. | |
2624 | * java/lang/dtoa.c (_dtoa_r): Added some parentheses per gcc | |
2625 | suggestion. Added cast to `int' to avoid signed/unsigned | |
2626 | comparison. | |
2627 | * jni.cc (_Jv_JNI_GetSuperclass): Removed name of unused | |
2628 | parameter. | |
2629 | (IsAssignableFrom): Likewise. | |
2630 | (_Jv_JNI_GetObjectField): Likewise. | |
2631 | (_Jv_JNI_GetByteField): Likewise. | |
2632 | (_Jv_JNI_GetShortField): Likewise. | |
2633 | (_Jv_JNI_GetIntField): Likewise. | |
2634 | (_Jv_JNI_GetLongField): Likewise. | |
2635 | (_Jv_JNI_GetStringLength): Likewise. | |
2636 | (_Jv_JNI_ToReflectedField): Likewise. | |
2637 | (_Jv_JNI_FromReflectedField): Likewise. | |
2638 | (_Jv_JNIFunctions): Uncommented IsAssignableFrom. | |
2639 | ||
2640 | * Makefile.in: Rebuilt. | |
2641 | * Makefile.am (AM_CFLAGS): Define conditionally. | |
2642 | (WARNINGS): New macro. | |
2643 | (AM_CXXFLAGS): Include WARNINGS. | |
2644 | * configure: Rebuilt. | |
2645 | * configure.in (USING_GCC): New conditional. | |
2646 | ||
2647 | * prims.cc (_Jv_Abort): Declare twice, to avoid warnings. | |
2648 | ||
2649 | * java/lang/Character.java: Changed classification constants to | |
2650 | type `byte' to match JDK 1.2 docs. | |
2651 | ||
2652 | 1998-12-01 Tom Tromey <tromey@cygnus.com> | |
2653 | ||
2654 | Some fixes to be `-W -Wall' clean: | |
2655 | * boehm.cc (_Jv_MarkObj): Removed name of unused parameter. | |
2656 | (_Jv_MarkArray): Likewise. | |
2657 | * java/lang/natCharacter.cc (to_lower_title): `i' is unsigned. | |
2658 | (to_upper_title): Likewise. | |
2659 | (isTitleCase): Likewise. | |
2660 | (toTitleCase): Likewise. | |
2661 | (getNumericValue): Likewise. | |
2662 | (isLowerCase): Likewise. | |
2663 | * java/lang/natString.cc (charAt): Don't cast `i' to unsigned | |
2664 | (avoids compiler warning). | |
2665 | * java/lang/natClass.cc (getDeclaredClasses): Always return a | |
2666 | value. | |
2667 | (getDeclaringClass): Likewise. | |
2668 | (_Jv_LookupInterfaceMethod): Likewise. | |
2669 | (_Jv_NewClass): Removed name of unused parameter. | |
2670 | * exception.cc (_Jv_type_matcher): Removed unused variable. | |
2671 | (_Jv_setup_eh_info): Removed name of unused parameter. | |
2672 | * prims.cc (_Jv_NewArray): Always return a value. | |
2673 | (_Jv_FindClassFromSignature): Likewise. | |
2674 | * include/java-field.h (getNameUtf8Const): Removed name of unused | |
2675 | parameter. | |
2676 | * include/quick-threads.h (_Jv_ThreadInitData): Removed name of | |
2677 | unused parameter. | |
2678 | (_Jv_ThreadSetPriority): Likewise. | |
2679 | ||
2680 | * java/lang/natString.cc (hashChars): Now static. | |
2681 | ||
2682 | * java/lang/FirstThread.java (FirstThread): Now final. | |
2683 | ||
2684 | * java/io/File.java (performMkdir, performRenameTo): Now private. | |
2685 | ||
2686 | * java/lang/natSystem.cc (currentTimeMillis): Return a value even | |
2687 | if no time function defined. | |
2688 | ||
2689 | * configure: Rebuilt. | |
2690 | * configure.in: Look for ctime_r, ctime. | |
2691 | * java/util/Date.java (toString): Now native. | |
2692 | * java/util/natDate.cc (toString): Rewrote. | |
2693 | ||
2694 | 1998-11-27 Andrew Haley <aph@viagra.cygnus.co.uk> | |
2695 | ||
2696 | * Add LDFLAGS line to allow TX39 test cases to link when cross | |
2697 | compiling. | |
2698 | ||
2699 | 1998-11-23 Anthony Green <green@cygnus.com> | |
2700 | ||
2701 | * boehm.cc, chartables.pl, classes.pl, exception.cc, jni.cc, | |
2702 | no-threads.cc, nogc.cc, posix-threads.cc, prims.cc, | |
2703 | quick-threads.cc, include/boehm-gc.h, include/cni.h, | |
2704 | include/java-array.h, include/java-assert.h, include/java-field.h, | |
2705 | include/javaprims.h, include/jni.h, include/jvm.h, | |
2706 | include/no-gc.h, include/no-threads.h, include/posix-threads.h, | |
2707 | include/quick-threads.h, java/io/BufferedInputStream.java, | |
2708 | java/io/BufferedOutputStream.java, java/io/BufferedReader.java, | |
2709 | java/io/BufferedWriter.java, java/io/ByteArrayInputStream.java, | |
2710 | java/io/ByteArrayOutputStream.java, java/io/CharArrayReader.java, | |
2711 | java/io/CharArrayWriter.java, | |
2712 | java/io/CharConversionException.java, java/io/DataInput.java, | |
2713 | java/io/DataInputStream.java, java/io/DataOutput.java, | |
2714 | java/io/DataOutputStream.java, java/io/EOFException.java, | |
2715 | java/io/File.java, java/io/FileDescriptor.java, | |
2716 | java/io/FileInputStream.java, java/io/FileNotFoundException.java, | |
2717 | java/io/FileOutputStream.java, java/io/FileReader.java, | |
2718 | java/io/FileWriter.java, java/io/FilenameFilter.java, | |
2719 | java/io/FilterInputStream.java, java/io/FilterOutputStream.java, | |
2720 | java/io/FilterReader.java, java/io/FilterWriter.java, | |
2721 | java/io/IOException.java, java/io/InputStream.java, | |
2722 | java/io/InputStreamReader.java, | |
2723 | java/io/InterruptedIOException.java, | |
2724 | java/io/LineNumberInputStream.java, java/io/LineNumberReader.java, | |
2725 | java/io/OutputStream.java, java/io/OutputStreamWriter.java, | |
2726 | java/io/PipedInputStream.java, java/io/PipedOutputStream.java, | |
2727 | java/io/PipedReader.java, java/io/PipedWriter.java, | |
2728 | java/io/PrintStream.java, java/io/PrintWriter.java, | |
2729 | java/io/PushbackInputStream.java, java/io/PushbackReader.java, | |
2730 | java/io/RandomAccessFile.java, java/io/Reader.java, | |
2731 | java/io/SequenceInputStream.java, java/io/Serializable.java, | |
2732 | java/io/StreamTokenizer.java, | |
2733 | java/io/StringBufferInputStream.java, java/io/StringReader.java, | |
2734 | java/io/StringWriter.java, java/io/SyncFailedException.java, | |
2735 | java/io/UTFDataFormatException.java, | |
2736 | java/io/UnsupportedEncodingException.java, java/io/Writer.java, | |
2737 | java/io/natFile.cc, java/io/natFileDescriptorEcos.cc, | |
2738 | java/io/natFileDescriptorPosix.cc, | |
2739 | java/lang/AbstractMethodError.java, | |
2740 | java/lang/ArithmeticException.java, | |
2741 | java/lang/ArrayIndexOutOfBoundsException.java, | |
2742 | java/lang/ArrayStoreException.java, java/lang/Boolean.java, | |
2743 | java/lang/Byte.java, java/lang/Character.java, java/lang/Class.h, | |
2744 | java/lang/Class.java, java/lang/ClassCastException.java, | |
2745 | java/lang/ClassCircularityError.java, | |
2746 | java/lang/ClassFormatError.java, java/lang/ClassLoader.java, | |
2747 | java/lang/ClassNotFoundException.java, | |
2748 | java/lang/CloneNotSupportedException.java, | |
2749 | java/lang/Cloneable.java, java/lang/Comparable.java, | |
2750 | java/lang/Compiler.java, java/lang/Double.java, | |
2751 | java/lang/Error.java, java/lang/Exception.java, | |
2752 | java/lang/ExceptionInInitializerError.java, | |
2753 | java/lang/FirstThread.java, java/lang/Float.java, | |
2754 | java/lang/IllegalAccessError.java, | |
2755 | java/lang/IllegalAccessException.java, | |
2756 | java/lang/IllegalArgumentException.java, | |
2757 | java/lang/IllegalMonitorStateException.java, | |
2758 | java/lang/IllegalStateException.java, | |
2759 | java/lang/IllegalThreadStateException.java, | |
2760 | java/lang/IncompatibleClassChangeError.java, | |
2761 | java/lang/IndexOutOfBoundsException.java, | |
2762 | java/lang/InstantiationError.java, | |
2763 | java/lang/InstantiationException.java, java/lang/Integer.java, | |
2764 | java/lang/InternalError.java, java/lang/InterruptedException.java, | |
2765 | java/lang/LinkageError.java, java/lang/Long.java, | |
2766 | java/lang/Math.java, java/lang/NegativeArraySizeException.java, | |
2767 | java/lang/NoClassDefFoundError.java, | |
2768 | java/lang/NoSuchFieldError.java, | |
2769 | java/lang/NoSuchFieldException.java, | |
2770 | java/lang/NoSuchMethodError.java, | |
2771 | java/lang/NoSuchMethodException.java, | |
2772 | java/lang/NullPointerException.java, java/lang/Number.java, | |
2773 | java/lang/NumberFormatException.java, java/lang/Object.h, | |
2774 | java/lang/Object.java, java/lang/OutOfMemoryError.java, | |
2775 | java/lang/Process.java, java/lang/Runnable.java, | |
2776 | java/lang/Runtime.java, java/lang/RuntimeException.java, | |
2777 | java/lang/SecurityException.java, java/lang/SecurityManager.java, | |
2778 | java/lang/Short.java, java/lang/StackOverflowError.java, | |
2779 | java/lang/String.java, java/lang/StringBuffer.java, | |
2780 | java/lang/StringIndexOutOfBoundsException.java, | |
2781 | java/lang/System.java, java/lang/Thread.java, | |
2782 | java/lang/ThreadDeath.java, java/lang/ThreadGroup.java, | |
2783 | java/lang/Throwable.java, java/lang/UnknownError.java, | |
2784 | java/lang/UnsatisfiedLinkError.java, | |
2785 | java/lang/UnsupportedOperationException.java, | |
2786 | java/lang/VerifyError.java, java/lang/VirtualMachineError.java, | |
2787 | java/lang/Void.java, java/lang/natCharacter.cc, | |
2788 | java/lang/natClass.cc, java/lang/natDouble.cc, | |
2789 | java/lang/natFirstThread.cc, java/lang/natFloat.cc, | |
2790 | java/lang/natMath.cc, java/lang/natObject.cc, | |
2791 | java/lang/natRuntime.cc, java/lang/natString.cc, | |
2792 | java/lang/natSystem.cc, java/lang/natThread.cc, | |
2793 | java/lang/reflect/Field.java, java/lang/reflect/Member.java, | |
2794 | java/lang/reflect/Modifier.java, java/lang/reflect/natField.cc, | |
2795 | java/text/DateFormat.java, java/text/DateFormatSymbols.java, | |
2796 | java/text/FieldPosition.java, java/text/Format.java, | |
2797 | java/text/NumberFormat.java, java/text/ParseException.java, | |
2798 | java/text/ParsePosition.java, java/text/SimpleDateFormat.java, | |
2799 | java/util/BitSet.java, java/util/Calendar.java, | |
2800 | java/util/ConcurrentModificationException.java, | |
2801 | java/util/Date.java, java/util/Dictionary.java, | |
2802 | java/util/EmptyStackException.java, java/util/Enumeration.java, | |
2803 | java/util/GregorianCalendar.java, java/util/Hashtable.java, | |
2804 | java/util/Locale.java, java/util/MissingResourceException.java, | |
2805 | java/util/NoSuchElementException.java, java/util/Observable.java, | |
2806 | java/util/Observer.java, java/util/Properties.java, | |
2807 | java/util/Random.java, java/util/SimpleTimeZone.java, | |
2808 | java/util/Stack.java, java/util/StringTokenizer.java, | |
2809 | java/util/TimeZone.java, java/util/TooManyListenersException.java, | |
2810 | java/util/Vector.java, java/util/natGregorianCalendar.cc: Updated | |
2811 | copyright notices. | |
2812 | ||
2813 | * exception.cc: Include eh-common.h instead of duplicating | |
2814 | code. | |
2815 | ||
2816 | 1998-11-23 Tom Tromey <tromey@cygnus.com> | |
2817 | ||
2818 | * configure.host: Don't add `-O2' to libjava_flags. Only add | |
2819 | `-Os' to libjava_flags once. | |
2820 | ||
2821 | 1998-11-17 Andrew Haley <aph@viagra.cygnus.co.uk> | |
2822 | ||
2823 | * Makefile.am: add LIBJAVA_JAVAFLAGS. | |
2824 | * Makefile.in: likewise | |
2825 | * acconfig.h: add ECOS conditional for configure.h | |
2826 | * config.h.in: likewise | |
2827 | * configure: add test for --with-ecos | |
2828 | * configure.in: likewise | |
2829 | * java/io/natFileDescriptorEcos.cc (java::io::FileDescriptor::write): | |
2830 | rename call to avoid name clash. | |
2831 | * java/lang/natSystem.cc: add eCos clock support. | |
2832 | * java/util/natGregorianCalendar.cc: add eCos support. | |
2833 | ||
2834 | 1998-11-20 Andrew Haley <aph@viagra.cygnus.co.uk> | |
2835 | ||
2836 | * Makefile.am, Makefile.in, configure.host: tx39 build option | |
2837 | "-G 0" added. | |
2838 | ||
2839 | Wed Nov 18 18:55:25 1998 Warren Levy <warrenl@cygnus.com> | |
2840 | ||
2841 | * java/io/BufferedReader.java: Added more comments for clarity. | |
2842 | (mark): Used more mnemonic name for local var extraBuffSpace. | |
2843 | ||
2844 | * java/io/LineNumberReader.java (lineEnd): Removed method to avoid | |
2845 | confusion with private method of same name in superclass. | |
2846 | (skipRedundantLF): Set fields in special case to avoid infinite | |
2847 | recursion. Check if markPos has been invalidated in special case. | |
2848 | (readLine): Rewritten to use readLine method of superclass. | |
2849 | (skip): Incorporated code from lineEnd. | |
2850 | ||
2851 | Wed Nov 18 02:46:03 1998 Warren Levy <warrenl@cygnus.com> | |
2852 | ||
2853 | * java/io/BufferedReader.java (readLine): New method. | |
2854 | (lineEnd): new private method. | |
2855 | (mark): Track special case for readLine of getting '\r' at the | |
2856 | end of the buffer. | |
2857 | (reset): Ditto. | |
2858 | (read): Ditto. | |
2859 | (fill): Ditto. | |
2860 | (skip): Ditto. | |
2861 | ||
2862 | * java/io/InputStreamReader.java (read): Return number chars skipped | |
2863 | rather than requested. | |
2864 | ||
2865 | * java/lang/StringBuffer.java (append): Update count and differentiate | |
2866 | between field and local variable. | |
2867 | ||
2868 | * java/util/Date.java (parseTz): Evaluate in minutes rather than | |
2869 | seconds. Deal with military style time. | |
2870 | (parse): Consistently treat all timezones in minutes until final | |
2871 | calculation. Flag as non-local timezone. Return value in milliseconds. | |
2872 | (setTime): Adjust for year offset from 1900. | |
2873 | (UTC): Adjust for year offset from 1900. | |
2874 | ||
2875 | 1998-11-17 Tom Tromey <tromey@cygnus.com> | |
2876 | ||
2877 | * configure: Rebuilt. | |
2878 | * configure.in: Switch on host, not target. | |
2879 | ||
2880 | * Makefile.in: Rebuilt. | |
2881 | * Makefile.am (GCJ_no): New macro. | |
2882 | (GCJ): Use @CANADIAN@. | |
2883 | (GCJH_no): New macro | |
2884 | (GCJH_canadian): New macro. | |
2885 | (GCJH): Use @CANADIAN@. | |
2886 | (ZIP_no): New macro. | |
2887 | (ZIP_canadian): New macro. | |
2888 | (ZIP): Use @CANADIAN@. | |
2889 | * aclocal.m4, configure: Rebuilt. | |
2890 | * configure.in (CANADIAN): Compute and subst. | |
2891 | ||
2892 | Tue Nov 17 12:44:37 1998 Anthony Green <green@cygnus.com> | |
2893 | ||
2894 | * java/io/FileDescriptor.java (finalize): Only close file | |
2895 | descriptor if valid. | |
2896 | ||
2897 | 1998-11-17 Tom Tromey <tromey@cygnus.com> | |
2898 | ||
2899 | * prims.cc (_Jv_InitRuntime): Removed. | |
2900 | ||
2901 | 1998-11-16 Tom Tromey <tromey@cygnus.com> | |
2902 | ||
2903 | * java/io/FileOutputStream.java (close): Only close file | |
2904 | descriptor if valid. | |
2905 | (finalize): New method. | |
2906 | ||
2907 | * prims.cc (_Jv_NewObjectArray): Set vtbl last. | |
2908 | (_Jv_NewPrimArray): Likewise. | |
2909 | * boehm.cc (_Jv_RegisterFinalizer): Use | |
2910 | GC_REGISTER_FINALIZER_NO_ORDER. | |
2911 | (GC_GENERIC_MALLOC): New define. | |
2912 | (_Jv_AllocObj): Use it. | |
2913 | (_Jv_AllocArray): Likewise. | |
2914 | (_Jv_AllocBytes): Likewise. | |
2915 | (_Jv_MarkObj): Just return if vtbl not set. | |
2916 | (_Jv_MarkArray): Likewise. | |
2917 | (MAYBE_MARK): New macro; use everywhere. | |
2918 | (_Jv_MarkObj): Mark fields belonging to superclasses as well. | |
2919 | ||
2920 | Mon Nov 16 14:57:53 1998 Warren Levy <warrenl@cygnus.com> | |
2921 | ||
2922 | * java/util/natGregorianCalendar.cc (computeTime): Cast a time_t | |
2923 | to a jlong before calculation to prevent overflow. | |
2924 | ||
2925 | 1998-11-16 Tom Tromey <tromey@cygnus.com> | |
2926 | ||
2927 | * Makefile.in: Rebuilt. | |
2928 | * Makefile.am (nat_headers): Fixed typo. | |
2929 | ||
2930 | 1998-11-15 Tom Tromey <tromey@cygnus.com> | |
2931 | ||
2932 | * java/lang/Class.h (Class::getName): Removed definition. | |
2933 | * Makefile.in: Rebuilt. | |
2934 | * Makefile.am (nat_headers): Added InstantiationException.h, | |
2935 | NoSuchMethodException.h. | |
2936 | * java/lang/natClass.cc (clinit_name): Renamed from init_name. | |
2937 | (init_name): New global. | |
2938 | (hackRunInitializers): Use clinit_name. | |
2939 | Include InstantiationException.h, NoSuchMethodException.h. | |
2940 | (newInstance): Do some error checking (but not all). Call | |
2941 | constructor. | |
2942 | (forName): Throw exception if class not found. | |
2943 | (getName): New method. | |
2944 | (forName): Transform class name from external format to internal | |
2945 | format before lookup. | |
2946 | ||
2947 | 1998-11-15 Anthony Green <green@cygnus.com> | |
2948 | ||
2949 | * java/lang/Class.h (Class::forName): Method is static. | |
2950 | ||
2951 | * java/lang/natClass.cc (newInstance): Add simple implementation. | |
2952 | (forName): Ditto. | |
2953 | ||
2954 | Sat Nov 14 18:25:13 1998 Per Bothner <bothner@cygnus.com> | |
2955 | ||
2956 | * java/lang/Class.h (Class::accflags): Must be unsigned short (not | |
2957 | int), for compatibility with jc1. | |
2958 | ||
2959 | 1998-11-14 Tom Tromey <tromey@cygnus.com> | |
2960 | ||
2961 | * include/config.h.in: Rebuilt. | |
2962 | * acconfig.h (LINUX_THREADS): New define. | |
2963 | * configure: Rebuilt. | |
2964 | * configure.in: Define LINUX_THREADS if using POSIX threads on | |
2965 | Linux. Look for pthread_mutexattr_setkind_np function. | |
2966 | * posix-threads.cc (throw_cleanup): New function. | |
2967 | (really_start): Push cleanup function. | |
2968 | (_Jv_ThreadCancel): New function. | |
2969 | (daemon_mutex, daemon_cond, non_daemon_count): New globals. | |
2970 | (_Jv_ThreadInitData): Set `exception' field in new structure. | |
2971 | (_Jv_ThreadStart): Increment non_daemon_count if not a daemon | |
2972 | thread. | |
2973 | (_Jv_ThreadWait): New function. | |
2974 | (_Jv_InitThreads): Initialize daemon globals. | |
2975 | (FLAG_DAEMON): New macro. | |
2976 | (really_start): Notify daemon_cond when non-daemon thread exits. | |
2977 | Include <java/lang/System.h>. | |
2978 | (struct starter): `object' field now a thread. | |
2979 | (_Jv_MutexInit): Use pthread_mutexattr_setkind_np if it exists. | |
2980 | * include/posix-threads.h (_Jv_CondInit): Use `0', not NULL. | |
2981 | (_Jv_ThreadWait): Removed definition. | |
2982 | (_Jv_Thread_t): Added `exception' field. | |
2983 | (_Jv_ThreadCancel): Removed definition. | |
2984 | ||
2985 | 1998-11-13 Tom Tromey <tromey@cygnus.com> | |
2986 | ||
2987 | * Makefile.in: Rebuilt. | |
2988 | * Makefile.am (libjava.zip): Compute javac before changing | |
2989 | directory. | |
2990 | ||
2991 | * Makefile.in: Rebuilt. | |
2992 | * Makefile.am (libjava.zip): Include directory entries. | |
2993 | ||
2994 | * Makefile.in: Rebuilt. | |
2995 | * Makefile.am (expanded): New macro. | |
2996 | (GCJ): Use it. | |
2997 | ||
2998 | 1998-11-12 Tom Tromey <tromey@cygnus.com> | |
2999 | ||
3000 | * prims.cc (clone): New function. | |
3001 | * include/java-array.h (__JArray::clone): Removed definition. | |
3002 | ||
3003 | * java/lang/natObject.cc (clone): Don't assert that class is not | |
3004 | an array; array's `clone' method just calls this one. | |
3005 | ||
3006 | * Makefile.in: Rebuilt. | |
3007 | * Makefile.am (libjava.zip): Renamed target from classes.stamp. | |
3008 | Now creates zip file. Changed all users. | |
3009 | (ZIP): New macro. | |
3010 | (data_DATA): New macro. | |
3011 | ||
3012 | 1998-11-11 Tom Tromey <tromey@cygnus.com> | |
3013 | ||
3014 | * configure: Rebuilt. | |
3015 | * configure.in: Recognize --enable-java-gc, not --enable-gc. | |
3016 | ||
3017 | Wed Nov 11 18:13:46 1998 Warren Levy <warrenl@cygnus.com> | |
3018 | ||
3019 | * java/io/InputStream.java (reset): Add msg to thrown exception. | |
3020 | ||
3021 | Wed Nov 11 17:57:02 1998 Warren Levy <warrenl@cygnus.com> | |
3022 | ||
3023 | * java/io/LineNumberInputStream.java: Rewritten. | |
3024 | ||
3025 | * java/io/StringBufferInputStream.java: Removed extraneous import. | |
3026 | ||
3027 | Wed Nov 11 15:19:33 1998 Warren Levy <warrenl@cygnus.com> | |
3028 | ||
3029 | * java/io/StringBufferInputStream.java: Rewritten. | |
3030 | ||
3031 | * java/util/Date.java (parseMonth): Optimize. | |
3032 | (parseDayOfWeek): Created. | |
3033 | (parse): Optimize to use parseDayOfWeek. | |
3034 | ||
3035 | 1998-11-11 Tom Tromey <tromey@cygnus.com> | |
3036 | ||
3037 | * java/lang/StringBuffer.java (append): Handle case where STR is | |
3038 | `null'. | |
3039 | ||
3040 | * include/javaprims.h: Regenerated class declarations. | |
3041 | ||
3042 | * configure: Rebuilt. | |
3043 | * configure.in: Added --enable-gcj-classes, | |
3044 | --enable-single-compilation, --enable-source-compilation flags. | |
3045 | * Makefile.in: Rebuilt. | |
3046 | * Makefile.am (java_io_files): New macro. | |
3047 | (java_lang_files): Likewise. | |
3048 | (java_text_files): Likewise. | |
3049 | (java_util_files): Likewise. | |
3050 | (java_files): Use new macros. | |
3051 | (java-io.o): New target. | |
3052 | (java-lang.o): Likewise. | |
3053 | (java-text.o): Likewise. | |
3054 | (java-util.o): Likewise. | |
3055 | (src_io_files): New macro. | |
3056 | (src_lang_files): Likewise. | |
3057 | (src_text_files): Likewise. | |
3058 | (src_util_files): Likewise. | |
3059 | (class_io_files): New macro. | |
3060 | (class_lang_files): Likewise. | |
3061 | (class_text_files): Likewise. | |
3062 | (class_util_files): Likewise. | |
3063 | (class_files): Use new macros. | |
3064 | (javao_files): Define conditionally. | |
3065 | (.java.o): New target. | |
3066 | ($(javao_files)): New target. | |
3067 | (GCJ): new macro. | |
3068 | (GCJH): Added $(EXEEXT). | |
3069 | (CLASSPATH_ENV): Removed. | |
3070 | (GCJCOMPILE): New macro. | |
3071 | ||
3072 | Wed Nov 11 12:03:15 1998 Warren Levy <warrenl@cygnus.com> | |
3073 | ||
3074 | * java/util/Date.java (parse): Written from scratch. | |
3075 | ||
3076 | 1998-11-11 Tom Tromey <tromey@cygnus.com> | |
3077 | ||
3078 | * java/lang/Throwable.java (toString): Correct sense of test for | |
3079 | determining when to include detail message in result. | |
3080 | ||
3081 | * java/lang/ThreadDeath.java (ThreadDeath): Added missing | |
3082 | constructor. | |
3083 | ||
3084 | Fri Nov 6 16:30:20 1998 Tom Tromey <tromey@ferrule.cygnus.com> | |
3085 | ||
3086 | * java/lang/Class.h: Use _Jv_RegisterClasses, not | |
3087 | _Jv_RegisterClass. | |
3088 | * java/lang/natClass.cc (_Jv_RegisterClasses): New function. | |
3089 | (_Jv_RegisterClass): Use it. | |
3090 | * include/jvm.h (_Jv_RegisterClasses): Declare. | |
3091 | * java/lang/natObject.cc (init): Removed. | |
3092 | (sync_init): Never call _Jv_InitializeSyncMutex. | |
3093 | (_Jv_InitializeSyncMutex): Don't set `init'. | |
3094 | * prims.cc (JvRunMain): Don't run init functions. | |
3095 | ||
3096 | Thu Nov 5 17:14:37 1998 Tom Tromey <tromey@sanguine.cygnus.com> | |
3097 | ||
3098 | * java/lang/natClass.cc (initializeClass): Set state before | |
3099 | resolving constants. | |
3100 | ||
3101 | * java/lang/natClass.cc (STATE_CONST_INIT): Removed. | |
3102 | (STATE_RESOLVED): New macro. | |
3103 | (initializeClass): Call resolveConstants. | |
3104 | (hackRunInitializers): Don't call resolveConstants. | |
3105 | (_Jv_FindArrayClass): Move short-circuit return for primitive | |
3106 | element types earlier in function. | |
3107 | ||
3108 | 1998-11-03 Tom Tromey <tromey@hoser.cygnus.com> | |
3109 | ||
3110 | * prims.cc (no_memory): New global. | |
3111 | (_Jv_makeUtf8Const): Throw no_memory. | |
3112 | (_Jv_AllocObject): Likewise. | |
3113 | (_Jv_NewObjectArray): Likewise. | |
3114 | (_Jv_NewPrimArray): Likewise. | |
3115 | (JvRunMain): Initialize no_memory. | |
3116 | ||
3117 | Tue Nov 3 17:15:45 1998 Warren Levy <warrenl@cygnus.com> | |
3118 | ||
3119 | * java/io/FileInputStream.java: Corrected date comment. | |
3120 | * java/io/SequenceInputStream.java: Rewritten. | |
3121 | ||
3122 | Mon Nov 2 17:20:31 1998 Tom Tromey (tromey@cygnus.com) | |
3123 | ||
3124 | * java/lang/FirstThread.java (die): New method. | |
3125 | * java/lang/natFirstThread.cc (die): Removed. | |
3126 | (DIE): New macro. | |
3127 | (run): Use `DIE', not `die'. | |
3128 | ||
3129 | Mon Nov 2 16:23:41 1998 Warren Levy <warrenl@cygnus.com> | |
3130 | ||
3131 | * java/io/CharArrayReader.java (read): Move check into synchronized | |
3132 | block to prevent a close while in progress. | |
3133 | (reset): Ditto. | |
3134 | (skip): Ditto. | |
3135 | * java/io/PushbackReader.java (read): Ditto. | |
3136 | (ready): Ditto. | |
3137 | (unread): Ditto. | |
3138 | * java/io/StringReader.java (mark): Ditto. | |
3139 | (read): Ditto. | |
3140 | (reset): Ditto. | |
3141 | (skip): Ditto. | |
3142 | ||
3143 | Mon Nov 2 15:56:20 1998 Warren Levy <warrenl@cygnus.com> | |
3144 | ||
3145 | * java/io/PipedInputStream.java: Updated status. | |
3146 | (connect): Added code to prevent infinite recursion and to | |
3147 | differentiate exception causes. | |
3148 | (read): Added code to differentiate exception causes. | |
3149 | (receive): Made exception pass string with the cause. | |
3150 | ||
3151 | * java/io/PipedOutputStream.java: Updated status. | |
3152 | (connect): Added code to call connect at the other end of the pipe. | |
3153 | ||
3154 | Mon Nov 2 00:22:12 1998 Warren Levy <warrenl@cygnus.com> | |
3155 | ||
3156 | * java/io/PipedInputStream.java (connect): Throw exception if | |
3157 | already connected to the same output stream. | |
3158 | (read): Do bounds checking first. | |
3159 | ||
3160 | Sun Nov 1 22:48:55 1998 Warren Levy <warrenl@cygnus.com> | |
3161 | ||
3162 | * java/io/PipedInputStream.java: Added private boolean outClosed. | |
3163 | (available): Removed check if output stream is open. | |
3164 | (close): Mark the buffer as empty so available returns 0. | |
3165 | (read): Check if the output stream was closed and then return EOF | |
3166 | when the buffer is empty. | |
3167 | (receive): Mark the output stream as closed when passed a -1. | |
3168 | ||
3169 | * java/io/PipedOutputStream.java (close): Notify the input stream | |
3170 | that there's no more data coming. | |
3171 | (connect): Added a FIXME comment to note more coordination needed | |
3172 | with PipedInputStream. | |
3173 | (flush): Added a FIXME comment to mark what this method might do | |
3174 | instead of nothing. | |
3175 | ||
3176 | Fri Oct 30 14:27:21 1998 Warren Levy <warrenl@cygnus.com> | |
3177 | ||
3178 | * java/io/PipedInputStream.java: Rewritten. | |
3179 | ||
3180 | 1998-10-30 Tom Tromey <tromey@cygnus.com> | |
3181 | ||
3182 | * java/lang/Throwable.java: Rewrote from scratch. | |
3183 | ||
3184 | * java/lang/Class.h (Class): Don't mention newMultiArray. | |
3185 | * prims.cc (newMultiArray): Removed. | |
3186 | (_Jv_NewMultiArray): Removed. | |
3187 | (newArray): Removed. | |
3188 | (new_multi_array): New function. | |
3189 | (_Jv_NewMultiArray): Rewrote from scratch. | |
3190 | ||
3191 | * include/javaprims.h: Regenerated class declarations. | |
3192 | * classes.pl (scan): Don't declare PrimClass. | |
3193 | * include/cni.h (JvPrimClass): Use new names for classes. | |
3194 | * java/lang/Class.h (Class): Removed _Jv_initPrimClass as friend; | |
3195 | added _Jv_PrimClass. | |
3196 | * prims.cc (_Jv_PrimClass): Renamed from PrimClass. | |
3197 | (_Jv_initPrimClass): Removed. | |
3198 | (DECLARE_PRIM_TYPE): Generated globals now start with `_Jv_'. | |
3199 | (_Jv_AllocObject): Added comment. | |
3200 | (_Jv_NewObjectArray): Likewise. | |
3201 | (_Jv_NewPrimArray): Likewise. | |
3202 | ||
3203 | 1998-10-29 Tom Tromey <tromey@cygnus.com> | |
3204 | ||
3205 | * java/lang/natClass.cc (_Jv_NewClass): Initialize new field. | |
3206 | (_Jv_FindArrayClass): Use dtable_method_count to compute size of | |
3207 | new dtable. | |
3208 | * java/lang/Class.h (Class): Added `dtable_method_count' field. | |
3209 | ||
3210 | * java/lang/natObject.cc (init): New global. | |
3211 | (sync_init): Call _Jv_InitializeSyncMutex if required. | |
3212 | ||
3213 | * Makefile.in: Rebuilt. | |
3214 | * Makefile.am (nat_headers): Added ClassLoader.h. | |
3215 | * include/jvm.h (_Jv_FindClassFromSignature): Declare. | |
3216 | * java/lang/Class.h (Class): simpleLookupClass, insertClass, | |
3217 | internalAddClass, lookupArray no longer friends. | |
3218 | _Jv_RegisterClass, _Jv_FindClassInCache, _Jv_NewClass, | |
3219 | _Jv_FindArrayClass now friends. | |
3220 | * java/lang/natClass.cc (HASH_LEN): New macro. | |
3221 | (HASH_UTF): Likewise. | |
3222 | (loaded_classes): New global. | |
3223 | (_Jv_FindClass): New function. | |
3224 | (ClassClass): New define. | |
3225 | (_Jv_FindClassInCache): New function. | |
3226 | (_Jv_RegisterClass): Likewise. | |
3227 | (_Jv_NewClass): Likewise. | |
3228 | Include <string.h> | |
3229 | (ObjectClass): New define. | |
3230 | (CloneableClass): New define. | |
3231 | * prims.cc (_Jv_FindClass): Removed. | |
3232 | (simpleLookupClass): Removed. | |
3233 | (insertClass): Removed. | |
3234 | (CLASSHASHSZ): Removed. | |
3235 | (classPool): Removed. | |
3236 | (_Jv_RegisterClass): Removed. | |
3237 | (internalAddClass): Removed. | |
3238 | (ClassClass): Removed. | |
3239 | (RuntimeClass): Removed. | |
3240 | (lookupArray): Removed. | |
3241 | (CloneableClass): Removed. | |
3242 | (CLASSMAXSIG): Removed. | |
3243 | Rearranged file to group related functions together. | |
3244 | (_Jv_IsInstanceOf): Moved to natClass.cc. | |
3245 | (abort_final): Removed. | |
3246 | Removed some unused includes. | |
3247 | (classFromSig): Removed. | |
3248 | (_Jv_FindClassFromSignature): New function. | |
3249 | (_Jv_initPrimClass): Renamed. | |
3250 | (getClass): Removed. | |
3251 | ||
3252 | Thu Oct 29 23:17:17 1998 Warren Levy <warrenl@cygnus.com> | |
3253 | ||
3254 | * java/io/FileDescriptor.java (finalize): Throws IOException | |
3255 | instead of Throwable. | |
3256 | ||
3257 | * java/io/FileInputStream.java: Rewritten. | |
3258 | ||
3259 | * java/io/StreamTokenizer.java (nextToken): Unread newline character | |
3260 | at the end of a comment. | |
3261 | ||
3262 | 1998-10-29 Tom Tromey <tromey@cygnus.com> | |
3263 | ||
3264 | * include/javaprims.h: Regenerated class declarations. | |
3265 | * classes.pl (scan): Don't special-case ClassLoader. | |
3266 | ||
3267 | * prims.cc (processClass): Removed. | |
3268 | (_Jv_InitClass): Removed. | |
3269 | Removed all CSTATE_ macros. | |
3270 | (resolveConstants): Removed. | |
3271 | (MAXDIMS): Removed. | |
3272 | (_Jv_NewMultiArray): Cleaned up. | |
3273 | * Makefile.in: Rebuilt. | |
3274 | * Makefile.am (nat_headers): Added NoClassDefFoundError.h. | |
3275 | * java/lang/Class.h (Class): Declare new methods. processClass no | |
3276 | longer a friend. | |
3277 | * java/lang/Class.java (hackTrampoline): New method. | |
3278 | (initializeClass): Declare. | |
3279 | (hackRunInitializers): Declare. | |
3280 | * java/lang/natClass.cc (getClassLoader): Moved into Class.h. | |
3281 | (initializeClass): New method. | |
3282 | (hackRunInitializers): New method. | |
3283 | (init_name, void_signature): Moved from prims.cc. | |
3284 | (_Jv_InitClass): New function. | |
3285 | (isAssignableFrom): Don't call processClass. | |
3286 | (STATE_NOTHING): New macro. | |
3287 | (resolveConstants): New function. | |
3288 | Include Thread.h. | |
3289 | (ErrorClass): New define. | |
3290 | ||
3291 | * java/lang/Class.java (getClassLoader): Declare. | |
3292 | * java/lang/ClassLoader.java: Rewrote from scratch. | |
3293 | ||
3294 | * java/lang/natClass.cc: Include IncompatibleClassChangeError.h, | |
3295 | AbstractMethodError.h, IllegalAccessError.h, | |
3296 | NoClassDefFoundError.h. | |
3297 | * include/jvm.h (StringClass): Declare _Jv_equalUtf8Consts. | |
3298 | * prims.cc (_Jv_equalUtf8Consts): Renamed from equalUtf8Consts; no | |
3299 | longer static. Changed return type. | |
3300 | * java/lang/natFirstThread.cc (run): Use _Jv_GetMethodLocal. | |
3301 | * java/lang/Class.h (Class): findMethodLocal no longer a friend. | |
3302 | * prims.cc (findMethodLocal): Removed. | |
3303 | (processClass): Use _Jv_GetMethodLocal. | |
3304 | ||
3305 | 1998-10-28 Tom Tromey <tromey@cygnus.com> | |
3306 | ||
3307 | * prims.cc (_Jv_LookupInterfaceMethod): Removed. | |
3308 | * java/lang/Class.h (Class): Declare _Jv_GetMethodLocal as | |
3309 | friend. | |
3310 | * java/lang/natClass.cc (_Jv_GetMethodLocal): New function. | |
3311 | (_Jv_LookupInterfaceMethod): New function (rewrote from scratch). | |
3312 | ||
3313 | * include/jni.h: Added copyright header. | |
3314 | * include/javaprims.h: Added copyright header. | |
3315 | * include/java-field.h: Added copyright header. | |
3316 | * include/java-array.h: Added copyright header. | |
3317 | * include/cni.h: Added copyright header. | |
3318 | ||
3319 | * include/javaprims.h: Regenerated class declarations using | |
3320 | classes.pl; now they are complete. | |
3321 | * classes.pl: New file. | |
3322 | ||
3323 | * java/lang/natMath.cc: Include <config.h>. | |
3324 | * java/lang/reflect/natField.cc: Include <config.h>. | |
3325 | * java/util/NativeUtil.java: Removed. | |
3326 | * Makefile.in: Rebuilt. | |
3327 | * Makefile.am (nat_headers): Added Math.h. | |
3328 | * java/lang/Math.h: Removed. | |
3329 | * java/util/natGregorianCalendar.cc: Added copyright header. | |
3330 | Include <config.h>. | |
3331 | * java/lang/natFloat.cc: Added copyright header. | |
3332 | * java/lang/Byte.java: Added copyright header. | |
3333 | * java/lang/Void.java: Added copyright header. | |
3334 | * java/lang/Short.java: Added copyright header. | |
3335 | ||
3336 | Wed Oct 28 12:55:47 1998 Warren Levy <warrenl@cygnus.com> | |
3337 | ||
3338 | * include/javaprims.h (java::io): Added bunch of missing classes. | |
3339 | ||
3340 | * java/io/DataInputStream.java (readLine): Added a special case | |
3341 | for handling BufferedInputStream data to reduce the likelihood | |
3342 | of a pushback error. | |
3343 | (skipBytes): Added code to handle negative number of skip bytes. | |
3344 | ||
3345 | * java/io/StreamTokenizer.java: Rewritten. | |
3346 | ||
3347 | 1998-10-28 Tom Tromey <tromey@cygnus.com> | |
3348 | ||
3349 | * java/util/natGregorianCalendar.cc (computeFields): Call | |
3350 | getRawOffset as a method. | |
3351 | ||
3352 | * include/javaprims.h (java::io): Added FilterOutputStream. | |
3353 | * Makefile.in: Rebuilt. | |
3354 | * Makefile.am (nat_headers): Added PrintStream.h, | |
3355 | FilterOutputStream.h. | |
3356 | * java/lang/natFirstThread.cc: Include System.h, Modifier.h, | |
3357 | PrintStream.h. | |
3358 | (die): New function. | |
3359 | (run): Die if `main' not found, is not public, or is not static. | |
3360 | ||
3361 | * boehm.cc (_Jv_MarkObj): Use new field names. | |
3362 | * include/java-field.h (JvGetFirstInstanceField): Use new field | |
3363 | names. | |
3364 | (JvNumInstanceFields): Likewise. | |
3365 | * java/lang/natClass.cc (isAssignableFrom): Use new field names. | |
3366 | (getInterfaces): Likewise. | |
3367 | * prims.cc (CLASS_CONSTANTS): Removed. | |
3368 | (CLASS_CONST_SIZE): Likewise. | |
3369 | (CLASS_CONST_TAG): Likewise. | |
3370 | (CLASS_CONST_DATA): Likewise. | |
3371 | (CLASS_CONST_UTF8): Likewise. | |
3372 | (WORD2UTF): Likewise. | |
3373 | (CLASS_CLASS): Likewise. | |
3374 | (CLASS_PRIM_SIG): Likewise. | |
3375 | (CLASS_ARRAY_CACHE): Likewise. | |
3376 | (HASH_CHARS): Likewise. | |
3377 | (hashClassName): Likewise. | |
3378 | Many changes to use new field names. | |
3379 | * java/lang/Class.h (Class): Renamed fields to track compiler. | |
3380 | ||
3381 | 1998-10-27 Tom Tromey <tromey@cygnus.com> | |
3382 | ||
3383 | * java/lang/natClass.cc: Use #pragma implementation. | |
3384 | (getComponentType): Moved into header. | |
3385 | (getModifiers): Likewise. | |
3386 | (getName): Likewise. | |
3387 | (getSuperclass): Likewise. | |
3388 | (isArray): Likewise. | |
3389 | (isPrimitive): Likewise. | |
3390 | * include/jvm.h (_Jv_FindClass): Declare. | |
3391 | * java/lang/natFirstThread.cc (run): Updated for new Class.h. | |
3392 | * java/lang/natSystem.cc (arraycopy): Updated for new Class.h. | |
3393 | * include/javaprims.h: Use _Jv_Method, not JvMethod. | |
3394 | * java/lang/Class.h: Rewrote from scratch. | |
3395 | * prims.cc: Many changes to work with new Class.h. | |
3396 | * include/java-field.h (CLASS_FIELDS): Removed. | |
3397 | (CLASS_SFIELDS): Likewise. | |
3398 | (CLASS_IFIELDS): Likewise. | |
3399 | (CLASS_NFIELDS): Likewise. | |
3400 | (CLASS_NIFIELDS): Likewise. | |
3401 | (CLASS_NSFIELDS): Likewise. | |
3402 | (CLASS_FSIZE): Likewise. | |
3403 | (JvGetFirstInstanceField): Rewrote. | |
3404 | (JvNumInstanceFields): Likewise. | |
3405 | ||
3406 | * java/lang/Object.h: Added copyright comment. | |
3407 | ||
3408 | Wed Oct 28 00:32:23 1998 Per Bothner <bothner@cygnus.com> | |
3409 | ||
3410 | * java/text: New package directory. | |
3411 | * java/text/FieldPosition.java: New class. | |
3412 | * java/text/ParsePosition.java: New class. | |
3413 | * java/text/ParseException.java: New Exception class. | |
3414 | * java/text/Format.java: New class. | |
3415 | * java/text/NumberFormat.java: New (empty placeholder) class. | |
3416 | * java/text/DateFormatSymbols.java: New class (no Locales support). | |
3417 | * java/text/DateFormat.java: New Format class (incomplete). | |
3418 | * java/text/SimpleDateFormat.java: New DateFormat class. | |
3419 | ||
3420 | * include/javaprims.h (java::test): Added new package and classes. | |
3421 | * java/util/Calendar.java (clone): New method. | |
3422 | * java/util/Date.java (toString): Added non-native implementation. | |
3423 | (parse): Made public instead of synchronized. | |
3424 | * java/util/natDate.cc (toString): Removed. | |
3425 | * java/util/natGregorianCalendar.cc (computeFields): | |
3426 | Use gmtime (or gmtime_r) if no zone offset (the default, for now!). | |
3427 | ||
3428 | 1998-10-27 Tom Tromey <tromey@cygnus.com> | |
3429 | ||
3430 | * boehm.cc (_Jv_MarkObj): Correctly mark a class' interfaces. | |
3431 | ||
3432 | * prims.cc (lookupArray): Added explanatory comment. | |
3433 | * boehm.cc (_Jv_MarkObj): Correctly scan methods and fields of | |
3434 | class. Mark the class of each object. | |
3435 | (_Jv_MarkArray): Mark the object's class. | |
3436 | ||
3437 | * configure: Rebuilt. | |
3438 | * configure.in: Create java-gc.h. | |
3439 | * include/boehm-gc.h: New file. | |
3440 | * include/no-gc.h: New file. | |
3441 | * java/lang/Class.h (Class): Declare JV_MARKOBJ_DECL as friend, if | |
3442 | defined. | |
3443 | * java/lang/Object.h: Include java-gc.h. | |
3444 | (Object): Declare JV_MARKOBJ_DECL and JV_MARKARRAY_DECL as | |
3445 | friends, if defined. | |
3446 | * boehm.cc (_Jv_MarkObj): Renamed from mark_obj; changed | |
3447 | signature. | |
3448 | (_Jv_MarkArray): Renamed from mark_array; changed signature. | |
3449 | ||
3450 | 1998-10-26 Tom Tromey <tromey@cygnus.com> | |
3451 | ||
3452 | * java/lang/natCharacter.cc (isSpaceChar): Look for line and | |
3453 | paragraph separators, not numbers. | |
3454 | ||
3455 | * java/io/Writer.java (write): Removed write(char) to avoid | |
3456 | ambiguity. | |
3457 | * java/util/Properties.java: Rewrote from scratch. | |
3458 | * include/javaprims.h (java::io): Added PrintWriter, | |
3459 | BufferedWriter, PushbackReader. | |
3460 | ||
3461 | Mon Oct 26 13:13:28 1998 Anthony Green <green@cygnus.com> | |
3462 | ||
3463 | * java/lang/System.java: exit() is a static method. | |
3464 | ||
3465 | 1998-10-26 Tom Tromey <tromey@cygnus.com> | |
3466 | ||
3467 | * java/lang/natString.cc (_Jv_NewStringUTF): Use | |
3468 | _Jv_strLengthUtf8. | |
3469 | (_Jv_NewStringUtf8Const): Likewise. | |
3470 | * include/jvm.h (_Jv_strLengthUtf8): Declare. | |
3471 | * prims.cc (_Jv_strLengthUtf8): Renamed from strLengthUtf8. | |
3472 | ||
3473 | * java/lang/Object.h (Object): Add mark_array as friend function. | |
3474 | * prims.cc (_Jv_NewPrimArray): Use _Jv_AllocObj, not | |
3475 | _Jv_AllocBytes, to ensure that header is marked. | |
3476 | * boehm.cc (mark_obj): Push sync_info field for all objects, not | |
3477 | just Objects. | |
3478 | (mark_array): Push sync_info field for array. | |
3479 | ||
3480 | 1998-10-24 Tom Tromey <tromey@cygnus.com> | |
3481 | ||
3482 | * java/lang/String.java (String): Updated for StringBuffer | |
3483 | change. | |
3484 | * java/util/BitSet.java: Renamed field (data->bits) to conform to | |
3485 | serialization spec. | |
3486 | * java/lang/StringBuffer.java: Renamed fields to conform to | |
3487 | serialization spec: buffer->value, next->count, copy->shared. | |
3488 | ||
3489 | Wed Oct 21 18:24:57 1998 Per Bothner <bothner@cygnus.com> | |
3490 | ||
3491 | * java/util/TimeZone.java: New class. | |
3492 | * java/util/SimpleTimeZone.java: New class. | |
3493 | * java/util/Locale.java: New file. | |
3494 | * java/util/Calendar.java: Make almost complete. | |
3495 | * java/util/GregorianCalendar.java | |
3496 | * java/util/natGregorianCalendar.cc: New file. | |
3497 | * java/util/Date.java: Re-written from scratch. | |
3498 | * java/util/natDate.cc (setTime): Removed - no longer native. | |
3499 | * include/javaprims.h (java::util): Add new classes. | |
3500 | * Makefile.am (nat_files): Add java/util/natGregorianCalendar.o. | |
3501 | (nat_headers); Add TimeZone.h, Calendar.h, GregorianCalendar.h. | |
3502 | ||
3503 | Sat Oct 24 22:58:25 1998 Warren Levy <warrenl@cygnus.com> | |
3504 | ||
3505 | * java/io/natFileDescriptorPosix.cc (read): Zero extend jbyte b before | |
3506 | returning it as a jint. | |
3507 | ||
3508 | 1998-10-23 Tom Tromey <tromey@cygnus.com> | |
3509 | ||
3510 | * prims.cc (arg_vec, main_group, main_thread): New globals. | |
3511 | (JvRunMain): Use them. | |
3512 | ||
3513 | Fri Oct 23 17:10:12 1998 Warren Levy <warrenl@cygnus.com> | |
3514 | ||
3515 | * java/io/DataInputStream.java: Rewritten. | |
3516 | ||
3517 | * java/io/DataOutputStream.java (writeUTF): OR secondary and | |
3518 | tertiary bytes with 0x80 per spec. | |
3519 | ||
3520 | 1998-10-23 Tom Tromey <tromey@cygnus.com> | |
3521 | ||
3522 | * java/lang/String.java (init): Changed name of `copy' argument. | |
3523 | * java/lang/natString.cc (init): Inverted sense of `copy' | |
3524 | argument. | |
3525 | ||
3526 | * java/lang/Object.h (Object): Declare mark_obj as a friend. | |
3527 | * java/lang/Class.h (Class): Declare mark_obj as a friend. | |
3528 | * boehm.cc (ObjectClass): New define. | |
3529 | (ClassClass): Likewise. | |
3530 | (mark_obj): Special-case Object and Class. | |
3531 | ||
3532 | * prims.cc (_Jv_NewPrimArray): Pass correct args to memset. | |
3533 | ||
3534 | * java/util/BitSet.java: Rewrote from scratch. | |
3535 | ||
3536 | * prims.cc (lookupArray): Removed useless cast. | |
3537 | ||
3538 | * java/lang/natObject.cc: Use `#pragma implementation'. | |
3539 | ||
3540 | * java/lang/String.java (init): Added `copy' argument. | |
3541 | (String): Look in StringBuffer to find char array. | |
3542 | * java/lang/natString.cc (init): Added `copy' argument. | |
3543 | * java/lang/StringBuffer.java: Rewrote from scratch. | |
3544 | ||
3545 | * java/lang/Compiler.java: Rewrote from scratch. | |
3546 | * java/lang/Throwable.java: Don't use NativeLang. | |
3547 | * include/javaprims.h (java::lang): Don't mention NativeLang. | |
3548 | * java/lang/Process.java: Rewrote from scratch. | |
3549 | * java/lang/SecurityManager.java (classLoaderDepth): Commented | |
3550 | out. | |
3551 | (currentClassLoader): Likewise. | |
3552 | (currentLoadedClass): Likewise. | |
3553 | * java/lang/natClass.cc (getClassLoader): Commented out. | |
3554 | * java/lang/Class.java (getClassLoader): Commented out. | |
3555 | * java/lang/Compiler.java: Removed. | |
3556 | * java/lang/NativeLang.java: Removed. | |
3557 | ||
3558 | * java/lang/natFirstThread.cc (run): Use _Jv_makeUtf8Const. | |
3559 | * include/jvm.h (StringClass): Declare _Jv_makeUtf8Const. | |
3560 | * prims.cc (_Jv_makeUtf8Const): Renamed from makeUtf8Const. | |
3561 | (_Jv_hashUtf8String): Now static. | |
3562 | * include/java-field.h (getNameUtf8Const): Use `_Jv_Utf8Const' as | |
3563 | name of return type. | |
3564 | ||
3565 | * java/lang/Class.h (Class): Declare checkMemberAccess. | |
3566 | * Makefile.in: Rebuilt. | |
3567 | * Makefile.am (nat_headers): Added Member.h. | |
3568 | * java/lang/natClass.cc: Include Member.h. | |
3569 | (getDeclaredClasses): Call checkMemberAccess. | |
3570 | * java/lang/Class.java (checkMemberAccess): Call | |
3571 | SecurityManager.checkMemberAccess. | |
3572 | ||
3573 | Fri Oct 23 08:01:54 1998 Anthony Green <green@cygnus.com> | |
3574 | ||
3575 | * java/lang/SecurityManager.java: Rewritten. | |
3576 | ||
3577 | Thu Oct 22 17:16:10 1998 Anthony Green <green@cygnus.com> | |
3578 | ||
3579 | * java/applet/Applet.java, java/applet/AppletContext.java, | |
3580 | java/applet/AppletStub.java, java/applet/AudioClip.java, | |
3581 | java/awt/AWTError.java, java/awt/AWTException.java, | |
3582 | java/awt/BorderLayout.java, java/awt/Button.java, | |
3583 | java/awt/Canvas.java, java/awt/CardLayout.java, | |
3584 | java/awt/Checkbox.java, java/awt/CheckboxGroup.java, | |
3585 | java/awt/CheckboxMenuItem.java, java/awt/Choice.java, | |
3586 | java/awt/Color.java, java/awt/Component.java, | |
3587 | java/awt/Container.java, java/awt/Dialog.java, | |
3588 | java/awt/Dimension.java, java/awt/Event.java, | |
3589 | java/awt/FileDialog.java, java/awt/FlowLayout.java, | |
3590 | java/awt/Font.java, java/awt/FontMetrics.java, | |
3591 | java/awt/Frame.java, java/awt/Graphics.java, | |
3592 | java/awt/GridBagConstraints.java, java/awt/GridBagLayout.java, | |
3593 | java/awt/GridLayout.java, java/awt/Image.java, | |
3594 | java/awt/Insets.java, java/awt/Label.java, | |
3595 | java/awt/LayoutManager.java, java/awt/List.java, | |
3596 | java/awt/MediaTracker.java, java/awt/Menu.java, | |
3597 | java/awt/MenuBar.java, java/awt/MenuComponent.java, | |
3598 | java/awt/MenuContainer.java, java/awt/MenuItem.java, | |
3599 | java/awt/Panel.java, java/awt/Point.java, java/awt/Polygon.java, | |
3600 | java/awt/Rectangle.java, java/awt/Scrollbar.java, | |
3601 | java/awt/TextArea.java, java/awt/TextComponent.java, | |
3602 | java/awt/TextField.java, java/awt/Toolkit.java, | |
3603 | java/awt/Window.java, java/awt/image/ColorModel.java, | |
3604 | java/awt/image/CropImageFilter.java, | |
3605 | java/awt/image/DirectColorModel.java, | |
3606 | java/awt/image/FilteredImageSource.java, | |
3607 | java/awt/image/ImageConsumer.java, | |
3608 | java/awt/image/ImageFilter.java, | |
3609 | java/awt/image/ImageObserver.java, | |
3610 | java/awt/image/ImageProducer.java, | |
3611 | java/awt/image/IndexColorModel.java, | |
3612 | java/awt/image/MemoryImageSource.java, | |
3613 | java/awt/image/PixelGrabber.java, | |
3614 | java/awt/image/RGBImageFilter.java, java/awt/peer/ButtonPeer.java, | |
3615 | java/awt/peer/CanvasPeer.java, | |
3616 | java/awt/peer/CheckboxMenuItemPeer.java, | |
3617 | java/awt/peer/CheckboxPeer.java, java/awt/peer/ChoicePeer.java, | |
3618 | java/awt/peer/ComponentPeer.java, | |
3619 | java/awt/peer/ContainerPeer.java, java/awt/peer/DialogPeer.java, | |
3620 | java/awt/peer/FileDialogPeer.java, java/awt/peer/FramePeer.java, | |
3621 | java/awt/peer/LabelPeer.java, java/awt/peer/ListPeer.java, | |
3622 | java/awt/peer/MenuBarPeer.java, | |
3623 | java/awt/peer/MenuComponentPeer.java, | |
3624 | java/awt/peer/MenuItemPeer.java, java/awt/peer/MenuPeer.java, | |
3625 | java/awt/peer/PanelPeer.java, java/awt/peer/ScrollbarPeer.java, | |
3626 | java/awt/peer/TextAreaPeer.java, | |
3627 | java/awt/peer/TextComponentPeer.java, | |
3628 | java/awt/peer/TextFieldPeer.java, java/awt/peer/WindowPeer.java, | |
3629 | java/net/ContentHandler.java, java/net/ContentHandlerFactory.java, | |
3630 | java/net/DatagramPacket.java, java/net/DatagramSocket.java, | |
3631 | java/net/DefaultSocketImpl.java, java/net/InetAddress.java, | |
3632 | java/net/MalformedURLException.java, java/net/NativeNet.java, | |
3633 | java/net/ProtocolException.java, java/net/ServerSocket.java, | |
3634 | java/net/Socket.java, java/net/SocketException.java, | |
3635 | java/net/SocketImpl.java, java/net/SocketImplFactory.java, | |
3636 | java/net/URL.java, java/net/URLConnection.java, | |
3637 | java/net/URLEncoder.java, java/net/URLStreamHandler.java, | |
3638 | java/net/URLStreamHandlerFactory.java, | |
3639 | java/net/UnknownHostException.java, | |
3640 | java/net/UnknownServiceException.java: Removed. | |
3641 | ||
3642 | 1998-10-22 Tom Tromey <tromey@cygnus.com> | |
3643 | ||
3644 | * prims.cc (_Jv_AllocObject): Register finalizer if class' | |
3645 | finalizer is not Object.finalize. | |
3646 | (internalAddClass): Don't set `final' member of class. | |
3647 | * java/lang/Object.h: Updated _JvObjectPrefix comment to mention | |
3648 | other places that know about finalize() location. | |
3649 | * java/lang/Class.h (Class): Removed `final' field. | |
3650 | ||
3651 | * aclocal.m4, configure: Rebuilt. | |
3652 | * acinclude.m4 (LIB_AC_PROG_CXX): Unconditionally use | |
3653 | AC_CHECK_PROGS; otherwise the CXX cache variable might not be | |
3654 | set. | |
3655 | * configure.in (AC_OUTPUT): Pass CXX to config.status. | |
3656 | * Makefile.in: Rebuilt. | |
3657 | * Makefile.am (AM_MAKEFLAGS): Added CXX, CXXFLAGS. | |
3658 | ||
3659 | 1998-10-21 Tom Tromey <tromey@cygnus.com> | |
3660 | ||
3661 | * java/lang/Object.java (finalize): Move to be first method in | |
3662 | class. | |
3663 | ||
3664 | * configure: Rebuilt. | |
3665 | * configure.in (GCINCS): Include contents of boehm-cflags file. | |
3666 | ||
3667 | Tue Oct 20 13:11:04 1998 Alexandre Petit-Bianco <apbianco@cygnus.com> | |
3668 | ||
3669 | * java/lang/ArrayIndexOutOfBoundsException.java | |
3670 | (ArrayIndexOutOfBoundsException): Fixed string literal. | |
3671 | * java/lang/StringIndexOutOfBoundsException.java | |
3672 | (StringIndexOutOfBoundsException): Fixed string literal. | |
3673 | ||
3674 | 1998-10-20 Andrew Haley <aph@viagra.cygnus.co.uk> | |
3675 | ||
3676 | * natFileDescriptorEcos.cc added. | |
3677 | * natFileDescriptor.cc renamed natFileDescriptorPosix.cc. | |
3678 | ||
3679 | 1998-10-20 Andrew Haley <aph@viagra.cygnus.co.uk> | |
3680 | ||
3681 | * acconfig.h: test for __int32_t and __uint32_t added. | |
3682 | * include/config.h.in: test for __int32_t and __uint32_t added. | |
3683 | * java/lang/fdlibm.h: test for __int32_t and __uint32_t added. | |
3684 | * java/lang/mprec.h: test for __int32_t and __uint32_t added. | |
3685 | * configure.in: test for __int32_t and __uint32_t added. | |
3686 | * configure: test for __int32_t and __uint32_t added. | |
3687 | ||
3688 | * natFileDescriptor.cc renamed natFileDescriptorPosix.cc. | |
3689 | ||
3690 | * configure.in: Test for --enable ecos and link | |
3691 | natFileDescriptor.cc to natFileDescriptorEcos.cc or | |
3692 | natFileDescriptorPosix.cc | |
3693 | ||
3694 | * java/lang/dtoa.c: #include <stdio.h> moved inside #ifdef DEBUG. | |
3695 | ||
3696 | Mon Oct 19 18:13:58 1998 Warren Levy <warrenl@cygnus.com> | |
3697 | ||
3698 | * java/io/ByteArrayInputStream.java (skip): Ensure that arg passed | |
3699 | in isn't negative. | |
3700 | ||
3701 | * java/io/CharArrayReader.java (close): Synchronize on lock | |
3702 | object per Reader contract. | |
3703 | (read): Synchronize on lock obj. Verify that reader wasn't closed. | |
3704 | (reset): Synchronize on lock obj. Verify that reader wasn't closed. | |
3705 | (skip): Synchronize on lock obj. Verify that reader wasn't closed. | |
3706 | Ensure that arg passed in isn't negative. | |
3707 | ||
3708 | * java/io/FilterReader.java (FilterReader): Use the lock obj when | |
3709 | constructing the superclass. | |
3710 | ||
3711 | * java/io/PushbackReader.java (close): Synchronize on lock | |
3712 | object per Reader contract. | |
3713 | (read): Synchronize on lock obj. Verify that reader wasn't closed. | |
3714 | (ready): Synchronize on lock obj. Throw IOException if reader | |
3715 | wasn't closed. | |
3716 | (reset): Synchronize on lock obj. Verify that reader wasn't closed. | |
3717 | (skip): Synchronize on lock obj. Verify that reader wasn't closed. | |
3718 | Ensure that arg passed in isn't negative. | |
3719 | (unread): Synchronize on lock obj. Verify that reader wasn't closed. | |
3720 | ||
3721 | * java/io/StringReader.java: Created. | |
3722 | ||
3723 | Sun Oct 18 02:19:11 1998 Warren Levy <warrenl@cygnus.com> | |
3724 | ||
3725 | * java/io/CharArrayReader.java (mark): Removed synchronized modifier | |
3726 | to match JCL. | |
3727 | (read): Removed synchronized modifier to match JCL. | |
3728 | (reset): Removed synchronized modifier to match JCL. | |
3729 | (skip): Removed synchronized modifier to match JCL. | |
3730 | ||
3731 | Sun Oct 18 02:01:54 1998 Warren Levy <warrenl@cygnus.com> | |
3732 | ||
3733 | * java/io/PushbackReader.java (PushbackReader): Made | |
3734 | constructors public. | |
3735 | ||
3736 | 1998-10-17 Tom Tromey <tromey@cygnus.com> | |
3737 | ||
3738 | * java/io/PushbackInputStream.java (PushbackInputStream): Made | |
3739 | constructors public. | |
3740 | ||
3741 | 1998-10-16 Anthony Green <green@cygnus.com> | |
3742 | ||
3743 | * aclocal.m4, configure: Rebuilt. | |
3744 | * acinclude.m4 (LIBJAVA_CONFIGURE): Changed for new | |
3745 | configure.host. | |
3746 | * configure.host: Rewrote. | |
3747 | * Makefile.in: Rebuilt. | |
3748 | * Makefile.am (AM_CXXFLAGS): Added LIBJAVA_CXXFLAGS. | |
3749 | (AM_CFLAGS): New macro. | |
3750 | ($(c_files)): Use COMPILE macro. | |
3751 | (EXTRA_libjava_a_SOURCES): Added dummy file to work around | |
3752 | automake problem(s). | |
3753 | ||
3754 | Fri Oct 16 16:36:28 1998 Warren Levy <warrenl@cygnus.com> | |
3755 | ||
3756 | * java/io/ByteArrayInputStream.java (mark): Removed temp. comment. | |
3757 | ||
3758 | * java/io/CharArrayReader.java: Created. | |
3759 | ||
3760 | Fri Oct 16 15:17:01 1998 Warren Levy <warrenl@cygnus.com> | |
3761 | ||
3762 | * java/io/PushbackInputStream.java (PushbackInputStream): Changed | |
3763 | size check to allow 0 per JCL. | |
3764 | ||
3765 | * java/io/PushbackReader.java: Created. | |
3766 | ||
3767 | 1998-10-16 Tom Tromey <tromey@cygnus.com> | |
3768 | ||
3769 | * java/io/natFileDescriptor.cc: Conditionalize <unistd.h>, | |
3770 | <sys/time.h> includes. | |
3771 | * java/io/natFile.cc: Conditionalize <unistd.h> include. | |
3772 | * include/no-threads.h: Conditionalize <unistd.h> include on | |
3773 | HAVE_UNISTD_H. | |
3774 | ||
3775 | Fri Oct 16 14:39:51 1998 Andrew Haley <aph@madras.cygnus.co.uk> | |
3776 | ||
3777 | * include/no-threads.h: Don't include <unistd.h> unless HAVE_SLEEP | |
3778 | is defined. | |
3779 | ||
3780 | Thu Oct 15 19:27:54 1998 Warren Levy <warrenl@cygnus.com> | |
3781 | ||
3782 | * java/io/FilterReader.java: Created. | |
3783 | ||
3784 | Thu Oct 15 17:49:43 1998 Warren Levy <warrenl@cygnus.com> | |
3785 | ||
3786 | * java/io/PushbackInputStream.java: Rewritten. | |
3787 | ||
3788 | * java/io/BufferedInputStream.java (BufferedInputStream): Check | |
3789 | that size passed to constructor is legal. | |
3790 | (read): Check that args passed in are legal. | |
3791 | (skip): Rewritten to get rid of the temporary buffer. | |
3792 | (refill): Added marklimit check to grow the buffer. | |
3793 | ||
3794 | * java/io/ByteArrayInputStream.java (read): Optimized invalid args | |
3795 | check. | |
3796 | (bytesAvail): Removed. | |
3797 | (read): Changed bytesAvail to Math.min. | |
3798 | (skip): Changed bytesAvail to Math.min. | |
3799 | ||
3800 | * java/io/InputStream.java (read): Got rid of extraneous exceptions | |
3801 | from the throws clause. | |
3802 | (skip): Rewritten to use a temporary buffer. | |
3803 | ||
3804 | Thu Oct 15 19:42:55 1998 Andrew Haley <aph@madras.cygnus.co.uk> | |
3805 | ||
3806 | * prims.cc: (JvConvertArgv): Check added for argc < 0; possible on | |
3807 | some target OSes | |
3808 | ||
3809 | * java/lang/dtoa.c: (print): Made #ifdef DEBUG only. | |
3810 | ||
3811 | * java/lang/strtod.c: (_strtod_r): Don't use HUGE_VAL: it's faster | |
3812 | to write the double one word at a time. | |
3813 | ||
3814 | Tue Oct 13 14:41:47 1998 Warren Levy <warrenl@cygnus.com> | |
3815 | ||
3816 | * java/io/BufferedInputStream.java: Rewritten. | |
3817 | ||
3818 | 1998-10-12 Tom Tromey <tromey@cygnus.com> | |
3819 | ||
3820 | * jni.cc: Include config.h and stddef.h. | |
3821 | ||
3822 | * java/lang/Class.h (_dispatchTable): Removed again. | |
3823 | Removed all ACC_* defines again. | |
3824 | ||
3825 | Fri Oct 9 17:08:34 1998 Per Bothner <bothner@cygnus.com> | |
3826 | ||
3827 | * Makefile.am (nat_files): Add netField.o. | |
3828 | (libjava_a_SOURCES): Add jni.cc. | |
3829 | (java/lang/reflect/Field.h): New rule. | |
3830 | * Makefile.in: Re-generated. | |
3831 | * include/javaprims.h: Add some extra class and typedefs. | |
3832 | * include/jni.h: New file. | |
3833 | * jni.cc: New file. | |
3834 | ||
3835 | * include/java-field.h: New file. | |
3836 | * include/jvm.h: #include <java-field.h>. | |
3837 | * boehm.cc: #include <java-field.h>. | |
3838 | * java/lang/Class.h (JvField, inline numbers): Moved to java-field.h. | |
3839 | * java/lang/reflect/Member.java: New class. | |
3840 | * java/lang/reflect/Field.java: New class. (Very incomplete.) | |
3841 | * java/lang/reflect/natField.cc: New file. (Very incomplete.) | |
3842 | ||
3843 | Sun Oct 11 00:34:44 1998 Anthony Green <green@cygnus.com> | |
3844 | ||
3845 | * Makefile.in, aclocal.m4, configure, test/Makefile.in, | |
3846 | testsuite/Makefile.in: Rebuilt. | |
3847 | * Makefile.am, acinclude.m4, configure.in: Add multilib support. | |
3848 | * configure.host: Created. | |
3849 | ||
3850 | 1998-10-10 Tom Tromey <tromey@cygnus.com> | |
3851 | ||
3852 | * java/lang/natObject.cc (sync_init): Always allocate a new | |
3853 | sync_info. | |
3854 | ||
3855 | 1998-10-09 Tom Tromey <tromey@cygnus.com> | |
3856 | ||
3857 | * java/io/ByteArrayInputStream.java (mark): Renamed from | |
3858 | `mark_FIXME'. | |
3859 | ||
3860 | * java/io/FileOutputStream.java (finalize): Removed. | |
3861 | * java/io/FileDescriptor.java (finalize): New method. | |
3862 | ||
3863 | Thu Oct 8 17:59:43 1998 Warren Levy <warrenl@cygnus.com> | |
3864 | ||
3865 | * ByteArrayInputStream.java: Corrected status comment. | |
3866 | ||
3867 | Thu Oct 8 17:22:49 1998 Warren Levy <warrenl@cygnus.com> | |
3868 | ||
3869 | * ByteArrayInputStream.java, FilterInputStream.java: Rewritten. | |
3870 | ||
3871 | 1998-10-08 Tom Tromey <tromey@cygnus.com> | |
3872 | ||
3873 | * prims.cc (lookupArray): Use static array to initialize list of | |
3874 | interfaces. | |
3875 | ||
3876 | Thu Oct 8 12:45:03 1998 Anthony Green <green@cygnus.com> | |
3877 | ||
3878 | * prims.cc (lookupArray): Initialize the msize for new | |
3879 | array classes. | |
3880 | ||
3881 | Wed Oct 7 12:13:59 1998 Anthony Green <green@cygnus.com> | |
3882 | ||
3883 | * configure: Rebuilt. | |
3884 | * configure.in: Check for fsync and sleep. | |
3885 | * acconfig.h (HAVE_SLEEP, HAVE_FSYNC): Added. | |
3886 | ||
3887 | * include/no-threads.h (_Jv_CondWait): Wrap sleep() use with | |
3888 | HAVE_SLEEP. Include config.h. | |
3889 | ||
3890 | * java/io/natFileDescriptor.cc (NO_FSYNC_MESSAGE): Added. | |
3891 | * java/io/natFileDescriptor.cc (sync): Wrap fsync() use | |
3892 | with HAVE_FSYNC. | |
3893 | ||
3894 | 1998-10-08 Tom Tromey <tromey@cygnus.com> | |
3895 | ||
3896 | * java/io/natFile.cc: Don't include SecurityManager.h. | |
3897 | (performList): Renamed. | |
3898 | (performMkdir): Likewise. | |
3899 | (performRenameTo): Likewise. | |
3900 | (performDelete): Likewise. | |
3901 | Include <stdlib.h>. | |
3902 | * java/io/File.java (performDelete): Renamed from natDelete. | |
3903 | (list): Now written in Java. | |
3904 | (performList): New method. | |
3905 | (performMkdir): New method. | |
3906 | (mkdir): Now written in Java. | |
3907 | (performRenameTo): New method. | |
3908 | (renameTo): Now written in Java. | |
3909 | ||
3910 | 1998-10-06 Tom Tromey <tromey@cygnus.com> | |
3911 | ||
3912 | * Makefile.in: Rebuilt. | |
3913 | * Makefile.am (ETAGS_ARGS): New macro. | |
3914 | (TAGS_DEPENDENCIES): Likewise. | |
3915 | ||
3916 | Tue Oct 6 22:04:44 PDT 1998 Anthony Green <green@cygnus.com> | |
3917 | ||
3918 | * Makefile.in: Rebuilt. | |
3919 | * Makefile.am: Use -classpath option with javac. | |
3920 | ||
3921 | Tue Oct 6 18:51:31 1998 Tom Tromey <tromey@cygnus.com> | |
3922 | ||
3923 | * java/io/FileOutputStream.java (finalize): Call | |
3924 | super.finalize(). | |
3925 | ||
3926 | Tue Oct 6 16:02:45 1998 Anthony Green <green@cygnus.com> | |
3927 | ||
3928 | * java/lang/mprec.h: Remove unused _mprec_log10 which conflicts | |
3929 | with newlib's libm. | |
3930 | * java/lang/mprec.c: Ditto. | |
3931 | ||
3932 | * java/lang/mprec.h: Include math.h for HUGE_VAL when | |
3933 | cross-compiling. | |
3934 | ||
3935 | Tue Oct 6 14:27:00 1998 Warren Levy <warrenl@cygnus.com> | |
3936 | ||
3937 | * java/io/InputStream.java (skip): Make local var i a long. | |
3938 | ||
3939 | Mon Oct 5 09:44:24 1998 Tom Tromey <tromey@cygnus.com> | |
3940 | ||
3941 | * java/lang/natObject.cc (clone): Use memcpy, not memmove. | |
3942 | * prims.cc (lookupArray): Use memcpy, not memmove. | |
3943 | * include/config.h.in: Rebuilt. | |
3944 | * acconfig.h (HAVE_MEMCPY): Added. | |
3945 | * configure: Rebuilt. | |
3946 | * configure.in: Check for memcpy again. | |
3947 | ||
3948 | * java/io/RandomAccessFile.java (RandomAccessFile): Use | |
3949 | String.compareTo, not ==. | |
3950 | ||
3951 | * java/lang/Class.h (Class): Use _Jv_DispatchTable. | |
3952 | (_PRIMITIVE_DTABLE): Use _Jv_DispatchTable. | |
3953 | * java/lang/natObject.cc (struct _dispatchTable): Removed. | |
3954 | * include/jvm.h (struct _Jv_DispatchTable): New structure. | |
3955 | * prims.cc (lookupArray): Removed dead code. Copy Object's dtable | |
3956 | into new array's dtable. | |
3957 | (_Jv_AllocObject): Use _Jv_DispatchTable. | |
3958 | (_Jv_NewPrimArray): Likewise. | |
3959 | (_Jv_NewObjectArray): Likewise. | |
3960 | ||
3961 | Fri Oct 2 18:57:14 1998 Alexandre Petit-Bianco <apbianco@cygnus.com> | |
3962 | ||
3963 | * prims.cc (_Jv_ThrowBadArrayIndex): Construct a string with the | |
3964 | offending index value. | |
3965 | (_Jv_NewPrimArray): Throw NegativeArraySizeException when | |
3966 | appropriate. | |
3967 | * include/jvm.h (_Jv_ThrowBadArrayIndex): Added declaration. | |
3968 | * java/lang/Throwable.java: (Throwable): fixed argument to this(). | |
3969 | ||
3970 | Fri Oct 2 15:58:23 1998 Warren Levy <warrenl@cygnus.com> | |
3971 | ||
3972 | * java/io/DataInput.java, java/io/InputStream.java: Rewritten. | |
3973 | ||
3974 | * java/io/OutputStream.java (write): Use off and len parameters to | |
3975 | output partial byte array. | |
3976 | ||
3977 | * java/io/BufferedReader.java, java/io/FileReader.java, | |
3978 | java/io/InputStreamReader.java, java/io/LineNumberReader.java, | |
3979 | java/io/OutputStreamWriter.java, java/io/PrintWriter.java, | |
3980 | java/io/Reader.java, java/io/UnsupportedEncodingException.java, | |
3981 | java/io/Writer.java: Added COPYRIGHT-TBD comment. | |
3982 | ||
3983 | * include/javaprims.h (java::lang): Added | |
3984 | ExceptionInInitializerError, IllegalStateException, | |
3985 | NoSuchFieldException, and UnsupportedOperationException. | |
3986 | ||
3987 | Fri Oct 2 01:05:38 1998 Tom Tromey <tromey@cygnus.com> | |
3988 | ||
3989 | * java/lang/natObject.cc (CloneableClass): Is a Class, not a | |
3990 | Class*. | |
3991 | ||
3992 | * include/java-array.h (__JArray): Added clone method. | |
3993 | * prims.cc (CloneableClass): New define. | |
3994 | (lookupArray): Initialize array class to indicate that it | |
3995 | implements Cloneable. | |
3996 | ||
3997 | * java/lang/Class.h: Removed all ACC_* defines. | |
3998 | * prims.cc: Include Modifier.h. | |
3999 | (_Jv_LookupInterfaceMethod): Use methods in | |
4000 | java.lang.reflect.Modifier, not ACC_ defines. | |
4001 | ||
4002 | * java/lang/Class.h (Class): Declare getClasses, | |
4003 | getDeclaredClasses, getDeclaringClass, getModifiers, | |
4004 | * java/lang/Class.java: Rewrote from scratch. | |
4005 | ||
4006 | * include/javaprims.h (java::lang): Added reflect and | |
4007 | reflect::Modifier. | |
4008 | * Makefile.in: Rebuilt. | |
4009 | * Makefile.am (nat_headers): Added Modifier.h. | |
4010 | ||
4011 | * prims.cc (_Jv_IsInstanceOf): Return false if class is | |
4012 | primitive. | |
4013 | ||
4014 | Fri Oct 2 06:49:00 1998 Anthony Green <green@cygnus.com> | |
4015 | ||
4016 | * java/lang/natString.cc (_Jv_StringFindSlot): Use JvAssert | |
4017 | instead of test and abort. | |
4018 | ||
4019 | * java/lang/natString.cc (_Jv_NewStringUtf8Const): Add cast to | |
4020 | remove compiler warning. | |
4021 | ||
4022 | Fri Oct 2 12:33:44 1998 Andrew Haley <aph@korai.cygnus.co.uk> | |
4023 | ||
4024 | * java/lang/natDouble.cc: zero terminate string. | |
4025 | * strtod.c: Set errno if no digits are found in fraction. | |
4026 | ||
4027 | Thu Oct 1 11:48:28 1998 Tom Tromey <tromey@cygnus.com> | |
4028 | ||
4029 | * java/lang/reflect/Modifier.java: New file. | |
4030 | ||
4031 | * java/lang/VirtualMachineError.java: Rewrote from scratch. | |
4032 | * java/lang/VerifyError.java: Rewrote from scratch. | |
4033 | * java/lang/UnsatisfiedLinkError.java: Rewrote from scratch. | |
4034 | * java/lang/UnknownError.java: Rewrote from scratch. | |
4035 | * java/lang/StackOverflowError.java: Rewrote from scratch. | |
4036 | * java/lang/OutOfMemoryError.java: Rewrote from scratch. | |
4037 | * java/lang/InternalError.java: Rewrote from scratch. | |
4038 | * java/lang/IllegalAccessError.java: Rewrote from scratch. | |
4039 | * java/lang/ExceptionInInitializerError.java: New file. | |
4040 | * java/lang/Error.java: Rewrote from scratch. | |
4041 | * java/lang/ClassFormatError.java: Rewrote from scratch. | |
4042 | * java/lang/ClassCircularityError.java: Rewrote from scratch. | |
4043 | * java/lang/AbstractMethodError.java: Rewrote from scratch. | |
4044 | * java/lang/NoClassDefFoundError.java: Rewrote from scratch. | |
4045 | * java/lang/NoSuchFieldError.java: Rewrote from scratch. | |
4046 | * java/lang/LinkageError.java: Rewrote from scratch. | |
4047 | * java/lang/IncompatibleClassChangeError.java: Rewrote from | |
4048 | scratch. | |
4049 | * java/lang/NoSuchMethodError.java: Rewrote from scratch. | |
4050 | ||
4051 | * java/lang/natObject.cc (_Jv_FinalizeObject): New function. | |
4052 | * java/lang/Object.h (Object): Declare _Jv_FinalizeObject as a | |
4053 | friend. | |
4054 | * include/cni.h (JvAllocObject): Moved from prims.cc. | |
4055 | Include Class.h. | |
4056 | * prims.cc (JvAllocObject): Moved to cni.h. | |
4057 | (_Jv_AllocObject): Use _Jv_FinalizeObject. | |
4058 | (finalize_name): Removed. | |
4059 | ||
4060 | Wed Sep 30 12:09:34 1998 Tom Tromey <tromey@cygnus.com> | |
4061 | ||
4062 | * java/lang/Class.h (Class): Added size() method. | |
4063 | * prims.cc (_Jv_MonitorEnter): Removed. | |
4064 | (_Jv_MonitorExit): Removed. | |
4065 | * java/lang/Object.h (JvSyncInfo): Removed. | |
4066 | * Makefile.in: Rebuilt. | |
4067 | * Makefile.am (nat_headers): Added Cloneable.h, | |
4068 | CloneNotSupportedException.h. | |
4069 | * java/lang/Object.h: Rewrote. | |
4070 | * java/lang/natObject.cc: Rewrote from scratch. | |
4071 | * java/lang/Object.java: Rewrote from scratch. | |
4072 | ||
4073 | * java/io/natFile.cc: Conditionally include <dirent.h>. | |
4074 | (list): If no <dirent.h>, always return NULL. | |
4075 | * configure: Rebuilt. | |
4076 | * configure.in: Check for dirent.h. | |
4077 | ||
4078 | * prims.cc (lookupArray): Don't use sprintf. | |
4079 | ||
4080 | * java/util/Hashtable.java (containsKey): Use `abs' to compute | |
4081 | initial index. | |
4082 | (get): Likewise. | |
4083 | (put): Likewise. | |
4084 | (rehash): Likewise. | |
4085 | (remove): Likewise. | |
4086 | ||
4087 | * java/util/Hashtable.java (hsize): Renamed from size to avoid | |
4088 | name conflict with method. | |
4089 | ||
4090 | * include/javaprims.h (java::util): Added HashtableEntry. | |
4091 | ||
4092 | Tue Sep 29 16:48:01 1998 Warren Levy <warrenl@cygnus.com> | |
4093 | ||
4094 | * java/util/Hashtable.java: Rewritten. | |
4095 | ||
4096 | Tue Sep 29 00:28:42 1998 Tom Tromey <tromey@cygnus.com> | |
4097 | ||
4098 | * java/io/natFileDescriptor.cc (write): Correctly test `write' | |
4099 | return value. | |
4100 | (write): Likewise. | |
4101 | ||
4102 | * java/lang/natThread.cc (join): Fixed assertion to refer to `nt', | |
4103 | not `curr_nt'. | |
4104 | ||
4105 | * posix-threads.cc (_Jv_CondWait): Now returns int. | |
4106 | * include/javaprims.h (java::lang): Added | |
4107 | IllegalMonitorStateException. | |
4108 | * Makefile.in: Rebuilt. | |
4109 | * Makefile.am (nat_headers): Added IllegalMonitorStateException.h. | |
4110 | * include/no-threads.h (_Jv_CondDestroy): Removed. | |
4111 | (_Jv_MutexDestroy): Removed. | |
4112 | (_Jv_CondWait): Now returns int. | |
4113 | (_Jv_CondNotify): Likewise. Added mutex argument. | |
4114 | (_Jv_CondNotifyAll): Likewise. | |
4115 | (_Jv_MutexLock): Always succeed. | |
4116 | (_Jv_MutexUnlock): Likewise. | |
4117 | * include/posix-threads.h (_Jv_HaveCondDestroy): Define. | |
4118 | (_Jv_HaveMutexDestroy): Define. | |
4119 | (_Jv_CondNotify): Now returns int. Added mutex argument. | |
4120 | (_Jv_CondNotifyAll): Likewise. | |
4121 | * include/quick-threads.h (_Jv_CondDestroy): Removed. | |
4122 | (_Jv_MutexDestroy): Removed. | |
4123 | (_Jv_CondWait): Now returns int. | |
4124 | (_Jv_CondNotify): Likewise. Added mutex argument. | |
4125 | (_Jv_CondNotifyAll): Likewise. | |
4126 | * java/lang/natObject.cc (finalize_sync_info): New function. | |
4127 | (init_mutex): Initialize `init' and register finalizer if | |
4128 | required. | |
4129 | (CHECK): New macro. | |
4130 | (init_mutex): Use it. | |
4131 | (notify): Use it. | |
4132 | (notifyAll): Use it. | |
4133 | (wait): Use it. | |
4134 | (notify): Throw IllegalMonitorStateException on failure. | |
4135 | (notifyAll): Likewise. | |
4136 | (wait): Likewise. Also, throw InterruptedException if | |
4137 | appropriate. | |
4138 | Include cni.h, Thread.h, IllegalMonitorStateException.h, | |
4139 | InterruptedException.h, IllegalArgumentException.h. | |
4140 | * java/lang/Object.h (struct JvSyncInfo): Added `init' member. | |
4141 | ||
4142 | * java/lang/natString.cc: Renamed all `JvPriv' functions. | |
4143 | * java/lang/natRuntime.cc: Renamed all `JvPriv' functions. | |
4144 | * java/lang/Object.h: Renamed all `JvPriv' functions (and types). | |
4145 | * java/lang/natObject.cc: Renamed all `JvPriv' functions. | |
4146 | * java/lang/natThread.cc: Renamed all `JvPriv' functions. | |
4147 | * quick-threads.cc: Renamed all `JvPriv' functions. | |
4148 | * prims.cc: Renamed all `JvPriv' functions. | |
4149 | * posix-threads.cc: Renamed all `JvPriv' functions. | |
4150 | * nogc.cc: Renamed all `JvPriv' functions. | |
4151 | * no-threads.cc: Renamed all `JvPriv' functions. | |
4152 | * boehm.cc: Renamed all `JvPriv' functions. | |
4153 | * include/quick-threads.h: Renamed all `JvPriv' functions. | |
4154 | * include/posix-threads.h: Renamed all `JvPriv' functions. | |
4155 | * include/no-threads.h: Renamed all `JvPriv' functions. | |
4156 | * include/jvm.h: Renamed all `JvPrivXXX' functions to `_Jv_XXX'. | |
4157 | ||
4158 | * include/no-threads.h (JvPrivCondWait): Wrote minimal | |
4159 | implementation. | |
4160 | (JvPrivCondNotify): Do nothing. | |
4161 | (JvPrivCondNotifyAll): Do nothing. | |
4162 | ||
4163 | * prims.cc (processClass): Handle case where state is | |
4164 | DOING_CONSTINIT. | |
4165 | ||
4166 | * java/lang/natFirstThread.cc: Include <stdlib.h> | |
4167 | ||
4168 | * configure: Rebuilt. | |
4169 | * configure.in: Fixed sense of --enable-libjava-debug. | |
4170 | ||
4171 | * java/lang/natThread.cc (join): Declare `t' outside the loop so | |
4172 | it can be used afterward by the assertion. | |
4173 | ||
4174 | * configure: Rebuilt. | |
4175 | * configure.in: When cross-compiling, assume alloca. | |
4176 | ||
4177 | * java/lang/natDouble.cc: Updated alloca magic to avoid use of | |
4178 | __builtin_alloca (autoconf docs are wrong here). | |
4179 | ||
4180 | * java/io/natFileDescriptor.cc (close): Set fd to -1 before | |
4181 | closing. | |
4182 | (available): Use `FD_ZERO' (typo fix). | |
4183 | ||
4184 | Tue Sep 29 17:43:30 1998 Andrew Haley <aph@tikka.cygnus.co.uk> | |
4185 | ||
4186 | * java/lang/mprec.h, java/lang/mprec.c, java/lang/dtoa.c, | |
4187 | java/lang/natDouble.cc, java/lang/strtod.c: struct _Bigint renamed | |
4188 | struct _Jv_Bigint. | |
4189 | * java/lang/mprec.h, java/lang/mprec.c, java/lang/dtoa.c, | |
4190 | java/lang/natDouble.cc, java/lang/strtod.c: struct _reent renamed | |
4191 | struct _Jv_reent. | |
4192 | ||
4193 | * java/lang/natDouble.cc: layout changed to match GNU coding standard. | |
4194 | ||
4195 | Tue Sep 29 07:57:13 1998 Anthony Green <green@cygnus.com> | |
4196 | ||
4197 | * java/lang/natDouble.cc: Declare alloca safely. | |
4198 | ||
4199 | * configure, include/config.h.in: Rebuilt. | |
4200 | * configure.in: Add alloca check. | |
4201 | ||
4202 | Tue Sep 29 00:28:42 1998 Tom Tromey <tromey@cygnus.com> | |
4203 | ||
4204 | * java/lang/natThread.cc (finish_): Hold mutex for interrupt | |
4205 | condition while calling notify. | |
4206 | (join): Remove `curr_nt' from `nt's join list, not vice versa. | |
4207 | (interrupt): Hold mutex for interrupt condition while calling | |
4208 | notify. | |
4209 | ||
4210 | * java/lang/natString.cc (init): Allocate and try to read `count' | |
4211 | characters, not `count - offset' characters. | |
4212 | ||
4213 | * java/io/ByteArrayInputStream.java (ByteArrayInputStream): | |
4214 | Correctly compute `count'. | |
4215 | ||
4216 | * java/lang/Boolean.java (getBoolean): Return false if property | |
4217 | not found. | |
4218 | ||
4219 | * java/lang/System.java (setProperties): Set prop_init. | |
4220 | ||
4221 | Mon Sep 28 12:39:25 1998 Tom Tromey <tromey@cygnus.com> | |
4222 | ||
4223 | * java/io/PrintStream.java (println): Use line.separator, not | |
4224 | file.separator. | |
4225 | * java/lang/System.java (out, err): Make both autoflush streams. | |
4226 | * java/io/ByteArrayOutputStream.java (write): Increment `count'. | |
4227 | ||
4228 | * include/config.h.in: Rebuilt. | |
4229 | * acconfig.h (HAVE_MEMCPY): Removed. | |
4230 | * configure: Rebuilt. | |
4231 | * configure.in: Never define HAVE_MEMCPY. | |
4232 | ||
4233 | * java/lang/natString.cc: Don't include OutOfMemoryError.h or | |
4234 | Class.h. | |
4235 | (_Jv_AllocString): Use JvAllocObject again. | |
4236 | * java/lang/Class.h (thread): New field. | |
4237 | (_Jv_AllocString): No longer a friend. | |
4238 | * prims.cc (processClass): Removed dead code. Changed to more | |
4239 | closely follow the Java Language Specification. | |
4240 | (processClass): Return early if already at the right state. | |
4241 | ||
4242 | * prims.cc (JvNewStringUTF): Removed. | |
4243 | * include/cni.h (JvNewStringUTF): New function. | |
4244 | (_Jv_NewStringUTF): Declare as `extern "C"'. | |
4245 | * java/lang/natString.cc (_Jv_NewStringUTF): New function. | |
4246 | ||
4247 | * java/lang/natDouble.cc: Added copyright info and header | |
4248 | comment. Include <stdlib.h>. | |
4249 | (doubleValueOf): Use alloca, not malloc. Allocate 3 times as many | |
4250 | bytes as are chars in string. | |
4251 | ||
4252 | Sat Sep 26 00:19:27 1998 Tom Tromey <tromey@cygnus.com> | |
4253 | ||
4254 | * java/util/Hashtable.java (hkeys): Member renamed from to avoid | |
4255 | clash with method. | |
4256 | (hsize): Likewise. | |
4257 | ||
4258 | * java/lang/System.java (init_properties): Now native. | |
4259 | * java/lang/natSystem.cc (init_properties): New method. | |
4260 | Include java/util/Properties.h. | |
4261 | ||
4262 | * Makefile.in: Rebuilt. | |
4263 | * Makefile.am (nat_headers): Added ByteArrayOutputStream.h, | |
4264 | OutputStreamWriter.h, ByteArrayInputStream.h, | |
4265 | InputStreamReader.h, Writer.h, InputStream.h, OutputStream.h, | |
4266 | Reader.h, Vector.h, SecurityManager.h, FilenameFilter.h, | |
4267 | SyncFailedException.h, EOFException.h, FileNotFoundException.h, | |
4268 | Properties.h, Hashtable.h, Dictionary.h. | |
4269 | (CFLAGS): Removed. | |
4270 | ||
4271 | * include/javaprims.h (java::io): Added Reader, Writer, | |
4272 | InputStreamReader, OutputStreamWriter, | |
4273 | UnsupportedEncodingException, ByteArrayInputStream, | |
4274 | ByteArrayOutputStream, EOFException, SyncFailedException, | |
4275 | PushbackInputStream. | |
4276 | (java::lang): Added Cloneable. | |
4277 | (java::util): Added NoSuchElementException, VectorEnumeration, | |
4278 | Dictionary, HashtableEnumeration, PropertiesEnumeration. | |
4279 | ||
4280 | * java/io/PipedReader.java: New file. | |
4281 | ||
4282 | Fri Sep 25 00:11:25 1998 Tom Tromey <tromey@cygnus.com> | |
4283 | ||
4284 | * java/lang/natCharacter.cc (getNumericValue): Use `digit' to pick | |
4285 | up A-Z. | |
4286 | ||
4287 | * java/io/io-defs.h: Removed. | |
4288 | ||
4289 | * java/io/FileInputStream.java (skip): Use FileDescriptor.seek. | |
4290 | (FileInputStream): Use new constructor. Can throw IOException. | |
4291 | ||
4292 | * java/lang/System.java (getProperty): Don't throw | |
4293 | NullPointerException. | |
4294 | ||
4295 | * java/io/RandomAccessFile.java: Rewrote from scratch. | |
4296 | ||
4297 | * java/io/natFileDescriptor.cc: Include EOFException.h. | |
4298 | (seek): New method. | |
4299 | (length): New method. | |
4300 | (getFilePointer): New method. | |
4301 | (read): New method. | |
4302 | (available): New method. | |
4303 | * java/io/FileDescriptor.java (SET, CUR): New constants. | |
4304 | (seek, length, getFilePointer, read, available): New decls. | |
4305 | ||
4306 | * java/io/PipedWriter.java: New file. | |
4307 | * java/io/StringWriter.java: New file. | |
4308 | * java/io/CharArrayWriter.java: New file. | |
4309 | * java/io/CharConversionException.java: New file. | |
4310 | * java/io/BufferedWriter.java: New file. | |
4311 | * java/io/FilterWriter.java: New file. | |
4312 | * java/io/FileWriter.java: New file. | |
4313 | ||
4314 | * java/lang/natString.cc: Include ByteArrayOutputStream.h, | |
4315 | OutputStreamWriter.h, NullPointerException.h, | |
4316 | ByteArrayInputStream.h, InputStreamReader.h. | |
4317 | (getBytes): New method. | |
4318 | (init): Throw NullPointerException. | |
4319 | (init): New function. | |
4320 | * java/lang/String.java (getBytes): Added missing decl. | |
4321 | (getBytes): New method. | |
4322 | (String): Added byte[]-based constructors. | |
4323 | (copyValueOf): Wrote. | |
4324 | (init): Declare variant which takes byte array and encoding. | |
4325 | Import java.io.UnsupportedEncodingException. | |
4326 | ||
4327 | * java/io/File.java: Rewrote from scratch. | |
4328 | * java/io/natFileDescriptor.cc: Rewrote from scratch. | |
4329 | * java/io/FileDescriptor.java: Rewrote from scratch. | |
4330 | * java/io/FilenameFilter.java: Rewrote from scratch. | |
4331 | ||
4332 | Thu Sep 24 13:30:16 1998 Tom Tromey <tromey@cygnus.com> | |
4333 | ||
4334 | * java/io/SyncFailedException.java: New file. | |
4335 | * java/io/UTFDataFormatException.java: Rewrote from scratch. | |
4336 | * java/io/InterruptedIOException.java: Rewrote from scratch. | |
4337 | * java/io/FileNotFoundException.java: Rewrote from scratch. | |
4338 | * java/io/EOFException.java: Rewrote from scratch. | |
4339 | * java/io/IOException.java: Rewrote from scratch. | |
4340 | * java/io/PrintStream.java: Rewrote from scratch. | |
4341 | * java/io/DataOutputStream.java: Rewrote from scratch. | |
4342 | * java/io/BufferedOutputStream.java: Rewrote from scratch. | |
4343 | * java/io/FilterOutputStream.java: Rewrote from scratch. | |
4344 | * java/io/ByteArrayOutputStream.java: Rewrote from scratch. | |
4345 | * java/io/PipedOutputStream.java: Rewrote from scratch. | |
4346 | * java/io/FileOutputStream.java: Rewrote from scratch. | |
4347 | * java/io/OutputStream.java: Rewrote from scratch. | |
4348 | * java/io/DataOutput.java: Rewrote from scratch. | |
4349 | ||
4350 | Mon Sep 28 22:59:54 1998 Per Bothner <bothner@cygnus.com> | |
4351 | ||
4352 | * prims.cc (_Jv_CheckCast): Add missing ! operator. | |
4353 | ||
4354 | Mon Sep 28 15:50:06 1998 Anthony Green <green@cygnus.com> | |
4355 | ||
4356 | * configure.in: Add --enable-libjava-debug | |
4357 | ||
4358 | * Makefile.am (nat_headers): Add java/lang/Float.h and | |
4359 | java/lang/Double.h | |
4360 | ||
4361 | * acconfig.h: Add DEBUG and HAVE_MEMCPY. | |
4362 | ||
4363 | * Makefile.in, configure, include/config.h.in: Rebuilt. | |
4364 | ||
4365 | Mon Sep 28 17:05:58 1998 Andrew Haley <aph@korai.cygnus.co.uk> | |
4366 | ||
4367 | * java/lang/Float.java: Rewritten | |
4368 | * java/lang/Double.java: Rewritten | |
4369 | * java/lang/natFloat.cc: toString() added. | |
4370 | * java/lang/natDouble.cc: toString() added. | |
4371 | * java/lang/natDouble.cc: doubleValueOf() added. | |
4372 | * java/lang/dtoa.c, java/lang/mprec.c, java/lang/mprec.h, | |
4373 | java/lang/strtod.c: added. | |
4374 | * ieeefp.h: __sparc added. | |
4375 | * Makefile.am: java/lang/Float.h and java/lang/Double.h added. | |
4376 | ||
4377 | Thu Sep 24 13:30:16 1998 Tom Tromey <tromey@cygnus.com> | |
4378 | ||
4379 | * include/javaprims.h (java::lang): Added | |
4380 | CloneNotSupportedException. | |
4381 | ||
4382 | * java/lang/Object.java (clone): No longer native. Implemented. | |
4383 | * java/lang/natObject.cc (clone): Removed. | |
4384 | ||
4385 | Wed Sep 23 12:03:38 1998 Tom Tromey <tromey@cygnus.com> | |
4386 | ||
4387 | * prims.cc: Don't make definitions `extern "C"'. | |
4388 | (_Jv_RegisterClass): Renamed from registerClass. | |
4389 | * include/jvm.h (_Jv_ThrowBadArrayIndex): Declare. | |
4390 | (_Jv_NewArray): Likewise. | |
4391 | (_Jv_NewMultiArray): Likewise. | |
4392 | (_Jv_CheckCast): Likewise. | |
4393 | (_Jv_LookupInterfaceMethod): Likewise. | |
4394 | (_Jv_CheckArrayStore): Likewise. | |
4395 | (_Jv_RegisterClass): Likewise. | |
4396 | ||
4397 | * acconfig.h (HAVE_FMOD, HAVE_MEMCPY): Removed. | |
4398 | * configure: Rebuilt. | |
4399 | * configure.in: Don't check for fmod; it is provided by the fdlibm | |
4400 | code. | |
4401 | * prims.cc (fmod): Removed. | |
4402 | ||
4403 | * java/lang/natString.cc (charAt): Use _Jv_uint. | |
4404 | * java/lang/Class.h (class JvField): Use _Jv_ushort. | |
4405 | * prims.cc (HASH_CHARS): Use _Jv_ushort. | |
4406 | (equalUtf8Consts): Likewise. | |
4407 | (internalAddClass): Use _Jv_uint. | |
4408 | (processClass): Likewise. | |
4409 | * include/javaprims.h (_Jv_ushort): Renamed from uint16. | |
4410 | (_Jv_uint): Renamed from uint32. | |
4411 | (struct _Jv_Utf8Const): Changed members to use new type names. | |
4412 | ||
4413 | * configure: Rebuilt. | |
4414 | * configure.in: Don't check for memcpy. Require memmove and a way | |
4415 | to get the time. | |
4416 | * java/lang/natSystem.cc (arraycopy): Removed dead code, and | |
4417 | #error. | |
4418 | (currentTimeMillis): Don't use #error. | |
4419 | ||
4420 | Tue Sep 22 18:00:16 1998 Andrew Haley <aph@korai.cygnus.co.uk> | |
4421 | ||
4422 | * java/lang/Math.java: static member random renamed to random_ to | |
4423 | avoid conflict with member function of the same name. | |
4424 | * include/javaprims.h: java.util.Random added. | |
4425 | ||
4426 | Tue Sep 22 13:53:14 1998 Tom Tromey <tromey@cygnus.com> | |
4427 | ||
4428 | * include/java-chartables.h: Regenerated. | |
4429 | * chartables.pl: End COMPACT_CHARACTER #if after fast tables | |
4430 | printed. | |
4431 | ||
4432 | Tue Sep 22 17:17:52 1998 Andrew Haley <aph@tikka.cygnus.co.uk> | |
4433 | ||
4434 | * java/lang/Math.java: Rewritten. | |
4435 | * java/lang/natMath.cc: New file. | |
4436 | * Files added from fdlibm: | |
4437 | java/lang/e_acos.c, java/lang/k_sin.c, java/lang/sf_floor.c, | |
4438 | java/lang/e_asin.c, java/lang/k_tan.c, java/lang/sf_rint.c, | |
4439 | java/lang/e_atan2.c, java/lang/s_atan.c, java/lang/w_acos.c, | |
4440 | java/lang/e_exp.c, java/lang/s_ceil.c, java/lang/w_asin.c, | |
4441 | java/lang/e_fmod.c, java/lang/s_copysign.c, java/lang/w_atan2.c, | |
4442 | java/lang/e_log.c, java/lang/s_cos.c, java/lang/w_exp.c, | |
4443 | java/lang/e_pow.c, java/lang/s_fabs.c, java/lang/w_fmod.c, | |
4444 | java/lang/e_rem_pio2.c, java/lang/s_floor.c, java/lang/w_log.c, | |
4445 | java/lang/e_remainder.c, java/lang/s_rint.c, java/lang/w_pow.c, | |
4446 | java/lang/e_scalb.c, java/lang/s_scalbn.c, java/lang/w_remainder.c, | |
4447 | java/lang/e_sqrt.c, java/lang/s_sin.c, java/lang/w_sqrt.c, | |
4448 | java/lang/ef_fmod.c, java/lang/s_tan.c, java/lang/wf_fmod.c, | |
4449 | java/lang/k_cos.c, java/lang/sf_ceil.c, | |
4450 | java/lang/k_rem_pio2.c, java/lang/sf_fabs.c, | |
4451 | java/lang/ieeefp.h, java/lang/fdlibm.h | |
4452 | * Makefile.am: rules added for compiling C files from fdlibm. | |
4453 | ||
4454 | Mon Sep 21 15:40:58 1998 Tom Tromey <tromey@cygnus.com> | |
4455 | ||
4456 | * chartables.pl: Minor documentation fixes. | |
4457 | ||
4458 | * configure: Rebuilt. | |
4459 | * configure.in: Fixed --help output for --enable-fast-character. | |
4460 | ||
4461 | Thu Sep 17 11:03:27 1998 Tom Tromey <tromey@cygnus.com> | |
4462 | ||
4463 | * configure: Rebuilt. | |
4464 | * configure.in: Recognize --enable-fast-character. | |
4465 | * acconfig.h (COMPACT_CHARACTER): New define. | |
4466 | * include/config.h.in: Rebuilt. | |
4467 | * include/java-chartables.h: New file. | |
4468 | * Makefile.in: Rebuilt. | |
4469 | * Makefile.am (nat_files): Added natCharacter.o. | |
4470 | * java/lang/natCharacter.cc: New file. | |
4471 | * chartables.pl (set_attribute): New function. | |
4472 | (@attributes, @second_attributes): New globals. | |
4473 | ($ROMAN_START, $ROMAN_END): Likewise. | |
4474 | (process_char): Call set_attribute when required. | |
4475 | (print_char): Just print hex value. | |
4476 | (print_block): Generate C++ syntax. | |
4477 | (print_numerics): Likewise. | |
4478 | (print_single_map): Likewise. | |
4479 | (print_all_block): Likewise. | |
4480 | (print_case_table): Likewise. | |
4481 | (print_fast_tables): New function. | |
4482 | Generate C++ code suitable for a header file. | |
4483 | * java/lang/Character.java (table_search): Removed. | |
4484 | (digit_value): Now native. | |
4485 | (getNumericValue): Likewise. | |
4486 | (getType): Likewise. | |
4487 | Removed all automatically-generated tables. | |
4488 | (Tamil_Digit_One): Removed. | |
4489 | (isSpaceChar): Now native. | |
4490 | (isTitleCase): Likewise. | |
4491 | (isLowerCase): Likewise. | |
4492 | (isUpperCase): Likewise. | |
4493 | (toLowerCase): Likewise. | |
4494 | (toTitleCase): Likewise. | |
4495 | (toUpperCase): Likewise. | |
4496 | (isDefined): Fixed sense of test. | |
4497 | ||
4498 | Wed Sep 16 12:00:19 1998 Tom Tromey <tromey@cygnus.com> | |
4499 | ||
4500 | * java/lang/natString.cc (equalsIgnoreCase): Removed obsolete | |
4501 | FIXME comment. | |
4502 | (regionMatches): Likewise. | |
4503 | ||
4504 | Tue Sep 15 14:35:12 1998 Tom Tromey <tromey@cygnus.com> | |
4505 | ||
4506 | * prims.cc (_Jv_AllocObject): Call _Jv_InitClass on the class. | |
4507 | ||
4508 | * java/lang/Class.h (Object): For now, declare _Jv_AllocString as | |
4509 | a friend. | |
4510 | * java/lang/natString.cc (_Jv_AllocString): For now, don't call | |
4511 | _Jv_AllocObject. | |
4512 | ||
4513 | * java/lang/natString.cc (toUpperCase): Declare `ch' as a jchar, | |
4514 | not a char. | |
4515 | ||
4516 | * java/lang/natClass.cc (isAssignableFrom): Handle arrays. | |
4517 | ||
4518 | Fri Sep 11 14:01:08 1998 Tom Tromey <tromey@cygnus.com> | |
4519 | ||
4520 | * prims.cc (instanceof_class): Removed. | |
4521 | (instanceof_array): Likewise. | |
4522 | (instanceof): Likewise. | |
4523 | (_Jv_IsInstanceOf): Use Class::isAssignableFrom. | |
4524 | (_Jv_CheckCast): Likewise. | |
4525 | * java/lang/natClass.cc (isAssignableFrom): New method. | |
4526 | * java/lang/Class.java (isAssignableFrom): Now native. | |
4527 | ||
4528 | * include/cni.h (JvThrow): Use `extern inline'. | |
4529 | (JvAllocObject): Likewise. | |
4530 | (JvInitClass): Likewise. | |
4531 | ||
4532 | * java/lang/natSystem.cc (arraycopy): Only check class of source | |
4533 | object if not null. | |
4534 | ||
4535 | * prims.cc (_Jv_CheckArrayStore): Wrote. | |
4536 | (_Jv_MonitorEnter): Prefer `JvThrow'. | |
4537 | Include ArrayStoreException.h. | |
4538 | (_Jv_CheckCast): Indentation cleanup. | |
4539 | ||
4540 | Thu Sep 10 18:59:29 1998 Tom Tromey <tromey@cygnus.com> | |
4541 | ||
4542 | * chartables.pl: New file. | |
4543 | * java/lang/Character.java: Rewrote from scratch. | |
4544 | ||
4545 | Fri Sep 18 18:15:58 1998 Warren Levy <warrenl@cygnus.com> | |
4546 | ||
4547 | * java/lang/ArithmeticException.java, | |
4548 | java/lang/ArrayIndexOutOfBoundsException.java, | |
4549 | java/lang/ArrayStoreException.java, | |
4550 | java/lang/ClassCastException.java, | |
4551 | java/lang/ClassNotFoundException.java, | |
4552 | java/lang/CloneNotSupportedException.java, | |
4553 | java/lang/Exception.java, java/lang/IllegalAccessException.java, | |
4554 | java/lang/IllegalArgumentException.java, | |
4555 | java/lang/IllegalMonitorStateException.java, | |
4556 | java/lang/IllegalThreadStateException.java, | |
4557 | java/lang/IndexOutOfBoundsException.java, | |
4558 | java/lang/InstantiationException.java, | |
4559 | java/lang/InterruptedException.java, | |
4560 | java/lang/NegativeArraySizeException.java, | |
4561 | java/lang/NoSuchMethodException.java, | |
4562 | java/lang/NullPointerException.java, | |
4563 | java/lang/NumberFormatException.java, | |
4564 | java/lang/RuntimeException.java, java/lang/SecurityException.java, | |
4565 | java/lang/StringIndexOutOfBoundsException.java: Rewritten. | |
4566 | ||
4567 | * java/lang/IllegalStateException.java, | |
4568 | java/lang/NoSuchFieldException.java, | |
4569 | java/lang/UnsupportedOperationException.java: Created. | |
4570 | ||
4571 | Fri Sep 18 15:01:42 1998 Warren Levy <warrenl@cygnus.com> | |
4572 | ||
4573 | * java/lang/Integer.java, java/lang/Long.java: Rewritten. | |
4574 | * java/lang/Byte.java, java/lang/Short.java (decode): Uncommented. | |
4575 | ||
4576 | Fri Sep 11 16:49:19 1998 Per Bothner <bothner@cygnus.com> | |
4577 | ||
4578 | * prims.cc (JvRunMain): No longer need to call _Jv_InitClass. | |
4579 | ||
4580 | Thu Sep 10 12:23:55 1998 Warren Levy <warrenl@cygnus.com> | |
4581 | ||
4582 | * Makefile.am (nat_headers): Added StringIndexOutOfBoundsException.h. | |
4583 | ||
4584 | * Makefile.in: Rebuilt. | |
4585 | ||
4586 | * include/javaprims.h (java::lang): Added | |
4587 | StringIndexOutOfBoundsException. | |
4588 | ||
4589 | * java/lang/String.java: Added header comment and FIXME comment for | |
4590 | missing constructors/methods. | |
4591 | (endsWith): Adjusted offset into string to look at just the last chars. | |
4592 | Commented out undocumented method. | |
4593 | ||
4594 | * java/lang/natString.cc: Added includes for | |
4595 | ArrayIndexOutOfBoundsException.h & StringIndexOutOfBoundsException.h. | |
4596 | (String::init): Throw StringIndexOutOfBoundsException. | |
4597 | (String::charAt): Throw StringIndexOutOfBoundsException. | |
4598 | (String::substring): Throw StringIndexOutOfBoundsException. | |
4599 | (String::getChars): Throw ArrayIndexOutOfBoundsException. | |
4600 | (String::getBytes): Throw ArrayIndexOutOfBoundsException. | |
4601 | (String::compareTo): Return difference/offset between chars/strings. | |
4602 | ||
4603 | Tue Sep 8 13:22:33 1998 Warren Levy <warrenl@cygnus.com> | |
4604 | ||
4605 | * java/lang/Boolean.java (TYPE): Added comment. | |
4606 | ||
4607 | * java/lang/Byte.java (decode): Added - commented out until dependent | |
4608 | code for Integer is written. | |
4609 | (compareTo): JDK 1.2 methods written. | |
4610 | (hashCode): Added comment to note that values have been verified. | |
4611 | ||
4612 | * java/lang/Short.java (decode): Added - commented out until dependent | |
4613 | code for Integer is written. | |
4614 | (compareTo): JDK 1.2 methods written. | |
4615 | (hashCode): Added comment to note that values have been verified. | |
4616 | ||
4617 | * java/lang/Comparable.java: Created - JDK 1.2 interface. | |
4618 | ||
4619 | Fri Sep 4 10:36:35 1998 Tom Tromey <tromey@cygnus.com> | |
4620 | ||
4621 | * include/javaprims.h (java::lang): Added VirtualMachineError, | |
4622 | OutOfMemoryError. | |
4623 | * Makefile.in: Rebuilt. | |
4624 | * Makefile.am (nat_headers): Added OutOfMemoryError.h, | |
4625 | VirtualMachineError.h. | |
4626 | * prims.cc (_Jv_NewPrimArray): Throw OutOfMemoryError. | |
4627 | (lookupArray): Likewise. | |
4628 | (makeUtf8Const): Likewise. | |
4629 | (_Jv_AllocObject): Likewise. | |
4630 | (_Jv_NewObjectArray): Likewise. | |
4631 | Include OutOfMemoryError.h. | |
4632 | ||
4633 | * java/io/natFileDescriptor.cc (newstr): Removed. Changed callers | |
4634 | to use JvNewStringLatin1. | |
4635 | ||
4636 | * java/io/io-defs.h: Include java/lang/IOException.h. | |
4637 | * Makefile.in: Rebuilt. | |
4638 | * Makefile.am (nat_headers): Added | |
4639 | ArrayIndexOutOfBoundsException.h, | |
4640 | ClassFormatError.h,ClassNotFoundException.h, | |
4641 | ClassCircularityError.h, ClassCastException.h, | |
4642 | IncompatibleClassChangeError.h, AbstractMethodError.h, | |
4643 | IllegalAccessError.h, LinkageError.h, Error.h, | |
4644 | NegativeArraySizeException.h, IOException.h. | |
4645 | * include/cni.h (SignalError): Removed declaration. | |
4646 | * java/util/natDate.cc (setTime): Use JvFail, not sorry. | |
4647 | * java/lang/natObject.cc (clone): Use JvFail, not sorry. | |
4648 | * java/lang/natClass.cc (getInterfaces): Use JvFail, not sorry. | |
4649 | (newInstance): Likewise. | |
4650 | (forName): Likewise. | |
4651 | * java/io/natFileDescriptor.cc (open_read_write): Use JvFail, not | |
4652 | sorry. | |
4653 | (read): Use JvThrow, not SignalError. | |
4654 | (read): Likewise. | |
4655 | (write): Likewise. | |
4656 | (skip): Likewise. | |
4657 | (close): Likewise. | |
4658 | (open_read): Likewise. | |
4659 | (open_write): Likewise. | |
4660 | (ftell): Likewise. | |
4661 | (fseek): Likewise. | |
4662 | (newstr): New function. | |
4663 | * java/io/natFile.cc (isDirectoryUnchecked): Use JvFail, not | |
4664 | sorry. | |
4665 | (lastModifiedUnchecked): Likewise. | |
4666 | (lengthUnchecked): Likewise. | |
4667 | * include/javaprims.h (sorry): Removed declaration. | |
4668 | (java::lang): Added ArrayIndexOutOfBoundsException, LinkageError, | |
4669 | ClassFormatError, ClassNotFoundException, ClassCircularityError, | |
4670 | ClassCastException, IncompatibleClassChangeError, | |
4671 | AbstractMethodError, IllegalAccessError, NegativeArraySizeException. | |
4672 | * prims.cc (instanceof_array): Use JvFail, not sorry. | |
4673 | (sorry): Removed. | |
4674 | Include ArrayIndexOutOfBoundsException.h, | |
4675 | ClassFormatError.h,ClassNotFoundException.h, | |
4676 | ClassCircularityError.h, ClassCastException.h, | |
4677 | IncompatibleClassChangeError.h, AbstractMethodError.h, | |
4678 | IllegalAccessError.h, NegativeArraySizeException.h. | |
4679 | (_Jv_ThrowBadArrayIndex): Implemented. | |
4680 | (JvNewStringUTF): Use JvFail, not sorry. | |
4681 | (_Jv_FindClass): Likewise. | |
4682 | (_Jv_NewArray): Likewise. | |
4683 | (throwException): Removed. | |
4684 | (getClass): Use JvThrow. | |
4685 | (processClass): Likewise. | |
4686 | (_Jv_NewObjectArray): Likewise. | |
4687 | (_Jv_NewMultiArray): Likewise. | |
4688 | (_Jv_CheckCast): Likewise. | |
4689 | (_Jv_LookupInterfaceMethod): Likewise. | |
4690 | (SignalError): Removed. | |
4691 | (getClass): Use _Jv_NewStringUtf8Const to create String. | |
4692 | ||
4693 | * java/lang/natSystem.cc (arraycopy): Throw | |
4694 | ArrayIndexOutOfBoundsException, not IndexOutOfBoundsException. | |
4695 | ||
4696 | * Makefile.in: Rebuilt. | |
4697 | * Makefile.am (GCJH): Renamed. Now use `gcjh'. Changed all | |
4698 | users. | |
4699 | * include/java-array.h: Mention gcjh, not gjavah. | |
4700 | ||
4701 | * java/io/natFile.cc (existsUnchecked): Use JvGetStringUTFRegion. | |
4702 | (canReadUnchecked): Likewise. | |
4703 | (canWriteUnchecked): Likewise. | |
4704 | (isFileUnchecked): Likewise. | |
4705 | * java/io/natFileDescriptor.cc: Don't include cni.h. | |
4706 | ||
4707 | * java/lang/Thread.java (run__): Declare. | |
4708 | * java/lang/natThread.cc (run__): New method, to avoid compiler | |
4709 | warning. | |
4710 | (start): Use run__, not run_. | |
4711 | ||
4712 | * java/io/io-defs.h: Include cni.h and jvm.h. | |
4713 | ||
4714 | Thu Sep 3 18:20:08 1998 Per Bothner <bothner@cygnus.com> | |
4715 | ||
4716 | Re-implement java.lang.String, using "COMPACT_STRINGS" representation. | |
4717 | * prims.cc (JvAllocString, JvNewString, JvNewStringlatin1): Moved | |
4718 | to natString.cc (with suitable renaming, inlines etc). | |
4719 | (javaString2CString): Removed. Subsumed by _Jv_GetStringUTFRegion. | |
4720 | * java/lang/Class.h: Renamed Utf8Const to _Jv_Utf8Const. | |
4721 | * java/lang/String.h: Removed - now generated using gjavah. | |
4722 | * java/lang/String.java: Re-written from scratch. Many native methods. | |
4723 | * java/lang/natDouble.cc, java/util/natDate.cc: #include <cni.h>. | |
4724 | * java/lang/natString.cc: Many functions re-written for "compact | |
4725 | strings" representation, or native java.lang.String methods added. | |
4726 | (Utf8Const2JavaString): Renamed to _Jv_NewStringUtf8Const. | |
4727 | (_Jv_GetStringUTFLength, _Jv_GetStringUTFRegion): New methods. | |
4728 | * java/lang/natClass.cc (getName): Use new _Jv_NewStringUtf8Const. | |
4729 | * java/io/natFileDescriptor.cc: Use new JvGetStringUTFRegion. | |
4730 | * include/cni.h: Add inline method. | |
4731 | * include/java-array.h (jobjectArrayjchar): gjavah bug work-around. | |
4732 | * include/javaprims.h: Moved some stuff frm String.h. | |
4733 | * include/jvm.h (UTF8_GET, Utf8Const, StringClass): Moved here. | |
4734 | * Makefile.am (nat_header): Added Character.h and String.h. | |
4735 | (String.h): Add new rule. | |
4736 | ||
4737 | Thu Sep 3 10:28:16 1998 Tom Tromey <tromey@cygnus.com> | |
4738 | ||
4739 | * no-threads.cc: Include config.h, cni.h, jvm.h. Don't include | |
4740 | java-assert.h. | |
4741 | * posix-threads.cc: Include cni.h, jvm.h. | |
4742 | * quick-threads.cc: Include cni.h, jvm.h. | |
4743 | * nogc.cc: Include cni.h, not javaprims.h. | |
4744 | * java/lang/natFirstThread.cc: Include cni.h, jvm.h. | |
4745 | * java/lang/natThread.cc: Rearranged #include ordering. Don't | |
4746 | include java-assert.h. | |
4747 | * java/lang/natSystem.cc: Include cni.h. Don't include | |
4748 | java-assert.h. | |
4749 | * java/lang/natRuntime.cc: Include cni.h. Don't include | |
4750 | java-assert.h. | |
4751 | * prims.cc: Rearranged #include ordering. Don't include | |
4752 | java-array.h or java-assert.h. | |
4753 | * boehm.cc: Include config.h, cni.h. | |
4754 | * exception.cc: Include config.h, cni.h. | |
4755 | * include/jvm.h: Include java-assert.h. | |
4756 | * include/cni.h: Include java/lang/Object.h. Don't include | |
4757 | java-threads.h or java-array.h. | |
4758 | ||
4759 | Thu Sep 3 16:03:08 1998 Warren Levy <warrenl@cygnus.com> | |
4760 | ||
4761 | * java/lang/Boolean.java: Rewritten. | |
4762 | ||
4763 | Thu Sep 3 10:28:16 1998 Tom Tromey <tromey@cygnus.com> | |
4764 | ||
4765 | * java/lang/natFirstThread.cc (main_func): New typedef. | |
4766 | (run): Use main_func, not JvPrivThreadStartFunc. | |
4767 | * include/no-threads.h (JvPrivThreadStartFunc): Use correct | |
4768 | argument type. | |
4769 | * include/posix-threads.h (JvPrivThreadStartFunc): Use correct | |
4770 | argument type. | |
4771 | * include/quick-threads.h (JvPrivThreadStartFunc): Use correct | |
4772 | argument type. | |
4773 | ||
4774 | Can't throw Java exceptions with C++ `throw': | |
4775 | * quick-threads.cc (qthrow): Use _Jv_Throw, not throw. | |
4776 | * java/lang/natThread.cc (join): Use _Jv_Throw, not throw. | |
4777 | (setPriority): Likewise. | |
4778 | (sleep): Likewise. | |
4779 | (start): Likewise. | |
4780 | (stop): Likewise. | |
4781 | * java/lang/natSystem.cc (arraycopy): Use _Jv_Throw, not throw. | |
4782 | * prims.cc (_Jv_MonitorEnter): Use _Jv_Throw, not throw. | |
4783 | ||
4784 | Can't catch Java exceptions from C++: | |
4785 | * java/lang/natThread.cc (finish_): New method. | |
4786 | (run_): Removed. | |
4787 | * java/lang/Thread.java (run_): Rewrote in Java. | |
4788 | (finish_): New native method. | |
4789 | ||
4790 | Wed Sep 2 17:30:39 1998 Warren Levy <warrenl@cygnus.com> | |
4791 | ||
4792 | * java/lang/Cloneable.java, java/lang/Number.java: Rewritten. | |
4793 | ||
4794 | * include/javaprims.h (java::io): Added Serializable. | |
4795 | ||
4796 | Wed Sep 2 15:22:00 1998 Warren Levy <warrenl@cygnus.com> | |
4797 | ||
4798 | * java/util/EmptyStackException.java, | |
4799 | java/util/NoSuchElementException.java: Rewritten. | |
4800 | ||
4801 | * java/util/ConcurrentModificationException.java, | |
4802 | java/util/MissingResourceException.java, | |
4803 | java/util/TooManyListenersException.java: Created. | |
4804 | ||
4805 | Wed Sep 2 13:36:57 1998 Tom Tromey <tromey@cygnus.com> | |
4806 | ||
4807 | * include/cni.h (JvThrow): New function. | |
4808 | * include/javaprims.h (_Jv_Throw): Declare. | |
4809 | ||
4810 | Wed Sep 2 14:07:48 1998 Warren Levy <warrenl@cygnus.com> | |
4811 | ||
4812 | * java/util/Observable.java: Rewritten. | |
4813 | ||
4814 | Wed Sep 2 13:36:57 1998 Tom Tromey <tromey@cygnus.com> | |
4815 | ||
4816 | * prims.cc (_Jv_MonitorExit): Assert that object is non-null. | |
4817 | (_Jv_MonitorEnter): Throw NullPointerException if object is null. | |
4818 | Include NullPointerException.h. | |
4819 | ||
4820 | Tue Sep 1 12:07:35 1998 Tom Tromey <tromey@cygnus.com> | |
4821 | ||
4822 | * java/lang/natSystem.cc (arraycopy): Removed overlapping-copy | |
4823 | assignability checks. Don't bother using memcpy. | |
4824 | ||
4825 | * quick-threads.cc (JvPrivThreadStart): Don't call coop_start. | |
4826 | (started): Removed. | |
4827 | * include/quick-threads.h (JvPrivThreadWait): New function. | |
4828 | * include/no-threads.h (JvPrivThreadWait): New function. | |
4829 | * include/posix-threads.h (JvPrivThreadWait): New function. | |
4830 | * prims.cc (JvRunMain): Call JvPrivThreadWait. | |
4831 | ||
4832 | * java/lang/natSystem.cc (arraycopy): Do nothing if count is 0. | |
4833 | ||
4834 | * java/lang/natSystem.cc (arraycopy): Multiply both src and dst | |
4835 | offsets by size of type that is being copied. | |
4836 | ||
4837 | * java/lang/natThread.cc (start): Don't pass `object' argument to | |
4838 | JvPrivThreadStart. | |
4839 | * no-threads.cc (JvPrivThreadStart): Removed `object' argument. | |
4840 | * posix-threads.cc (JvPrivThreadStart): Removed `object' | |
4841 | argument. | |
4842 | * quick-threads.cc (JvPrivThreadStart): Removed `object' argument; | |
4843 | always pass thread as object. | |
4844 | * include/quick-threads.h, include/posix-threads.h, | |
4845 | include/no-threads.h (JvPrivThreadStart): Removed `object' | |
4846 | argument. | |
4847 | ||
4848 | Mon Aug 31 19:11:53 1998 Warren Levy <warrenl@cygnus.com> | |
4849 | ||
4850 | * java/util/Dictionary.java: Rewritten. | |
4851 | ||
4852 | Mon Aug 31 14:35:55 1998 Tom Tromey <tromey@cygnus.com> | |
4853 | ||
4854 | * include/quick-threads.h (JvPrivThreadInitData): Use 0, not NULL. | |
4855 | (JvPrivThreadDestroy): Likewise. | |
4856 | ||
4857 | Mon Aug 31 12:56:01 1998 Warren Levy <warrenl@cygnus.com> | |
4858 | ||
4859 | * java/lang/natRuntime.cc (exit): Changed final call to ::exit. | |
4860 | ||
4861 | Thu Aug 27 12:24:40 1998 Tom Tromey <tromey@cygnus.com> | |
4862 | ||
4863 | * java/lang/natSystem.cc: Rewrote from scratch. | |
4864 | * java/lang/System.java: Rewrote from scratch. | |
4865 | * java/lang/Class.h (Class): Declare isAssignableFrom. | |
4866 | * include/javaprims.h (java::lang): Added ArrayStoreException, | |
4867 | IndexOutOfBoundsException. | |
4868 | * Makefile.in: Rebuilt. | |
4869 | * Makefile.am (nat_headers): Added ArrayStoreException.h, | |
4870 | IndexOutOfBoundsException.h. | |
4871 | * java/lang/natObject.cc (hashCode): Use _Jv_HashCode. | |
4872 | * include/jvm.h (_Jv_HashCode): New function. | |
4873 | ||
4874 | * java/lang/natThread.cc (suspend): Call checkAccess. | |
4875 | (resume): Likewise. | |
4876 | * java/lang/Thread.java (setDaemon): Call checkAccess. | |
4877 | ||
4878 | Thu Aug 27 12:24:40 1998 Tom Tromey <tromey@cygnus.com> | |
4879 | ||
4880 | * java/lang/Runtime.java: Rewrote from scratch. | |
4881 | * java/lang/natRuntime.cc: Rewrote from scratch. | |
4882 | ||
4883 | * nogc.cc (JvPrivGCTotalMemory): New function. | |
4884 | (JvPrivGCFreeMemory): Likewise. | |
4885 | (total): New global. | |
4886 | (JvPrivAllocObj): Increment total. | |
4887 | (JvPrivAllocArray): Likewise. | |
4888 | (JvPrivAllocBytes): Likewise. | |
4889 | * include/jvm.h: Declare JvPrivGCTotalMemory, JvPrivGCFreeMemory. | |
4890 | * boehm.cc (JvPrivGCTotalMemory): New function. | |
4891 | (sum_blocks): Likewise. | |
4892 | (JvPrivGCFreeMemory): Likewise. | |
4893 | ||
4894 | Wed Aug 26 12:30:32 1998 Tom Tromey <tromey@cygnus.com> | |
4895 | ||
4896 | * include/javaprims.h (java::lang): Added FirstThread. | |
4897 | * java/lang/natFirstThread.cc: New file. | |
4898 | * java/lang/FirstThread.java: New file. | |
4899 | * prims.cc (main_signature): Removed. | |
4900 | (main_name): Removed. | |
4901 | #include FirstThread.h. | |
4902 | * Makefile.in: Rebuilt. | |
4903 | * Makefile.am (TFRIEND): Removed. | |
4904 | (java/lang/Thread.h): Likewise. | |
4905 | (FTFRIEND): New macro. | |
4906 | (java/lang/FirstThread.h): New target. | |
4907 | (nat_files): Added natFirstThread.o. | |
4908 | (nat_headers): Added FirstThread.h. | |
4909 | * include/jvm.h (_Jv_StartFirstThread): Don't declare. | |
4910 | * java/lang/natThread.cc (_Jv_StartFirstThread): Removed. | |
4911 | ||
4912 | * java/lang/Thread.java (setName): Throw IllegalArgumentException | |
4913 | if name is null. | |
4914 | (Thread): Likewise. | |
4915 | ||
4916 | * java/lang/natThread.cc (start): Synchronize the thread. | |
4917 | (stop): Synchronize the thread. | |
4918 | ||
4919 | * java/lang/ThreadDeath.java: Rewrote from scratch. | |
4920 | ||
4921 | * Makefile.in: Rebuilt. | |
4922 | * Makefile.am (TGFRIEND): New macro. | |
4923 | (java/lang/ThreadGroup.h): New target. | |
4924 | ($(nat_files) prims.o boehm.o nogc.o): Native files depend on the | |
4925 | native headers. | |
4926 | ($(javao_files) $(nat_files) prims.o boehm.o nogc.o): Removed. | |
4927 | ||
4928 | * nogc.cc: Include config.h. | |
4929 | ||
4930 | * java/lang/ThreadGroup.java: Rewrote from scratch. | |
4931 | ||
4932 | Tue Aug 25 00:12:54 1998 Tom Tromey <tromey@cygnus.com> | |
4933 | ||
4934 | * java/lang/Thread.java (checkAccess): Only call in to security | |
4935 | manager if it exists. | |
4936 | (Thread): Don't check access when creating the first thread. Add | |
4937 | this thread to the appropriate ThreadGroup. | |
4938 | ||
4939 | * java/lang/natThread.cc (run_): Call uncaughtException method on | |
4940 | the ThreadGroup. | |
4941 | ||
4942 | * java/lang/Runnable.java: Rewrote from scratch. | |
4943 | * java/lang/Thread.java: Updated copyright comment to correct | |
4944 | form. | |
4945 | ||
4946 | Wed Aug 26 15:16:18 1998 Warren Levy <warrenl@cygnus.com> | |
4947 | ||
4948 | * java/util/Random.java: Rewritten. | |
4949 | ||
4950 | Wed Aug 26 14:25:39 1998 Alexandre Petit-Bianco <apbianco@cygnus.com> | |
4951 | ||
4952 | * prims.cc (_Jv_NewMultiArray): Need one more slot to store | |
4953 | trailing 0 in array[]. | |
4954 | ||
4955 | Wed Aug 26 12:21:06 1998 Anthony Green <green@cygnus.com> | |
4956 | ||
4957 | * Makefile.am (AM_MAKEFLAGS): Remove RUNTEST, EXPECT, | |
4958 | and RUNTESTFLAGS from AM_MAKEFLAGS. | |
4959 | (SUBDIRS): Conditionally include testsuite. | |
4960 | * Makefile.in: Rebuilt. | |
4961 | ||
4962 | Tue Aug 25 18:14:53 1998 Anthony Green <green@cygnus.com> | |
4963 | ||
4964 | * java/lang/Object.h: Include java-assert.h. | |
4965 | ||
4966 | Tue Aug 25 17:33:57 1998 Anthony Green <green@cygnus.com> | |
4967 | ||
4968 | * Makefile.am: Add testsuite directory. | |
4969 | * configure.in: Build testsuite/Makefile. | |
4970 | * Makefile.in, configure: Rebuilt. | |
4971 | ||
4972 | Tue Aug 25 00:12:54 1998 Tom Tromey <tromey@cygnus.com> | |
4973 | ||
4974 | * prims.cc (JvRunMain): Use _Jv_StartFirstThread. | |
4975 | * include/jvm.h (_Jv_StartFirstThread): Declare. | |
4976 | ||
4977 | * include/javaprims.h (java::lang): Added Exception, | |
4978 | RuntimeException. | |
4979 | ||
4980 | * Makefile.in: Rebuilt. | |
4981 | * Makefile.am (nat_headers): Added NullPointerException.h, | |
4982 | InterruptedException.h, IllegalArgumentException.h, Exception.h, | |
4983 | Throwable.h, RuntimeException.h, IllegalThreadStateException.h. | |
4984 | (java/lang/Thread.h): New target. | |
4985 | (TFRIEND): New macro | |
4986 | ||
4987 | * include/java-assert.h (JvFail): Use 0 and not NULL. | |
4988 | ||
4989 | * posix-threads.cc (JvPrivThreadStart): Use getPriority() method | |
4990 | instead of assuming we are a friend of Thread. | |
4991 | * quick-threads.cc (JvPrivThreadStart): Use isDaemon() method | |
4992 | instead of assuming we are a friend of Thread. | |
4993 | ||
4994 | Mon Aug 24 15:58:36 1998 Tom Tromey <tromey@cygnus.com> | |
4995 | ||
4996 | * java/lang/natThread.cc: Rewrote from scratch. | |
4997 | * java/lang/Thread.java: Rewrote from scratch. | |
4998 | * prims.cc (JvRunMain): Use new Thread constructor. | |
4999 | * include/javaprims.h (java::lang): Added InterruptedException. | |
5000 | * Makefile.in: Rebuilt. | |
5001 | * Makefile.am (nat_headers): Added java/lang/Thread.h. | |
5002 | * java/lang/Thread.h: Removed. | |
5003 | * quick-threads.cc (JvPrivThreadStart): Added `data' argument. | |
5004 | * no-threads.cc (JvPrivThreadStart): Added JvPrivThread_t | |
5005 | argument. | |
5006 | * posix-threads.cc (JvPrivThreadJoin): Removed. | |
5007 | (JvPrivThreadInitData): Don't initialize join_mutex or join_cond. | |
5008 | (really_start): Don't notify join_cond. | |
5009 | (JvPrivThreadStart): Added `data' argument. | |
5010 | * include/no-threads.h (JvPrivThreadInterrupt): Removed. | |
5011 | (JvPrivThreadJoin): Likewise. | |
5012 | Use JvFail instead of sorry. | |
5013 | (JvPrivThreadSuspend): Removed. | |
5014 | (JvPrivThreadResume): Removed. | |
5015 | * include/quick-threads.h (JvPrivThreadInterrupt): Removed. | |
5016 | (JvPrivThreadJoin): Likewise. | |
5017 | (JvPrivThreadSuspend): Use JvFail. | |
5018 | (JvPrivThreadResume): Likewise. | |
5019 | (JvPrivThreadSuspend): Removed. | |
5020 | (JvPrivThreadResume): Likewise. | |
5021 | * include/posix-threads.h (JvPrivThreadInterrupt): Removed. | |
5022 | (JvPrivThread_t): Removed join_mutex, join_cond. | |
5023 | Use JvFail instead of sorry. | |
5024 | (JvPrivThreadSuspend): Removed. | |
5025 | (JvPrivThreadResume): Likewise. | |
5026 | ||
5027 | Tue Aug 25 12:50:13 1998 Warren Levy <warrenl@cygnus.com> | |
5028 | ||
5029 | * java/util/Observer.java: Rewritten | |
5030 | * java/util/Enumeration.java: Rewritten | |
5031 | ||
5032 | Tue Aug 25 11:33:54 1998 Warren Levy <warrenl@cygnus.com> | |
5033 | ||
5034 | * java/util/StringTokenizer.java: Rewritten | |
5035 | * java/util/Stack.java: Added COPYRIGHT-TBD comment | |
5036 | * java/util/Vector.java: Added COPYRIGHT-TBD comment | |
5037 | * java/io/Serializable.java: Added COPYRIGHT-TBD comment | |
5038 | ||
5039 | Fri Aug 21 10:14:22 1998 Tom Tromey <tromey@cygnus.com> | |
5040 | ||
5041 | * include/java-assert.h (JvFail): Call _Jv_Abort even when DEBUG | |
5042 | not defined. | |
5043 | ||
5044 | * no-threads.cc (JvPrivThreadStart): Use JvAssert. | |
5045 | Include java-assert.h. | |
5046 | * include/java-assert.h: New file. | |
5047 | * prims.cc (_Jv_Abort): New function. | |
5048 | Include java-assert.h, not assert.h. | |
5049 | (_Jv_MonitorExit): Use JvAssert. | |
5050 | (resolveConstants): Likewise. | |
5051 | (processClass): Likewise. | |
5052 | (JvRunMain): Assert that method is found. | |
5053 | ||
5054 | * configure: Rebuilt. | |
5055 | * configure.in: Check for test subdir. | |
5056 | * Makefile.in: Rebuilt. | |
5057 | * Makefile.am (SUBDIRS): Conditional on TESTSUBDIR. | |
5058 | ||
5059 | * prims.cc (JvRunMain): Use NORM_PRIORITY. | |
5060 | * java/lang/Thread.h (Thread): Added NORM_PRIORITY. | |
5061 | ||
5062 | * prims.cc (resolveConstants): Removed unused variables. | |
5063 | (processClass): Likewise. | |
5064 | ||
5065 | * include/quick-threads.h (JvPrivThreadCurrent): Use | |
5066 | coop_getspecific. | |
5067 | * quick-threads.cc (destroy_data): New function. | |
5068 | (JvPrivInitThreads): Create key. | |
5069 | (JvPrivThreadKey): New global. | |
5070 | (JvPrivThreadStart): Use coop_setspecific. | |
5071 | ||
5072 | * include/quick-threads.h, include/posix-threads.h, | |
5073 | include/no-threads.h, no-threads.cc, quick-threads.cc, | |
5074 | posix-threads.cc, nogc.cc, boehm.cc: Added copyright comment. | |
5075 | ||
5076 | Thu Aug 20 10:57:30 1998 Tom Tromey <tromey@cygnus.com> | |
5077 | ||
5078 | * include/no-threads.h (JvPrivThreadInitData): Don't set | |
5079 | JvPrivOnlyThread. | |
5080 | ||
5081 | * include/quick-threads.h (JvPrivCondWait): coop function now | |
5082 | takes microseconds. | |
5083 | (JvPrivThreadJoin): Likewise. | |
5084 | ||
5085 | * java/lang/Thread.h (Thread): Updated declaration of | |
5086 | JvPrivThreadStart. | |
5087 | * include/quick-threads.h, include/posix-threads.h: Updated | |
5088 | declaration of JvPrivThreadStart. | |
5089 | * include/no-threads.h (JvPrivThreadStart): Changed definition | |
5090 | into declaration. | |
5091 | * no-threads.cc (JvPrivThreadStart): Removed `data' argument. | |
5092 | * quick-threads.cc (JvPrivThreadStart): Removed `data' argument. | |
5093 | * posix-threads.cc (JvPrivThreadStart): Removed `data' argument. | |
5094 | ||
5095 | Wed Aug 19 14:53:59 1998 Tom Tromey <tromey@cygnus.com> | |
5096 | ||
5097 | * quick-threads.cc (qthrow): New function. | |
5098 | (JvPrivInitThreads): New function. | |
5099 | (started): New global. | |
5100 | (JvPrivThreadStart): Call coop_start if required. | |
5101 | * include/quick-threads.h (JvPrivThreadCancel): Implement. | |
5102 | (JvPrivThreadDestroy): Likewise. | |
5103 | (JvPrivInitThreads): Removed. | |
5104 | * include/posix-threads.h (JvPrivThreadCancel): Added error | |
5105 | argument. | |
5106 | * java/lang/natThread.cc (stop_): Pass exception to | |
5107 | JvPrivThreadCancel. | |
5108 | ||
5109 | Tue Aug 18 12:58:22 1998 Tom Tromey <tromey@cygnus.com> | |
5110 | ||
5111 | * include/javaprims.h (java::lang): Added | |
5112 | IllegalArgumentException, IllegalThreadStateException, Math, | |
5113 | NullPointerException, ThreadDeath. | |
5114 | (java::util): Added Enumeration. | |
5115 | ||
5116 | * Makefile.in: Rebuilt. | |
5117 | * Makefile.am (nat_headers): Added java/lang/ThreadGroup.h. | |
5118 | ||
5119 | * java/lang/ThreadGroup.java (ThreadGroup): No-args constructor | |
5120 | now public. | |
5121 | (threadsv): Renamed from threads to avoid clash in C++ header. | |
5122 | (groupsv): Likewise. | |
5123 | * include/no-threads.h (JvPrivThreadStart): Removed. | |
5124 | * no-threads.cc (JvPrivThreadStart): New function. | |
5125 | * java/lang/Thread.java (Thread): New constructor for internal use. | |
5126 | * java/lang/Thread.h (Thread): Declare JvRunMain as friend. | |
5127 | (Thread): Declare constructor. | |
5128 | * prims.cc (JvRunMain): Create the initial Thread and | |
5129 | ThreadGroup. | |
5130 | Include <java/lang/Thread.h> and <java/lang/ThreadGroup.h>. | |
5131 | * posix-threads.cc (JvPrivThreadStart): Added `thread' argument. | |
5132 | Removed `daemon' argument. | |
5133 | ||
5134 | * prims.cc (JvRunMain): Call _Jv_InitializeSyncMutex. | |
5135 | * java/lang/Object.h (Object): Declare _Jv_InitializeSyncMutex as | |
5136 | a friend. | |
5137 | * java/lang/natObject.cc (_Jv_InitializeSyncMutex): New function. | |
5138 | ||
5139 | * Makefile.in: Rebuilt. | |
5140 | * Makefile.am (INCLUDES): Include THREADINCS. | |
5141 | ||
5142 | * configure: Rebuilt. | |
5143 | * configure.in: Recognize `qt' as a threads package. | |
5144 | ||
5145 | Thu Aug 20 12:42:32 1998 Warren Levy <warrenl@cygnus.com> | |
5146 | ||
5147 | * java/util/Stack.java (pop): Null out topmost node for robustness. | |
5148 | ||
5149 | Thu Aug 20 12:30:30 1998 Warren Levy <warrenl@cygnus.com> | |
5150 | ||
5151 | * java/util/Stack.java: Rewritten. | |
5152 | * java/util/Vector.java (isEmpty): Simplified expression. | |
5153 | ||
5154 | Wed Aug 19 18:02:19 1998 Warren Levy <warrenl@cygnus.com> | |
5155 | ||
5156 | * prims.cc (_Jv_NewObjectArray): Renamed from JvNewObjectArray. | |
5157 | (soft_anewarray): Removed, _Jv_NewObjectArray used instead. | |
5158 | ||
5159 | * include/java-array.h (JvNewObjectArray): Created inline to | |
5160 | _Jv_NewObjectArray. | |
5161 | ||
5162 | * java/lang/Class.h (_Jv_NewObjectArray): Renamed from | |
5163 | JvNewObjectArray. | |
5164 | ||
5165 | Wed Aug 19 14:12:02 1998 Warren Levy <warrenl@cygnus.com> | |
5166 | ||
5167 | * java/util/Vector.java: Rewritten. | |
5168 | * java/io/Serializable.java: Created. | |
5169 | ||
5170 | Fri Aug 14 10:31:54 1998 Tom Tromey <tromey@cygnus.com> | |
5171 | ||
5172 | * java/lang/Float.java (NEGATIVE_INFINITY, POSITIVE_INFINITY): | |
5173 | Infinity is 1/0, not 1/1. | |
5174 | ||
5175 | * boehm.cc (JvPrivAllocArray): Use GC_generic_malloc. | |
5176 | ||
5177 | * configure: Rebuilt. | |
5178 | * configure.in: Removed duplicate AC_ARG_WITH. | |
5179 | ||
5180 | Thu Aug 13 14:51:47 1998 Warren Levy <warrenl@cygnus.com> | |
5181 | ||
5182 | * prims.cc (_Jv_ThrowBadArrayIndex): Renamed from | |
5183 | soft_badarrayindex. | |
5184 | (_Jv_InitClass): Renamed from soft_initialise_class. | |
5185 | (_Jv_NewMultiArray): Renamed from soft_multianewarray. | |
5186 | (_Jv_CheckCast): Renamed from soft_checkcast. | |
5187 | (_Jv_LookupInterfaceMethod): Renamed from soft_lookupinterfacemethod. | |
5188 | (_Jv_CheckArrayStore): Renamed from soft_checkarraystore. | |
5189 | (JvRunMain): Call JvInitClass instead of soft_initialise_class. | |
5190 | * include/cni.h (JvInitClass): New function. | |
5191 | (_Jv_InitClass): Renamed from soft_initialise_class. | |
5192 | ||
5193 | Wed Aug 12 10:07:04 1998 Tom Tromey <tromey@cygnus.com> | |
5194 | ||
5195 | * configure: Rebuilt. | |
5196 | * configure.in (CXX): Don't set. | |
5197 | * Makefile.in: Rebuilt. | |
5198 | * Makefile.am (AM_CXXFLAGS): New macro. | |
5199 | ||
5200 | * Makefile.in: Rebuilt. | |
5201 | * Makefile.am ($(javao_files) $(nat_files) prims.o boehm.o | |
5202 | nogc.o): New target. | |
5203 | ||
5204 | * boehm.cc (mark_obj): Update PUSH_CONTENTS call for new Boehm | |
5205 | GC. | |
5206 | (mark_array): Likewise. | |
5207 | ||
5208 | Tue Aug 11 11:44:53 1998 Per Bothner <bothner@cygnus.com> | |
5209 | ||
5210 | * java/lang/Class.h (JvMethod): Removed some unused fields. | |
5211 | (JvField.info): Removed unused idx union variant. | |
5212 | ||
5213 | Mon Aug 10 15:00:14 1998 Tom Tromey <tromey@cygnus.com> | |
5214 | ||
5215 | * prims.cc (makeUtf8Const): Mask off high bits of hash value to | |
5216 | match compiler. | |
5217 | ||
5218 | Mon Aug 3 16:13:54 1998 Per Bothner <bothner@cygnus.com> | |
5219 | ||
5220 | * configure.in, configure (CXX): Add -fvtable-thunks. | |
5221 | ||
5222 | Thu Jul 30 14:34:47 1998 Per Bothner <bothner@cygnus.com> | |
5223 | ||
5224 | * java/lang/Object.java (finalize): Move first. | |
5225 | * java/lang/Object.h (_JvObjectPrefix): New dummy base class. | |
5226 | (Object): Re-arrange order to match Object.java. | |
5227 | ||
5228 | Tue Jul 28 21:42:16 1998 Per Bothner <bothner@cygnus.com> | |
5229 | ||
5230 | * prims.cc (hashUtf8String): Fix - use new JavaSoft specification. | |
5231 | * java/lang/natString.cc (hashChars): Likewise. | |
5232 | ||
5233 | * prims.cc (RuntimeClass): New macro. | |
5234 | (JvRunMain): Do soft_initialise_class of RuntimeClass before exit. | |
5235 | ||
5236 | Mon Jul 27 22:20:10 1998 Tom Tromey <tromey@cygnus.com> | |
5237 | ||
5238 | * Makefile.in: Rebuilt. | |
5239 | * Makefile.am (AM_MAKEFLAGS): New macro. | |
5240 | ||
5241 | Fri Jul 24 11:21:24 1998 Tom Tromey <tromey@cygnus.com> | |
5242 | ||
5243 | * nogc.cc: Include <javaprims.h>. | |
5244 | ||
5245 | * Makefile.in: Rebuilt. | |
5246 | * Makefile.am (GJAVAH): gjavah no longer in java subdir. | |
5247 | ||
5248 | Thu Jul 23 11:38:40 1998 Tom Tromey <tromey@cygnus.com> | |
5249 | ||
5250 | * exception.cc (terminate): Removed. | |
5251 | (unexpected): Removed. | |
5252 | ||
5253 | * configure: Rebuilt. | |
5254 | * configure.in: Handle case where target subdir is ".". | |
5255 | ||
5256 | * configure: Rebuilt. | |
5257 | * configure.in: Compute COMPPATH based on --with-target-subdir | |
5258 | option. Added --with-target-subdir and --with-cross-host. Use | |
5259 | --with-cross-host to determine when a cross compiler is in use. | |
5260 | ||
5261 | * Makefile.in: Rebuilt. | |
5262 | * Makefile.am (GJAVAH): Include COMPPATH. | |
5263 | * configure: Rebuilt. | |
5264 | * configure.in: Subst COMPPATH. | |
5265 | ||
5266 | Mon Jul 20 16:13:43 1998 Tom Tromey <tromey@cygnus.com> | |
5267 | ||
5268 | * prims.cc (lockMutex): Removed. | |
5269 | (unlockMutex): Likewise. | |
5270 | (processClass): Lock the class using a JvSynchronize object. | |
5271 | ||
5272 | Fri Jul 17 11:27:48 1998 Tom Tromey <tromey@cygnus.com> | |
5273 | ||
5274 | * java/lang/natString.cc (gc_calloc_fixed): Removed. | |
5275 | (gc_free_fixed): Removed. | |
5276 | (rehash): Use JvPrivAllocBytes, not gc_calloc_fixed; don't bother | |
5277 | freeing old value of strhash. | |
5278 | ||
5279 | * exception.cc (_Jv_type_matcher): Cast first argument to | |
5280 | _Jv_IsInstanceOf. | |
5281 | ||
5282 | Thu Jul 16 14:51:44 1998 Tom Tromey <tromey@cygnus.com> | |
5283 | ||
5284 | * include/java-array.h (jstringArray): New type. | |
5285 | * java/lang/natSystem.cc (setProperty): Removed. | |
5286 | (initProperties): Directly call JvNewStringLatin1 for arguments. | |
5287 | * java/util/natDate.cc: Include java/util/Date.h, not | |
5288 | java-util.h. | |
5289 | (setTime): Removed. | |
5290 | * java/io/FileDescriptor.java (available): No longer static. | |
5291 | * java/lang/natDouble.cc (Double): Removed class definition. | |
5292 | * include/javaprims.h (java::lang::Number): Declare. | |
5293 | (java::lang::NumberFormatException): Likewise. | |
5294 | (java::io::FilenameFilter): Likewise. | |
5295 | (java::lang::Character): Likewise. | |
5296 | (java::lang::Error): Likewise. | |
5297 | (java::lang::SecurityManager): Likewise. | |
5298 | (java::util::Vector): Likewise. | |
5299 | (java::io::FileNotFoundException): Likewise. | |
5300 | (java::io::IOException): Likewise. | |
5301 | (java::lang::NativeLang): Likewise. | |
5302 | (java::lang::UnsatisfiedLinkError): Likewise. | |
5303 | (java::util::StringTokenizer): Likewise. | |
5304 | (java::io::InputStream, java::io::OutputStream): Likewise. | |
5305 | (java::io::PrintStream, java::lang::SecurityException): Likewise. | |
5306 | (java::util::Hashtable): Likewise. | |
5307 | * Makefile.in: Rebuilt. | |
5308 | * Makefile.am (nat_headers): Added java/lang/Double.h, | |
5309 | java/lang/Number.h, java/lang/System.h, java/lang/Runtime.h. | |
5310 | (MOSTLYCLEANFILES): Added nat_headers. | |
5311 | * include/jvm.h: Moved many defines, declarations, and functions | |
5312 | to java/lang/Class.h. | |
5313 | (struct JvSyncInfo): Moved to java/lang/Object.h. | |
5314 | (UTF8_GET): Moved to java/lang/String.h. | |
5315 | ||
5316 | Wed Jul 15 09:02:31 1998 Tom Tromey <tromey@cygnus.com> | |
5317 | ||
5318 | * java/io/io-defs.h: Don't include java-io.h. | |
5319 | * include/java-io.h: Removed. | |
5320 | * include/javaprims.h: Include java::io. | |
5321 | ||
5322 | Tue Jul 14 17:04:26 1998 Tom Tromey <tromey@cygnus.com> | |
5323 | ||
5324 | * include/java-io.h (File): Removed | |
5325 | (FileDescriptor): Likewise. | |
5326 | ||
5327 | * java/io/io-defs.h: Include java/io/File.h and | |
5328 | java/io/FileDescriptor.h. | |
5329 | ||
5330 | * Makefile.in: Rebuilt. | |
5331 | * Makefile.am (GJAVAH): New macro. | |
5332 | (.class.h): New rule. | |
5333 | (SUFFIXES): Added .h. | |
5334 | (nat_headers): New macro. | |
5335 | ($(nat_headers)): New target. | |
5336 | (BUILT_SOURCES): Added nat_headers. | |
5337 | ||
5338 | * include/java-util.h: Removed. | |
5339 | ||
5340 | Fri Jul 3 10:17:14 1998 Tom Tromey <tromey@cygnus.com> | |
5341 | ||
5342 | * include/java-io.h: Changed to avoid java-lang.h. | |
5343 | * java/lang/natThread.cc: Include java/lang/Thread.h, not | |
5344 | java-lang.h. | |
5345 | * java/lang/natSystem.cc: Include java/lang/System.h, not | |
5346 | java-lang.h. | |
5347 | * java/lang/natString.cc: Include java/lang/String.h, not | |
5348 | java-lang.h. | |
5349 | * java/lang/natRuntime.cc: Include java/lang/Runtime.h, not | |
5350 | java-lang.h. | |
5351 | * java/lang/natClass.cc: Include java/lang/Class.h, not | |
5352 | java-lang.h. | |
5353 | * java/lang/natDouble.cc: Include java/lang/Object.h, not | |
5354 | java-lang.h. | |
5355 | * java/lang/natObject.cc: Include java/lang/Object.h, not | |
5356 | java-lang.h. | |
5357 | * exception.cc: Don't include java-lang.h. | |
5358 | * posix-threads.cc: Include java/lang/Thread.h, not java-lang.h. | |
5359 | * no-threads.cc: Include java/lang/Thread.h, not java-lang.h. | |
5360 | * nogc.cc: Don't include java-lang.h. | |
5361 | * boehm.cc: Include java/lang/Class.h, not java-lang.h. | |
5362 | * prims.cc (processClass): Don't use `init_type'; just cast to | |
5363 | type directly. | |
5364 | Include java/lang/Class.h and jvm.h, not java-lang.h. | |
5365 | (JvAllocObject): Wrote single-argument version. | |
5366 | (PrimClass): Inherit from Class. | |
5367 | (initPrimClass): Removed. | |
5368 | * include/java-lang.h: Removed. | |
5369 | * include/jvm.h: Declare struct _dispatchTable. | |
5370 | * include/cni.h: Don't declare _Jv_MonitorEnter, | |
5371 | _Jv_MonitorExit, struct _dispatchTable. | |
5372 | * include/javaprims.h: Moved all typedefs here, from cni.h. | |
5373 | * java/lang/Class.h: New file. | |
5374 | * include/java-array.h: New file. | |
5375 | * java/lang/Object.h: New file. | |
5376 | ||
5377 | * prims.cc (classFromSig): Now static. | |
5378 | ||
5379 | Wed Jul 1 12:28:48 1998 Tom Tromey <tromey@cygnus.com> | |
5380 | ||
5381 | * include/cni.h: Don't mention soft_new. | |
5382 | * include/java-lang.h (Object): Don't mention soft_new. Mention | |
5383 | _Jv_NewPrimArray, not newPrimArray. | |
5384 | * prims.cc (soft_new): Removed. | |
5385 | (_Jv_NewArray): Renamed from soft_newarray. | |
5386 | (soft_anewarray): Use JvNewObjectArray. | |
5387 | (newArray): Likewise. | |
5388 | (newRefArray): Removed. | |
5389 | (_Jv_NewPrimArray): Renamed from newPrimArray. | |
5390 | (equalUtf8Consts): Now static. | |
5391 | (soft_instanceof): Removed. | |
5392 | * java/lang/natDouble.cc (doubleToString): Now static. | |
5393 | ||
5394 | * java/lang/natDouble.cc (java_lang_Double_doubleToLongBits, | |
5395 | java_lang_Double_longBitsToDouble, java_lang_Double_toString): | |
5396 | Removed. | |
5397 | ||
5398 | Tue Jun 30 10:54:57 1998 Tom Tromey <tromey@cygnus.com> | |
5399 | ||
5400 | * include/java-lang.h: Renamed functions to _Jv_MonitorEnter and | |
5401 | _Jv_MonitorExit. | |
5402 | * include/cni.h: Renamed functions to _Jv_MonitorEnter and | |
5403 | _Jv_MonitorExit. | |
5404 | * include/no-threads.h (JvPrivMutexLock): Always return -1. | |
5405 | (JvPrivMutexUnlock): Likewise. | |
5406 | * prims.cc (_Jv_MonitorEnter): Renamed from soft_monitorenter. | |
5407 | Return value now jint. | |
5408 | (_Jv_MonitorExit): Renamed from soft_monitorexit. Return value | |
5409 | now jint. | |
5410 | ||
5411 | * Makefile.in: Rebuilt. | |
5412 | * Makefile.am: Don't allow `jV' names. | |
5413 | (maintainer-check): Depend on libjava.a. | |
5414 | * exception.cc (_Jv_eh_free): Renamed from __jV_eh_free. | |
5415 | ||
5416 | * Makefile.in: Rebuilt. | |
5417 | * Makefile.am (NM): New macro. | |
5418 | (maintainer-check): New target. | |
5419 | ||
5420 | * include/posix-threads.h (_MIT_POSIX_THREADS): Removed. | |
5421 | ||
5422 | * configure: Rebuilt. | |
5423 | * configure.in: Use --enable-threads, not --enable-gc. Fix | |
5424 | documentation for --enable-threads. Changed option to work like | |
5425 | identical option in gcc/configure. | |
5426 | ||
5427 | Mon Jun 29 10:44:29 1998 Tom Tromey <tromey@cygnus.com> | |
5428 | ||
5429 | * boehm.cc (mark_array): Use JvGetArrayLength. | |
5430 | ||
5431 | Thu Jun 25 11:56:21 1998 Per Bothner <bothner@cygnus.com> | |
5432 | ||
5433 | * exception.cc: New file (mostly written by Andrew MacLeod), | |
5434 | exception handling support. | |
5435 | * Makefile.am (libjava_a_SOURCES), Makefile.in: Add exception.cc. | |
5436 | Remove -fexceptions - it is now the default. | |
5437 | ||
5438 | * prims.cc (JvIsInstanceOf): Renamed to _Jv_IsInstanceOf. | |
5439 | (JvAllocObject): Renamed to _Jv_AllocObject. | |
5440 | (soft_athrow): Removed. Replaced by _Jv_Throw in exception.cc. | |
5441 | (loadClass): Renamed to _Jv_FindClass. | |
5442 | * include/cni.h (JvIsInstanceOf, JvAllocObject). Make into | |
5443 | inline methods that call _Jv_IsInstanceOf and _Jv_AllocObject. | |
5444 | * include/java-lang.h (JvGetArrayLength): New CNI function. | |
5445 | * include/jvm.h (_Jv_FindClass): Added declaration. | |
5446 | ||
5447 | * java/lang/natString.cc: More implementation if COMPACT_STRINGS. | |
5448 | ||
5449 | Wed Jun 24 16:41:30 1998 Per Bothner <bothner@cygnus.com> | |
5450 | ||
5451 | * java/lang/natClass.cc (getName): Add implementation. | |
5452 | * java/lang/Throwable.java (printStackTrace): Handle missing backtrace. | |
5453 | ||
5454 | Tue Jun 23 15:56:24 1998 Tom Tromey <tromey@cygnus.com> | |
5455 | ||
5456 | * Makefile.in: Rebuilt. | |
5457 | * Makefile.am (.class.o): Added -fexceptions. | |
5458 | ||
5459 | Mon Jun 15 14:54:06 1998 Tom Tromey <tromey@cygnus.com> | |
5460 | ||
5461 | * configure: Rebuilt. | |
5462 | * configure.in: Don't check for __nanosleep. | |
5463 | * posix-threads.cc (nanosleep): Never define. | |
5464 | ||
5465 | Sun Jun 14 22:37:23 1998 Tom Tromey <tromey@cygnus.com> | |
5466 | ||
5467 | * posix-threads.cc (JvPrivCondWait): Fixed computation of | |
5468 | timespec. | |
5469 | ||
5470 | Thu Jun 11 10:51:44 1998 Tom Tromey <tromey@cygnus.com> | |
5471 | ||
5472 | * java/lang/natThread.cc (enumerate): Uncommented. | |
5473 | * java/lang/Thread.java (interrupted_): Renamed from `interrupt_'. | |
5474 | (interrupt): Call it. | |
5475 | ||
5476 | Wed Jun 10 15:57:16 1998 Tom Tromey <tromey@cygnus.com> | |
5477 | ||
5478 | * configure: Rebuilt. | |
5479 | * configure.in (GCLIBS): Use `-lgc' so gjavac can recognize it. | |
5480 | ||
5481 | Mon Jun 8 12:04:11 1998 Tom Tromey <tromey@cygnus.com> | |
5482 | ||
5483 | * include/no-threads.h (JvPrivThreadInterrupt): New method. | |
5484 | * include/java-lang.h (Thread): Added `interrupted_' method. | |
5485 | * java/lang/Thread.java (interrupted_): New method. | |
5486 | * java/lang/natThread.cc (join): Possibly throw interrupted | |
5487 | exception after join finishes. | |
5488 | (interrupted_): New method. | |
5489 | * posix-threads.cc (JvPrivThreadInitData): Initialize join_mutex, | |
5490 | join_cond. | |
5491 | (JvPrivThreadJoin): New function. | |
5492 | (really_start): Notify all threads waiting for this thread. | |
5493 | (struct starter): Added `data' member. | |
5494 | (JvPrivThreadStart): Set it. | |
5495 | * include/posix-threads.h (JvPrivThread_t): Added join_mutex, | |
5496 | join_cond. | |
5497 | (JvPrivThreadJoin): No longer inline. | |
5498 | (JvPrivThreadInterrupt): New function. | |
5499 | ||
5500 | * include/no-threads.h (JvPrivThreadSleep): Removed. | |
5501 | * posix-threads.cc (JvPrivThreadSleep): Removed. | |
5502 | ||
5503 | Fri Jun 5 13:51:25 1998 Tom Tromey <tromey@cygnus.com> | |
5504 | ||
5505 | * configure: Rebuilt. | |
5506 | * configure.in (THREADOBJS): Initialize to no-threads.o in | |
5507 | no-threads case. | |
5508 | * posix-threads.cc (key): New global. | |
5509 | (JvPrivInitThreads): New function. | |
5510 | (really_start): Set thread-specific data to point to object. | |
5511 | (JvPrivThreadStart): Added `daemon' argument. | |
5512 | (JvPrivThreadSleep): Added `data' argument. | |
5513 | * include/posix-threads.h (JvPrivInitThreads): Removed | |
5514 | implementation. | |
5515 | (JvPrivThreadCurrent): New function. | |
5516 | * include/no-threads.h (JvPrivThreadInitData): Initialize | |
5517 | JvPrivOnlyThread. Added `thread' argument. | |
5518 | (JvPrivThreadCurrent): New function. | |
5519 | (JvPrivThreadStart): Added `daemon' argument. | |
5520 | * no-threads.cc: New file. | |
5521 | * java/lang/natThread.cc (init_data): New function. | |
5522 | (isAlive): Removed. | |
5523 | (start): Set `alive' member. | |
5524 | (stop_): Clear `alive' member. | |
5525 | (destroy): Likewise. | |
5526 | (currentThread): Implemented. | |
5527 | (start): Pass `daemon' argument to JvPrivThreadStart. | |
5528 | (sleep): Rewrote. | |
5529 | * include/java-lang.h (Thread): Added `alive', `tsync' members. | |
5530 | (Thread): Added `init_data' method. | |
5531 | * java/lang/Thread.java (alive, data): New instance variables. | |
5532 | (init_data): New private method. | |
5533 | (isAlive): No longer native. | |
5534 | ||
5535 | Thu Jun 4 14:09:32 1998 Tom Tromey <tromey@cygnus.com> | |
5536 | ||
5537 | * include/java-lang.h (JvRunMain): Declare. | |
5538 | * include/jvm.h (JvPrivInitGC): Revert to C++ linkage. | |
5539 | * prims.cc (JvRunMain): New function. | |
5540 | (main_signature, main_name): New globals. | |
5541 | ||
5542 | * boehm.cc (mark_array): Use `elements' function and not | |
5543 | operator[] on jarray. | |
5544 | ||
5545 | * posix-threads.cc: Include <config.h>. Define nanosleep if | |
5546 | required. | |
5547 | ||
5548 | * configure: Rebuilt. | |
5549 | * configure.in: Check for _nanosleep. | |
5550 | ||
5551 | * configure: Rebuilt. | |
5552 | * configure.in: Check for pthread_mutexattr_settype. | |
5553 | ||
5554 | * include/cni.h (class JvSynchronize): New class. | |
5555 | * java/lang/Thread.java (sleep): Throws InterruptedException. | |
5556 | (join): Throws InterruptedException. | |
5557 | (resume): Not native. | |
5558 | (resume_): New method. | |
5559 | (start): Now synchronized. | |
5560 | (stop_): New method. | |
5561 | (Thread): Synchronize when accessing threadNumber. | |
5562 | (misc): Removed. | |
5563 | * java/lang/natThread.cc (throwException): New macro. | |
5564 | (sleep): Throw InterruptedException. | |
5565 | (resume_): Renamed. | |
5566 | (stop_): Renamed. | |
5567 | * include/java-lang.h (Runtime): Added interrupted(). | |
5568 | ||
5569 | * boehm.cc (call_finalizer): Correctly initialize jobj. | |
5570 | * include/java-lang.h (Runtime): Added getRuntime() and exit(). | |
5571 | ||
5572 | * java/lang/natSystem.cc (currentTimeMillis): Use #elif, not | |
5573 | `#elseif'. | |
5574 | ||
5575 | * configure: Rebuilt. | |
5576 | * configure.in: Added support for --disable-threads. | |
5577 | * include/no-threads.h: New file. | |
5578 | ||
5579 | * acconfig.h (HAVE_PTHREAD_MUTEXATTR_INIT): New macro. | |
5580 | ||
5581 | * Makefile.in: Rebuilt. | |
5582 | * Makefile.am (EXTRA_libjava_a_SOURCES): Added posix-threads.cc. | |
5583 | (libjava_a_DEPENDENCIES): Added THREADOBJS. | |
5584 | (libjava_a_LIBADD): Added THREADOBJS. | |
5585 | * configure: Rebuilt. | |
5586 | * configure.in: Added --with-threads option. | |
5587 | * posix-threads.cc: New file. | |
5588 | * include/posix-threads.h: New file. | |
5589 | * include/java-lang.h (Object): Added static member sync_mutex, | |
5590 | member sync_info, method init_mutex. | |
5591 | (struct JvSyncInfo): New struct. | |
5592 | Include "java-threads.h". | |
5593 | * prims.cc (soft_monitorenter): Wrote. | |
5594 | (soft_monitorexit): Likewise. | |
5595 | * java/lang/natObject.cc (init_mutex): New method. | |
5596 | (notify): Wrote. | |
5597 | (notifyAll): Wrote. | |
5598 | (wait): Wrote. | |
5599 | (sync_mutex): Define. | |
5600 | Include "java-threads.h". | |
5601 | ||
5602 | Tue Jun 2 15:24:33 1998 Per Bothner <bothner@cygnus.com> | |
5603 | ||
5604 | * include/java-lang.h (JvPrivInitGC): Make extern "C". | |
5605 | * include/jvm.h (JvConvertArgv, JvNewObjectArray): Likewise. | |
5606 | ||
5607 | Mon Jun 1 11:21:34 1998 Per Bothner <bothner@cygnus.com> | |
5608 | ||
5609 | * include/cni.h (jbyte etc): Re-define using __java_byte etc. | |
5610 | Added extern "Java" in places to tell G++ Object is a "Java" type. | |
5611 | Other minor renaming and fixes. | |
5612 | * include/java-io.h (FileDescriptor): Add friend class declarations. | |
5613 | G++ no longer allows non-Java types in method parameters and results | |
5614 | of Java classes. Converted most offending methods to friends. | |
5615 | * java/lang/natDouble.cc (Double::toString): Rename to doubleToString. | |
5616 | * java/lang/natSystem.cc (setProperty): Make friend. | |
5617 | * java/lang/natString.cc, include/java-lang.h (String): Rename | |
5618 | methods findInternSlot to __JvStringFindSlot and __JvStringGetSlot. | |
5619 | * include/java-lang.h (JArray): Remove getData and eoprator[]. | |
5620 | Add elements friend function instead. | |
5621 | * java/lang/natSystem.cc (arraycopy): Use elements function. | |
5622 | * java/io/natFileDescriptor.cc (read, write): Likewise. | |
5623 | * include/java-lang.h (Object): Remove unused make method. | |
5624 | (System::setProperty(char*,char*)): Turn into friend function. | |
5625 | (Class): Rename newObject by JvAllocObject. | |
5626 | * prims.cc: Update to use JvAllocObject, and elements. | |
5627 | ||
5628 | * java/lang/natDouble.cc: Fix double -> jdouble. | |
5629 | ||
5630 | Wed May 20 16:50:06 1998 Per Bothner <bothner@cygnus.com> | |
5631 | ||
5632 | * Makefile.am (INCLUDES): Add -Iinclude (to get config.h). | |
5633 | ||
5634 | Mon May 18 13:46:02 1998 Tom Tromey <tromey@cygnus.com> | |
5635 | ||
5636 | * java/lang/natRuntime.cc (finalize_on_exit): Define. | |
5637 | * include/java-lang.h (Runtime): finalize_on_exit and | |
5638 | runFinalizersOnExit now static. | |
5639 | * java/lang/Runtime.java (runFinalizersOnExit): Now static, to | |
5640 | match JDK 1.2b3. | |
5641 | (finalize_on_exit): Now static. | |
5642 | ||
5643 | * boehm.cc (mark_obj): Get class using getClass() method on | |
5644 | object. | |
5645 | (_dispatchTable): Removed. | |
5646 | ||
5647 | Mon May 11 15:26:52 1998 Tom Tromey <tromey@cygnus.com> | |
5648 | ||
5649 | * java/io/natFileDescriptor.cc (open_read): Only call open if | |
5650 | HAVE_OPEN defined. | |
5651 | (open_write): Likewise. | |
5652 | ||
5653 | * Makefile.in: Rebuilt. | |
5654 | * Makefile.am ($(nat_files)): Depend on config.h. | |
5655 | ||
5656 | Thu May 7 16:22:00 1998 Tom Tromey <tromey@cygnus.com> | |
5657 | ||
5658 | * prims.cc (ObjectClass): Now a macro; updated for new class name | |
5659 | mangling scheme. | |
5660 | (StringClass): Likewise. | |
5661 | (ClassClass): Likewise. | |
5662 | ||
5663 | Wed May 6 00:26:44 1998 Tom Tromey <tromey@cygnus.com> | |
5664 | ||
5665 | * java/io/natFileDescriptor.cc (available): Do nothing unless | |
5666 | HAVE_SELECT defined. | |
5667 | * java/util/natDate.cc (setTime): Conditional on | |
5668 | HAVE_GETTIMEOFDAY. | |
5669 | (toString): Conditional on HAVE_TIME. | |
5670 | * aclocal.m4, configure: Rebuilt. | |
5671 | * acinclude.m4: New file. | |
5672 | * configure.in: Don't actually call AM_EXEEXT. Call | |
5673 | AC_CANONICAL_HOST. Use LIB_AC_PROG_CC and LIB_AC_PROG_CXX. Added | |
5674 | --with-target-subdir option. Check for select and open | |
5675 | functions. | |
5676 | ||
5677 | Tue May 5 00:10:45 1998 Tom Tromey <tromey@cygnus.com> | |
5678 | ||
5679 | * boehm.cc (JvPrivRegisterFinalizer): Changed interface. | |
5680 | (call_finalizer): Likewise. | |
5681 | * nogc.cc (JvPrivRegisterFinalizer): Changed interface. | |
5682 | * prims.cc (newObject): Pass actual method pointer to | |
5683 | JvPrivRegisterFinalizer. | |
5684 | * include/jvm.h (JvPrivFinalizerFunc): New typedef. | |
5685 | (JvPrivRegisterFinalizer): Changed interface. | |
5686 | ||
5687 | * Makefile.in: Rebuilt. | |
5688 | * Makefile.am (MOSTLYCLEANFILES): New macro. | |
5689 | (CLEANFILES): Removed javao_files. | |
5690 | ||
5691 | Fri May 1 22:52:24 1998 Tom Tromey <tromey@cygnus.com> | |
5692 | ||
5693 | * nogc.cc: New file. | |
5694 | * Makefile.in: Rebuilt. | |
5695 | * Makefile.am (INCLUDES): Use GCINCS, not paths to boehm-gc. | |
5696 | (EXTRA_libjava_a_SOURCES): New macro. | |
5697 | (libjava_a_SOURCES): Removed boehm.cc. | |
5698 | (libjava_a_DEPENDENCIES): Added GCOBJS. | |
5699 | (libjava_a_LIBADD): Likewise. | |
5700 | * configure: Rebuilt. | |
5701 | * configure.in: Added code for --enable-gc=TYPE. | |
5702 | ||
5703 | Thu Apr 30 14:54:00 1998 Tom Tromey <tromey@cygnus.com> | |
5704 | ||
5705 | * boehm.cc (mark_array): Don't further dereference pointer from | |
5706 | array. | |
5707 | ||
5708 | * boehm.cc: Include <boehm-config.h>, not <private/config.h>. | |
5709 | * Makefile.in: Rebuilt. | |
5710 | * Makefile.am (INCLUDES): Removed -I for boehm-gc/include; added | |
5711 | one for boehm-gc build directory. | |
5712 | ||
5713 | Wed Apr 29 09:45:19 1998 Tom Tromey <tromey@cygnus.com> | |
5714 | ||
5715 | * include/java-lang.h (finalize_on_exit): New instance variable in | |
5716 | java::lang::Runtime. | |
5717 | (runFinalizersOnExit): New method. | |
5718 | * java/lang/Runtime.java (finalize_on_exit): New instance | |
5719 | variable. | |
5720 | (runAllFinalizers_): New private method. | |
5721 | (runFinalizersOnExit): New method. | |
5722 | * boehm.cc (JvPrivRunFinalizers): New function. | |
5723 | (JvPrivRunAllFinalizers): Likewise. | |
5724 | (JvPrivRunGC): Likewise. | |
5725 | * java/lang/natRuntime.cc: Include "jvm.h". | |
5726 | (gc): Call JvPrivRunGC. | |
5727 | (runFinalization): Call JvPrivRunFinalizers. | |
5728 | (runFinalizersOnExit): New method. | |
5729 | (exit_): Call JvPrivRunAllFinalizers if required. | |
5730 | * include/jvm.h: Declare JvPrivRunFinalizers, | |
5731 | JvPrivRunAllFinalizers, JvPrivRunGC. | |
5732 | ||
5733 | Tue Apr 28 15:06:50 1998 Tom Tromey <tromey@cygnus.com> | |
5734 | ||
5735 | * boehm.cc (JvPrivRegisterFinalizer): New function. | |
5736 | (call_finalizer): Likewise. | |
5737 | * include/jvm.h: Declare JvPrivRegisterFinalizer. | |
5738 | * prims.cc (finalize_name): New global. | |
5739 | (newObject): Just call other newObject. | |
5740 | (newObject): Register finalizer if it exists. | |
5741 | ||
5742 | Mon Apr 27 12:47:03 1998 Tom Tromey <tromey@cygnus.com> | |
5743 | ||
5744 | * prims.cc (gc_malloc): Removed. | |
5745 | (makeUtf8Const): Use JvPrivAllocBytes. | |
5746 | (lookupArray): Likewise. | |
5747 | (newPrimArray): Likewise. | |
5748 | (JvNewObjectArray): Use JvPrivAllocArray. | |
5749 | (newObject): Use JvPrivAllocObj. | |
5750 | (newObject): Likewise. | |
5751 | Changed Method -> JvMethod everywhere. | |
5752 | Changed Field -> JvField everywhere. | |
5753 | * include/java-lang.h (Object): Changed type of `fields' to | |
5754 | JvField*. | |
5755 | (jmethodID, jfieldID): New typedefs. | |
5756 | (Object): JvGetFirstInstanceField and JvNumInstanceFields now | |
5757 | friends. | |
5758 | * include/jvm.h (struct JvMethod): Renamed from Method, and moved | |
5759 | from java-lang.h. | |
5760 | (METHOD_NATIVECODE): Moved from java-lang.h. | |
5761 | (class JvField): New class. | |
5762 | (JvGetFirstInstanceField): New function. | |
5763 | (JvFieldIsRef): Likewise. | |
5764 | (JvGetObjectField): Likewise. | |
5765 | (JvNumInstanceFields): Likewise. | |
5766 | ||
5767 | Thu Apr 23 16:42:11 1998 Tom Tromey <tromey@cygnus.com> | |
5768 | ||
5769 | * boehm.cc: New file. | |
5770 | * Makefile.in: Rebuilt. | |
5771 | * Makefile.am (libjava_a_SOURCES): Added boehm.cc. | |
5772 | (INCLUDES): Added -I options to find boehm-gc files. | |
5773 | ||
5774 | Wed Apr 29 15:11:37 1998 Tom Tromey <tromey@cygnus.com> | |
5775 | ||
5776 | * configure: Rebuilt. | |
5777 | * configure.in (CXX): Put -fno-rtti here and not in CXXFLAGS. | |
5778 | ||
5779 | * Makefile.in: Rebuilt. | |
5780 | * Makefile.am (nat_files): New macro. | |
5781 | (libjava_a_DEPENDENCIES): Use it. | |
5782 | (libjava_a_LIBADD): Likewise. | |
5783 | ($(nat_files)): New static pattern rule. | |
5784 | (class_files): Run separate find to find .class files. | |
5785 | (javao_files): Compute based on class_files. | |
5786 | (BUILT_SOURCES): New macro. | |
5787 | ||
5788 | Thu Apr 23 16:42:11 1998 Tom Tromey <tromey@cygnus.com> | |
5789 | ||
5790 | * Makefile.am (java_files): New macro. | |
5791 | (class_files): Likewise. | |
5792 | (javao_files): Likewise. | |
5793 | (libjava_a_DEPENDENCIES): Include $(javao_files). | |
5794 | (libjava_a_LIBADD): Likewise. | |
5795 | (classes.stamp): Depend on $(java_files); only recompile changed | |
5796 | files. | |
5797 | (here): New macro. | |
5798 | (CLEANFILES): Don't run find; use macros. Don't mention | |
5799 | libjava.a. | |
5800 | (.class.o): New target. | |
5801 | (compiled.stamp): Removed. | |
5802 | ||
5803 | Thu Apr 23 14:17:43 1998 Per Bothner <bothner@cygnus.com> | |
5804 | ||
5805 | * java/io/{Reader,InputStreamReader,FileReader,BufferedReader, | |
5806 | LineNumberReader}>java: Newly-implemented standard classes. | |
5807 | ||
5808 | Thu Apr 23 14:02:04 1998 Tom Tromey <tromey@cygnus.com> | |
5809 | ||
5810 | * Makefile.in: Rebuilt. | |
5811 | * Makefile.am (compiled.stamp): Use $(CC), not $(GCC). | |
5812 | ||
5813 | * Makefile.in: Rebuilt. | |
5814 | * Makefile.am (hack): New macro. | |
5815 | (libjava_a_LIBADD): Use $(hack) to work around automake oddity. | |
5816 | ||
5817 | Wed Apr 22 16:49:57 1998 Tom Tromey <tromey@cygnus.com> | |
5818 | ||
5819 | * include/config.h.in: New file. | |
5820 | * include/config.h: Removed. | |
5821 | * acconfig.h: New file. | |
5822 | * Makefile.am (AR, ARFLAGS, JAVAC, GCC, CXX, CXXFLAGS): Removed. | |
5823 | (lib_LIBRARIES, libjava_a_SOURCES, libjava_a_DEPENDENCIES, | |
5824 | libjava_a_LIBADD): New macros. | |
5825 | (INCLUDES): New macro. | |
5826 | (prims.o): Removed. | |
5827 | (.cc.o): Removed. | |
5828 | (SUFFIXES): Removed. | |
5829 | (all): Removed. | |
5830 | (libjava.a): Removed. | |
5831 | ||
5832 | * configure: Rebuilt. | |
5833 | * configure.in: Call AC_PROG_CC, AC_PROG_CXX, AC_PROG_RANLIB. | |
5834 | Look for headers and functions we require. Create | |
5835 | include/config.h. | |
5836 | ||
5837 | Mon Apr 20 22:25:00 1998 Per Bothner <bothner@cygnus.com> | |
5838 | ||
5839 | * prims.cc (instance_class, instanceof, JvIsInstanceOf, JvConvertArgv, | |
5840 | soft_instanceof, newObject, JbNewObjectArray, soft_checkcast, | |
5841 | soft_lookupinterfacemethod): New functions. | |
5842 | (PrimClass): Actually initialize the primitive classes. | |
5843 | (Utf8Const2JavaString): Moved to java/lang/natString.cc. | |
5844 | ||
5845 | * include/java-util.h: Removed java::util definition. | |
5846 | * include/cni.h: Moved java::util here and added Properties. | |
5847 | Added more function prototypes. | |
5848 | * include/java-lang.h: Added mroe methods and friend declarations. | |
5849 | * include/config.h (HAVE_GETTIMEOFDAY, HAVE_TIME): Added. | |
5850 | * include/jvm.h (strLengthUtf8): Add declaration. | |
5851 | ||
5852 | * java/lang/{Integer,Long,Boolean,Character,Float,Double}.java (TYPE): | |
5853 | New static field. | |
5854 | * java/lang/{Byte,Short,Void}.java: New classes. | |
5855 | * java/lang/Character.java (isJavaIdentifierStart, | |
5856 | JavaIdentifierPart): New static methods. | |
5857 | * java/lang/Number.java (byteValue, shortValue): New methods. | |
5858 | ||
5859 | * java/lang/String.java (intern, hashCode): Make native. | |
5860 | * java/lang/natString.cc: New file. Handle the string pool. | |
5861 | * Makefile.am: Build natString.o. Use CXXFLAGS. | |
5862 | ||
5863 | * java/lang/Class.java (isArray, isPrimitive, getComponentType, | |
5864 | isInstance, isAssignableFrom), java/lang/natClass.cc: New methods. | |
5865 | * java/lang/Throwable.java (<init>): Don't fillInStackTrace yet. | |
5866 | * java/lang/System.java (setProperty): New private method. | |
5867 | (initProperties): Take argument, and make native. | |
5868 | * java/lang/natSystem.cc: Implement (preliminary) initProperties. | |
5869 | (currentTimeMillis): Make more robust. | |
5870 | ||
5871 | * java/io/{Writer,PrintWriter,OutputStreamWriter}.java: New classes. | |
5872 | * java/io/UnsupportedEncodingException.java: New exception class. | |
5873 | ||
5874 | * java/io/DataInputStream.java: Don't use a PushbackInputStream. | |
5875 | * java/io/FilterOutputStream.java: Add missing 'extends OutputStream'. | |
5876 | ||
5877 | Fri Apr 10 11:52:10 1998 Per Bothner <bothner@cygnus.com> | |
5878 | ||
5879 | * Makefile.am (CXXFLAGS, JC1FLAGS): New macro. | |
5880 | * prims.cc: Added bunch of stuff. | |
5881 | * include/cni.h: Added various definitions. | |
5882 | * include/java-lang.h: Added Method, various friends, some macros. | |
5883 | ||
5884 | * include/config.h: Added HAVA_MEMMOVE and HAVE_MEMCPY. | |
5885 | * java/lang/System.java (arraycopy): Make native. | |
5886 | ||
5887 | Sun Apr 5 23:58:51 1998 Per Bothner <bothner@cygnus.com> | |
5888 | ||
5889 | * java/lang/{netObject.cc,natClass.cc,natDouble.cc,natRuntime.cc, | |
5890 | natSystem.cc,natThread.cc}: Native (C++) methods for various classes. | |
5891 | * java/lang/ClassLoader.java (defineClass): Now takes extra argument. | |
5892 | * java/lang/Double.java (toString, doubleToLongBits, longBitsToDouble): | |
5893 | Make native. | |
5894 | * java/lang/Runtime.java: Declare methods as native instead of | |
5895 | using NativeLang. | |
5896 | * java/lang/SecurityManager.java (getClassContext): Just throw Error. | |
5897 | * java/lang/System.java: Comment out some stuff, for now. | |
5898 | * java/lang/Thread.java: Re-write. Use native methods. | |
5899 | * java/lang/NativeLang.java: Remove most of it. | |
5900 | ||
5901 | * java/util/natDate.cc: Native (C++) methods for Date. | |
5902 | * java/util/{Calendar.java,GregorianCalendar.java}: New classes. | |
5903 | * java/util/Date.java: Complete re-write. | |
5904 | ||
5905 | * java/io/io-defs.h: New header file. | |
5906 | * java/io/FileDescriptor.java: Add a bunch of private methods, | |
5907 | mostly moved from NativeIO.java and natNativeIO.cc. | |
5908 | * java/io/{natFile.cc,java/io/natFileDescriptor.cc}: New native code. | |
5909 | * java/io/File.java: Use new code. | |
5910 | * java/io/{FileInputStream.java.FileOutputStream.java, | |
5911 | RandomAccessFile.java}: Use new private FileDescriptor methods. | |
5912 | * java/io/NativeIO.java: Removed, no longer used. | |
5913 | ||
5914 | * java/io/StreamTokenizer.java (numericChars): Make char array. | |
5915 | ||
5916 | * include/*.h: Various header files used by the C++ native code. | |
5917 | ||
5918 | * Makefile.am, Makefile.in, aclocal.m4, configure, configure.in: | |
5919 | New autoconf+automake-based setup. | |
5920 | * prims.cc: New file for Java "primitives". | |
5921 |