aboutsummaryrefslogtreecommitdiff
path: root/libjava
AgeCommit message (Collapse)AuthorFilesLines
2001-02-13BlockDataException.java: Removed.Bryce McKinlay5-83/+33
* java/io/BlockDataException.java: Removed. * java/io/ObjectInputStream.java (readObject): Throw StreamCorruptedException, not BlockDataException. * Makefile.am: Remove BlockDataException. * Makefile.in: Rebuild. From-SVN: r39616
2001-02-12interpret.cc (continue1): [insn_invokevirtual] Do an explicit null pointer ↵Jeff Sturm2-2/+12
check. 2001-02-12 Jeff Sturm <jeff.sturm@commerceone.com> Tom Tromey <tromey@redhat.com> * interpret.cc (continue1): [insn_invokevirtual] Do an explicit null pointer check. Co-Authored-By: Tom Tromey <tromey@redhat.com> From-SVN: r39607
2001-02-09* java/util/Timer.java: New version from Classpath.Tom Tromey2-429/+496
From-SVN: r39573
2001-02-09Double.java (doubleToRawLongBits): Now native.Bryce McKinlay5-17/+27
* java/lang/Double.java (doubleToRawLongBits): Now native. * java/lang/Float.java (floatToRawIntBits): Likewise. * java/lang/natDouble.cc (doubleToRawLongBits): New method. * java/lang/natFloat.cc (floatToRawIntBits): Likewise. From-SVN: r39572
2001-02-09File.java (java.net): Imported.Alexandre Petit-Bianco2-0/+23
2001-02-09 Alexandre Petit-Bianco <apbianco@redhat.com> * java/io/File.java (java.net): Imported. (getAbsoluteFile): Added. (getCanonicalPath): Likewise. (toURL): Likewise. (http://gcc.gnu.org/ml/java-patches/2001-q1/msg00208.html) From-SVN: r39562
2001-02-09OutputStreamWriter.java: (flush, writeChars): Throw IOException if stream ↵Bryce McKinlay2-1/+10
closed. * java/io/OutputStreamWriter.java: (flush, writeChars): Throw IOException if stream closed. From-SVN: r39559
2001-02-09Byte.java: Remove redundant instanceof and null checks.Bryce McKinlay7-51/+50
* java/lang/Byte.java: Remove redundant instanceof and null checks. * java/lang/Integer.java: Likewise. * java/lang/Long.java: Likewise. * java/lang/Short.java: Likewise. * java/lang/Double.java: Likewise. (doubleToRawLongBits): New method. * java/lang/Float.java: As above. (floatToRawIntBits): New method. From-SVN: r39556
2001-02-09* java/lang/Float.java (parseFloat): New method.Tom Tromey2-1/+13
From-SVN: r39555
2001-02-09re PR libgcj/1913 (reading closed streams throws NullPointerException, not ↵Tom Tromey2-1/+16
IOException) From paul@dawa.demon.co.uk. Fix for PR libgcj/1913: * java/io/InputStreamReader.java (ready, read): Throw IOException if stream has been closed. From-SVN: r39553
2001-02-08mauve.exp: Added support for XFAILs.Warren Levy3-5/+45
* libjava.mauve/mauve.exp: Added support for XFAILs. * libjava.mauve/xfails: New file. From-SVN: r39536
2001-02-08gcj.texi: Change sources.redhat.com reference to gcc.gnu.org.Joseph Myers5-5/+11
gcc/java/: * gcj.texi: Change sources.redhat.com reference to gcc.gnu.org. libffi/: * include/ffi.h.in: Change sourceware.cygnus.com references to gcc.gnu.org. libjava/: * README, gij.cc, java/lang/natClass.cc, java/lang/natSystem.cc: Change sources.redhat.com and sourceware.cygnus.com references to gcc.gnu.org. From-SVN: r39531
2001-02-07re PR libgcj/1906 (difference between gcj and jdk for MessageFormat)Tom Tromey2-25/+26
Fix for PR libgcj/1906: * java/text/MessageFormat.java (setLocale): Use named class literals. (forName): Removed. (format(Object,StringBuffer,FieldPosition)): Special case if argument is an Object[]. From-SVN: r39529
2001-02-07re PR java/1895 (Libjava: Arrays.sort doesn't work)Bryce McKinlay2-89/+65
* java/util/Arrays.java: Removed "cmp" methods. (qsort): Don't use "cmp". (med3): Likewise. 2001-02-07 Mark Benvenuto <mcb54@columbia.edu> * java/util/Arrays.java (qsort): Handle N value of 7 with insertion sort. Fix for PR java/1895. From-SVN: r39514
2001-02-05configure.host: Use sjlj-exceptions for Alpha.Jeff Sturm2-0/+5
2000-02-03 Jeff Sturm <jeff.sturm@commerceone.com> * configure.host: Use sjlj-exceptions for Alpha. From-SVN: r39450
2001-02-05Make-lang.in (jvspec.o): Add DRIVER_DEFINES to the list of macros used when ↵Bryce McKinlay4-311/+290
compiling jvspec.c. gcc/java: * Make-lang.in (jvspec.o): Add DRIVER_DEFINES to the list of macros used when compiling jvspec.c. * jvspec.c (lang_specific_driver): Link with the shared libgcc by default. libjava: * libgcj.spec.in: Don't force static libgcc into the executable. * configure.in (FORCELIBGCCSPEC): Removed. From-SVN: r39449
2001-01-31Makefile.in: Rebuilt.Tom Tromey3-1/+13
* Makefile.in: Rebuilt. * Makefile.am (LTCXXCOMPILE): New macro. From-SVN: r39379
2001-01-302001-01-26 Andrew Haley <aph@redhat.com>Andrew Haley2-2/+20
(INIT_FPE): Use a direct system call to set the handler. From-SVN: r39354
2001-01-27configure.in (target_makefile_frag): Use mt-alphaieee.Richard Henderson2-0/+5
* configure.in (target_makefile_frag) [alpha*-*]: Use mt-alphaieee. * mt-alphaieee: New file. * config/alpha/t-ieee: Remove multilibbing. (TARGET_LIBGCC2_CFLAGS): Add -mieee. * configure.host (alpha*-*) [libgcj_flags]: Add -mieee. From-SVN: r39309
2001-01-27jni.cc (_Jv_JNIFunctions): Added comment for each entry in native interface ↵Tom Tromey2-230/+236
structure. * jni.cc (_Jv_JNIFunctions): Added comment for each entry in native interface structure. From-SVN: r39298
2001-01-27ObjectInputStream.java (read): AND byte with 0xff to make result unsigned.Bryce McKinlay3-15/+53
* java/io/ObjectInputStream.java (read): AND byte with 0xff to make result unsigned. (read (byte[], int, int)): Only call readNextBlock() if the block buffer would actually be overrun. Increment blockDataPosition. (callReadMethod): Propagate exceptions from invocation target. * java/io/ObjectOutputStream.java (callWriteMethod): Propagate exceptions from invocation target. From-SVN: r39293
2001-01-26jni.cc (_Jv_JNI_GetAnyMethodID): Rewrite signature from external to internal ↵Tom Tromey2-10/+21
representation. * jni.cc (_Jv_JNI_GetAnyMethodID): Rewrite signature from external to internal representation. (_Jv_JNI_GetAnyFieldID): Likewise. Also, only use _Jv_FindClassFromSignature. From-SVN: r39289
2001-01-26* libjava.jni/martin.c (Java_martin_myNative): Flush stdout.Tom Tromey2-0/+3
From-SVN: r39287
2001-01-26martin.out: New file.Tom Tromey4-0/+72
* libjava.jni/martin.out: New file. * libjava.jni/martin.c: New file. * libjava.jni/martin.java: New file. From-SVN: r39286
2001-01-26natSystem.cc (getSystemTimeZone): Only use tm_gmtoff and timezone if they ↵Warren Levy2-2/+20
are available on the system. * java/lang/natSystem.cc (getSystemTimeZone): Only use tm_gmtoff and timezone if they are available on the system. From-SVN: r39283
2001-01-25* java/lang/sf_fabs.c: Use uint32_t, not __uint32_t.Tom Tromey2-1/+5
From-SVN: r39269
2001-01-24Makefile.in: Rebuilt.Tom Tromey4-14/+68
* Makefile.in: Rebuilt. * Makefile.am (c_source_files): Added sf_fabs.c. * java/lang/sf_fabs.c: New file. From-SVN: r39238
2001-01-20SimpleDateFormat.java (format): Compute hour for cases HOUR_OF_DAY1_FIELD ↵Warren Levy2-7/+12
(1-24)... * java/text/SimpleDateFormat.java (format): Compute hour for cases HOUR_OF_DAY1_FIELD (1-24), HOUR1_FIELD (1-12), and HOUR0_FIELD (0-11) correctly. Adjust properly from 0-23 clock hour. Fixes failure in Mauve test java.text.SimpleDateFormat.Test (format). From-SVN: r39147
2001-01-18* java/bean/Beans.java (instantiate): enable Applet code from ClasspathMark Wielaard2-11/+13
From-SVN: r39105
2001-01-17Class.h (isInterface): Move implementation from natClass.cc.Bryce McKinlay4-13/+22
* java/lang/Class.h (isInterface): Move implementation from natClass.cc. Declare inline. (Class): Add default constructor. * java/lang/Object.h: Update comments. * java/lang/natClass.cc (initializeClass): Use _Jv_InitClass to initialize superclass, saving a call if super is already initialized. From-SVN: r39091
2001-01-17prims.cc (init_prim_class): Deleted.Alexandre Petit-Bianco4-72/+34
2001-01-16 Alexandre Petit-Bianco <apbianco@cygnus.com> * prims.cc (init_prim_class): Deleted. (DECLARE_PRIM_TYPE): Rewritten. * java/lang/Class.h (stdio.h): Include removed. (stddef.h): Included. (java/lang/reflect/Modifier.h): Likewise. (Class): Contructor now takes arguments, initializes fields. (initializePrim): Prototype deleted. * java/lang/natClass.cc (initializePrim): Deleted. (http://sources.redhat.com/ml/java-patches/2001-q1/msg00081.html) From-SVN: r39088
2001-01-16libjava.exp (bytecompile_file): Don't unset CLASSPATH.Richard Henderson2-3/+7
* lib/libjava.exp (bytecompile_file): Don't unset CLASSPATH. (libjava_arguments): Use .jar extension for libgcj. From-SVN: r39085
2001-01-17* java/math/BigInteger.java: Update Copyright year.Warren Levy2-1/+5
From-SVN: r39082
2001-01-17BigInteger.java (setShiftRight): Only do negative shift if count != 0.Hans Boehm2-4/+11
2001-01-16 Hans Boehm <hans_boehm@hp.com> * java/math/BigInteger.java (setShiftRight): Only do negative shift if count != 0. From-SVN: r39080
2001-01-15All files with updated copyright.Alexandre Petit-Bianco6-73/+121
2001-01-07 Alexandre Petit-Bianco <apbianco@cygnus.com> All files with updated copyright. * prims.cc (class _Jv_PrimClass): Removed. (init_prim_class): New function. (DECLARE_PRIM_TYPE): Rewritten. `java::lang::Class' replaces `_Jv_PrimClass' in primitive type declarations. Assign to the value returned by `init_prim_class.' * gcj/array.h: `java::lang::Class' replaces `_Jv_PrimClass' in primitive type declarations. (JvPrimClass): Cast to `jclass' removed. * java/lang/Class.h (Class): New constructor. (Class): New copy constructor. (initializePrim): New prototype. (_Jv_PrimClass): Field removed. * java/lang/Object.h (struct _JvObjectPrefix): New virtuals nacd_1 and nacd_2 (for compatibility with the new C++ ABI.) (class java::lang::Object): `finalize' moved up front. * java/lang/natClass.cc (isAssignableFrom): Turned outline. (isInstance): Likewise. (isInterface): Likewise, fixed indentation. (initializePrim): New function. (New C++ ABI compatibility patch: http://sources.redhat.com/ml/java-patches/2001-q1/msg00065.html) From-SVN: r39032
2001-01-15URLDecoder.java: Thanks Edgar Villanueva (edgarvil@home.com)Mark Wielaard2-21/+60
* java/net/URLDecoder.java: Thanks Edgar Villanueva (edgarvil@home.com) (decode): Merge comments with Classpath, don't throw Exception From-SVN: r39030
2001-01-13Removed bogus ChangeLog entryTom Tromey1-5/+0
From-SVN: r38969
2001-01-12natGtkComponentPeer.cc (getLocationOnScreen): Wrote.Tom Tromey7-11/+309
* gnu/awt/gtk/natGtkComponentPeer.cc (getLocationOnScreen): Wrote. (setCursor): Wrote. Include Cursor.h. * gnu/awt/gtk/natGtkLabelPeer.cc: New file. * gnu/awt/gtk/natGtkButtonPeer.cc: New file. * gnu/awt/gtk/gtkcommon.h (class _Jv_GdkThreadLock): New class. * gnu/awt/gtk/GtkLabelPeer.java: New file. * gnu/awt/gtk/GtkButtonPeer.java: New file. From-SVN: r38967
2001-01-12natSystem.cc: Include locale.h if it exists.Tom Tromey6-300/+341
* java/lang/natSystem.cc: Include locale.h if it exists. * configure: Rebuilt. * configure.in: Check for locale.h. From-SVN: r38957
2001-01-11Cursor.java (Cursor(String)): Set type to custom.Tom Tromey2-3/+16
* java/awt/Cursor.java (Cursor(String)): Set type to custom. (Cursor(int), getPredefinedCursor): Throw exception if argument invalid. From-SVN: r38911
2001-01-11Makefile.am: Re-enable dependencies.Bryce McKinlay3-57/+623
* Makefile.am: Re-enable dependencies. * Makefile.in: Rebuilt. From-SVN: r38890
2001-01-10* java/math/BigDecimal.java (divide): Fixed comment.Warren Levy2-1/+5
From-SVN: r38862
2001-01-10re PR libgcj/1596 (setScale() missing from java.math.BigDecimal)Warren Levy2-6/+36
Fix for PR libgcj/1596: * java/math/BigDecimal.java (divide): Check newScale for validity. Ensure that BigInteger.pow() is called with a non-negative value. (setScale (int)): New public method. (setScale (int,int)): New public method. From-SVN: r38861
2001-01-09re PR libgcj/1338 (StreamTokenizer does not handle /* comments correctly)Oskar Liljeblad2-49/+55
2001-01-09 Oskar Liljeblad <osk@hem.passagen.se> Fix for PR libgcj/1338: * java/io/StreamTokenizer.java (nextToken): Handle // and /* before commentChar. Fixed typos in comments. From-SVN: r38830
2001-01-09re PR libgcj/1411 (natTimeZone.cc should be removed)Warren Levy10-146/+242
Fix for PR libgcj/1411: * Makefile.am: Removed java/util/natTimeZone.cc. * Makefile.in: Rebuilt. * gnu/gcj/text/LocaleData_en_US.java (zoneStringsDefault): Added missing localized timezone names. * java/lang/System.java (getDefaultTimeZoneId): New private method. * java/lang/natSystem.cc (getSystemTimeZone): New private method. (init_properties): Set user.timezone property. * java/text/DateFormatSymbols.java (zoneStringsDefault): Added default timezone names; removed non-standard ones. Use standard ID names per JCL. * java/util/Date.java (toGMTString): Removed zoneGMT variable. (UTC): Ditto. * java/util/TimeZone.java: Add standard ID names per JCL; removed non-standard ones. (getDefaultTimeZoneId): Removed. (zoneGMT): Removed. (getDefaultTimeZoneId): Removed. * java/util/natTimeZone.cc: Removed. From-SVN: r38816
2001-01-08In gcc/java:Bryce McKinlay8-93/+166
* class.c (make_class_data): Push initial value for "arrayclass". * decl.c (init_decl_processing): Add new class field "arrayclass". In libjava: * java/lang/Class.h (_Jv_InitClass): Use __builtin_expect. (_Jv_NewArrayClass): Renamed from _Jv_FindArrayClass. (_Jv_GetArrayClass): New inline function. (arrayclass): New field. * prims.cc (_Jv_NewObjectArray): Use _Jv_GetArrayClass. Don't use _Jv_GetArrayElementFromElementType. (_Jv_NewPrimArray): Ditto. (_Jv_PrimClass constructor): Initialize "depth", "ancestors", and "idt" for completeness. Initialze "arrayclass" using _Jv_NewArrayClass. Set Modifier::ABSTRACT. * java/lang/natClassLoader.cc (_Jv_NewClass): Initialize "arrayclass". (_Jv_NewArrayClass): Renamed from _Jv_FindArrayClass. Now void. Now synchronized. Array classes are now referenced from elementClass->arrayclass. Don't use _Jv_FindClassInCache. Set array classes' accessibility flags correctly. Optimize so that all array classes share the same IDT. * java/lang/reflect/natArray.cc (newInstance): Use _Jv_GetArrayClass. * java/lang/reflect/natMethod.cc (_Jv_GetTypesFromSignature): Ditto. * java/lang/natClass.cc (_getFields): Increment offset. Prevent fields in superclasses from overwriting classes own fields. (_Jv_IsAssignableFrom): Check for NULL source idt instead of calling Modifier::isAbstract(). (null_idt): New static field. (_Jv_PrepareConstantTimeTables): Optimize case where class implements no interfaces. (_Jv_IndexOf): Made inline. * boehm.cc (_Jv_MarkObj): Mark "arrayclass" field. From-SVN: r38808
2001-01-08re PR java/1586 (linux build problem for libjava - cpplib (?))Tom Tromey3-617/+61
Fix for PR java/1586: * Makefile.in: Rebuilt. * Makefile.am (AUTOMAKE_OPTIONS): Added no-dependencies. From-SVN: r38807
2001-01-08Makefile.am: Use the new "-M -MF" option for generating dependencies from ↵Bryce McKinlay3-3/+9
the c++ compiler. * Makefile.am: Use the new "-M -MF" option for generating dependencies from the c++ compiler. * Makefile.in: Rebuilt. From-SVN: r38794
2001-01-08* libjava.compile/SuperConstr.java: New test case.Bryce McKinlay2-0/+24
From-SVN: r38793
2001-01-08001-01-07 Anthony Green <green@redhat.com>Anthony Green27-2/+18487
* Makefile.am (texinfo): Add texinfo target for generating texinfo documentation. * Makefile.in: Rebuilt. * scripts/TexinfoDoclet.java: New file. * doc/java-applet.texi, doc/java-lang-reflect.texi, doc/java-awt-color.texi, doc/java-lang.texi, doc/java-awt-datatransfer.texi, doc/java-math.texi, doc/java-awt-event.texi, doc/java-net.texi, doc/java-awt-geom.texi, doc/java-security-spec.texi, doc/java-awt-image.texi, doc/java-security.texi, doc/java-awt-peer.texi, doc/java-sql.texi, doc/java-awt.texi, doc/java-text.texi, doc/java-beans-beancontext.texi, doc/java-util-jar.texi, doc/java-beans.texi, doc/java-util-zip.texi, doc/java-io.texi, doc/java-util.texi, doc/java-lang-ref.texi: New files. From-SVN: r38789
2001-01-07Fix bug in URLConnection and correct javadoc annotations in StringBuffer.Anthony Green3-4/+9
From-SVN: r38781