aboutsummaryrefslogtreecommitdiff
path: root/libjava/java
AgeCommit message (Collapse)AuthorFilesLines
2003-10-13File.java: Reformated.Michael Koch1-93/+98
2003-10-13 Michael Koch <konqueror@gmx.de> * java/io/File.java: Reformated. (equals): Check for obj == null. From-SVN: r72421
2003-10-132003-10-13 Michael Koch <konqueror@gmx.de>Michael Koch2-30/+46
* java/net/JarURLConnection.java (jarFileURL): Added dcoumentation. (jarFileURLConnection): Reformated documentation. (entryName): Renamed from "element", documentation rewritten. (connectionCache): Renamed from "conn_cache", documentation reformated. (JarURLConnection): Check URL protocol. (getEntryName): Use entryName. (connect): Use connectionCache. (getInputStream): Use entryName, fixed comment. (getJarEntry): Use entryName. (getHeaders): Use entryName. * java/net/URLConnection.java (addRequestProperty): Fixed documentation. (setDefaultRequestProptery): Added comment that it does nothing since JDK 1.3. (getDefaultRequestProperty): Likewise. From-SVN: r72420
2003-10-132003-10-13 Michael Koch <konqueror@gmx.de>Michael Koch5-5/+5
* java/net/java/net/URLStreamHandlerFactory.java (createURLStreamHandler): Removed redundant "public" modifier. * java/sql/DatabaseMetaData.java: (DatabaseMetaData): Readded accidently removed "public" modifier. * java/sql/ParameterMetaData.java: (ParameterMetaData): Readded accidently removed "public" modifier. * java/sql/PreparedStatement.java: (PreparedStatement): Readded accidently removed "public" modifier. * java/sql/Ref.java: (Ref): Readded accidently removed "public" modifier. From-SVN: r72419
2003-10-132003-10-13 Michael Koch <konqueror@gmx.de>Michael Koch2-3/+8
* java/nio/Buffer.java (hasRemaining): Made implementation more clear. * java/nio/MappedByteBuffer.java (loaded): New member variable. (force): Added comment. (isLoaded): Return value of loaded. (load): Set loaded to true, added comment. From-SVN: r72418
2003-10-122003-10-12 Michael Koch <konqueror@gmx.de>Michael Koch1-6/+25
* gnu/java/nio/PipeImpl.java (SourceChannelImpl): New inner class. (SinkChannelImpl): New inner class. (sink): New member variable. (source): New member variable. (PipeImpl): Add SelectorProvider argument, implemented. (nativeInit): New method. (sink): Return sink channel. (source): Return source channel. * gnu/java/nio/SelectorProviderImpl.java (openPipe): Give provider as argument to PipeImpl constructor. * java/nio/channels/spi/SelectorProvider.java (pr): Removed. (systemDefaultProvider): New member variable. (provider): Made it synchronized, use property java.nio.channels.spi.SelectorProvider. * gnu/java/nio/natPipeImpl.cc: New file. * Makefile.am (nat_source_files): Added gnu/java/nio/natPipeImpl.cc. * Makefile.in: Regenerated. From-SVN: r72397
2003-10-112003-10-11 Michael Koch <konqueror@gmx.de>Michael Koch18-55/+60
* java/security/Key.java, * java/security/PrivateKey.java, * java/security/PublicKey.java, * java/security/acl/Acl.java, * java/security/acl/AclEntry.java, * java/security/acl/Group.java, * java/security/acl/Owner.java, * java/security/acl/Permission.java, * java/security/cert/X509Extension.java, * java/security/interfaces/DSAKey.java, * java/security/interfaces/DSAKeyPairGenerator.java, * java/security/interfaces/DSAParams.java, * java/security/interfaces/DSAPrivateKey.java, * java/security/interfaces/DSAPublicKey.java, * java/security/interfaces/RSAKey.java, * java/security/interfaces/RSAPrivateCrtKey.java, * java/security/interfaces/RSAPrivateKey.java, * java/security/interfaces/RSAPublicKey.java: Removed redundant modifiers. From-SVN: r72360
2003-10-11Map.java, [...]: Removed redundant modifiers.Michael Koch4-79/+79
2003-10-11 Michael Koch <konqueror@gmx.de> * java/util/Map.java, java/util/Observer.java, java/util/zip/Checksum.java, java/util/zip/ZipConstants.java: Removed redundant modifiers. From-SVN: r72358
2003-10-11AttributedCharacterIterator.java, [...]: Removed redundant modifiers.Michael Koch2-93/+25
2003-10-11 Michael Koch <konqueror@gmx.de> * java/text/AttributedCharacterIterator.java, java/text/CharacterIterator.java: Removed redundant modifiers. From-SVN: r72357
2003-10-11Array.java, [...]: Removed redundant modifiers.Michael Koch18-702/+702
2003-10-11 Michael Koch <konqueror@gmx.de> * java/sql/Array.java, java/sql/Blob.java, java/sql/CallableStatement.java, java/sql/Clob.java, java/sql/Connection.java, java/sql/DatabaseMetaData.java, java/sql/Driver.java, java/sql/ParameterMetaData.java, java/sql/PreparedStatement.java, java/sql/Ref.java, java/sql/ResultSet.java, java/sql/ResultSetMetaData.java, java/sql/SQLData.java, java/sql/SQLInput.java, java/sql/SQLOutput.java, java/sql/Savepoint.java, java/sql/Statement.java, java/sql/Struct.java: Removed redundant modifiers. From-SVN: r72356
2003-10-11Channel.java, [...]: Removed redundant modifiers.Michael Koch5-8/+8
2003-10-11 Michael Koch <konqueror@gmx.de> * java/nio/channels/Channel.java, java/nio/channels/GatheringByteChannel.java, java/nio/channels/ReadableByteChannel.java, java/nio/channels/ScatteringByteChannel.java, java/nio/channels/WritableByteChannel.java: Removed redundant modifiers. From-SVN: r72355
2003-10-11ActivationInstantiator.java, [...]: Removed redundant modifiers.Michael Koch16-80/+96
2003-10-11 Michael Koch <konqueror@gmx.de> * java/rmi/activation/ActivationInstantiator.java, java/rmi/activation/ActivationMonitor.java, java/rmi/activation/ActivationSystem.java, java/rmi/activation/Activator.java, java/rmi/dgc/DGC.java, java/rmi/registry/Registry.java, java/rmi/registry/RegistryHandler.java, java/rmi/server/LoaderHandler.java, java/rmi/server/RMIClientSocketFactory.java, java/rmi/server/RMIFailureHandler.java, java/rmi/server/RMIServerSocketFactory.java, java/rmi/server/RemoteCall.java, java/rmi/server/RemoteRef.java, java/rmi/server/ServerRef.java, java/rmi/server/Skeleton.java, java/rmi/server/Unreferenced.java: Removed redundant modifiers. From-SVN: r72354
2003-10-11ContentHandlerFactory.java, [...]: Removed redundant modifiers.Michael Koch5-18/+19
2003-10-11 Michael Koch <konqueror@gmx.de> * java/net/ContentHandlerFactory.java, java/net/DatagramSocketImplFactory.java, java/net/FileNameMap.java, java/net/SocketImplFactory.java, java/net/SocketOptions.java, java/net/URLStreamHandlerFactory.java: Removed redundant modifiers. From-SVN: r72353
2003-10-11Externalizable.java, [...]: Removed redundant modifiers.Michael Koch9-68/+61
2003-10-11 Michael Koch <konqueror@gmx.de> * java/io/Externalizable.java, java/io/FileFilter.java, java/io/FilePermission.java, java/io/ObjectInput.java, java/io/ObjectInputValidation.java, java/io/ObjectOutput.java, java/io/ObjectStreamClass.java, java/io/ObjectStreamConstants.java, java/io/Serializable.java: Removed redundant modifiers. From-SVN: r72352
2003-10-11RMIClassLoader.java: Identify cached classloaders by codebase and context ↵Ingo Proetel1-5/+68
classloader. 2003-10-11 Ingo Proetel <proetel@aicas.com> * java/rmi/server/RMIClassLoader.java: Identify cached classloaders by codebase and context classloader. From-SVN: r72351
2003-10-11BeanContext.java, [...]: Removed redundant modifiers.Michael Koch12-35/+33
2003-10-11 Michael Koch <konqueror@gmx.de> * java/beans/beancontext/BeanContext.java, java/beans/beancontext/BeanContextChild.java, java/beans/beancontext/BeanContextChildComponentProxy.java, java/beans/beancontext/BeanContextChildSupport.java, java/beans/beancontext/BeanContextContainerProxy.java, java/beans/beancontext/BeanContextMembershipListener.java, java/beans/beancontext/BeanContextProxy.java, java/beans/beancontext/BeanContextServiceProvider.java, java/beans/beancontext/BeanContextServiceProviderBeanInfo.java, java/beans/beancontext/BeanContextServiceRevokedListener.java, java/beans/beancontext/BeanContextServices.java, java/beans/beancontext/BeanContextServicesListener.java: Removed redundant modifiers. From-SVN: r72350
2003-10-11AppletInitializer.java, [...]: Removed redundant modifiers.Michael Koch6-36/+36
2003-10-11 Michael Koch <konqueror@gmx.de> * java/beans/AppletInitializer.java, java/beans/BeanInfo.java, java/beans/Customizer.java, java/beans/DesignMode.java, java/beans/PropertyEditor.java, java/beans/Visibility.java: Removed redundant modifiers. From-SVN: r72349
2003-10-112003-10-11 Michael Koch <konqueror@gmx.de>Michael Koch3-8/+8
* java/awt/print/Pageable.java, * java/awt/print/Printable.java, java/awt/print/PrinterGraphics.java: Removed redundant modifiers. From-SVN: r72348
2003-10-11ButtonPeer.java, [...]: Removed redundant modifiers.Michael Koch23-152/+178
2003-10-11 Michael Koch <konqueror@gmx.de> * java/awt/peer/ButtonPeer.java, java/awt/peer/CheckboxMenuItemPeer.java, java/awt/peer/CheckboxPeer.java, java/awt/peer/ChoicePeer.java, java/awt/peer/ComponentPeer.java, java/awt/peer/ContainerPeer.java, java/awt/peer/DialogPeer.java, java/awt/peer/FileDialogPeer.java, java/awt/peer/FramePeer.java, java/awt/peer/LabelPeer.java, java/awt/peer/ListPeer.java, java/awt/peer/MenuBarPeer.java, java/awt/peer/MenuComponentPeer.java, java/awt/peer/MenuItemPeer.java, java/awt/peer/MenuPeer.java, java/awt/peer/PopupMenuPeer.java, java/awt/peer/RobotPeer.java, java/awt/peer/ScrollPanePeer.java, java/awt/peer/ScrollbarPeer.java, java/awt/peer/TextAreaPeer.java, java/awt/peer/TextComponentPeer.java, java/awt/peer/TextFieldPeer.java, java/awt/peer/WindowPeer.java: Removed redundant modifiers. From-SVN: r72347
2003-10-11NIOSocket.java (setChannel): Initialize impl.Michael Koch1-1/+11
2003-10-11 Michael Koch <konqueror@gmx.de> * gnu/java/nio/NIOSocket.java (setChannel): Initialize impl. * gnu/java/nio/ServerSocketChannelImpl.java (serverSocket): Made it a NIOServerSocket. (impl): Removed. (ServerSocketChannelImpl): Initialize only serverSocket. (initServerSocket): Removed. (getNativeFD): Rewritten. (implConfigureBlocking): Set socket timeout and removed comment. (accept): Rewritten. * gnu/java/nio/SocketChannelImpl.java (impl): New variable. (connected): Removed. (SocketChannelImpl): Initialize impl too. (getImpl): New method. (isConnected): Rewritten. (read): Rewritten, set position in buffer correctly. (write): Set position in buffer correctly. * java/net/ServerSocket.java (getImpl): New method. * gnu/java/nio/NIOServerSocket.java, gnu/java/nio/natNIOServerSocket.cc: New files. * gnu/java/nio/natServerSocketChannelImpl.cc: Removed. * Makefile.am (ordinary_java_source_files): Added gnu/java/nio/NIOServerSocket.java. (nat_source_files): Removed gnu/java/nio/natServerSocketChannelImpl.cc and added gnu/java/nio/natNIOServerSocket.cc. * Makefile.in: Regenerated. From-SVN: r72345
2003-10-112003-10-11 Michael Koch <konqueror@gmx.de>Michael Koch17-92/+99
* java/awt/ActiveEvent.java * java/awt/datatransfer/ClipboardOwner.java * java/awt/datatransfer/FlavorMap.java * java/awt/datatransfer/Transferable.java * java/awt/dnd/Autoscroll.java * java/awt/dnd/peer/DragSourceContextPeer.java * java/awt/dnd/peer/DropTargetContextPeer.java * java/awt/dnd/peer/DropTargetPeer.java * java/awt/font/MultipleMaster.java * java/awt/font/OpenType.java * java/awt/im/spi/InputMethodDescriptor.java * java/awt/image/ImageObserver.java * java/awt/image/ImageConsumer.java * java/awt/image/ImageProducer.java * java/awt/image/RGBImageFilter.java * java/awt/image/RasterOp.java * java/awt/image/renderable/RenderableImage.java From-SVN: r72341
2003-10-092003-10-09 Michael Koch <konqueror@gmx.de>Michael Koch3-49/+56
* java/nio/channels/spi/AbstractSelectableChannel.java (registered): Made private. (blocking): Likewise. (LOCK): Likewise. (provider): Likewise. (keys): Made it a private LinkedList. (AbstractSelectableChannel): Initialize keys. (isRegistered): New implementation. (locate): Rewritten. (register): Rewritten. * java/nio/channels/spi/AbstractSelectionKey.java (ok): Removed. (cancelled): New member variable. (cancel): Rewritten. (isValid): Rewritten. * java/nio/channels/spi/AbstractSelector.java: Some methods moved. (closed): Make private. (provider): Likewise. (cancelledKeys): New member variable. (AbstractSelector): Initialize cancelledKeys. (cancelKey): New method. From-SVN: r72275
2003-10-09ClassLoader.java (setSigners): Implemented.Tom Tromey5-6/+22
* java/lang/ClassLoader.java (setSigners): Implemented. * boehm.cc (_Jv_MarkObj): Mark `signers' field. * java/lang/natClassLoader.cc (_Jv_InitNewClassFields): Initialize new fields. * java/lang/Class.java (getSigners): Now native. (setSigners): Declare. * java/lang/natClass.cc (getSigners): New method. (getSigners): Likewise. * java/lang/Class.h (Class::signers): New field. (Class::setSigners): New method. From-SVN: r72271
2003-10-09RMIClassLoader.java: Removed unused imports, little reformatings.Michael Koch1-59/+95
2003-10-09 Michael Koch <konqueror@gmx.de> * java/rmi/server/RMIClassLoader.java: Removed unused imports, little reformatings. (getClassLoader): New method, implementation was part of old loadCLass method. (loadClass): Simplified by moving functionality to new method and reworking the code a bit. (getClassAnnotation): Merged documentation from classpath. From-SVN: r72267
2003-10-092003-10-09 Michael Koch <konqueror@gmx.de>Michael Koch1-1/+0
* java/math/BigInteger.java (add): Removed unused local variable len. From-SVN: r72263
2003-10-09GtkButtonPeer.java (handleEvent): Remove modality check.Thomas Fitzsimmons1-7/+27
2003-10-08 Thomas Fitzsimmons <fitzsim@redhat.com> * gnu/java/awt/peer/gtk/GtkButtonPeer.java (handleEvent): Remove modality check. * gnu/java/awt/peer/gtk/GtkDialogPeer.java (initializeInsets): Initialize insets to use latest insets. * gnu/java/awt/peer/gtk/GtkFramePeer.java: Likewise. * gnu/java/awt/peer/gtk/GtkWindowPeer.java (latestInsets): New field. (postConfigureEvent): Update latestInsets field when insets change. Remove call to setSize. Move validate call outside of if blocks. (setVisible): Call setBounds before showing window. (nativeSetVisible): New native method. * java/awt/Window.java (show): Show visible owned windows. (hide): Hide visible owned windows. * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkEvents.c (awt_event_handler): Implement modality using GTK grabs. * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkMainThread.c (global_gtk_window_group): New global variable. (gtkInit): Initialize global_gtk_window_group. * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkWindowPeer.c (create): Clamp width and height values to at least 1. Add this window to the global GTK window group. (setVisible): Rename to nativeSetVisible. (setup_window): Remove function. (setSize): Clamp width and height values to at least 1. (nativeSetBounds): Likewise. (gdk_window_get_root_geometry): Remove function. * jni/gtk-peer/gtkpeer.h: Remove gdk_window_get_root_geometry and setup_window declarations. Declare global_gtk_window_group. From-SVN: r72252
2003-10-082003-10-08 Thomas Fitzsimmons <fitzsim@redhat.com>Thomas Fitzsimmons1-2/+2
* gnu/java/awt/peer/gtk/GtkButtonPeer.java, jni/gtk-peer/gnu_java_awt_peer_gtk_GtkButtonPeer.c (gtkSetFont): Handle BOLD and ITALIC style specifiers. (gtkWidgetSetForeground): New method. * gnu/java/awt/peer/gtk/GtkComponentPeer.java, jni/gtk-peer/gnu_java_awt_peer_gtk_GtkComponentPeer.c (gtkWidgetSetBackground, gtkWidgetSetForeground): New methods. (setBackground, setForeground): Implement. * gnu/java/awt/peer/gtk/GtkTextAreaPeer.java, jni/gtk-peer/gnu_java_awt_peer_gtk_GtkTextAreaPeer.c (gtkSetFont): Handle BOLD and ITALIC style specifiers. * gnu/java/awt/peer/gtk/GtkTextFieldPeer.java, jni/gtk-peer/gnu_java_awt_peer_gtk_GtkTextFieldPeer.c: Likewise. * jni/gtk-peer/gnu_java_awt_peer_gtk_GdkGraphics.c (drawString): Position PangoLayout relative to text's baseline. * jni/gtk-peer/gtkpeer.h: Define AWT font style constants. * java/awt/FlowLayout.java (layoutContainer): Fix offset problem for CENTER and RIGHT alignments. From-SVN: r72246
2003-10-08Security.java: Reformated.Michael Koch1-20/+23
2003-10-08 Michael Koch <konqueror@gmx.de> * java/security/Security.java: Reformated. From-SVN: r72240
2003-10-082003-10-08 Michael Koch <konqueror@gmx.de>Michael Koch1-1/+2
* java/text/SimpleDateFormat.java (compileFormat): Replace Character.isLetter() test with Character.isLowerCase() || Character.isUpperCase(). From-SVN: r72239
2003-10-08StrictMath.java (toDegrees): Multiply before dividing.Tom Tromey2-4/+10
* java/lang/StrictMath.java (toDegrees): Multiply before dividing. (toRadians): Likewise. 2003-10-08 C. Brian Jones <cbj@gnu.org> * java/lang/Math.java (toRadians): multiply before dividing to reduce decimal error (toDegrees): ditto From-SVN: r72238
2003-10-08Connection.java, [...]: Moved to gnu/java/net/protocol.Michael Koch1-4/+4
2003-10-08 Michael Koch <konqueror@gmx.de> * gnu/gcj/protocol/core/Connection.java, gnu/gcj/protocol/core/CoreInputStream.java, gnu/gcj/protocol/core/Handler.java, gnu/gcj/protocol/core/natCoreInputStream.cc, gnu/gcj/protocol/file/Connection.java, gnu/gcj/protocol/file/Handler.java, gnu/gcj/protocol/gcjlib/Connection.java, gnu/gcj/protocol/gcjlib/Handler.java, gnu/gcj/protocol/http/Connection.java, gnu/gcj/protocol/http/Handler.java, gnu/gcj/protocol/jar/Connection.java, gnu/gcj/protocol/jar/Handler.java: Moved to gnu/java/net/protocol. * gnu/java/net/protocol/core/Connection.java, gnu/java/net/protocol/core/CoreInputStream.java, gnu/java/net/protocol/core/Handler.java, gnu/java/net/protocol/core/natCoreInputStream.cc, gnu/java/net/protocol/file/Connection.java, gnu/java/net/protocol/file/Handler.java, gnu/java/net/protocol/gcjlib/Connection.java, gnu/java/net/protocol/gcjlib/Handler.java, gnu/java/net/protocol/http/Connection.java, gnu/java/net/protocol/http/Handler.java, gnu/java/net/protocol/jar/Connection.java, gnu/java/net/protocol/jar/Handler.java: Moved from gnu/gcj/protocol. * gnu/gcj/runtime/FirstThread.java, java/net/URL.java: Use moved protocol handlers. * Makefile.am (ordinary_java_source_files): Moved files. (nat_source_files): Likewise. * Makefile.in: Regenerated. From-SVN: r72233
2003-10-08LinkedList.java: Removed whitespace to match classpath's version again.Michael Koch1-1/+1
2003-10-08 Michael Koch <konqueror@gmx.de> * java/util/LinkedList.java: Removed whitespace to match classpath's version again. From-SVN: r72230
2003-10-082003-10-08 Michael Koch <konqueror@gmx.de>Michael Koch1-10/+15
* java/util/prefs/Preferences.java (defaultFactoryClass): Fixed class name. (getFactory): Create instance of class returned by Class.forName(), reformated code. From-SVN: r72229
2003-10-022003-10-02 Guilhem Lavaux <guilhem@kaffe.org>Guilhem Lavaux2-13/+28
* java/net/InetSocketAddress.java (InetSocketAddress): Made exception more clear. (equals): Handle case when addr is null. (toString): Likewise. * java/net/NetworkInterface.java (static): Load native library. (getNetworkInterfaces): Rewritten. From-SVN: r72047
2003-10-02GtkComponentPeer.java (insets): New field.Thomas Fitzsimmons1-0/+25
2003-10-02 Thomas Fitzsimmons <fitzsim@redhat.com> * gnu/java/awt/peer/gtk/GtkComponentPeer.java (insets): New field. (initializeInsets): New method. (GtkComponentPeer): Call initializeInsets. Call setCursor and setBounds unconditionally. (setBounds): Convert coordinates if parent is a Window. * gnu/java/awt/peer/gtk/GtkContainerPeer.java (insets): Move field to GtkComponentPeer. (GtkContainerPeer): Don't initialize insets. * gnu/java/awt/peer/gtk/GtkDialogPeer.java (initializeInsets): New method. (create): Call new GtkWindowPeer create method. * gnu/java/awt/peer/gtk/GtkFramePeer.java (initializeInsets): New method. (create): Call new GtkWindowPeer create method. (setBounds): Remove method. (postConfigureEvent): Likewise. * gnu/java/awt/peer/gtk/GtkWindowPeer.java: Replace GTK window type constants with GDK window type constants. (create(int,boolean,int,int,GtkWindowPeer)): New method. (create(int,boolean)): Likewise. (create()): Call create(int,boolean). (nativeSetBounds): New native method declaration. (setBounds): Call native method declaration. (setSize): New native method declaration. (setBoundsCallback): Likewise. (postConfigureEvent): Handle change in insets. Call setSize and setBoundsCallback methods. * java/awt/Window.java (Window): Set visible to false. (setBoundsCallback): New method. * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkComponentPeer.c (gtkWidgetGetLocationOnScreen): If this component is not a container, adjust the location returned based on the peer's allocation. (set(String,boolean)): Revert change from 2003-09-19. * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkEvents.c (awt_event_handler): Fix inset calculation. * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkMainThread.c: Add JNI glue for Window.setBoundsCallback. * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkWindowPeer.c (create): Set up stacking order, window decorations and window manager hints. (setBoundsCallback): New method. (setSize): New method. (nativeSetBounds): New method. * jni/gtk-peer/gtkpeer.h: Declare setBoundsCallbackID. From-SVN: r72043
2003-10-02VMClassLoader.java (loadClass): Now native.Tom Tromey2-8/+13
* java/lang/VMClassLoader.java (loadClass): Now native. * java/lang/natClassLoader.cc (loadClass): Implement. * prims.cc (_Jv_RunMain): Initialize ClassLoader. From-SVN: r72038
2003-10-022003-10-02 Michael Koch <konqueror@gmx.de>Michael Koch3-18/+45
* 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 Koch1-156/+112
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 Koch1-7/+13
* 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-01jcf-parse.c (java_parse_file): Write otable and atable.Andrew Haley3-50/+222
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 Tromey2-26/+95
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 Koch1-13/+52
* 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 Koch1-168/+168
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 Koch2-51/+59
2003-09-29 Michael Koch <konqueror@gmx.de> * java/net/InetAddress.java, java/net/URL.java: Reformated. From-SVN: r71897
2003-09-28DateFormat.java (format): Throw IllegalArgumentException if j' is not a ↵Bryce McKinlay2-23/+25
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 McKinlay1-12/+10
* java/text/SimpleDateFormat (parse): Revert patch of 2003-09-25. Don't call setTimeZone on calendar. From-SVN: r71870
2003-09-27URL.java (getURLStreamHandler): Compile fixes.Michael Koch1-2/+7
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 Koch1-21/+32
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-26RMIClassLoader.java: Reformatted file, no functional code changes.Michael Koch1-47/+61
2003-09-26 Michael Koch <konqueror@gmx.de> * java/rmi/server/RMIClassLoader.java: Reformatted file, no functional code changes. From-SVN: r71831