aboutsummaryrefslogtreecommitdiff
path: root/libjava
AgeCommit message (Collapse)AuthorFilesLines
2003-10-022003-10-02 Michael Koch <konqueror@gmx.de>Michael Koch4-18/+60
* java/net/InetAddress.java (zeros): Removed. (ANY_IF): Initalizie in static block. (static): Load library with native methods here and initialize ANY_IF. (isAnyLocalAddress): Check if equal to ANY_IF. (equals): Use addr directly instead of addr1. Simplify for loop. (toString): Rename "result" to "host" and add IP address allways. (getLocalHost): Merged documentation from classpath. * java/net/ServerSocket.java (ServerSocket): New package-private constructor used by java.nio. * java/net/URLConnection.java (getRequestProperties): Check if already connected. From-SVN: r72032
2003-10-02ByteBufferHelper.java: Rewrote all methods by suggestions from Eric Blake.Michael Koch2-156/+117
2003-10-02 Michael Koch <konqueror@gmx.de> * java/nio/ByteBufferHelper.java: Rewrote all methods by suggestions from Eric Blake. From-SVN: r72030
2003-10-02Fixed a little mistake that got into last commit.Michael Koch1-1/+1
From-SVN: r72025
2003-10-022003-10-02 Michael Koch <konqueror@gmx.de>Michael Koch2-7/+21
* java/net/URL.java (DEFAULT_SEARCH_PATH): New static variable. (ph_cache): Made it a HashMap. (getURLStreamHandler): Rename propVal to ph_search_path and use DEFAULT_SEARCH_PATH. From-SVN: r72023
2003-10-022003-10-02 Michael Koch <konqueror@gmx.de>Michael Koch2-260/+303
* javax/swing/table/AbstractTableModel.java (findColumnName): Prevent from NullPointerException if argument columnName is null. 2003-10-02 Michael Koch <konqueror@gmx.de> * javax/swing/table/AbstractTableModel.java: This patch is based on a patch done by Arnaud Vandyck <arnaud.vandyck@ulg.ac.be>. (getColumnName): Fixed method documentation. (findColumn): Likewise. (getColumnClass): Likewise. (isCellEditable): Likewise. (setValueAt): Likewise. (addTableModelListener): Likewise. (removeTableModelListener): Likewise. (getTableModelListeners): New method. 2003-10-02 Michael Koch <konqueror@gmx.de> * javax/swing/table/AbstractTableModel.java: Reformated. From-SVN: r72019
2003-10-02re PR libgcj/12475 (Stack traces leak memory)Bryce McKinlay3-1/+13
Fix PR libgcj/12475 * gnu/gcj/runtime/StackTrace.java (finalize): Declare. * gnu/gcj/runtime/natStackTrace.cc (finalize): New. Free "addrs". From-SVN: r72012
2003-10-01* gnu/gcj/runtime/FirstThread.java (getMain): Fixed indentation.Tom Tromey2-14/+17
From-SVN: r71998
2003-10-01jcf-parse.c (java_parse_file): Write otable and atable.Andrew Haley6-55/+241
2003-10-01 Andrew Haley <aph@redhat.com> * jcf-parse.c (java_parse_file): Write otable and atable. * java-tree.h (atable_methods): New. (atable_decl): New. (atable_syms_decl): New. (enum java_tree_index): Add JTI_ATABLE_METHODS, JTI_ATABLE_DECL, JTI_ATABLE_SYMS_DECL. Rename JTI_METHOD_SYMBOL* to JTI_SYMBOL*. (symbol_*type): Rename method_symbol* to symbol*type. (emit_offset_symbol_table): Delete. (emit_symbol_table): New. (get_symbol_table_index): New. (atable_type): New. * expr.c (build_field_ref): Handle flag_indirect_dispatch. (build_known_method_ref): Likewise. (get_symbol_table_index): Rename from get_offset_table_index. Parameterize to allow re-use by differing types of symbol table. (build_invokevirtual): Pass table to get_offset_table_index. * decl.c (java_init_decl_processing): Push types and decls for atable and atable_syyms. * class.c (build_static_field_ref): Handle flag_indirect_dispatch. (make_class_data): Add new fields atable and atable_syms. (emit_symbol_table): Rename from emit_offset_symbol_table. Parameterize to allow re-use by different types of symbol table. (build_symbol_entry): Renamed from build_method_symbols_entry. 2003-10-01 Andrew Haley <aph@redhat.com> * java/lang/natClass.cc (initializeClass): Check for otable and atable. (_Jv_LinkOffsetTable): Check for existence of atable. Rewrite loops using for(). Search superinterfaces. Check for fields as well as methods. Initialize atable as well as otable: check for static methods as well as virtual methods. * java/lang/Class.h (struct _Jv_AddressTable): New. (atable): New. (atable_syms): New. * include/jvm.h (_Jv_equalUtf8Consts): constify. * prims.cc (_Jv_equalUtf8Consts): constify. From-SVN: r71979
2003-09-29re PR libgcj/10596 (Reference and String.intern don't work together)Tom Tromey4-26/+116
PR libgcj/10596: * include/jvm.h (_Jv_FinalizeString, _Jv_RegisterStringFinalizer): Declare. * java/lang/natString.cc (_Jv_FinalizeString): Renamed from unintern. (intern): Updated. (_Jv_NewStringUtf8Const): Likewise. * java/lang/ref/natReference.cc (finalize_referred_to_object): Add special case when finalizing a String. (in_hash): New function. (_Jv_RegisterStringFinalizer): Likewise. (maybe_add_finalize): Likewise. From-SVN: r71915
2003-09-29Fixed little typo.Michael Koch1-1/+1
From-SVN: r71900
2003-09-292003-09-29 Michael Koch <konqueror@gmx.de>Michael Koch2-13/+66
* java/net/InetAddress.java: (isMulticastAddress): Dont use local variable to store address length. Let the compiler optimize this. (getHostName): Merged dcoumentation from classpath. (getAddress): Likewise. (getHostAddress): Likewise. (hashCode): Likewise. (equals): Likewise. (toString): Likewise. (getByName): Likewise. (getAllByName): Likewise. From-SVN: r71899
2003-09-29IndexColorModel.java: Reformated.Michael Koch2-168/+172
2003-09-29 Michael Koch <konqueror@gmx.de> * java/awt/image/IndexColorModel.java: Reformated. From-SVN: r71898
2003-09-29InetAddress.java, URL.java: Reformated.Michael Koch3-51/+64
2003-09-29 Michael Koch <konqueror@gmx.de> * java/net/InetAddress.java, java/net/URL.java: Reformated. From-SVN: r71897
2003-09-29boehm.cc (_Jv_BuildGCDescr): Put first word of object in most significant ↵Bryce McKinlay2-5/+18
bit of descriptor. * boehm.cc (_Jv_BuildGCDescr): Put first word of object in most significant bit of descriptor. Include the vtable and sync_info fields. From-SVN: r71895
2003-09-28DateFormat.java (format): Throw IllegalArgumentException if j' is not a ↵Bryce McKinlay3-24/+33
Number or Date instance. * java/text/DateFormat.java (format): Throw IllegalArgumentException if j' is not a Number or Date instance. * java/text/SimpleDateFormat.java (tokens): Make it an ArrayList instead of Vector. From-SVN: r71871
2003-09-28SimpleDateFormat (parse): Revert patch of 2003-09-25.Bryce McKinlay2-12/+15
* java/text/SimpleDateFormat (parse): Revert patch of 2003-09-25. Don't call setTimeZone on calendar. From-SVN: r71870
2003-09-27* libjava.jacks/jacks.xfail: Updated for new passes.Tom Tromey2-23/+4
From-SVN: r71863
2003-09-27URL.java (getURLStreamHandler): Compile fixes.Michael Koch2-2/+11
2003-09-27 Michael Koch <konqueror@gmx.de> * java/net/URL.java (getURLStreamHandler): Compile fixes. From-SVN: r71853
2003-09-27URL.java (getURLStreamHandler): Check if we have to use cache before trying ↵Michael Koch2-21/+39
to retrieve handler from cache. 2003-09-27 Michael Koch <konqueror@gmx.de> * java/net/URL.java (getURLStreamHandler): Check if we have to use cache before trying to retrieve handler from cache. Rename facName to clsName to match classpath more. Reformated some little pieces. From-SVN: r71852
2003-09-26re PR java/12426 (gcj allows access to private members from superclass)Michael Koch2-1/+8
2003-09-27 Michael Koch <konqueror@gmx.de> * gnu/java/nio/SelectionKeyImpl.java (ch): Make package-private again. Jikes found this bug. Jeff Sturm submitted PR12426 for this to bugzilla to fix this bug in gcj. From-SVN: r71841
2003-09-26RMIClassLoader.java: Reformatted file, no functional code changes.Michael Koch2-47/+66
2003-09-26 Michael Koch <konqueror@gmx.de> * java/rmi/server/RMIClassLoader.java: Reformatted file, no functional code changes. From-SVN: r71831
2003-09-26[multiple changes]Michael Koch3-141/+162
2003-09-26 Sascha Brawer <brawer@dandelis.ch> * java/awt/image/SinglePixelPackedSampleModel.java (createDataBuffer): Save space for some pixels at the buffer end. Added Javadoc. 2003-09-26 Tom Tromey <tromey@redhat.com> * java/io/ObjectOutputStream.java (writeFields): Fixed indentation. (putFields): Likewise. From-SVN: r71829
2003-09-26ByteBufferHelper.java: Totally reworked with help from Eric Blake.Michael Koch2-229/+82
2003-09-26 Michael Koch <konqueror@gmx.de> * java/nio/ByteBufferHelper.java: Totally reworked with help from Eric Blake. From-SVN: r71823
2003-09-26RoundRectangle2D.java (getPathIterator): Wrote.Tom Tromey3-7/+167
* java/awt/geom/RoundRectangle2D.java (getPathIterator): Wrote. * java/awt/geom/PathIterator.java: Documentation fixes. From-SVN: r71820
2003-09-26Fix build failure.Jeff Sturm2-6/+12
* gnu/java/nio/SelectorImpl.java (getFDsAsArray): Use getNativeFD(). (select): Likewise. (register): Use DatagramChannelSelectionKey, SocketChannelSelectionKey. From-SVN: r71812
2003-09-252003-09-25 Michael Koch <konqueror@gmx.de>Michael Koch8-4/+154
* gnu/java/nio/DatagramChannelImpl.java (getNativeFD): New method. * gnu/java/nio/SelectionKeyImpl.java (SelectionKeyImpl): Class made abstract. (fd): Removed. (SelectionKeyImpl): Remove fd argument. (getNativeFD): New method. * gnu/java/nio/SocketChannelImpl.java (getNativeFD): New method. gnu/java/nio/DatagramChannelSelectionKey.java, * gnu/java/nio/SocketChannelSelectionKey.java: New files. * Makefile.am (ordinary_java_source_files): Added new files gnu/java/nio/DatagramChannelSelectionKey.java and gnu/java/nio/SocketChannelSelectionKey.java. * Makefile.in: Regenerated. From-SVN: r71797
2003-09-252003-09-25 Michael Koch <konqueror@gmx.de>Michael Koch2-12/+8
* java/lang/reflect/Proxy.java (getProxyClass): Remove workaround for gcj 3.0.x. From-SVN: r71796
2003-09-252003-09-25 Michael Koch <konqueror@gmx.de>Michael Koch3-10/+28
* gnu/java/net/PlainDatagramSocketImpl.java (finalize): Moved to directly after constructor. (getNativeFD): New method. * gnu/java/net/PlainSocketImpl.java (getNativeFD): New method. From-SVN: r71792
2003-09-25ObjectOutputStream.java: Allow putFields be called more than once.Ingo Proetel2-13/+24
2003-09-25 Ingo Proetel <proetel@aicas.com> * java/io/ObjectOutputStream.java: Allow putFields be called more than once. From-SVN: r71791
2003-09-25Really commit the files.Sascha Brawer3-8/+28
From-SVN: r71790
2003-09-25Raster.java (Raster): Interpret null origin as (0,0).Sascha Brawer1-0/+6
2003-09-25 Sascha Brawer <brawer@dandelis.ch> * java/awt/image/Raster.java(Raster): Interpret null origin as (0,0). * java/awt/image/WritableRaster.java(WritableRaster): Likewise. * java/awt/image/BufferedImage.java (toString): Implement. From-SVN: r71789
2003-09-25aclocal.m4: Rebuilt.Jeff Sturm3-233/+292
* aclocal.m4: Rebuilt. * configure: Rebuilt. From-SVN: r71788
2003-09-25SimpleDateFormat.java (parse): Don't use class calendar field.Guilhem Lavaux2-11/+17
2003-09-25 Guilhem Lavaux <guilhem@kaffe.org> * java/text/SimpleDateFormat.java (parse): Don't use class calendar field. From-SVN: r71782
2003-09-252003-09-25 Michael Koch <konqueror@gmx.de>Michael Koch3-10/+19
* gnu/java/nio/SelectorImpl.java (implSelect): Renamed from java_do_select. (select): Call native implSelect() and add support for Thread interruption. * gnu/java/nio/natSelectorImpl.cc (implSelect): Renamed from java_do_select. From-SVN: r71781
2003-09-252003-09-25 Michael Koch <konqueror@gmx.de>Michael Koch3-68/+42
* gnu/java/nio/SelectorImpl.java (selectNow): Made final, throws IOException. (select): Likewise. (getFDsAsArray): Made final. (selectedKeys): Likewise. (wakeup): Likewise. (deregisterCancelledKeys): Likewise. (register): Likewise. (ass): Removed. (add_selected): Removed. * gnu/java/nio/natSelectorImpl.cc: No need to include bstring.h or gcj/cni.h. (helper_put_filedescriptors): Rewritten. (helper_get_filedescriptors): Rewritten. From-SVN: r71779
2003-09-25[multiple changes]Michael Koch5-4/+80
2003-09-25 Sascha Brawer <brawer@dandelis.ch> * java/awt/font/FontRenderContext.java (getTransform): Return copy of internal transform object. Add Javadoc. * java/awt/geom/Rectangle2D.java (getPathIterator): Use the same winding rule as Sun J2SE. * javax/swing/border/MatteBorder.java (MatteBorder(Icon)): Docfix. 2003-09-25 Ingo Proetel <proetel@aicas.com> * java/rmi/Naming.java: Added comments, now accepts pseudo protocol "rmi". From-SVN: r71777
2003-09-25DecimalFormat.java (format): Don't immediatly round baseNumber to long.Guilhem Lavaux2-5/+14
2003-09-25 Guilhem Lavaux <guilhem@kaffe.org> * java/text/DecimalFormat.java (format): Don't immediatly round baseNumber to long. (setMinimumIntegerDigits): Call super. (setMinimumFractionDigits): Likewise. (setMaximumIntegerDigits): Likewise. (setMaximumFractionDigits): Likewise. From-SVN: r71773
2003-09-252003-09-25 Michael Koch <konqueror@gmx.de>Michael Koch8-85/+439
* gnu/java/nio/DatagramChannelImpl.java (DatagramChannelImpl): Made class final. (blocking): Made private. (socket): Made it a NIODatagramSocket and private. (DatagramChannelImpl): create NIODatagramSocket instead of DatagramSocket. (implConfigureBlocking): Set socket timeout. (connect): Check that channel is not closed. (write): Implemented. (write): Rewritten. (read): Implemented. (read): Rewritten. (receive): Implemented. (send): Implemented. * gnu/java/nio/SelectionKeyImpl.java (readyOps): Made private. (interestOps): Made private. (impl): Made private. (ch): Made private. (readyOps): Check if selection key is valid. (interestOps): Likewise. * gnu/java/nio/SelectorImpl.java (closed): Removed. (keys): Made private. (selected): Made private. (finalize): New method. (implCloseSelector): Rewritten. (keys): Return unmodifiable Set. (deregisterCancelledKeys): Fixed typo in method name. * gnu/java/nio/SocketChannelImpl.java (SocketChannelImpl): Made class final. (socket): Made it a NIOSocket and private. (blocking): Made private. (connected): Made private. (connectionPending): New member variable. (SocketChannelImpl): New implementation. (finalizer): Use isConnected(). (connect): Rewritten. (finishConnect): Throws IOException, implemented. (isConnectionPending): Return connectionPending. (read): Rewritten. (write): Rewritten. * gnu/java/nio/NIOConstants.java: New file. * Makefile.am (ordinary_java_source_files): Added gnu/java/nio/NIOConstants.java. * Makefile.in: Regenerated. From-SVN: r71769
2003-09-25InetAddress.java: Reorder imports, remove implementation comment.Michael Koch3-20/+32
2003-09-25 Michael Koch <konqueror@gmx.de> * java/net/InetAddress.java: Reorder imports, remove implementation comment. (isMulticastAddress): Merged documentation from classpath. * java/net/URLConnection.java (setRequestProperty): Check key for null, fix documentation. (adREquestProperty): Check key for null, remove wrong implementation and replace it with comment to overwrite this method in subclasses, fix documentation. From-SVN: r71767
2003-09-25Proxy.java (generate): Uncomment protection domain code.Tom Tromey11-690/+880
* java/lang/reflect/Proxy.java (generate): Uncomment protection domain code. * java/lang/natClassLoader.cc (defineClass): Added `loader' argument. (linkClass0): Now in VMClassLoader. (markClassErrorState0): Likewise. (getSystemClassLoaderInternal): New method. * java/lang/natClass.cc (initializeClass): Use VMClassLoader::resolveClass. * java/lang/ClassLoader.java: New version, from Classpath. * java/lang/Class.java (getProtectionDomain): protectionDomainPermission and unknownProtectionDomain now in VMClassLoader. * java/lang/Class.h: VMClassLoader now a friend class. * gnu/gcj/runtime/VMClassLoader.java (instance): Now package-private. * gcj/javaprims.h: Regenerated class list. * resolve.cc (_Jv_PrepareClass): Use VMClassLoader::resolveClass. * java/lang/VMClassLoader.java: New version from Classpath; modified for libgcj use. From-SVN: r71765
2003-09-25Forgot to add in last commit.Michael Koch2-3/+5
From-SVN: r71758
2003-09-25ByteBufferHelper.java: New file.Michael Koch5-395/+711
2003-09-25 Michael Koch <konqueror@gmx.de> * java/nio/ByteBufferHelper.java: New file. * java/nio/ByteBufferImpl.java, java/nio/DirectByteBufferImpl.java, java/nio/MappedByteBufferImpl.java (getType,putType): Use new helper class ByteBufferHelper. * Makefile.am (ordinary_java_source_files): Added java/nio/ByteBufferHelper.java. * Makefile.in: Regenerated. From-SVN: r71757
2003-09-25re PR libgcj/12388 (mingw32 target fails to build libjava)Bryce McKinlay2-0/+7
* gnu/java/net/natPlainSocketImplWin32.cc: Add missing #includes. PR libgcj/12388. From-SVN: r71750
2003-09-24StringBuffer.java (substring): Don't set `shared' on small Strings, even if ↵Bryce McKinlay2-4/+10
buffer is already shared. * java/lang/StringBuffer.java (substring): Don't set `shared' on small Strings, even if buffer is already shared. From-SVN: r71726
2003-09-24acinclude.m4 (AM_LC_LOCALES): Added check for locale.h.Michael Koch2-1/+6
2003-09-24 Michael Koch <konqueror@gmx.de> * acinclude.m4 (AM_LC_LOCALES): Added check for locale.h. From-SVN: r71725
2003-09-24PlainSocketImpl.java (read): Remove declaration.Bryce McKinlay9-457/+84
* gnu/java/net/PlainSocketImpl.java (read): Remove declaration. (write): Likewise. (SocketInputStream, SocketOutputStream): Declare `read' and `write' native. Remove implementations which called back into PlainSocketImpl. Remove unneccessary overridden methods. * gnu/java/net/natPlainSocketImplNoNet.cc (read): Move implementation to inner class PlainSocketImpl.SocketInputStream. (write): Likewise. * gnu/java/net/natPlainSocketImplPosix.cc: As above. * gnu/java/net/natPlainSocketImplWin32.cc: As above. * gnu/java/net/SocketInputStream.java: Remove unused file. * gnu/java/net/SocketOutputStream.java: Likewise. * Makefile.am: Build CNI headers for PlainSocketImpl.SocketInputStream and SocketOutputStream. * Makefile.in: Rebuilt. From-SVN: r71724
2003-09-24* java/lang/System.java: Add GCJ LOCAL note about encoding aliases.Nathanael Nerode2-0/+7
From-SVN: r71710
2003-09-23Float.java, [...]: Add GCJ LOCAL markers.Nathanael Nerode3-0/+17
* java/lang/Float.java, java/lang/Double.java: Add GCJ LOCAL markers. From-SVN: r71699
2003-09-22Another newlib fix.Anthony Green3-0/+10
From-SVN: r71655
2003-09-22re PR libgcj/12350 (StringBuffer.substring handles shared flag incorrected.)Ralph Loader5-2/+35
2003-09-21 Ralph Loader <suckfish@ihug.co.nz> PR java/12350: * java/lang/StringBuffer.java (substring): Fix handling of shared flag. 2003-09-21 Ralph Loader <suckfish@ihug.co.nz> PR java/12350 * libjava.lang/PR12350.java: New file. * libjava.lang/PR12350.out: New file. From-SVN: r71651