aboutsummaryrefslogtreecommitdiff
path: root/libjava
AgeCommit message (Collapse)AuthorFilesLines
2001-05-21Makefile.am (libgcj_la_DEPENDENCIES): Add $(nat_files).Per Bothner2-5/+11
* Makefile.am (libgcj_la_DEPENDENCIES): Add $(nat_files). (libgcj_la_LIBADD): Likewise. (libgcjx_la_DEPENDENCIES, libgcjx_la_LIBADD): Add $(x_nat_files). From-SVN: r42424
2001-05-21javaprims.h (_Jv_FormatInt): New declaration.Per Bothner10-40/+98
* gcj/javaprims.h (_Jv_FormatInt): New declaration. * java/lang/natString.cc (_JvFormatInt): New primitive, with logic taken from old Integer.toString code. (Integer::valueOf): Use _Jv_FormatInt. * java/lang/Integer.java (toString): Just use call String.valueOf. * java/lang/Long.java (toString): Fix typo in comment. * java/lang/String.java (valueOf(int)): Make native. * java/lang/StringBuffer.java (append(int)): Make native. * java/lang/natStringBuffer.cc: New file, for append(jint). * Makefile.am (ant_source_files): Add java/lang/natStringBuffer.cc. From-SVN: r42419
2001-05-21* gnu/gcj/runtime/VMClassLoader.java (VMClassLoader): Now public.Tom Tromey2-2/+6
From-SVN: r42405
2001-05-21dwarf2-signal.h: New file.Andrew Haley5-283/+378
2001-05-18 Andrew Haley <aph@cambridge.redhat.com> * include/dwarf2-signal.h: New file. * configure.in (SYSDEP_SOURCES): Add dwarf2-signal.h for PPC. * configure.host (EXCEPTIONSPEC): Don't use sjlj on PPC. * configure: Rebuilt. From-SVN: r42400
2001-05-21configure.in: Update boehm-gc include dir for new GC version.Bryce McKinlay9-324/+313
* configure.in: Update boehm-gc include dir for new GC version. * configure: Rebuilt. * exception.cc: Only include <gc.h>. Remove TRUE/FALSE hacks and extern "C" wrapper. * boehm.cc: Update includes for new GC version. MAKE_PROC is now GC_MAKE_PROC. mark_proc is now GC_mark_proc. * posix-threads.cc: Only include <gc.h>. Don't need to wrap with extern "C". From-SVN: r42380
2001-05-20ltconfig, [...]: Upgraded to libtool 1.4a 1.641.2.254.Alexandre Oliva1-283/+298
* ltconfig, ltmain.sh, libtool.m4, ltcf-c.sh, ltcf-cxx.sh, ltcf-gcj.sh: Upgraded to libtool 1.4a 1.641.2.254. Rebuilt a number of subdir/configure scripts to use the new libtool.m4. From-SVN: r42351
2001-05-18posix-threads.h (_Jv_CondInit): `0' used in place of `NULL.'Alexandre Petit-Bianco2-2/+7
2001-05-18 Alexandre Petit-Bianco <apbianco@redhat.com> * include/posix-threads.h (_Jv_CondInit): `0' used in place of `NULL.' (_Jv_MutexInit): Likewise. (http://gcc.gnu.org/ml/java-patches/2001-q2/msg00245.html ) From-SVN: r42303
2001-05-18Makefile.in: Rebuilt.Tom Tromey3-1/+8
* Makefile.in: Rebuilt. * Makefile.am (awt_java_source_files): Added Polygon.java. From-SVN: r42276
2001-05-18[multiple changes]Bryce McKinlay5-7/+22
2001-05-18 Bryce McKinlay <bryce@waitaki.otago.ac.nz> * include/jvm.h: Move "#pragma GCC java_exceptions" to ... * gcj/javaprims.h: ... here. * gnu/gcj/io/shs.cc: Add "#pragma GCC java_exceptions". 2001-05-17 Martin Kahlert <martin.kahlert@infineon.com> * java/lang/natClass.cc (_Jv_FindIIndex): Fix an off by one error with length of ioffset table. (_Jv_IsAssignableFrom): Likewise. From-SVN: r42248
2001-05-17* Makefile.am (ZIP): The "fastjar" binary is now plain "jar".Per Bothner3-6/+10
From-SVN: r42207
2001-05-16SimpleDateFormat.java (parse): Handle non-dst time zones.Tom Tromey2-8/+23
* java/text/SimpleDateFormat.java (parse): Handle non-dst time zones. From-SVN: r42156
2001-05-15GregorianCalendar.java (computeTime): Only call getTimeZone() once.Tom Tromey2-1/+6
* java/util/GregorianCalendar.java (computeTime): Only call getTimeZone() once. From-SVN: r42121
2001-05-14SimpleDateFormat.java (parse): Clear DST_OFFSET and ZONE_OFFSET just before ↵Tom Tromey2-2/+9
computing the time. * java/text/SimpleDateFormat.java (parse): Clear DST_OFFSET and ZONE_OFFSET just before computing the time. From-SVN: r42076
2001-05-13except.c (choose_personality_routine): Export.Zack Weinberg5-2/+35
gcc/cp: * except.c (choose_personality_routine): Export. Add explanatory comment. Take an enum languages, not a boolean. (initialize_handler_parm): Adjust to match. * cp-tree.h: Prototype choose_personality_routine. * lex.c (handle_pragma_java_exceptions): New function. (init_cp_pragma): Register #pragma GCC java_exceptions. gcc: * extend.texi: Document #pragma GCC java_exceptions. libjava: * Makefile.am (libgcj_la_OBJECTS): Remove libsupc++convenience.la. * Makefile.in: Regenerate (by hand). * include/jvm.h: Add #pragma GCC java_exceptions at top of file. * doc/cni.sgml: Document #pragma GCC java_exceptions. From-SVN: r42027
2001-05-11configure.in (ia64-*): Don't set SYSDEP_SOURCES.Richard Henderson4-310/+296
* configure.in (ia64-*): Don't set SYSDEP_SOURCES. * java/lang/natThrowable.cc: Don't use __ia64_backtrace. From-SVN: r41984
2001-05-11exception.cc: Include unwind-pe.h.Richard Henderson2-168/+6
* exception.cc: Include unwind-pe.h. Remove all pointer encoding logic. From-SVN: r41983
2001-05-11Makefile.in: Rebuilt.Tom Tromey3-3/+450
* Makefile.in: Rebuilt. * Makefile.am (awt_java_source_files): Added Polygon.java. * java/awt/Polygon.java: New file. * java/awt/geom/AffineTransform.java (setToRotation(double,double,double)): New method. (AffineTransform): Set type to TYPE_GENERAL_TRANSFORM. (setToShear): Likewise. From-SVN: r41954
2001-05-10[multiple changes]Tom Tromey11-399/+2085
2001-05-10 Tom Tromey <tromey@redhat.com> * java/util/GregorianCalendar.java: Imported from Classpath. * gnu/java/locale/LocaleInformation_nl.java: New file from Classpath. * gnu/java/locale/LocaleInformation_en.java: Likewise. * gnu/java/locale/LocaleInformation_de.java: Likewise. * gnu/java/locale/LocaleInformation.java: Likewise. * natGregorianCalendar.cc: Removed. * Makefile.in: Rebuilt. * Makefile.am (nat_source_files): Removed natGregorianCalendar.cc. 2001-05-10 Tom Tromey <tromey@redhat.com> * java/text/SimpleDateFormat.java (computeCenturyStart): New method. (defaultCenturyStart): Use it. (readObject): Likewise. (SimpleDateFormat): Clear the calendar. Set the grouping on the number format. (parse): Copy the calendar before modifying it. Correctly handle the time zone. * java/util/Calendar.java (clear): Set field value(s) to 0. 2001-05-10 Jeff Sturm <jsturm@one-point.com> * Calendar.java (get): Clear areFieldsSet if requested field is not set. (set): Unset fields that depend on new value. From-SVN: r41942
2001-05-06Class.h (_Jv_Self): New union type.Bryce McKinlay3-7/+19
* java/lang/Class.h (_Jv_Self): New union type. (Class): Manipulate vtable pointer via _Jv_Self union. Thanks to Jeff Sturm and Fergus Henderson. * java/lang/ClassLoader.java: Remove dead code fragment. From-SVN: r41876
2001-05-04Thread_Wait_Interrupt.xfail: New file.Tom Tromey10-9/+78
* libjava.lang/Thread_Wait_Interrupt.xfail: New file. * libjava.lang/Thread_Wait_2.xfail: New file. * libjava.lang/Thread_Wait.xfail: New file. * libjava.lang/Thread_Sleep.xfail: New file. * libjava.lang/Thread_Monitor.xfail: New file. * libjava.lang/Thread_Join.xfail: New file. * libjava.lang/Thread_Interrupt.xfail: New file. * libjava.lang/Thread_Alive.xfail: New file. * lib/libjava.exp (libjava_init): Set global libjava_uses_threads. (test_libjava): Document `need-threads' tag. (test_libjava_from_source): handle need-threads tag. (test_libjava_from_javac): Likewise. From-SVN: r41840
2001-05-03* libjava.lang/err11.xfail: Removed.Tom Tromey2-1/+4
From-SVN: r41817
2001-05-03jni.cc (_Jv_JNI_GetPrimitiveArrayRegion): Fixed bounds checking.Martin Kahlert2-2/+8
2001-05-03 Martin Kahlert <martin.kahlert@infineon.com> * jni.cc (_Jv_JNI_GetPrimitiveArrayRegion): Fixed bounds checking. (_Jv_JNI_SetPrimitiveArrayRegion): Likewise. From-SVN: r41795
2001-05-03Fix bad checkin.Andrew Haley1-1/+2
From-SVN: r41793
2001-05-03libgcj.spec.in (jc1): Add EXCEPTIONSPEC.Andrew Haley1-2/+8
2001-04-30 Andrew Haley <aph@cambridge.redhat.com> * libgcj.spec.in (jc1): Add EXCEPTIONSPEC. * configure.host (EXCEPTIONSPEC): New. * configure.in (EXCEPTIONSPEC): New. * configure: Rebuilt. From-SVN: r41786
2001-05-03* doc/*.texi: Remove generated documentation.Bryce McKinlay24-18255/+4
From-SVN: r41778
2001-05-01libgcj.spec.in (jc1): Add EXCEPTIONSPEC.Andrew Haley4-95/+99
2001-04-30 Andrew Haley <aph@cambridge.redhat.com> * libgcj.spec.in (jc1): Add EXCEPTIONSPEC. * configure.host (EXCEPTIONSPEC): New. * configure.in (EXCEPTIONSPEC): New. * configure: Rebuilt. From-SVN: r41733
2001-04-30natFile.cc (performSetReadOnly): Fix #ifdef test.Matt Kraai2-2/+7
2001-04-30 Matt Kraai <kraai@alumni.carnegiemellon.edu> * java/io/natFile.cc (performSetReadOnly): Fix #ifdef test. (performDelete): Fix #endif placement. From-SVN: r41703
2001-04-28* java/lang/natClassLoader.cc (_Jv_RegisterInitiatingLoader): Use _Jv_Malloc.Zack Weinberg2-2/+4
From-SVN: r41651
2001-04-28prims.cc (_Jv_ThisExecutable): Use _Jv_Malloc.Zack Weinberg3-3/+9
* prims.cc (_Jv_ThisExecutable): Use _Jv_Malloc. * posix-threads.cc (_Jv_ThreadInitData): Use _Jv_Malloc. (_Jv_ThreadDestroyData): Use _Jv_Free. From-SVN: r41650
2001-04-27jni.cc (_Jv_JNI_GetPrimitiveArrayRegion): Fixed bounds checking.Tom Tromey2-5/+17
* jni.cc (_Jv_JNI_GetPrimitiveArrayRegion): Fixed bounds checking. (_Jv_JNI_SetPrimitiveArrayRegion): Likewise. From-SVN: r41634
2001-04-27jni.h (struct JNINativeInterface): Fixed types in Get/Set*ArrayRegion ↵Tom Tromey2-44/+50
declarations. 2001-04-27 Martin Kahlert <martin.kahlert@infineon.com> * include/jni.h (struct JNINativeInterface): Fixed types in Get/Set*ArrayRegion declarations. (class _Jv_JNIEnv): Likewise. From-SVN: r41633
2001-04-27libjava.exp (libjava_init): Use UTF-8 encoding.Tom Tromey2-2/+13
* lib/libjava.exp (libjava_init): Use UTF-8 encoding. (test_libjava_from_javac): Likewise. From-SVN: r41617
2001-04-26configure.in: Obtain THREADS with `gcc -v'.Alexandre Oliva3-355/+287
* configure.in: Obtain THREADS with `gcc -v'. * configure: Rebuilt. From-SVN: r41571
2001-04-26re PR libgcj/2237 (serialization doesn't throw exception on failure)Bryce McKinlay4-121/+90
Fix PR libgcj/2237: * java/io/ObjectStreamClass.java (setClass): Calculate serialVersionUID for local class and compare it against the UID from the Object Stream. Throw InvalidClassException upon mismatch. (setUID): Renamed to... (getClassUID): this. Return the calculated class UID rather than setting uid field directly. (getDefinedSUID): Removed. * java/io/ObjectInputStream.java (resolveClass): Use the three-argument Class.forName(). * java/io/InvalidClassException (toString): Don't include classname in result if it is null. From-SVN: r41567
2001-04-25natInetAddress.cc (java::net::InetAddress::aton): Wrap use of inet_pton in ↵Kaveh R. Ghazi2-1/+6
HAVE_INET6. * java/net/natInetAddress.cc (java::net::InetAddress::aton): Wrap use of inet_pton in HAVE_INET6. From-SVN: r41547
2001-04-25Forgot this file on last commit.Bryce McKinlay1-3/+1
From-SVN: r41544
2001-04-25decl.c (init_decl_processing): Add new class "protectionDomain" field.Bryce McKinlay112-1550/+11880
gcc/java: 2001-04-25 Bryce McKinlay <bryce@waitaki.otago.ac.nz> * decl.c (init_decl_processing): Add new class "protectionDomain" field. * class.c (make_class_data): Set initial value for "protectionDomain". libjava: 2001-04-25 Bryce McKinlay <bryce@albatross.co.nz> java.security merge and ClassLoader compliance fixes. * java/lang/Class.h (Class): Include ProtectionDomain.h. New protectionDomain field. (forName): Add initialize parameter. Fixes declaration to comply with JDK spec. * java/lang/natClass.cc (forName): Correct declaration of the three-arg variant. Honour "initialize" flag. (getProtectionDomain0): New method. * java/lang/Class.java: Fix forName() declaration. (getPackage): New method based on Classpath implementation. (getProtectionDomain0): New native method decl. (getProtectionDomain): New method. * java/lang/ClassLoader.java (getParent): Now final. (definedPackages): New field. (getPackage): New. (defineClass): New variant with protectionDomain argument. (definePackage): New. (getPackages): New. (findSystemClass): Now final. (getSystemResourceAsStream): Remove redundant "final" modifier. (getSystemResource): Remove redundant "final" modifier. (getResources): Now final. (protectionDomainPermission): New static field. (unknownProtectionDomain): Ditto. (defaultProtectionDomain): Ditto. (getSystemClassLoader): Now non-native. * java/util/ResourceBundle.java (tryGetSomeBundle): Use the correct arguments for Class.forName(). * java/lang/Package.java: New file. * gnu/gcj/runtime/VMClassLoader.java (getVMClassLoader): Removed. (instance): Static initialize singleton. (findClass): Override this, not findSystemClass. * java/lang/natClassLoader.cc (defineClass0): Set class's protectionDomain field as specified. (getSystemClassLoader): Removed. (findClass): Renamed from findSystemClass. Call the interpreter via URLClassLoader.findClass if loading class via dlopen fails. * java/security/*.java: java.security import/merge with Classpath. * java/security/acl/*.java: Likewise. * java/security/interfaces/*.java: Likewise. * java/security/spec/*.java: Likewise. * java/net/NetPermission.java: Likewise. * java/net/SocketPermission.java: Likewise. * gnu/java/security/provider/DefaultPolicy.java: Likewise. * Makefile.am: Add new classes. * Makefile.in: Rebuilt. * gcj/javaprims.h: CNI namespace rebuild. From-SVN: r41543
2001-04-24configure.in (CPPFLAGS): Added builddir and srcdir to CPPFLAGS for libtool ↵Alexandre Oliva3-288/+356
tests. * configure.in (CPPFLAGS): Added builddir and srcdir to CPPFLAGS for libtool tests. Pre-create gnu/classpath/Configuration.java. * configure: Rebuilt. From-SVN: r41522
2001-04-22Makefile.in: Rebuilt.Tom Tromey1-0/+537
* Makefile.in: Rebuilt. * Makefile.am (awt_java_source_files): Added Line2D.java. * java/awt/geom/Line2D.java: Wrote. * java/awt/Menu.java (addNotify): Wrote. * java/awt/PopupMenu.java (addNotify): Implemented. (show): Likewise. * java/awt/Scrollbar.java (addNotify): Call super.addNotify. * java/awt/List.java (addNotify): Call super.addNotify. * java/awt/Label.java (addNotify): Call super.addNotify. * java/awt/FileDialog.java (addNotify): Call super.addNotify. * java/awt/Dialog.java (addNotify): Call super.addNotify. * java/awt/Choice.java (addNotify): Call super.addNotify. * java/awt/CheckboxMenuItem.java (addNotify): Call super.addNotify. * java/awt/Checkbox.java (addNotify): Call super.addNotify. * java/awt/List.java (replaceItem): Notify peer. * java/awt/geom/Rectangle2D.java (Float.setRect(float,float,float,float)): New method. * java/awt/event/ContainerEvent.java (getContainer): Now returns Container. * java/awt/RenderingHints.java (Key): Class now public. * java/awt/Rectangle.java (Rectangle): Now implements Serializable. (getPathIterator): Removed. * java/awt/GraphicsConfiguration.java (GraphicsConfiguration): New constructor. * java/awt/FileDialog.java: Wrote. * java/awt/EventQueue.java (isDispatchThread): Now public. (invokeLater): Likewise. * java/awt/Component.java (setCursor): Update peer. (getFontMetrics): Use peer. * java/awt/ComponentOrientation.java (ComponentOrientation): Class now final. From-SVN: r41492
2001-04-22Makefile.in: Rebuilt.Tom Tromey24-72/+304
* Makefile.in: Rebuilt. * Makefile.am (awt_java_source_files): Added Line2D.java. * java/awt/geom/Line2D.java: Wrote. * java/awt/Menu.java (addNotify): Wrote. * java/awt/PopupMenu.java (addNotify): Implemented. (show): Likewise. * java/awt/Scrollbar.java (addNotify): Call super.addNotify. * java/awt/List.java (addNotify): Call super.addNotify. * java/awt/Label.java (addNotify): Call super.addNotify. * java/awt/FileDialog.java (addNotify): Call super.addNotify. * java/awt/Dialog.java (addNotify): Call super.addNotify. * java/awt/Choice.java (addNotify): Call super.addNotify. * java/awt/CheckboxMenuItem.java (addNotify): Call super.addNotify. * java/awt/Checkbox.java (addNotify): Call super.addNotify. * java/awt/List.java (replaceItem): Notify peer. * java/awt/geom/Rectangle2D.java (Float.setRect(float,float,float,float)): New method. * java/awt/event/ContainerEvent.java (getContainer): Now returns Container. * java/awt/RenderingHints.java (Key): Class now public. * java/awt/Rectangle.java (Rectangle): Now implements Serializable. (getPathIterator): Removed. * java/awt/GraphicsConfiguration.java (GraphicsConfiguration): New constructor. * java/awt/FileDialog.java: Wrote. * java/awt/EventQueue.java (isDispatchThread): Now public. (invokeLater): Likewise. * java/awt/Component.java (setCursor): Update peer. (getFontMetrics): Use peer. * java/awt/ComponentOrientation.java (ComponentOrientation): Class now final. From-SVN: r41489
2001-04-21List.java: Wrote.Tom Tromey3-7/+576
* java/awt/List.java: Wrote. * java/awt/Dialog.java: Wrote. From-SVN: r41476
2001-04-20natSystem.cc (getSystemTimeZone): Adjust for DST.Warren Levy4-658/+265
* java/lang/natSystem.cc (getSystemTimeZone): Adjust for DST. * java/text/SimpleDateFormat.java (indexInArray): Removed private method. (processYear): Removed private method. (parseLenient): Removed private method. (parseLeadingZeros): Removed private method. (parseStrict): Removed private method. (expect): Added new private method. (parse): Reverted to pre-Classpath merge version with minor fixes. * java/util/natGregorianCalendar.cc (computeTime): Handle strict calendars. From-SVN: r41456
2001-04-12Makefile.am: Make a libtool convenience library.Bryce McKinlay4-62/+101
libffi: * Makefile.am: Make a libtool convenience library. * Makefile.in: Rebuilt. libjava: * java/io/File.java (normalizePath): New private method. (File (String)): Use normalizePath(). (File (String, String)): Likewise. * Makefile.am (libffi_files): Removed. (libgcj.la): Link libffi as a convenience library instead of refering to its object files directly. * Makefile.in: Rebuilt. From-SVN: r41298
2001-04-10natString.cc (_Jv_NewStringUtf8Const): Register finalizer.Per Bothner2-6/+23
* java/lang/natString.cc (_Jv_NewStringUtf8Const): Register finalizer. Recalculate hash, since Utf8Const's hash is only 16 bits. * java/lang/natString.cc (_Jv_StringFindSlot, rehash): Use high-order bits of hash to calculate step for chaining. * java/lang/natString.cc (intern, _Jv_NewStringUtf8Const): Rehash when 2/3 full, rather than 3/4 full. From-SVN: r41233
2001-04-10testsuite: libjava: remove some xfail markers.Tom Tromey7-6/+9
* libjava.lang/pr83.xfail: Removed. * libjava.lang/Shazam.xfail: Removed. * libjava.lang/PR162.xfail: Removed. * libjava.compile/PR375.xfail: Removed. * libjava.compile/PR208.xfail: Removed xfail-byte. * libjava.compile/PR207.xfail: Removed xfail-byte. From-SVN: r41220
2001-04-07testsuite: libjava: remove some xfail markers.Tom Tromey3-4/+5
* libjava.compile/weirddecl.xfail: Removed xfail-*. * libjava.compile/PR374.xfail: Removed. From-SVN: r41180
2001-04-06jni.cc (wrap_value<jobject>, [...]): Removed.Tom Tromey2-11/+15
* jni.cc (wrap_value<jobject>, wrap_value<jclass>): Removed. (wrap_value<T*>): New specialization. (_Jv_JNI_PopLocalFrame): Update env->locals. From-SVN: r41157
2001-04-05instinit2.out: Fixed.Alexandre Petit-Bianco2-1/+4
2001-03-29 Alexandre Petit-Bianco <apbianco@redhat.com> * libjava.lang/instinit2.out: Fixed. (http://gcc.gnu.org/ml/gcc-patches/2001-04/msg00343.html) From-SVN: r41132
2001-04-05* libtool-version: Updated current.Tom Tromey2-1/+5
From-SVN: r41116
2001-04-04Makefile.am (AUTOMAKE_OPTIONS): Remove no-installinfo.Andreas Jaeger9-65/+83
2001-04-04 Andreas Jaeger <aj@suse.de> * gcj/Makefile.am (AUTOMAKE_OPTIONS): Remove no-installinfo. * gcj/Makefile.in: Rebuilt. * Makefile.am (AUTOMAKE_OPTIONS): Remove no-installinfo. * Makefile.in: Rebuilt. * testsuite/Makefile.am (AUTOMAKE_OPTIONS): Remove no-installinfo. * testsuite/Makefile.in: Rebuild. * include/Makefile.am (AUTOMAKE_OPTIONS): Remove no-installinfo. * include/Makefile.in: Rebuild. From-SVN: r41100