aboutsummaryrefslogtreecommitdiff
path: root/libjava
AgeCommit message (Collapse)AuthorFilesLines
2002-11-18CoderResult.java (Cache.get): Fix a bug that was causing CoderResults to be ↵Jesse Rosenstock2-1/+7
cached... 2002-11-18 Jesse Rosenstock <jmr@ugcs.caltech.edu> * java/nio/charset/CoderResult.java (Cache.get): Fix a bug that was causing CoderResults to be cached, not WeakReferences to CoderResults. From-SVN: r59233
2002-11-18KeyStore.java (getInstance): Fix comment and throw IllegalArgumentException ↵Joerg Brunsmann2-6/+46
if given provider is null. 2002-11-18 Joerg Brunsmann <joerg_brunsmann@yahoo.de> * java/security/KeyStore.java (getInstance): Fix comment and throw IllegalArgumentException if given provider is null. (getInstance): New method for jdk1.4 compatibility. From-SVN: r59226
2002-11-18PlainSocketImpl.java: Fix imports.Michael Koch2-0/+6
2002-11-18 Michael Koch <konqueror@gmx.de> * java/net/PlainSocketImpl.java: Fix imports. From-SVN: r59221
2002-11-182002-11-18 Michael Koch <konqueror@gmx.de>Michael Koch3-2/+11
* java/nio/channels/SelectionKey.java (isValid): Added exception documentation. * java/nio/channels/Selector.java (open): Declare "throws IOException". From-SVN: r59219
2002-11-182002-11-17 Jesse Rosenstock <jmr@ugcs.caltech.edu>Jesse Rosenstock2-9/+50
* java/nio/charset/Charset.java (<clinit>): New method. (encode): Synchronize use of cached encoder object. (decode): Synchronize use of cached encoder object. From-SVN: r59218
2002-11-18ByteBufferImpl.java, [...]: New files.Michael Koch22-0/+3899
2002-11-18 Michael Koch <konqueror@gmx.de> * gnu/java/nio/ByteBufferImpl.java, gnu/java/nio/CharBufferImpl.java, gnu/java/nio/DatagramChannelImpl.java, gnu/java/nio/DoubleBufferImpl.java, gnu/java/nio/FileChannelImpl.java, gnu/java/nio/FloatBufferImpl.java, gnu/java/nio/IntBufferImpl.java, gnu/java/nio/LongBufferImpl.java, gnu/java/nio/PipeImpl.java, gnu/java/nio/SelectionKeyImpl.java, gnu/java/nio/SelectorImpl.java, gnu/java/nio/SelectorProviderImpl.java, gnu/java/nio/ServerSocketChannelImpl.java, gnu/java/nio/ShortBufferImpl.java, gnu/java/nio/SocketChannelImpl.java, java/nio/DoubleBuffer.java, java/nio/FloatBuffer.java, java/nio/IntBuffer.java, java/nio/LongBuffer.java, java/nio/ShortBuffer.java, java/nio/channels/FileChannel.java: New files. From-SVN: r59216
2002-11-18Makefile.am (ordinary_java_source_files): Added ↵Michael Koch3-0/+13
java/nio/ReadOnlyBufferException.java and... 2002-11-18 Michael Koch <konqueror@gmx.de> * Makefile.am (ordinary_java_source_files): Added java/nio/ReadOnlyBufferException.java and java/nio/channels/ClosedSelectorException.java. * Makefile.in: Regenerated. From-SVN: r59215
2002-11-18PlainSocketImpl.java: Reworked imports.Michael Koch8-235/+389
2002-11-18 Michael Koch <konqueror@gmx.de> * java/net/PlainSocketImpl.java: Reworked imports. * java/net/ServerSocket.java (ServerSocket): Create socket. * java/net/SocketAddress.java: Documentation added. * java/net/natPlainSocketImpl.cc: Reindented. * java/nio/ReadOnlyBufferException.java: New file * java/nio/channels/ClosedChannelException.java: Documentation added. * java/nio/channels/ClosedSelectorException.java: New file. From-SVN: r59214
2002-11-17HttpURLConnection.java ((getPermission): Take port into consideration.Mark Wielaard2-5/+56
* java/net/HttpURLConnection.java ((getPermission): Take port into consideration. (getErrorStream): Implement. From-SVN: r59196
2002-11-17* java/net/HttpURLConnection.java: Merge with GNU Classpath.Mark Wielaard2-53/+327
From-SVN: r59195
2002-11-17Integrate work by Raif S.Mark Wielaard10-117/+350
Integrate work by Raif S. Naffah (raif@fl.net.au) * java/security/DummyKeyPairGenerator.java (clone): New method. * java/security/DummyMessageDigest.java (clone): New method. (engineUpdate): Now public. (engineReset): Likewise. (engineDigest): Likewise. (engineGetDigestLength): New method. * java/security/DummySignature.java (clone): New method. * java/security/KeyPairGenerator.java (provider): Now package private. (getInstance(String)): Use getInstance(String,Provider). (getInstance(String,String): Use getInstance(String,Provider) (getInstance(String,Provider): New method. (getInstance(String,String,Provider): Don't cast DummyKeyPairGenerator. * java/security/KeyPairGeneratorSpi.java (clone): New method. * java/security/MessageDigest.java (provider): Now package private. (getInstance(String): Use getInstance(String,Provider). (getInstance(String,String): Use getInstance(String,Provider) (getInstance(String,Provider): New method. * java/security/Provider.java (toCanonicalKey): New method. (get): New method that uses toCanonicalKey(). (put): Use toCanonicalKey(). (remove): Likewise. * java/security/Security.java (insertProviderAt): Provider index is one based, not zero based. (addProvider): Likewise. (removeProvider): Likewise. * java/security/Signature.java (provider): Now package private. (getInstance(String)): Use getInstance(String,Provider). (getInstance(String,String): Use getInstance(String,Provider) (getInstance(String,Provider): New method. (getInstance(String,String,Provider): Don't cast DummySignature. From-SVN: r59179
2002-11-16For PR libgcj/8593:Tom Tromey2-15/+28
* java/util/zip/GZIPInputStream.java (read): Check file size. Look in inflater for remaining input bytes. (read4): Added buf and offset arguments. From-SVN: r59145
2002-11-14AppletContext.java: Fix typo and remove redundant modifiers.Eric Blake2-4/+9
2002-11-12 Eric Blake <ebb9@email.byu.edu> * java/applet/AppletContext.java: Fix typo and remove redundant modifiers. From-SVN: r59112
2002-11-14natRuntime.cc (insertSystemProperties): Set gnu.classpath.home.Tom Tromey2-1/+7
* java/lang/natRuntime.cc (insertSystemProperties): Set gnu.classpath.home. From-SVN: r59108
2002-11-132002-11-13 Michael Koch <konqueror@gmx.de>Michael Koch2-0/+45
* java/nio/ByteBuffer.java (allocate): New method. (wrap): New method. (put): New method. (get): New method. From-SVN: r59082
2002-11-13AlreadyConnectedException.java: Removed unneeded import.Michael Koch10-134/+445
2002-11-13 Michael Koch <konqueror@gmx.de> * java/nio/channels/AlreadyConnectedException.java: Removed unneeded import. (AlreadyConnectedException): Documentation added. * java/nio/channels/Pipe.java (SinkChannel.SinkChannel): Documentation added. (SinkChannel.validOps): New method. (SourceChannel.SourceChannel): Documentation added. (SourceChannel.validOps): New method. (Pipe): Documentation added. (open): Documentation added. (SinkChannel.channel): Documentation added. (SourceChannel.channel): Documentation added. * java/nio/channel/SelectableChannel.java (SelectableChannel): Documentation added. (blockingLock): Documentation added. (configureBlocking):Documentation added. (isBlocking):Documentation added. (isRegistered):Documentation added. (keyFor):Documentation added. (provider):Documentation added. (register): Documentation added. (validOps): Documentation added. * jaba/nio/channels/SelectionKey.java (SelectionKey): Documentation added. (attach): Documentation added. (attachment): Documentation added. (isAcceptable): Documentation added. (isConnetable): Documentation added. (isReadable): Documentation added. (isWritable): Documentation added. (cancel): Documentation added. (channel): Documentation added. (interestOps): Documentation added. (isValid): Documentation added. (readyOps): Documentation added. (selector): Documentation added. * jaba/nio/channels/Selector.java (Selector): Documentation added. (open): Documentation added. (close): Documentation added. (isOpen): Documentation added. (keys): Documentation added. (provider): Documentation added. (select): Documentation added. (selectedKeys): Documentation added. (selectNow): Documentation added. (wakeup): Documentation added. * java/nio/channels/spi/AbstractInterruptibleChannel.java (AbstractInterruptibleChannel): Documentation added. (opened): Default to true; (begin): Documentation added. (close): Set opened to false, documentation added. (isOpen): Documentation added. * java/nio/channels/spi/AbstractSelectionKey.java (AbstractSelectionKey): Documentation added. (cancel): Documentation added. (isValid): Documentation added. * java/nio/channels/spi/AbstractSelector.java (AbstractSelector): Documentation added. (begin): Documentation added. (close): Documentation added. (isOpen): Documentation added. (deregister): Documentation added. (end): Documentation added. (provider): Documentation added. (implCloseSelector): Documentation added. (register): Documentation added. * java/nio/channels/spi/SelectorProvider.java (SelectorProvider): Documentation added. (openDatagramChannel): Documentation added. (openPipe): Documentation added. (openSelector): Documentation added. (openServerSocketChannel): Documentation added. (openSocketChannel): Documentation added. (provider): Documentation added. From-SVN: r59077
2002-11-13Buffer.java: Implemented.Michael Koch14-82/+2006
2002-11-13 Michael Koch <konqueror@gmx.de> * java/nio/Buffer.java: Implemented. * java/nio/CharBuffer.java: New file. * java/nio/InvalidMarkException.java: New file. * java/nio/channels/DatagramChannel.java: Implemented. * java/nio/channels/ServerSocketChannel.java: Implemented. * java/nio/channels/SocketChannel.java: Implemented. * java/nio/channels/spi/AbstractChannel.java: Removed. * java/nio/channels/spi/AbstractSelectableChannel.java: Implemented. * java/nio/charset/Charset.java: Merge from Classpath. * java/nio/charset/CharsetDecoder.java: New file. * java/nio/charset/CharsetEncoder.java: New file. * java/nio/charset/CoderResult.java: New file. * Makefile.am (ordinary_java_source_files): Added new files. * Makefile.in: Regenerated. From-SVN: r59075
2002-11-11ISO_8859_1.java, [...]: New files.Jesse Rosenstock10-0/+1245
2002-11-11 Jesse Rosenstock <jmr@ugcs.caltech.edu> * gnu/java/nio/charset/ISO_8859_1.java, gnu/java/nio/charset/Provider.java, gnu/java/nio/charset/US_ASCII.java, gnu/java/nio/charset/UTF_16.java, gnu/java/nio/charset/UTF_16BE.java, gnu/java/nio/charset/UTF_16Decoder.java, gnu/java/nio/charset/UTF_16Encoder.java, gnu/java/nio/charset/UTF_16LE.java, gnu/java/nio/charset/UTF_8.java: New files. * Makefile.am (): Added new files. * Makefile.in: Regenerated. From-SVN: r59013
2002-11-11CharacterCodingException.java: This class must be public.Michael Koch8-27/+63
2002-11-11 Michael Koch <konqueror@gmx.de> * java/nio/charset/CharacterCodingException.java: This class must be public. * java/nio/charset/CoderMalfunctionError.java: This class must be public. * java/nio/charset/CodingErrorAction.java: This class must be public. * java/nio/charset/IllegalCharsetNameException.java: This class must be public, better implementation. * java/nio/charset/MalformedInputException.java: This class must be public, better implementation. * java/nio/charset/UnmappableCharacterException.java: This class must be public, better implementation. * java/nio/charset/UnsupportedCharsetException.java: This class must be public, better implementation. From-SVN: r59012
2002-11-11BufferOverflowException.java, [...]: New file.Michael Koch5-2/+117
2002-11-11 Michael Koch <konqueror@gmx.de> * java/nio/BufferOverflowException.java, java/nio/BufferUnderflowException.java: New file. * Makefile.am (ordinary_java_source_files): Added new files. * Makefile.in: Regenerated. From-SVN: r59011
2002-11-11Container.java (validate): Use tree lock.Tom Tromey2-213/+280
* java/awt/Container.java (validate): Use tree lock. (getComponent): Likewise. (getComponents): Likewise. (addImpl): Likewise. (remove): Likewise. (removeAll): Likewise. (processEvent): Fixed indentation. (getComponentAt): Use tree lock. (findComponentAt): Likewise. (removeNotify): Likewise. (isAncestorOf): Likewise. (list): Likewise. (visitChildren): Likewise. (findNextFocusComponent): Likewise. (addNotifyContainerChildren): Likewise. (getAccessibleChildrenCount): Likewise. (getAccessibleChild): Likewise. From-SVN: r59009
2002-11-10GridLayout.java (layoutContainer): Use tree lock.Tom Tromey5-354/+391
* java/awt/GridLayout.java (layoutContainer): Use tree lock. (getSize): Likewise. * java/awt/FlowLayout.java (layoutContainer): Use tree lock. (getSize): Likewise. * java/awt/BorderLayout.java (layoutContainer): Use tree lock. (calcSize): Likewise. * java/awt/CardLayout.java (getSize): Use tree lock. (gotoComponent): Likewise. (layoutContainer): Likewise. From-SVN: r58998
2002-11-10natFileDescriptorWin32.cc (read): Handle case where count is 0.Tom Tromey3-0/+14
* java/io/natFileDescriptorWin32.cc (read): Handle case where count is 0. * java/io/natFileDescriptorPosix.cc (read): Handle case where count is 0. From-SVN: r58997
2002-11-10Externalizable.java, [...]: New versions from Classpath.Tom Tromey11-139/+176
* java/io/Externalizable.java, java/io/FilePermission.java, java/io/ObjectStreamConstants.java, java/io/Serializable.java, java/io/SerializablePermission.java, java/text/Format.java, java/util/AbstractMap.java, java/util/HashMap.java, java/util/LinkedHashMap.java, javax/naming/BinaryRefAddr.java: New versions from Classpath. From-SVN: r58996
2002-11-10Attributes.java (Name): Fix name check.Anthony Green2-1/+6
2002-11-10 Anthony Green <green@redhat.com> * java/util/jar/Attributes.java (Name): Fix name check. From-SVN: r58992
2002-11-10natClass.cc (initializeClass): Throw NoClassDefFoundError with getName() as ↵Mark Wielaard3-3/+18
message. * java/lang/natClass.cc (initializeClass): Throw NoClassDefFoundError with getName() as message. (_Jv_CheckArrayStore): Throw ArrayStoreException with object and array type as message. * java/lang/natVMThrowable.cc: Don't declare parameter t, it is unused. From-SVN: r58991
2002-11-10jni.h (JNIIMPORT, [...]): Linker defines for Win32.Ranjit Mathew2-2/+17
2002-11-08 Ranjit Mathew <rmathew@hotmail.com> * include/jni.h (JNIIMPORT, JNIEXPORT, JNICALL): Linker defines for Win32. JNICALL has been defined to __stdcall to be compatible with Sun's JDKs. From-SVN: r58985
2002-11-10GridLayout.java (setColumns): Check newCols, not cols.Tom Tromey2-2/+5
* java/awt/GridLayout.java (setColumns): Check newCols, not cols. (setRows): Check newRows, not rows. From-SVN: r58984
2002-11-10* jni.cc (_Jv_GetJNIEnvNewFrame): Set env->ex in all cases.Tom Tromey2-2/+8
From-SVN: r58971
2002-11-10Applet.java, [...]: New versions from Classpath.Tom Tromey25-497/+1146
* java/applet/Applet.java, java/applet/AppletContext.java, java/applet/AppletStub.java, java/applet/AudioClip.java, java/awt/CardLayout.java, java/awt/ContainerOrderFocusTraversalPolicy.java, java/awt/Cursor.java, java/awt/Event.java, java/awt/Frame.java, java/awt/GridBagConstraints.java, java/awt/GridBagLayout.java, java/awt/GridLayout.java, java/awt/color/ColorSpace.java, java/awt/color/ICC_ColorSpace.java, java/awt/color/ICC_Profile.java, java/awt/color/ICC_ProfileGray.java, java/awt/color/ICC_ProfileRGB.java, java/awt/datatransfer/DataFlavor.java, java/awt/dnd/DragSourceContext.java, java/awt/dnd/DropTarget.java, java/awt/dnd/DropTargetContext.java, java/awt/event/KeyEvent.java: New versions from Classpath. * Makefile.in: Rebuilt. * Makefile.am (awt_java_source_files): Added ICC_ProfileGray and ICC_ProfileRGB. From-SVN: r58964
2002-11-09ScrollPane.java (ScrollPane): Fixed test for valid display policy.Tom Tromey2-4/+7
* java/awt/ScrollPane.java (ScrollPane): Fixed test for valid display policy. From-SVN: r58963
2002-11-09List.java (processEvent): Added missing `else's.Tom Tromey3-7/+23
* java/awt/List.java (processEvent): Added missing `else's. * java/awt/Window.java (show): validate() before showing. Make parent displayable. (isDisplayable): New method. From-SVN: r58961
2002-11-07backport: MarshalledObject.java (equals): Check hashcode first.Mark Wielaard18-196/+597
Merge Orp RMI patches from Wu Gansha <gansha.wu@intel.com> * java/rmi/MarshalledObject.java (equals): Check hashcode first. * java/rmi/server/RMIClassLoader.java (MyClassLoader): Create/Use annotation. (loadClass): Take String as codebases. (getClassAnnotation): Use MyClassLoader annotations. * java/rmi/server/UnicastRemoteObject.java (UnicastRemoteObject): call exportObject(this). * gnu/java/rmi/RMIMarshalledObjectOutputStream.java (RMIMarshalledObjectOutputStream): set locBytesStream and locStream. (setAnnotation): Don't set locBytesStream and locStream. (replaceObject): Removed. (flush): Don't test locStream. (getLocBytes): LikeWise. * gnu/java/rmi/dgc/DGCImpl.java: extends UnicastServerRef. (leaseCache): New field. (dirty): Use leaseCache. (LeaseRecord): New inner class. * gnu/java/rmi/registry/RegistryImpl.java (RegistryImpl): Don't explicitly call exportObject(). * gnu/java/rmi/registry/RegistryImpl_Stub.java: set useNewInvoke to false to communicate with Sun JDK130. * gnu/java/rmi/server/ConnectionRunnerPool.java: Add CPU comment. * gnu/java/rmi/server/RMIObjectInputStream.java (UnicastConnectionManager): Removed field. * gnu/java/rmi/server/RMIObjectOutputStream.java (replaceObject): Use UnicastServer.getExportedRef(). * gnu/java/rmi/server/UnicastConnection.java (reviveTime): New field. (expireTime): Likewise. (CONNECTION_TIMEOUT): Likewise. (disconnect): Call sock.close(). (isExpired): New method. (resetTime): Likewise. (run): Use do while loop and catch Exception for discardConnection(). * gnu/java/rmi/server/UnicastConnectionManager.java: Pool connections. * gnu/java/rmi/server/UnicastRef.java: Lots of changes. * gnu/java/rmi/server/UnicastRemoteCall.java: Lots of changes. * gnu/java/rmi/server/UnicastServer.java (refcache): New field. (exportObject): Use refcache. (unexportObject): Likewise. (getExportedRef): New method. * gnu/java/rmi/server/UnicastServerRef.java (UnicastServerRef): New constructor. (exportObject): Save manager.serverobj. (getStub): New method. From-SVN: r58900
2002-11-07natField.cc (getBoolean): Use getType().Mark Wielaard2-42/+44
* java/lang/reflect/natField.cc (getBoolean): Use getType(). (getByte): Likewise. (getShort): Likewise. (getInt): Likewise. (getLong): Likewise. (getFloat): Likewise. (getDouble): Likewise. (get): Likewise. (setChar): Likewise. (setByte): Likewise. (setShort): Likewise. (setInt): Likewise. (setLong): Likewise. (setFloat): Likewise. (setDouble): Likewise. From-SVN: r58899
2002-11-07Choice.java, [...]: Fixed documentation.Michael Koch5-14/+20
2002-11-07 Michael Koch <konqueror@gmx.de> * java/awt/Choice.java, java/awt/Container.java, java/awt/GridBagLayout.java: Fixed documentation. * java/awt/peer/ContainerPeer.java: Reindented. From-SVN: r58888
2002-11-07ICC_Profile.java: Added missing constants.Michael Koch11-20/+195
2002-11-07 Michael Koch <konqueror@gmx.de> * java/awt/color/ICC_Profile.java: Added missing constants. * java/awt/color/ICC_ColorSpace.java (getMinValue): Added dummy implementation. (getMaxValue): Added dummy implementation. * java/awt/datatransfer/DataFlavor.java (imageFlavor): Added. (isMimeTypeEqual): Must be final. (getDefaultRepresentationClass): Must be non-static. (getDefaultRepresentationClassAsString): Must be non-static. * java/awt/dnd/DragSourceContext.java (dragExit): Corrected argument. (dragDropEnd): Corrected argument. * java/awt/dnd/DragSourceListener.java.java (dragExit): Corrected argument. (dragDropEnd): Corrected argument. * java/awt/font/TextHitInfo.java (toString): Added stubbed implementation. * java/awt/geom/PathIterator.java: The constants must be static. * java/awt/image/VolatileImage.java (IMAGE_INCOMPATIBLE): Fixed typo. * java/awt/image/renderable/RenderableImage.java (HINTS_OBSERVED): Must be static. * java/beans/BeanInfo.java: Constants must be final. From-SVN: r58885
2002-11-07re PR libgcj/8481 (java.Random.nextInt(int) may return negative)Tom Tromey2-2/+7
From svens@it.uu.se. For PR libgcj/8481. * java/util/Random.java (nextInt(int)): Only use 31 bits. From-SVN: r58876
2002-11-06jni.cc (array_from_valist): Assume that jlong won't be promoted.Tom Tromey2-2/+13
* jni.cc (array_from_valist): Assume that jlong won't be promoted. From-SVN: r58859
2002-11-06* libjava.jacks/jacks.exp: New file.Tom Tromey2-0/+85
From-SVN: r58850
2002-11-05SHA.java (engineGetDigestLength): Return 20.R. A. Rivas Diaz3-3/+10
2002-11-04 R. A. Rivas Diaz <rivasdiaz@yahoo.com> * gnu/java/security/provider/SHA.java (engineGetDigestLength): Return 20. * gnu/java/security/provider/MD5.java (engineGetDigestLength): Return 16. From-SVN: r58807
2002-11-05* libjava.compile/pr7912.java: New file.Tom Tromey2-0/+12
From-SVN: r58806
2002-11-04utilTest.java: New.Andrew Haley3-0/+66
2002-11-04 Andrew Haley <aph@redhat.com> * libjava.lang/utilTest.java: New. * libjava.lang/utilTest.out: New. From-SVN: r58795
2002-11-04More test code.Anthony Green4-0/+40
From-SVN: r58793
2002-11-04ClassLoader.java (loadClass): Call loadClass on VMClassLoader, not findClass.Tom Tromey2-8/+17
* java/lang/ClassLoader.java (loadClass): Call loadClass on VMClassLoader, not findClass. From-SVN: r58786
2002-11-04Add missing file.Anthony Green1-1/+2
From-SVN: r58784
2002-11-04New test codeAnthony Green1-0/+5
From-SVN: r58783
2002-11-04New tests.Anthony Green2-0/+52
From-SVN: r58782
2002-11-04resolve.cc (METHOD_NOT_THERE, [...]): Remove.Jeff Sturm3-227/+15
* resolve.cc (METHOD_NOT_THERE, METHOD_INACCESSIBLE): Remove. (_Jv_ResolvePoolEntry): Use _Jv_Method.index, not _Jv_DetermineVTableIndex, to determine vtable offset. (_Jv_DetermineVTableIndex): Remove. (_Jv_PrepareClass): Don't layout vtable. Use _Jv_MakeVTable instead. * java/lang/Class.h (friend int _Jv_DetermineVTableIndex): Remove. From-SVN: r58780
2002-11-04New files.Anthony Green8-0/+147
From-SVN: r58778
2002-11-03AlreadyConnectedException.java: Extend IllegalStateException, per spec.Tom Tromey2-5/+8
* java/nio/channels/AlreadyConnectedException.java: Extend IllegalStateException, per spec. From-SVN: r58773