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