Michael Koch
7099616c53
ColorModel.java: New version from classpath.
...
2003-06-25 Michael Koch <konqueror@gmx.de>
* java/awt/image/ColorModel.java:
New version from classpath.
From-SVN: r68474
2003-06-25 11:23:33 +00:00
Michael Koch
d0e029d8ae
PlainDatagramSocketImpl.java: Partly merged with classpath, this mainly adds documentation.
...
2003-06-25 Michael Koch <konqueror@gmx.de>
* java/net/PlainDatagramSocketImpl.java:
Partly merged with classpath, this mainly adds documentation.
From-SVN: r68468
2003-06-25 07:00:34 +00:00
Michael Koch
3cc9a95d27
2003-06-25 Michael Koch <konqueror@gmx.de>
...
* java/io/ObjectInputStream.java
(readClassDescriptor): New method.
(readObject): Moved functionality to readClassDescriptor().
* java/io/ObjectOutputStream.java
(writeClassDescriptor): New method.
(writeObject): Moved functionality to writeClassDescriptor().
From-SVN: r68465
2003-06-25 06:31:59 +00:00
Michael Koch
cb64c638f0
URL.java: Renamed "handler" to "ph" in the whole file to match classpaths version.
...
2003-06-24 Michael Koch <konqueror@gmx.de>
* java/net/URL.java:
Renamed "handler" to "ph" in the whole file to match classpaths
version.
* java/net/URLStreamHandler.java:
(equals): Renamed "handler" to "ph".
From-SVN: r68439
2003-06-24 20:22:48 +00:00
Michael Koch
3a63ab4010
2003-06-24 Michael Koch <konqueror@gmx.de>
...
* java/nio/Buffer.java
(cap): Made package-private.
(pos): Likewise.
(limit): Likewise.
(mark): Likewise.
From-SVN: r68417
2003-06-24 11:19:05 +00:00
Michael Koch
ed1f9b7c13
2003-06-24 Michael Koch <konqueror@gmx.de>
...
* java/net/SocketImpl.java
(shutdownInput): Made it non-abstract method throwing an exception
like in SUNs JRE.
(shutdownOutput): Likewise.
* java/net/SocketInputStream.java,
java/net/SocketOutputStream.java:
New files from classpath.
From-SVN: r68416
2003-06-24 11:07:23 +00:00
Michael Koch
59b8aa7e50
Font.java, [...]: New versions from classpath.
...
2003-06-24 Michael Koch <konqueror@gmx.de>
* java/awt/Font.java,
java/awt/Window.java,
java/awt/color/ColorSpace.java,
java/awt/datatransfer/StringSelection.java,
java/awt/image/ColorModel.java:
New versions from classpath.
From-SVN: r68415
2003-06-24 10:50:21 +00:00
Michael Koch
20afd47571
2003-06-24 Michael Koch <konqueror@gmx.de>
...
* java/io/LineNumberReader.java
(skip): Dont do line number accounting here as this is already done in
read(), simplified.
From-SVN: r68408
2003-06-24 07:25:24 +00:00
Michael Koch
cff5cdc83d
2003-06-21 Michael Koch <konqueror@gmx.de>
...
* java/io/File.java
(static): Load javaio lib if existing (only in classpath).
(File): Revised documentation to show the correct argument name.
(createTempFile): Partly merged with classpath.
(compareTo): Simplified.
(lastModified): Throw exception if time < 0.
(deleteOnExit): Revised documentation.
From-SVN: r68310
2003-06-21 17:06:56 +00:00
Michael Koch
6ecaa2701d
PlainSocketImpl.java: Reformatted.
...
2003-06-21 Michael Koch <konqueror@gmx.de>
* java/net/PlainSocketImpl.java:
Reformatted.
(PlainSocketImpl): Merged class documentaion with classpath.
(in): Moved.
(out): Moved.
(PlainSocketImpl): New empty constructor.
(finalize): Moved.
(setOption): Merged documentation from classpath.
(getOption): Likewise.
(create): Likewise.
(connect): Likewise.
(bind): Likewise.
(listen): Likewise.
(accept): Likewise.
(available): Likewise.
(close): Likewise.
(read): Likewise.
(write): Likewise.
(getInputStream): Made synchronozed to get sure that only one stream
object can be created for this socket, merged documentation from
classpath.
(getOutputStream): Likewise.
From-SVN: r68305
2003-06-21 14:02:10 +00:00
Michael Koch
5d938b1ac5
PlainSocketImpl.java: Reformatting.
...
2003-06-21 Michael Koch <konqueror@gmx.de>
* java/net/PlainSocketImpl.java:
Reformatting.
(static): New implicit method.
(read): Made package private.
(write): Likewise.
From-SVN: r68304
2003-06-21 13:24:13 +00:00
Michael Koch
6f705fc773
SimpleTimeZone.java: Removed unneeded import, reformatting.
...
2003-06-21 Michael Koch <konqueror@gmx.de>
* java/util/SimpleTimeZone.java:
Removed unneeded import, reformatting.
From-SVN: r68301
2003-06-21 12:49:39 +00:00
Michael Koch
73c7dd50e8
DateFormat.java, [...]: New versions from classpath.
...
2003-06-21 Michael Koch <konqueror@gmx.de>
* java/text/DateFormat.java,
java/text/SimpleDateFormat.java,
java/util/Locale.java:
New versions from classpath.
From-SVN: r68300
2003-06-21 12:42:26 +00:00
Michael Koch
2d0c9050c3
LogRecord.java, [...]: New files from classpath.
...
2003-06-21 Michael Koch <konqueror@gmx.de>
* java/util/logging/LogRecord.java,
java/util/logging/Logger.java,
java/util/logging/SocketHandler.java,
java/util/logging/SimpleFormatter.java,
java/util/logging/Formatter.java,
java/util/logging/ErrorManager.java,
java/util/logging/Handler.java,
java/util/logging/FileHandler.java,
java/util/logging/LogManager.java,
java/util/logging/Level.java,
java/util/logging/ConsoleHandler.java,
java/util/logging/StreamHandler.java,
java/util/logging/LoggingPermission.java,
java/util/logging/Filter.java,
java/util/logging/MemoryHandler.java,
java/util/logging/XMLFormatter.java:
New files from classpath.
From-SVN: r68295
2003-06-21 10:31:55 +00:00
Michael Koch
319d764525
2003-06-20 Michael Koch <konqueror@gmx.de>
...
* java/io/ObjectStreamField.java
(unshared): new member variable.
(ObjectStreamField): New constructor.
(isUnshared): New method.
From-SVN: r68261
2003-06-20 12:13:19 +00:00
Michael Koch
f8b7363eed
2003-06-20 Michael Koch <konqueror@gmx.de>
...
* java/net/URLStreamHandler.java
(hostsEqual): Rewritten.
From-SVN: r68260
2003-06-20 12:07:22 +00:00
Michael Koch
c52c9fec50
MappedByteFileBuffer.java, [...]: Removed
...
2003-06-20 Michael Koch <konqueror@gmx.de>
* gnu/java/nio/MappedByteFileBuffer.java,
gnu/java/nio/natMappedByteFileBuffer.cc:
Removed
* java/nio/MappedByteBufferImpl.java:
New file.
* gnu/java/nio/FileChannelImpl.java:
Use MappedByteBufferImpl instead of MappedByteFileBuffer.
* Makefile.am
(ordinary_java_source_files): Removed
gnu/java/nio/MappedByteFileBuffer.java and added
java/nio/MappedByteBufferImpl.java.
(nat_source_files): Removed gnu/java/nio/natMappedByteFileBuffer.cc
* Makefile.in: Regenerated.
From-SVN: r68259
2003-06-20 12:01:54 +00:00
Michael Koch
2e5d98ced6
2003-06-19 Michael Koch <konqueror@gmx.de>
...
* java/text/CollationElementIterator.java
(NULLORDER): Initialize with -1 as JDK documentation says.
From-SVN: r68199
2003-06-19 15:13:31 +00:00
Michael Koch
a05f6447e3
HttpURLConnection.java, [...]: Reworked import statements.
...
2003-06-19 Michael Koch <konqueror@gmx.de>
* java/net/HttpURLConnection.java,
java/net/Inet4Address.java,
java/net/Inet6Address.java,
java/net/SocketImpl.java,
java/net/URLClassLoader.java:
Reworked import statements.
* java/net/InetAddress.java
(getByAddress): Simplified.
* java/net/ServerSocket.java
(ServerSocket): Moved special handling during bind operation to
bind().
(bind): Handle different cases when trying to bind a socket.
* java/net/URLConnection.java
(getHeaderFieldDate): Merged with classpath.
(getHeaderFieldInt): Likewise.
From-SVN: r68198
2003-06-19 15:08:22 +00:00
Michael Koch
3580a7d585
2003-06-19 Michael Koch <konqueror@gmx.de>
...
* java/util/zip/InflaterInputStream.java
(InflaterInputStream): Throw NullPointerException if in is null (as
JDK does).
From-SVN: r68197
2003-06-19 14:46:21 +00:00
Michael Koch
8993c12bee
Font.java [...]: New versions from classpath.
...
2003-06-19 Michael Koch <konqueror@gmx.de>
* java/awt/Font.java
javax/swing/UIManager.java
javax/swing/border/AbstractBorder.java
javax/swing/border/BevelBorder.java
javax/swing/border/Border.java
javax/swing/border/CompoundBorder.java
javax/swing/border/EmptyBorder.java
javax/swing/border/EtchedBorder.java
javax/swing/border/LineBorder.java
javax/swing/border/MatteBorder.java
javax/swing/border/TitledBorder.java
javax/swing/plaf/BorderUIResource.java
javax/swing/plaf/basic/BasicBorders.java
javax/swing/plaf/basic/BasicButtonUI.java
javax/swing/plaf/basic/BasicCheckBoxUI.java
javax/swing/plaf/basic/BasicGraphicsUtils.java
javax/swing/plaf/basic/BasicLabelUI.java
javax/swing/plaf/basic/BasicRadioButtonUI.java
javax/swing/plaf/basic/BasicToggleButtonUI.java:
New versions from classpath.
* javax/swing/border/SoftBevelBorder.java:
New file from classpath.
* javax/swing/border/doc-files/LineBorder-1.png,
javax/swing/border/doc-files/BevelBorder-1.png,
javax/swing/border/doc-files/BevelBorder-2.png,
javax/swing/border/doc-files/BevelBorder-3.png,
javax/swing/border/doc-files/EmptyBorder-1.png,
javax/swing/border/doc-files/EtchedBorder-1.png,
javax/swing/border/doc-files/EtchedBorder-2.png,
javax/swing/border/doc-files/MatteBorder-1.png,
javax/swing/border/doc-files/MatteBorder-2.png,
javax/swing/border/doc-files/MatteBorder-3.png,
javax/swing/border/doc-files/MatteBorder-4.png,
javax/swing/border/doc-files/MatteBorder-5.png,
javax/swing/border/doc-files/MatteBorder-6.png,
javax/swing/border/doc-files/SoftBevelBorder-1.png,
javax/swing/border/doc-files/SoftBevelBorder-2.png,
javax/swing/border/doc-files/SoftBevelBorder-3.png,
javax/swing/plaf/basic/doc-files/BasicBorders.MarginBorder-1.png,
javax/swing/plaf/basic/doc-files/BasicBorders.ButtonBorder-1.png,
javax/swing/plaf/basic/doc-files/BasicGraphicsUtils-1.png,
javax/swing/plaf/basic/doc-files/BasicGraphicsUtils-2.png,
javax/swing/plaf/basic/doc-files/BasicGraphicsUtils-3.png,
javax/swing/plaf/basic/doc-files/BasicGraphicsUtils-4.png,
javax/swing/plaf/basic/doc-files/BasicGraphicsUtils-5.png,
javax/swing/plaf/basic/doc-files/BasicGraphicsUtils-6.png,
javax/swing/plaf/basic/doc-files/BasicGraphicsUtils-7.png:
New binary files from classpath.
* Makefile.am
(awt_java_source_files): Added
javax/swing/border/SoftBevelBorder.java.
* Makefile.in: Regenerated.
From-SVN: r68190
2003-06-19 10:48:46 +00:00
Michael Koch
16e4b777c8
IndexColorModel.java: New version from classpath.
...
2003-06-19 Michael Koch <konqueror@gmx.de>
* java/awt/image/IndexColorModel.java:
New version from classpath.
From-SVN: r68185
2003-06-19 09:33:40 +00:00
Tom Tromey
7cbd1918f5
Inet6Address.java (isAnyLocalAddress): Don't use "==" on arrays.
...
* java/net/Inet6Address.java (isAnyLocalAddress): Don't use "=="
on arrays.
(isLoopbackAddress): Likewise.
* java/net/Inet4Address.java (isAnyLocalAddress): Don't use "=="
on arrays.
From-SVN: r68173
2003-06-19 01:19:27 +00:00
Matt Kraai
7b4a4fceef
natVMSecurityManager.cc (getClassContext): Use maxlen instead of len for loop bound.
...
* java/lang/natVMSecurityManager.cc (getClassContext):
Use maxlen instead of len for loop bound.
From-SVN: r68153
2003-06-18 14:13:59 +00:00
Michael Koch
20d513ff66
2003-06-18 Michael Koch <konqueror@gmx.de>
...
* java/util/Locale.java
(equals): Merged from classpath.
From-SVN: r68144
2003-06-18 08:15:42 +00:00
Michael Koch
75da2103e4
InetAddress.java: Reformatted to better match classpath's version.
...
2003-06-18 Michael Koch <konqueror@gmx.de>
* java/net/InetAddress.java:
Reformatted to better match classpath's version.
* java/net/URL.java
(equals): Simplified.
* java/net/URLConnection.java
(setDoInput): Revised documentation.
(getDefaultUseCaches): Likewise.
(setRequestProperty): Added @since tag.
From-SVN: r68143
2003-06-18 08:09:48 +00:00
Michael Koch
7d8f4ff955
2003-06-17 Michael Koch <konqueror@gmx.de>
...
* java/net/InetSocketAddress.java
(InetSocketAddress): Use wildcard address if addr is null.
(InetSocketAddress): Dont duplicate implementation.
(InetSocketAddress): Throw exception when hostname is null.
* java/net/Socket.java:
Reworked imports.
(Socket): Throw exception when raddr is null, handle case when laddr
is null.
From-SVN: r68106
2003-06-17 19:11:56 +00:00
Michael Koch
6f3aed57fb
2003-06-17 Michael Koch <konqueror@gmx.de>
...
* java/nio/DirectByteBufferImpl.java
(address): Made package private.
(DirectByteBufferImpl): New constructor.
* java/nio/natDirectByteBufferImpl.cc
(allocateImpl): Moved to java.nio namespace, implemented.
(freeImpl): Likewise.
(getImpl): Likewise.
(putImpl): Likewise.
* jni.cc
(_Jv_JNI_NewDirectByteBuffer): Implemented.
(_Jv_JNI_GetDirectBufferAddress): Implemented.
(_Jv_JNI_GetDirectBufferCapacity): Implemented.
From-SVN: r68105
2003-06-17 19:09:56 +00:00
Michael Koch
b98cf05972
2003-06-17 Michael Koch <konqueror@gmx.de>
...
* java/util/Locale.java
(getDisplayLanguage): Made it final.
(getDisplayCountry): Likewise.
(getDisplayVariant): Likewise.
(getDisplayName): Likewise.
From-SVN: r68086
2003-06-17 14:16:22 +00:00
Michael Koch
99657762e9
PropertyResourceBundle.java: Removed unneeded import.
...
2003-06-17 Michael Koch <konqueror@gmx.de>
* java/util/PropertyResourceBundle.java:
Removed unneeded import.
From-SVN: r68084
2003-06-17 14:05:17 +00:00
Michael Koch
2a352ff13d
AbstractPreferences.java, [...]: Reworked imports, removed unused imports.
...
2003-06-17 Michael Koch <konqueror@gmx.de>
* java/util/prefs/AbstractPreferences.java,
java/util/prefs/PreferencesFactory.java:
Reworked imports, removed unused imports.
* java/util/prefs/Preferences.java
(systemNodeForPackage): Method takes a Class not an Object.
(userNodeForPackage): Likewise.
(nodeForPackage): Likewise.
From-SVN: r68081
2003-06-17 13:01:21 +00:00
Michael Koch
efc5eec6f3
ZipEntry.java, [...]: Reworked imports, only import used classes.
...
2003-06-17 Michael Koch <konqueror@gmx.de>
* java/util/zip/ZipEntry.java,
java/util/zip/ZipFile.java,
java/util/zip/ZipInputStream.java,
java/util/zip/ZipOutputStream.java:
Reworked imports, only import used classes.
From-SVN: r68079
2003-06-17 12:07:56 +00:00
Michael Koch
e8fb93c94f
BasicPermission.java: New version from classpath.
...
2003-06-14 Michael Koch <konqueror@gmx.de>
* java/security/BasicPermission.java:
New version from classpath.
From-SVN: r67934
2003-06-14 05:45:12 +00:00
Michael Koch
6b4683e27c
BufferedReader.java, [...]: New versions from classpath.
...
2003-06-14 Michael Koch <konqueror@gmx.de>
* java/io/BufferedReader.java,
java/io/FileOutputStream.java:
New versions from classpath.
From-SVN: r67932
2003-06-14 05:44:38 +00:00
Andrew Haley
e976ed37ef
jni.cc (_Jv_JNI_check_types): New.
...
2003-06-11 Andrew Haley <aph@redhat.com>
* jni.cc (_Jv_JNI_check_types): New.
(_Jv_JNI_SetPrimgitiveArrayRegion): Check array type.
(_Jv_JNI_GetPrimitiveArrayRegion): Ditto.
(_Jv_JNI_GetPrimitiveArrayElements): Ditto.
(_Jv_JNI_ReleasePrimitiveArrayElements): Ditto.
* java/lang/natVMSecurityManager.cc (getClassContext): Fix
infinite loop.
From-SVN: r67835
2003-06-12 15:39:17 +00:00
Tom Tromey
3ad93a3475
ClassLoader.java (loadClass): Not deprecated.
...
* java/lang/ClassLoader.java (loadClass): Not deprecated.
* java/io/PrintStream.java: Not deprecated.
From-SVN: r67811
2003-06-12 03:13:14 +00:00
Michael Koch
1d5d594da5
InputSubset.java: New version from classpath.
...
2003-06-11 Michael Koch <konqueror@gmx.de>
* java/awt/im/InputSubset.java:
New version from classpath.
From-SVN: r67770
2003-06-11 13:47:49 +00:00
Michael Koch
6bd883297e
MappedByteBuffer.java, [...]: Removed unneeded imports.
...
2003-06-11 Michael Koch <konqueror@gmx.de>
* java/nio/MappedByteBuffer.java,
java/nio/channels/Channels.java,
java/nio/channels/ServerSocketChannel.java,
java/nio/channels/spi/AbstractSelector.java:
Removed unneeded imports.
From-SVN: r67756
2003-06-11 10:38:58 +00:00
Michael Koch
39b3ceceee
DatagramSocket.java: Partly merged with classpath.
...
2003-06-11 Michael Koch <konqueror@gmx.de>
* java/net/DatagramSocket.java:
Partly merged with classpath.
From-SVN: r67755
2003-06-11 10:38:38 +00:00
Michael Koch
37f3981f80
Frame.java, [...]: New versions from classpath.
...
2003-06-11 Michael Koch <konqueror@gmx.de>
* java/awt/Frame.java,
java/awt/Graphics.java,
java/awt/Menu.java,
java/awt/Robot.java,
java/awt/image/ColorModel.java:
New versions from classpath.
From-SVN: r67754
2003-06-11 10:37:48 +00:00
Michael Koch
fbd98522de
PrintStream.java: Merged version from classpath.
...
2003-06-10 Michael Koch <konqueror@gmx.de>
* java/io/PrintStream.java:
Merged version from classpath.
(close): Removed sychronized keyword. This class is not garantied to
be thread-safe.
(write): Likewise.
From-SVN: r67717
2003-06-10 17:15:19 +00:00
Anthony Green
a8a8de4875
URLStreamHandler.java (sameFile): Fix port value comparison.
...
2003-06-08 Anthony Green <green@redhat.com>
* java/net/URLStreamHandler.java (sameFile): Fix port value
comparison.
* java/net/URL.java (handler): Make package private.
* gnu/gcj/protocol/http/Handler.java (getDefaultPort): New method.
From-SVN: r67640
2003-06-08 22:07:48 +00:00
Tom Tromey
0a56537c16
For PR libgcj/11085:
...
* java/text/SimpleDateFormat.java (parse(String,ParsePosition)):
Limit number of characters in numeric field when required.
* java/text/DecimalFormat.java (parse(String,ParsePosition)):
Respect maximumIntegerDigits.
From-SVN: r67633
2003-06-08 19:00:02 +00:00
Michael Koch
742ed2f3da
2003-06-08 Michael Koch <konqueror@gmx.de>
...
* java/net/Socket.java
(Socket): Dont initialize inputShutdown and outputShutdown twice,
call bind() and connect() to actually do the bind and connect tasks.
(bind): Connect to canonical address if bindpoint is null, create
socket and bind it to bindpoint.
(connect): Check for exceptions.
From-SVN: r67618
2003-06-08 10:12:09 +00:00
Michael Koch
f61e212582
2003-06-08 Michael Koch <konqueror@gmx.de>
...
* java/net/DatagramSocket.java
(DatagramSocket): No need to set SO_REUSEADDRESS here. This belongs
into the Multicast constructors.
* java/net/DatagramSocketImpl.java
(getOption): Removed.
(setOption): Removed.
* java/net/MulticastSocket.java
(MulticastSocket): Call setReuseAddress (true).
* java/net/SocketImpl.java
(getOption): Removed.
(setOption): Removed.
From-SVN: r67617
2003-06-08 09:25:54 +00:00
Mark Wielaard
39072dc8df
Security.java (secprops): Initialize.
...
* java/security/Security.java (secprops): Initialize.
(loadProviders): Return boolean.
(static): Check result of loadProvider calls. If necessary
display WARNING and fallback to Gnu provider.
From-SVN: r67597
2003-06-07 18:38:09 +00:00
Mark Wielaard
60e9f0d726
re PR libgcj/8738 (java.io.CharArrayWriter's write methods erroneously throw IOExceptions)
...
2002-06-06 James Clark <jjc@jclark.com>
Fix for PR libgcj/8738:
* gnu/gcj/convert/UnicodeToBytes.java (havePendingBytes): New method.
* gnu/gcj/convert/Output_SJIS.java (havePendingBytes): Likewise.
* gnu/gcj/convert/Output_EUCJIS.java (havePendingBytes): Likewise.
* gnu/gcj/convert/Output_UTF8.java (havePendingBytes): Likewise.
(write): Always decrease avail when count is increased.
* java/lang/natString.cc (getBytes): Check converter havePendingBytes()
and whether output buffer is full before increasing size.
2002-06-06 Mark Wielaard <mark@klomp dot org>
* java/io/PrintStream.java (writeChars(char[],int, int)):
Check converter.havePendingBytes().
(writeChars(String,int,int)): Likewise.
* java/io/OutputStreamWriter.java (writeChars(char[], int, int)):
Check converter.havePendingBytes() and flush buffer when stalled.
From-SVN: r67595
2003-06-07 18:35:00 +00:00
Mark Wielaard
6d8176f059
Toolkit.java (getDefaultToolkit): Add exception cause to AWTError.
...
* java/awt/Toolkit.java (getDefaultToolkit): Add exception cause to
AWTError.
From-SVN: r67542
2003-06-06 13:12:47 +00:00
Matt Kraai
86fb951d4c
w_exp.c (o_threshold, [...]): Define only if _IEEE_LIBM is undefined.
...
* java/lang/w_exp.c (o_threshold, u_threshold): Define only
if _IEEE_LIBM is undefined.
From-SVN: r67526
2003-06-06 03:34:36 +00:00
Loren J. Rittle
49c72d225b
posix.h (O_SYNC): Define if not available and a reasonable...
...
* libjava/include/posix.h (O_SYNC): Define if not available
and a reasonable, perhaps more conservative, replacement exists.
(O_DSYNC): Likewise.
* java/io/natFileDescriptorPosix.cc (open): Revert last patch.
From-SVN: r67517
2003-06-05 22:37:02 +00:00