aboutsummaryrefslogtreecommitdiff
path: root/libjava
AgeCommit message (Collapse)AuthorFilesLines
2000-07-07natClassLoader.cc (_Jv_PrepareCompiledClass): Initialize static final String ↵Tom Tromey2-1/+23
fields. * java/lang/natClassLoader.cc (_Jv_PrepareCompiledClass): Initialize static final String fields. From-SVN: r34910
2000-07-07stringconst2.out: New file.Tom Tromey3-0/+27
* libjava.lang/stringconst2.out: New file. * libjava.lang/stringconst2.java: New file. From-SVN: r34909
2000-07-03PrintWriter.java (print): Call write(String), not print(String).Tom Tromey2-8/+26
* java/io/PrintWriter.java (print): Call write(String), not print(String). See PR libgcj/277. (print(String)): Use write, not out.write. From-SVN: r34853
2000-06-30* include/jni.h: Include <gcj/array.h>. Fixes PR libgcj/270.Tom Tromey2-0/+5
From-SVN: r34818
2000-06-28re GNATS java.io/203 (File.createTempFile doesn't close descriptor)Andrew Haley3-1/+18
2000-06-27 Andrew Haley <aph@cygnus.com> * java/io/File.java (createTempFile): Close the FileDescriptor used to create a temp file. Fixes some of PR 203. * java/io/natFileDescriptorPosix.cc (open): Call garbage collection if we run out of file handles. From-SVN: r34755
2000-06-28Removed extraneous conflict marker.Warren Levy1-1/+0
From-SVN: r34754
2000-06-28Gnu.java: New file.Warren Levy7-8/+444
* gnu/java/security/provider/Gnu.java: New file. * gnu/java/security/provider/SHA.java: New file. * gnu/java/security/provider/SHA1PRNG.java: New file. * Makefile.am: Added the above files. * Makefile.in: Rebuilt. * java/io/ObjectStreamClass.java (setUID): Use Gnu SHA instead of SHS. From-SVN: r34753
2000-06-28ThreadGroup.java: Added synchronized flag to many methods.Bryce McKinlay2-36/+51
* ThreadGroup.java: Added synchronized flag to many methods. (destroyed_flag): Removed. (isDestroyed, removeGroup, removeThread): Test for parent == null. (activeCount): Added spec note. From-SVN: r34750
2000-06-28Principal.java: New file.Warren Levy4-59/+165
* java/security/Principal.java: New file. * Makefile.am: Added Principal.java. * Makefile.in: Rebuilt. From-SVN: r34749
2000-06-27MouseEvent.java: Fixed coordinate space confusion.Rolf W. Rasmussen2-6/+8
2000-06-27 Rolf W. Rasmussen <rolfwr@ii.uib.no> * java/awt/event/MouseEvent.java: Fixed coordinate space confusion. From-SVN: r34746
2000-06-27PushbackInputStream.java (read): If there are characters in the buffer, ↵Tom Tromey3-11/+22
don't also call super.read(). * java/io/PushbackInputStream.java (read): If there are characters in the buffer, don't also call super.read(). * java/io/PushbackReader.java (read): If there are characters in the buffer, don't also call super.read(). From-SVN: r34745
2000-06-27* java/lang/Double.java (valueOf): Call parseDouble().Tom Tromey2-1/+5
From-SVN: r34737
2000-06-27PropertyChangeEvent.java (oldVal): Renamed to oldValue.Warren Levy12-101/+275
* java/beans/PropertyChangeEvent.java (oldVal): Renamed to oldValue. (newVal): Renamed to newValue. * java/beans/PropertyVetoException.java (changeEvent): Renamed to evt. * java/beans/beancontext/BeanContextServiceRevokedEvent.java (revokeNow): Renamed to invalidateRefs. * java/io/OptionalDataException.java: Updated FIXME. (eof): New placeholder field. (length); Ditto. * java/io/WriteAbortedException.java (message): Made transient. * java/lang/ClassNotFoundException.java: Updated comments for JDK 1.2. * java/lang/Throwable.java (stackTrace): Made transient. * java/net/InetAddress.java: Made Serializable. * java/security/KeyPair.java: Made Serializable. * java/security/Provider.java: Replaced with Classpath version that implements serialization and proper methods. * java/text/ChoiceFormat.java (strings): Renamed to choiceFormats. (limits): Renamed to choiceLimits. Serialization changes per: http://java.sun.com/products/jdk/1.2/docs/api/serialized-form.html From-SVN: r34726
2000-06-24natDouble.cc (parseDouble): Renamed from doubleValueOf.Tom Tromey3-4/+11
* java/lang/natDouble.cc (parseDouble): Renamed from doubleValueOf. * java/lang/Double.java (parseDouble): Renamed from doubleValueOf. Now public. From-SVN: r34679
2000-06-23For PR gcj/260:Tom Tromey3-0/+22
* libjava.lang/PR260.out: New file. * libjava.lang/PR260.java: New file. From-SVN: r34670
2000-06-23ieeefp.h: Handle ia64, fr30, mcore.Andrew Haley3-2/+26
* java/lang/ieeefp.h: Handle ia64, fr30, mcore. * java/lang/natThrowable.cc: On IA-64, use __ia64_backtrace. From-SVN: r34667
2000-06-23natMethod.cc: Include <alloca.h>.Tom Tromey3-15/+10
* java/lang/reflect/natMethod.cc: Include <alloca.h>. * java/lang/natDouble.cc: Always include <alloca.h>. Fix for PR libgcj/267. From-SVN: r34665
2000-06-21ThreadGroup.java (add(Thread)): Rename to addThread() to comply with ↵Bryce McKinlay4-17/+42
classpath VM spec. 2000-06-21 Bryce McKinlay <bryce@albatross.co.nz> * java/lang/ThreadGroup.java (add(Thread)): Rename to addThread() to comply with classpath VM spec. (add(Group)): Rename to addGroup(). * java/lang/Thread.java (Thread): Use addThread(). * java/lang/natThread.cc (finish_): Use removeThread(). From-SVN: r34627
2000-06-20ThreadGroup.java: Merged with classpath.Bryce McKinlay5-291/+457
2000-06-20 Bryce McKinlay <bryce@albatross.co.nz> * java/lang/ThreadGroup.java: Merged with classpath. * prims.cc (_Jv_RunMain): Don't use ain_group'. * gnu/gcj/runtime/FirstThread.java: Remove ThreadGroup constructor argument. * java/lang/Thread.java (Thread): Bootstrap initial thread from ThreadGroup.root if Thread.currentThread is null. Honour the ThreadGroup's max priority setting. From-SVN: r34615
2000-06-18re GNATS gcj/260 ("Klass.class" expression should cause Klass to be initialized)Tom Tromey3-56/+24
* java/lang/natClass.cc (forName): Removed dead code. Initialize returned class. For PR gcj/260. From-SVN: r34590
2000-06-16re GNATS libgcj/261 (Macro-inconsistency)Tom Tromey3-4/+13
Fix for PR libgcj/261: * include/win32-signal.h (MAKE_THROW_FRAME): Added `_exception' argument. * include/sparc-signal.h (MAKE_THROW_FRAME): Added `_exception' argument. (This is a patch from long ago that somehow went missing.) From-SVN: r34575
2000-06-16natIconv.cc (iconv_adapter): New function.Tom Tromey2-8/+24
* gnu/gcj/convert/natIconv.cc (iconv_adapter): New function. (read): Use it. (write): Likewise. From-SVN: r34570
2000-06-152000-06-15 Bryce McKinlay <bryce@albatross.co.nz>Bryce McKinlay2-2/+4
Fix for PR java.lang/258: * prims.cc (_Jv_PrimClass): Set state of primitive class to JV_STATE_DONE, to prevent accidental initialization. * java/lang/natClass.cc (_Jv_IsAssignableFrom): Call _Jv_InterfaceAssignableFrom if target is an interface and source is an interface or an abstract class. Remove redundant initializeClass calls. Remove duplicate if_idt test. (_Jv_InterfaceAssignableFrom): New function. * java/lang/Class.h (_Jv_InterfaceAssignableFrom): Prototype. From-SVN: r34563
2000-06-152000-06-15 Bryce McKinlay <bryce@albatross.co.nz>Bryce McKinlay3-16/+41
Fix for PR java.lang/258: * prims.cc (_Jv_PrimClass): Set state of primitive class to JV_STATE_DONE, to prevent accidental initialization. * java/lang/natClass.cc (_Jv_IsAssignableFrom): Call _Jv_InterfaceAssignableFrom if target is an interface and source is an interface or an abstract class. Remove redundant initializeClass calls. Remove duplicate if_idt test. * java/lang/Class.h (_Jv_InterfaceAssignableFrom): New function. From-SVN: r34562
2000-06-13Fix a stupid typo.Warren Levy1-1/+1
From-SVN: r34536
2000-06-13Test for PR java.lang/258:Warren Levy3-0/+76
* libjava.lang/Class_1.java: New file. * libjava.lang/Class_1.out: New file. From-SVN: r34532
2000-05-31prims.cc (DECLARE_PRIM_TYPE): Define a vtable as well.Tom Tromey5-7/+45
* prims.cc (DECLARE_PRIM_TYPE): Define a vtable as well. (_Jv_PrimClass): Set `methods' by calling _Jv_FindArrayClass. * include/jvm.h (struct _Jv_ArrayVTable): Declare. (NUM_OBJECT_METHODS): New define. * java/lang/natClassLoader.cc (_Jv_FindArrayClass): Added `array_vtable' parameter. Added assertion. * java/lang/Class.h (_Jv_FindArrayClass): Added `array_vtable' parameter. From-SVN: r34312
2000-05-31cni.h: Include <string.h>.Bryce McKinlay5-0/+13
2000-05-31 Bryce McKinlay <bryce@albatross.co.nz> * gcj/cni.h: Include <string.h>. * defineclass.cc: Include <alloca.h>. * interpret.cc: Ditto. * gij.cc: Include <stdlib.h>. From-SVN: r34311
2000-05-30name-finder.h: Include <sys/wait.h>.Tom Tromey4-7/+26
* include/name-finder.h: Include <sys/wait.h>. (_Jv_name_finder::pid): Now of type `pid_t'. (_Jv_name_finder::~_Jv_name_finder): Call waitpid(). * java/lang/Throwable.java (CPlusPlusDemangler.close): Call `proc.waitFor()'. From-SVN: r34279
2000-05-29re GNATS gcj/242 (Compiler generates call to wrong method from inner class)Bryce McKinlay3-0/+43
2000-05-29 Bryce McKinlay <bryce@albatross.co.nz> * libjava.lang/PR242.java: New file. PR gcj/242. From-SVN: r34245
2000-05-24ObjectOutputStream.java (writeObject): Use component type when writing arrays.Warren Levy2-3/+9
* java/io/ObjectOutputStream.java (writeObject): Use component type when writing arrays. Fixed typo. From-SVN: r34142
2000-05-23* libjava.compile/PR238.java: New file. For PR gcj/238.Tom Tromey2-0/+11
From-SVN: r34116
2000-05-23stringconst.out: New file.Tom Tromey3-0/+28
* libjava.lang/stringconst.out: New file. * libjava.lang/stringconst.java: New file. From-SVN: r34115
2000-05-22re GNATS gcj/232 (segmentation violation at except.c:2180)Bryce McKinlay2-0/+19
2000-05-22 Bryce McKinlay <bryce@albatross.co.nz> * libjava.compile/PR232B.java: Additional PR gcj/232 test. From-SVN: r34092
2000-05-22* libjava.compile/PR235.java: New file. For PR gcj/235.Tom Tromey2-0/+11
From-SVN: r34086
2000-05-22* libjava.compile/PR234.java: New file. For PR gcj/234.Tom Tromey2-0/+28
From-SVN: r34072
2000-05-22Test for PR gcj/232:Bryce McKinlay2-0/+21
2000-05-22 Bryce McKinlay <bryce@albatross.co.nz> Test for PR gcj/232: * libjava.compile/PR232.java: New file. From-SVN: r34070
2000-05-21re GNATS libgcj/226 (implicit __builtin_expect) and GNATS gcj/228 ↵Bryce McKinlay4-4/+21
(compressed JAR files) 2000-05-20 Bryce McKinlay <bryce@albatross.co.nz> Fix for PR libgcj/226: * java/lang/Class.h (_Jv_InitClass): Don't call __builtin_expect, since this is an installed header. Fix for PR libgcj/228: * java/util/zip/ZipFile (getInputStream): Create inflater with nowrapper option. * java/util/zip/natInflater.cc (inflate): Throw zlib's error message with DataFormatException. From-SVN: r34064
2000-05-20Makefile.in: Rebuilt.Tom Tromey6-316/+252
* Makefile.in: Rebuilt. * Makefile.am (hack1): Removed. (awto_files): Likewise. (libgcjawt_la_SOURCES): Likewise. (EXTRA_libgcjawt_la_SOURCES): Likewise. (libgcjawt_la_DEPENDENCIES): Likewise. (libgcjawt_la_LIBADD): Likewise. (libgcjawt_la_LDFLAGS): Likewise. (libgcjawt_la_LINK): Likewise. ($(awt_java_source_files:.java=.class)): Likewise. (libgcj.zip): Don't depend on AWT files. (MOSTLYCLEANFILES): Don't include AWT files. ($(awto_files)): Removed. (nat_headers): Removed AWT files. (cond_awt_java_source_files): Removed. (ordinary_java_source_files): Added awt_java_source_files. * libgcj.spec.in (*lib): Removed -lgcjawt. * configure: Rebuilt. * configure.in: Removed --enable-java-awt option. From-SVN: r34058
2000-05-20ZipEntry.java: Implement Cloneable, per JDK1.2 docs.Bryce McKinlay2-1/+28
2000-05-20 Bryce McKinlay <bryce@albatross.co.nz> * java/util/zip/ZipEntry.java: Implement Cloneable, per JDK1.2 docs. (ZipEntry): Copy the Name' field. (clone): Implement JDK1.2 method. (setCompressedSize): ditto. (hashCode): ditto. From-SVN: r34043
2000-05-20Removed duplicate ChangeLog entryTom Tromey1-15/+0
From-SVN: r34042
2000-05-19BufferedWriter.java: Merged with Classpath.Tom Tromey3-77/+320
* java/io/BufferedWriter.java: Merged with Classpath. * java/io/BufferedOutputStream.java: Merged with Classpath. From-SVN: r34041
2000-05-19Jumbo patch:Tom Tromey125-560/+18458
* Imported beans and serialization * Updated IA-64 port * Miscellaneous bug fixes From-SVN: r34028
2000-05-19Oops, typo in last change.Bryce McKinlay1-1/+1
From-SVN: r34008
2000-05-19From Gregory R. Warnes <warnes@biostat.washington.edu>:Bryce McKinlay2-1/+5
* gnu/gcj/protocol/jar/Connection.java (getJarFile): Test for null `jarFile', not `jarFileURL'. From-SVN: r34005
2000-05-18* lib/libjava.exp (bytecompile_file): Use exec, not system.Tom Tromey2-2/+11
From-SVN: r33989
2000-05-18Thread.java: Declare `data' as Object, not RawData.Bryce McKinlay4-7/+12
2000-05-18 Bryce McKinlay <bryce@albatross.co.nz> * java/lang/Thread.java: Declare `data' as Object, not RawData. * java/lang/natThread.java (initialize_native): Cast `data' to jobject. * gnu/gcj/RawData.java: Clarify documentation. From-SVN: r33981
2000-05-17mauve.exp (test_mauve): Call `prune_warnings'.Tom Tromey4-61/+84
* libjava.mauve/mauve.exp (test_mauve): Call `prune_warnings'. (test_mauve_sim): Likewise. (test_mauve): Redirect stderr in system call. (test_mauve_sim): Likewise. * lib/libjava.exp (test_libjava_from_source): Call `prune_warnings'. (test_libjava_from_javac): Likewise. (bytecompile_file): Redirect stderr in system call. * lib/libjava.exp (libjava_find_program): New proc. (find_jvscan): Use it. (find_gcjh): New proc. * libjava.compile/compile.exp: Use "", not $options. From-SVN: r33959
2000-05-16instance.out: New file.Tom Tromey3-0/+74
* libjava.lang/instance.out: New file. * libjava.lang/instance.java: New file. From-SVN: r33941
2000-05-16ppc-signal.h: New file.Andrew Haley2-0/+119
2000-05-15 Andrew Haley <aph@cygnus.com> * include/ppc-signal.h: New file. From-SVN: r33932