aboutsummaryrefslogtreecommitdiff
path: root/libjava
AgeCommit message (Collapse)AuthorFilesLines
2004-03-12[multiple changes]Michael Koch2-20/+295
2004-03-12 Ito Kazumitsu <ito.kazumitsu@hitachi-cable.co.jp> * java/net/URI.java (toURL): Implemented. 2004-03-12 Ito Kazumitsu <ito.kazumitsu@hitachi-cable.co.jp> * java/net/URI.java (URI_REGEXP) updated to contain scheme specific part. (SCHEME_SPEC_PART_GROUP) new constant. (AUTHORITY_GROUP, PATH_GROUP, QUERY_GROUP, FRAGMENT_GROUP) updated to make room for SCHEME_SPEC_PART_GROUP. (parseURI) parse scheme specific part. (resolve, isAbsolute, isOpaque, getRawSchemeSpecificPart, getSchemeSpecificPart, getAuthority, getUserInfo, getPath, getQuery, getFragment) implemented. 2004-03-12 Dalibor Topic <robilad@kaffe.org> * libraries/javalib/java/net/URI.java partially implemented using java.util.regex. (URI_REGEXP) new constant. Used to parse URIs. (SCHEME_GROUP) new constant representing index of scheme group in parsed URI. (AUTHORITY_GROUP) new constant representing index of authority group in parsed URI. (PATH_GROUP) new constant representing index of path group in parsed URI. (QUERY_GROUP) new constant representing index of query group in parsed URI. (FRAGMENT_GROUP) new constant representing index of fragment group in parsed URI. (getURIGroup) new static utility method. (parseURI) implemented. (quote) stub for new static utility method. (quoteAuthority) stub for new static utility method. (quoteHost) stub for new static utility method. (quotePath) stub for new static utility method. (quoteUserInfo) stub for new static utility method. (URI) implemented. (create) don't throw URISyntaxException. Implemented. (toString) implemented. From-SVN: r79375
2004-03-122004-03-12 Michael Koch <konqueror@gmx.de>Michael Koch2-1/+6
* java/net/HttpURLConnection.java (getResponseCode): Fix another typo in javadoc. From-SVN: r79374
2004-03-112004-03-11 Michael Koch <konqueror@gmx.de>Michael Koch2-4/+8
* java/util/logging/Level.java (parse): Use String.equals() instead of ==. From-SVN: r79333
2004-03-112004-03-11 Michael Koch <konqueror@gmx.de>Michael Koch2-0/+20
* gnu/java/net/protocol/jar/Connection.java (getContentLength): New method. From-SVN: r79332
2004-03-11PlainSocketImpl.java: Reformated to merge better with classpath's version.Michael Koch2-33/+101
2004-03-11 Michael Koch <konqueror@gmx.de> * gnu/java/net/PlainSocketImpl.java: Reformated to merge better with classpath's version. From-SVN: r79331
2004-03-112004-03-11 Michael Koch <konqueror@gmx.de>Michael Koch2-2/+8
* java/util/Locale.java (getISO3Language): Use String.equals() instead of ==. (getISO3Country): Likewise. From-SVN: r79330
2004-03-11[multiple changes]Michael Koch3-8/+28
2004-03-11 Dalibor Topic <robilad@kaffe.org> * java/text/AttributedString.java (addAttribute(AttributedCharacterIterator.Attribute,Object,int,int)): Use HashMap instead of Hashtable since value can be null, and you can not store a null value in a Hashtable. 2004-03-11 Guilhem Lavaux <guilhem@kaffe.org> * java/text/AttributedStringIterator.java (getAllAttributesKey): Return only keys concerned by the current iterator. (getAttributes): Use strict inequality for end_index. From-SVN: r79329
2004-03-11HttpURLConnection.java: Fixed typo in javadoc.Michael Koch2-1/+6
2004-03-11 Michael Koch <konqueror@gmx.de> * java/net/HttpURLConnection.java: Fixed typo in javadoc. From-SVN: r79328
2004-03-11BufferedInputStream.java (marktarget): New field for max mark limit.Guilhem Lavaux2-5/+34
2004-03-11 Guilhem Lavaux <guilhem@kaffe.org> * java/io/BufferedInputStream.java (marktarget): New field for max mark limit. (CHUNKSIZE): New constant for incremental mark buffer allocation. (mark): Use new fields. (read): Likewise. (read(byte[],int,int)): Likewise. (skip): Likewise. (refill): Likewise. From-SVN: r79326
2004-03-11BeanDescriptor.java (BeanDescriptor): Set the FeatureDescriptor programmatic ↵Mark Wielaard2-1/+14
name. 2004-03-11 Mark Wielaard <mark@klomp.org> * java/beans/BeanDescriptor.java (BeanDescriptor): Set the FeatureDescriptor programmatic name. From-SVN: r79324
2004-03-11natFileChannelEcos.cc: Totally reworked.Michael Koch2-46/+69
2004-03-11 Michael Koch <konqueror@gmx.de> * gnu/java/nio/channels/natFileChannelEcos.cc: Totally reworked. This file was was just copied form java/io/natFileDescriptorEcos.cc and never changed to compile correctly. From-SVN: r79320
2004-03-112004-03-11 Michael Koch <konqueror@gmx.de>Michael Koch2-9/+40
* gnu/java/nio/PipeImpl.java (SourceChannelImpl): Made final. (read): Implemented. (SinkChannelImpl): Made final. (write): Implemented. From-SVN: r79315
2004-03-11PlainDatagramSocketImpl.java: Reformated to match classpath's version more.Michael Koch2-23/+29
2004-03-11 Michael Koch <konqueror@gmx.de> * gnu/java/net/PlainDatagramSocketImpl.java: Reformated to match classpath's version more. From-SVN: r79314
2004-03-11ClasspathFontPeer.java: Fixed javadoc to be correct xhtml.Michael Koch3-3/+10
2004-03-11 Michael Koch <konqueror@gmx.de> * gnu/java/awt/peer/ClasspathFontPeer.java: Fixed javadoc to be correct xhtml. * gnu/java/awt/peer/gtk/GtkArgList.java (add): Use Boolean.valueOf() instead of new Boolean(). From-SVN: r79313
2004-03-11configure.ac: Bump AC_PREREQ to 2.59.Kelley Cook4-638/+1593
boehm-gc/ 2004-03-10 Kelley Cook <kcook@gcc.gnu.org> * configure.ac: Bump AC_PREREQ to 2.59. * configure: Regenerate. * config.in: Regenerate. fastjar/ 2004-03-10 Kelley Cook <kcook@gcc.gnu.org> * configure.ac: Bump AC_PREREQ to 2.59. * configure: Regenerate. intl/ 2004-03-10 Kelley Cook <kcook@gcc.gnu.org> * configure.ac: Bump AC_PREREQ to 2.59. * configure: Regenerate. * config.h.in: Regenerate. gcc/ 2004-03-10 Kelley Cook <kcook@gcc.gnu.org> * configure.ac: Bump AC_PREREQ to 2.59. * configure: Regenerate. libada/ 2004-03-10 Kelley Cook <kcook@gcc.gnu.org> * configure.in: Rename file to ... * configure.ac: .. to this. Bump AC_PREREQ to 2.59. * configure: Regenerate. libjava/libltdl/ 2004-03-10 Kelley Cook <kcook@gcc.gnu.org> * configure.ac: Bump AC_PREREQ to 2.59. * configure: Regenerate. * config-h.in: Regenerate. libstdc++-v3/ 2004-03-10 Kelley Cook <kcook@gcc.gnu.org> * configure.ac: Bump AC_PREREQ to 2.59. contrib/ 2004-03-10 Kelley Cook <kcook@gcc.gnu.org> * gcc_update (files_and_dependencies): Insert libada/configure. From-SVN: r79285
2004-03-092004-03-09 Michael Koch <konqueror@gmx.de>Michael Koch3-79/+90
* java/lang/Thread.java (runnable): Moved around. (daemon): Renamed from daemon_flag. (contextClassLoader): Renamed from context_class_loader. (Thread): Reordered constructors. (activeCount): Use group directly. (destroy): Make it a java method. Throw NoSuchMethodError like Sun does. (holdsLock): Reworked javadoc. (setDaemon): Reworked. * java/lang/natThread.cc (destroy): Removed. From-SVN: r79200
2004-03-09Makefile.am: Build property resource files into libgcj.Anthony Green34-136/+5130
2004-03-08 Anthony Green <green@redhat.com> * Makefile.am: Build property resource files into libgcj. * Makefile.in: Rebuilt. * java/util/regex/Matcher.java, java/util/regex/Pattern.java, java/util/regex/PatternSyntaxException.java, gnu/regexp/CharIndexed.java, gnu/regexp/CharIndexedCharArray.java, gnu/regexp/CharIndexedInputStream.java, gnu/regexp/CharIndexedReader.java, gnu/regexp/CharIndexedString.java, gnu/regexp/CharIndexedStringBuffer.java, gnu/regexp/RE.java, gnu/regexp/REException.java, gnu/regexp/REFilterInputStream.java, gnu/regexp/REFilterReader.java, gnu/regexp/REMatch.java, gnu/regexp/REMatchEnumeration.java, gnu/regexp/RESyntax.java, gnu/regexp/REToken.java, gnu/regexp/RETokenAny.java, gnu/regexp/RETokenBackRef.java, gnu/regexp/RETokenChar.java, gnu/regexp/RETokenEnd.java, gnu/regexp/RETokenEndSub.java, gnu/regexp/RETokenLookAhead.java, gnu/regexp/RETokenOneOf.java, gnu/regexp/RETokenPOSIX.java, gnu/regexp/RETokenRange.java, gnu/regexp/RETokenRepeated.java, gnu/regexp/RETokenStart.java, gnu/regexp/RETokenWordBoundary.java, gnu/regexp/UncheckedRE.java: Files merged from GNU Classpath. From-SVN: r79198
2004-03-03Channels.java (newInputStream, [...]): Optimize when argument is a ↵Per Bothner5-92/+141
FileChannelImpl. * java/nio/channels/Channels.java (newInputStream, newOutputStream): Optimize when argument is a FileChannelImpl. (newInputStream(FileChannelImpl), newOutputStream(FileChannelImpl)): New native methods. * java/nio/channels/natChannels.cc: New file for new native methods. * Makefile.am: Update accordingly. From-SVN: r78867
2004-03-02* configure: Regenerate.Jan Hubicka2-2/+3
From-SVN: r78765
2004-03-02configure.host: Pass -fno-omit-frame-pointer for i386.Jan Hubicka3-2/+7
* configure.host: Pass -fno-omit-frame-pointer for i386. * configure.in: Likewise. From-SVN: r78764
2004-03-01* java/lang/natPosixProcess.cc (startProcess): Fix thinko.Per Bothner2-1/+14
From-SVN: r78725
2004-02-29ChangeLog: Previous java/io, java/nio, gnu/java/nio and related changes.Per Bothner5-297/+345
* Makefile.am, configure.in: Updated accordingly. From-SVN: r78666
2004-02-29natPosixProcess.cc (startProcess): Implement standard streams using ↵Per Bothner2-9/+18
FileChannelImpl, not FileDescriptor. * java/lang/natPosixProcess.cc (startProcess): Implement standard streams using FileChannelImpl, not FileDescriptor. * java/lang/natWin32Process.cc (startProcess): Likewise. From-SVN: r78664
2004-02-29FileLockImpl.java (fd): Remove field, replacing it by:Per Bothner2-32/+6
* gnu/java/nio/FileLockImpl.java (fd): Remove field, replacing it by: (ch): New FileChannelImpl field. Update constructor to match. (releaseImpl): Remove native method. Instead ... (release): Call unlock on channel. * gnu/java/nio/natFileLockImpl.cc: Removed file. From-SVN: r78663
2004-02-29MappedByteBuffer.java: (forceImpl...Per Bothner2-47/+103
* java/nio/MappedByteBuffer.java: (forceImpl, isLoadedImpl, loadImpl, unmapImpl): New dummy methods, to be overridden by subclass. (finalize, isLoaded, load, force): New methods. * java/nio/MappedByteBufferImpl.java: More-or-less rewrite. Now works, at least for read mapping. From-SVN: r78662
2004-02-29FileDescriptor.java: Implement on top of FileChannel.Per Bothner7-1184/+106
* java/io/FileDescriptor.java: Implement on top of FileChannel. Remove native methods. * java/io/natFileDescriptorEcos.cc: Remove file. * java/io/natFileDescriptorPosix.cc: Remove file. * java/io/natFileDescriptorWin32.cc: Remove file. * java/io/FileInputStream.java (ch): Change type to FileChannelImpl. (<init>(File)): Allocate a FileChannelImpl, not a FileDescriptor. (<init>(FileChannelImpl)): New package-private constructor. (<init>(FileDescriptor)): Extract FileChannelImpl from arg. (available, close, read, skip): Implement using FileChannelImpl. (getFD): Allocate FileDescriptor if needed. (getChannel): Is now trivial. * java/io/FileOutputStream.java: Corresponding changes. * java/io/RandomAccessFile.java: Corresponding changes. From-SVN: r78661
2004-02-29FileChannelImpl.java: Moved to package gnu/java/nio/channels, since we need ↵Per Bothner2-551/+0
to refer to it from java.io. * java/nio/channels/FileChannelImpl.java: Moved to package gnu/java/nio/channels, since we need to refer to it from java.io. * java/nio/channels/natFileChannelImpl.cc: Removed file. * Makefile.am, configure.in: Updated accordingly. From-SVN: r78660
2004-02-29FileChannelImpl.java: New class, renamed from java/nio/channels.Per Bothner4-0/+1533
* gnu/java/nio/channels/FileChannelImpl.java: New class, renamed from java/nio/channels. Don't depend on FileDescriptor. (in, out, err): New static fields. (mode): New field. (SET, CUR, READ, WRITE, APPEND, EXCL, SYNC, DSYNC): Moved constants from FileDescriptor. (by): Removed MappedByteBuffer field. (map): New working implementation. * gnu/java/nio/channels/natFileChannelPosix.cc: New file, though some code "ported" from natFileDescriptoPosix.cc. * gnu/java/nio/channels/natFileChannelEcos.cc: Likewise. * gnu/java/nio/channels/natFileChannelWin32.cc Likewise. From-SVN: r78659
2004-02-28ObjectInputStream.java: Compile fix, damn I commited the wrong code.Michael Koch2-0/+6
2004-02-28 Michael Koch <konqueror@gmx.de> * java/io/ObjectInputStream.java: Compile fix, damn I commited the wrong code. From-SVN: r78629
2004-02-282004-02-28 Guilhem Lavaux <guilhem@kaffe.org>Guilhem Lavaux4-173/+317
* java/io/ObjectInputStream.java (readClassDescriptor): Keep elements of the mapping non null. (checkTypeConsistency): New method. (readFields): Fixed main loop and base logic. Small reindentation. * java/io/ObjectStreamField.java (lookupField): New method to update the field reference. (checkFieldType): New method. * java/io/ObjectStreamClass.java (setClass, setFields): Call lookupField when building the field database. Check the real field type. From-SVN: r78627
2004-02-282004-02-28 Michael Koch <konqueror@gmx.de>Michael Koch2-1/+6
* java/nio/ByteOrder.java (nativeOrder): Use equals() to compare strings. From-SVN: r78626
2004-02-262004-02-26 Michael Koch <konqueror@gmx.de>Michael Koch5-12/+30
* gnu/java/nio/FileLockImpl.java (finalize): Made protected. * java/nio/channels/FileChannel.java (MapMode.READ_ONLY): Made final. (MapMode.READ_WRITE): Made final. (MapMode.PRIVATE): Made final. * java/nio/channels/SocketChannel.java (open): Simplified code. * java/nio/channels/spi/AbstractSelectableChannel.java (registered): Unused, removed. (keyFor): Check channel is open, only locate key and not add a new one. (register): Don't delete attachments. From-SVN: r78519
2004-02-262004-02-26 Michael Koch <konqueror@gmx.de>Michael Koch3-9/+18
* gnu/java/awt/ComponentDataBlitOp.java (INSTANCE): Made final. * gnu/java/awt/image/ImageDecoder.java: Reworked imports. (cm): Unused, removed. From-SVN: r78517
2004-02-262004-02-26 Michael Koch <konqueror@gmx.de>Michael Koch2-2/+12
* gnu/java/nio/DatagramChannelImpl.java (send): Check if target address is resolved. From-SVN: r78508
2004-02-26re PR libgcj/14296 (3.4 regression: Method.Invoke)Andrew Haley1-1/+10
2004-02-25 Andrew Haley <aph@redhat.com> PR java/14296: * java/lang/reflect/natMethod.cc (_Jv_CallAnyMethodA): Make sure we have a valid method index. From-SVN: r78504
2004-02-26Makefile.am: Generate and install headers for inner classes in ↵Michael Koch3-4/+57
java.nio.channels.Pipe and... 2004-02-26 Michael Koch <konqueror@gmx.de> * Makefile.am: Generate and install headers for inner classes in java.nio.channels.Pipe and gnu.java.nio.PipeImpl. * Makefile.in: Regenerated. From-SVN: r78493
2004-02-25de-pessimizationAnthony Green2-4/+27
From-SVN: r78447
2004-02-23config.sub, [...]: Replace with forwarding scripts which invoke the master ↵Zack Weinberg3-2974/+50
copies in the top level. 2004-02-22 Zack Weinberg <zack@codesourcery.com> Nathanael Nerode <neroden@twcny.rr.com> Alexandre Oliva <aoliva@redhat.com> boehm-gc: libjava/libltdl: * config.sub, config.guess: Replace with forwarding scripts which invoke the master copies in the top level. From-SVN: r78332
2004-02-20Handler.java (): Removed unneeded check for file != null.Michael Koch2-2/+7
2004-02-20 Michael Koch <konqueror@gmx.de> * gnu/java/net/protocol/jar/Handler.java (): Removed unneeded check for file != null. java.net.URL.getFile() returns an empty string but never null. From-SVN: r78176
2004-02-202004-02-20 Michael Koch <konqueror@gmx.de>Michael Koch2-2/+7
* gnu/gcj/convert/Convert.java (main): Use equals() to compare strings. From-SVN: r78174
2004-02-20Index: ChangeLogAndrew Cagney3-8/+83
2004-02-19 Andrew Cagney <cagney@redhat.com> * config.guess: Update from version 2003-10-16 to 2004-02-16. * config.sub: Update from version 2003-11-03 to 2004-02-16. Index: boehm-gc/ChangeLog 2004-02-19 Andrew Cagney <cagney@redhat.com> * config.guess: Update from version 2002-01-10 to 2004-02-16. * config.sub: Update from version 2002-01-02 to 2004-02-16. Index: libjava/libltdl/ChangeLog 2004-02-19 Andrew Cagney <cagney@redhat.com> * config.guess: Update from version 2003-10-07 to 2004-02-16. * config.sub: Update from version 2003-10-07 to 2004-02-16. From-SVN: r78171
2004-02-20AbstractButton.java: Made several constants final.Michael Koch2-21/+27
2004-02-20 Michael Koch <konqueror@gmx.de> * javax/swing/AbstractButton.java: Made several constants final. (getRolloverSelectedIcon): Made public. (getSelectedIcon): Made public. From-SVN: r78169
2004-02-16ByteBuffer.java (endian): Make non-private so other java.nio classes can ↵Per Bothner6-96/+193
inherit it. * java/nio/ByteBuffer.java (endian): Make non-private so other java.nio classes can inherit it. (<init>): Don't bother clearing array_offset. * java/nio/ByteBuffer.java (allocate): Re-implement using wrap. * java/nio/ByteBuffer.java (get(byte[],int,int)): Check underflow. Remove redundant test. * java/nio/ByteBufferImpl.java (asCharBuffer, asShortBuffer, asIntBuffer, asLongBuffer, asFloatBuffer, asDoubleBuffer): Use new XxxViewBufferImpl constructors. * java/nio/MappedByteBufferImpl.java: Likewise. * java/nio/DirectByteBufferImpl.java: Likewise. * java/nio/ByteBufferImpl.java: Remove one constructor. Inline super in remaining constructor. * java/nio/ByteBuffer.java: Remove unused constructor. * java/nio/ByteBufferImpl.java (shiftDown): New optimized method. * java/nio/ByteBufferImpl.java (get, put): Add array_offset. * java/nio/DirectByteBufferImpl.java (owner): New field. (offset): Remove unused field. (<init>): Modify one and add another constructor. Change callers. (allocateDirect): Removed - not used. (getImpl, putImpl): Make static and pass address explicitly, to make them useful for MappedByteBufferImpl. (get, put): Check for underflow. Modify for new getImpl. (getImpl): New native method where target is array. (get(byte[],int,int)): Use the above. (adjustAddress): New static native method. (slice, duplicate, asReadOnly): New implementations. * java/nio/natDirectByteBufferImpl.cc (getImpl, putImpl, shiftDown, adjustAddress): New or updated native methods. From-SVN: r77919
2004-02-16CharViewBufferImpl.java: New convenience constructor.Per Bothner7-6/+67
* java/nio/CharViewBufferImpl.java: New convenience constructor. Fix buggy call to super constructor. * java/nio/DoubleViewBufferImpl.java: Likewise. * java/nio/FloatViewBufferImpl.java: Likewise. * java/nio/IntViewBufferImpl.java: Likewise. * java/nio/LongViewBufferImpl.java: Likewise. * java/nio/ShortViewBufferImpl.java: Likewise. From-SVN: r77917
2004-02-16CharBufferImpl.java: Inline super constructor.Per Bothner13-48/+33
* java/nio/CharBufferImpl.java: Inline super constructor. * java/nio/DoubleBufferImpl.java: Likewise. * java/nio/FloatBufferImpl.java: Likewise. * java/nio/IntBufferImpl.java: Likewise. * java/nio/LongBufferImpl.java: Likewise. * java/nio/ShortBufferImpl.java: Likewise. * java/nio/CharBuffer.java: Remove unused constructor. * java/nio/DoubleBuffer.java: Likewise. * java/nio/FloatBuffer.java: Likewise. * java/nio/IntBuffer.java: Likewise. * java/nio/LongBuffer.java: Likewise. * java/nio/ShortBuffer.java: Likewise. From-SVN: r77916
2004-02-15ObjectInputStream.java (readClassDescriptor): Avoid the overflow of ↵Ito Kazumitsu2-2/+19
fieldmapping. 2004-02-15 Ito Kazumitsu <kaz@maczuka.gcd.org> * java/io/ObjectInputStream.java (readClassDescriptor): Avoid the overflow of fieldmapping. From-SVN: r77843
2004-02-14UndoManager.java: Re-written from scratch.Sascha Brawer2-216/+585
2004-02-14 Sascha Brawer <brawer@dandelis.ch> * javax/swing/undo/UndoManager.java: Re-written from scratch. From-SVN: r77827
2004-02-14AbstractInterruptibleChannel.java (close): Set closed before calling ↵Per Bothner2-1/+6
implCloseChannel, as in the spec. * java/nio/channels/spi/AbstractInterruptibleChannel.java (close): Set closed before calling implCloseChannel, as in the spec. From-SVN: r77809
2004-02-12remove accidentally-committed extra makefile entry (not yet finished or added).Graydon Hoare2-80/+77
From-SVN: r77695
2004-02-12oops, forgot added and removed files.Graydon Hoare3-139/+203
From-SVN: r77694