aboutsummaryrefslogtreecommitdiff
path: root/libjava
AgeCommit message (Collapse)AuthorFilesLines
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
2001-01-06Fix comments for docletsAnthony Green8-14/+29
From-SVN: r38754
2001-01-05* java/io/PipedReader: Synchronize on "lock" instead of this.Bryce McKinlay2-119/+135
From-SVN: r38731
2001-01-05PipedInputStream: Rewrote to be simpler and more correct.Bryce McKinlay5-1240/+862
* java/io/PipedInputStream: Rewrote to be simpler and more correct. * java/io/PipedOutputStream: Updated to match new PipedInputStream. * java/io/PipedReader: New implementation based on new PipedInputStream. * java/io/PipedWriter: Updated to match new PipedOutputStream. From-SVN: r38708
2001-01-05* java/lang/Thread.java: Update comment.Bryce McKinlay2-6/+7
From-SVN: r38697
2001-01-03ScrollPane.java (setBlockIncrement): Throw error.Tom Tromey3-21/+21
* java/awt/ScrollPane.java (setBlockIncrement): Throw error. (getViewportSize): Insets include scrollbar size. (doLayout): Finished. (getScrollPosition): Wrote. * java/awt/peer/ScrollPanePeer.java (setBlockIncrement): Removed. From-SVN: r38670
2001-01-03ScrollPane.java: Wrote.Tom Tromey7-98/+547
* java/awt/ScrollPane.java: Wrote. * java/awt/peer/ScrollPanePeer.java (setBlockIncrement): New method. * java/awt/Panel.java (Panel()): Fixed. * java/awt/Component.java (isShowing): Return false if no peer exists, and true if component is visible and no parent exists. (getLocationOnScreen): Wrote. (getPreferredSize): Removed FIXME comment. (getMinimumSize): Likewise. (getAlignmentX, getAlignmentY): Wrote. (list): Wrote. (requestFocus): Wrote. (transferFocus): Wrote. (findNextFocusComponent): New method. (hasFocus()): Wrote. (checkImage): Wrote. (enableEvents): Call setEventMask on the peer. * java/awt/Container.java (list): Use super.list() to print self. (findNextFocusComponent): New method. (setLayout): Call invalidate. (findComponentAt): Wrote. From-SVN: r38639
2000-12-30Forgot these in last commit.Bryce McKinlay2-38/+27
From-SVN: r38558
2000-12-30For boehm-gc:Bryce McKinlay8-37/+82
* configure.in: Rename THREADLIB to THREADLIBS. * Makefile.am (LINK): Add $(THREADLIBS) to libtool command line. This ensures that we link the correct version of the linuxthreads semaphore functions. * Makefile.in: Rebuilt. * configure: Rebuilt. * linux_thread.c (GC_thr_init, GC_suspend_handler): Add SIGABRT to the list of signals which are not blocked during suspend in the NO_SIGNALS case. For libjava: * Makefile.am (libgcj_la_LIBADD): Add $(THREADLIBS). This ensures that the correct versions of various linuxthreads functions get linked. * Makefile.in: Rebuilt. * java/lang/natThread.cc (finalize_native): New static function. Call _Jv_ThreadDestroyData. (initialize_native): Register finalizer for "data". * include/posix-threads.h (_Jv_ThreadInitData): New simpler prototype. (_Jv_ThreadDestroyData): New prototype. * include/win32-threads.h: Ditto. * include/no-threads.h: Ditto. * posix-threads.cc (_Jv_ThreadInitData): Implement new prototype. (_Jv_ThreadDestroyData): New function. Free native thread "data" and move mutex and condition variable destroy code from: (really_start): ...here. (_Jv_ThreadStart): Set PTHREAD_CREATE_DETACHED. * win32-threads.cc (_Jv_ThreadInitData): Implement new prototype. (_Jv_ThreadDestroyData): Implemented. * nogc.cc (_Jv_AllocObject): Use "void *" not "ptr_t". (_Jv_AllocArray): Ditto. From-SVN: r38557
2000-12-28DriverManager.java (getConnection): Don't set user/password properties if null.Jeff Sturm2-2/+9
2000-12-27 Jeff Sturm <jeff.sturm@commerceone.com> * java/sql/DriverManager.java (getConnection): Don't set user/password properties if null. From-SVN: r38516
2000-12-28re PR libgcj/1358 (java.util.Date.toString() doesn't seem to behave properly.)Warren Levy6-16/+30
Fix for PR libgcj/1358: * java/lang/System.java: Update Copyright date properly. * java/util/Calendar.java: Fix typo in comment. (set): Set 24-hour clock hour instead of 12-hour clock hour. * java/util/GregorianCalendar.java (GregorianCalendar): Properly initialize times. Spec says to set H:M:S values to zero only if a date is given. * java/util/TimeZone.java (getDefaultDisplayName): Casts to char needed for evaluating numbers '0' to '9' in printouts of GMT offsets. * java/util/natGregorianCalendar.cc (computeTime): Properly handle timezones and GMT offsets, being careful to account for units of milliseconds vs. seconds. From-SVN: r38508
2000-12-28re PR libgcj/1516 (Method.invoke won't accept boolean parameters)Bryce McKinlay2-34/+48
Fix for PR libgcj/1516: * java/lang/reflect/natMethod.cc (primitives): Remove void entry. Add boolean entry. (can_widen): Declared inline. Remove redundant checks for void arguments and char->short conversion. Add special case for boolean conversions. (ffi_type): Declared inline. (_Jv_CallAnyMethodA): Move unwrapping logic inside isPrimitive() block. From-SVN: r38506
2000-12-28natClass.cc (_Jv_IsAssignableFrom): Primitive TYPEs can not be assigned to ↵Bryce McKinlay1-2/+2
Object. * java/lang/natClass.cc (_Jv_IsAssignableFrom): Primitive TYPEs can not be assigned to Object. From-SVN: r38505
2000-12-27SQLWarning.java: Fixed typo in comment.Petter Reinholdtsen2-1/+5
2000-12-26 Petter Reinholdtsen <pere@hungry.com> * java/sql/SQLWarning.java: Fixed typo in comment. From-SVN: r38493
2000-12-26MenuItem.java (paramString): Now protected.Tom Tromey6-27/+425
* java/awt/MenuItem.java (paramString): Now protected. * java/awt/MenuShortcut.java: Implements Serializable. * java/awt/MenuBar.java: Rewrote from scratch. * java/awt/MenuComponent.java (removeNotify): Wrote. Implements Serializable. * java/awt/GridBagConstraints.java (GridBagConstraints): New constructor. * java/awt/CheckboxMenuItem.java: Wrote. From-SVN: r38488
2000-12-26MenuContainer.java: Fixed typo.Tom Tromey21-74/+851
* java/awt/MenuContainer.java: Fixed typo. * Makefile.in: Rebuilt. * Makefile.am (awt_java_source_files): Added SystemColor.java. * java/awt/SystemColor.java: New file. * java/awt/Color.java (rgba): Now package-private. * java/awt/event/InputEvent.java (isAltGraphDown): New method. * java/awt/event/ContainerEvent.java (getContainer): Renamed from getComponent. * java/awt/MenuItem.java (addNotify): New method. (MenuItem(String,MenuShortcut)): New constructor. (setLabel): Notify peer of change. (setEnabled): Likewise. * java/awt/GridLayout.java (toString): New method. * java/awt/FlowLayout.java (LEADING, TRAILING): New constants. (FlowLayout): Check for LEADING and TRAILING. (setAlignment): Likewise. (layoutContainer): Handle component orientation. * java/awt/Component.java (orientatin): New field. (setComponentOrientation): Wrote. (getComponentOrientation): Wrote. * java/awt/Event.java (Event): Implements Serializable. (consumed): New field for serialization. * java/awt/Dimension.java (Dimension): Implements Serializable. * java/awt/Cursor.java (Cursor): Implements Serializable. * java/awt/Container.java (Container): No longer abstract. * java/awt/Choice.java: Wrote. * java/awt/Checkbox.java: Wrote. * java/awt/ItemSelectable.java: Documented. * java/awt/CheckboxGroup.java: Wrote. * java/awt/CardLayout.java (layoutContainer): Directly use fields in other classes. (getSize): Likewise. From-SVN: r38486
2000-12-26FileDescriptor.java: Initialize fd to -1.Jeff Sturm2-7/+11
2000-12-24 Jeff Sturm <jeff.sturm@commerceone.com> * java/io/FileDescriptor.java: Initialize fd to -1. Remove default constructor. From-SVN: r38485
2000-12-23* java/lang/mprec.h: Change C9X reference to refer to C99.Joseph Myers2-1/+5
From-SVN: r38481
2000-12-22Throwable.java (trace_enabled): New static field.Bryce McKinlay4-0/+18
* java/lang/Throwable.java (trace_enabled): New static field. * java/lang/natThrowable.cc (fillInStackTrace): Do nothing if trace_enabled not set. * prims.cc (main_init): Turn off trace_enabled while creating default exception objects. From-SVN: r38442
2000-12-21PropertyChangeListener.java: Extends EventListener.Tom Tromey3-14/+24
* java/beans/PropertyChangeListener.java: Extends EventListener. * java/beans/VetoableChangeListener.java: Extends EventListener. From-SVN: r38421
2000-12-21* java/util/zip/Deflater.java (update, init): Now private.Tom Tromey2-2/+6
From-SVN: r38420
2000-12-21BasicMapEntry.java: Re-added.Bryce McKinlay6-125/+173
* java/util/BasicMapEntry.java: Re-added. * java/util/HashMap.java (Entry): Extend BasicMapEntry. (putAll): Test for BasicMapEntry. * java/util/Hashtable.java (Entry): Extend BasicMapEntry. (putAll): Test for BasicMapEntry. Change references from `HashMap.Entry' to `Entry' in various places. * Makefile.am: Add BasicMapEntry.java. * Makefile.in: Rebuilt. From-SVN: r38410
2000-12-19GregorianCalendar.java (GregorianCalendar): Constructors need to set ↵Warren Levy2-3/+9
timezone to a valid non-null value. * java/util/GregorianCalendar.java (GregorianCalendar): Constructors need to set timezone to a valid non-null value. Partial fix for PR 331. From-SVN: r38375
2000-12-18mauve.exp (test_mauve): Don't look for exceptions thrown in the test harness.Tom Tromey2-22/+6
* libjava.mauve/mauve.exp (test_mauve): Don't look for exceptions thrown in the test harness. (test_mauve_sim): Likewise. From-SVN: r38368
2000-12-18Removed additional addNotify() peer hacks.Bryce McKinlay6-9/+13
From-SVN: r38367
2000-12-18Window.java (addNotify): Remove peer casting hack now that gcj/312 is fixed.Bryce McKinlay2-2/+6
* java/awt/Window.java (addNotify): Remove peer casting hack now that gcj/312 is fixed. From-SVN: r38364
2000-12-18COPYING: Update to current ftp://ftp.gnu.org/pub/gnu/Licenses/COPYING-2.0 ↵Joseph Myers2-3/+9
(fixes... * COPYING: Update to current ftp://ftp.gnu.org/pub/gnu/Licenses/COPYING-2.0 (fixes references to 19yy as example year in copyright notice). From-SVN: r38340
2000-12-18natInflater.cc (inflate): Treat Z_BUF_ERROR as end-of-stream if avail_in is 0.Bryce McKinlay2-5/+15
* java/util/zip/natInflater.cc (inflate): Treat Z_BUF_ERROR as end-of-stream if avail_in is 0. From-SVN: r38338
2000-12-17ArrayList.java (data): Declare transient.Bryce McKinlay2-14/+13
* java/util/ArrayList.java (data): Declare transient. (serialPersistantFields): Removed. (readObject): Use defaultReadObject(), not readFields(). (writeObject): Use defaultWriteObject(), not writeFields(). From-SVN: r38328
2000-12-17Hashtable.java (put): Remove `last' variable.Jeff Sturm3-22/+20
2000-12-17 Jeff Sturm <jeff.sturm@commerceone.com> * java/util/Hashtable.java (put): Remove `last' variable. Link new entry to head of list. * java/util/HashMap.java (put): Ditto. From-SVN: r38325
2000-12-16libjava.exp (test_libjava_from_javac): Strange quoting trick for `.class' ↵Tom Tromey8-201/+30
link case. * lib/libjava.exp (test_libjava_from_javac): Strange quoting trick for `.class' link case. (bytecompile_file): Change directory outside of `catch'. * libjava.lang/Thread_1.java: Removed. * libjava.lang/Thread_1.out: Likewise. * libjava.lang/N19990310_4.xfail: New file. * libjava.lang/stub.xfail: Added new failure modes. * libjava.lang/stringconst.xfail: New file. * libjava.lang/PR162.xfail: New file. * libjava.lang/Final.xfail: Removed. From-SVN: r38311
2000-12-16* libjava.lang/instinit.out: Removed erroneous line.Tom Tromey2-1/+2
From-SVN: r38299
2000-12-16* libjava.lang/Thread_1.out: Expect `0' active count.Tom Tromey2-1/+3
From-SVN: r38298
2000-12-16stub.xfail: New file.Tom Tromey10-10/+27
* libjava.lang/stub.xfail: New file. * libjava.lang/pr83.xfail: New file. * libjava.lang/err8.xfail: New file. * libjava.lang/err7.xfail: New file. * libjava.lang/Shazam.xfail: New file. * libjava.lang/err11.xfail: New file. * libjava.lang/instinit2.java: Renamed class to `instinit2'. * libjava.lang/anon3.out: Fixed typo. * libjava.lang/Class_1.java (main): Uncommented out previously failing code; now it works From-SVN: r38297
2000-12-16libjava.compile test fixes.Tom Tromey15-25/+90
* lib/libjava.exp (libjava_tcompile): New proc. (test_libjava_from_source): Use it. (test_libjava_from_javac): Likewise. (find_javac): New proc. (bytecompile_file): Use it. (test_libjava_from_javac): Handle `xfail-gcjC' tag. If no-exec set, then don't link even if program has a `main'. * libjava.compile/static_3.xfail: New file. * libjava.compile/weirddecl.xfail: New file. * libjava.compile/static_2.xfail: New file. * libjava.compile/not_a_redef.xfail: New file. * libjava.compile/inner_1.xfail: New file. * libjava.compile/assignment_2.xfail: New file. * libjava.compile/assignment.xfail: New file. * libjava.compile/abstr.xfail: New file. * libjava.compile/PR375.xfail: New file. * libjava.compile/PR374.java: New file. * libjava.compile/PR238.xfail: New file. * libjava.compile/PR208.xfail: New file. * libjava.compile/PR207.xfail: New file. From-SVN: r38296
2000-12-15ResourceBundle.java (trySomeGetBundle): Pass class loader to Class.forName.Tom Tromey2-1/+8
* java/util/ResourceBundle.java (trySomeGetBundle): Pass class loader to Class.forName. From-SVN: r38289