Kelley Cook
917b04f492
Update FSF address
...
From-SVN: r101453
2005-06-30 03:22:09 +00:00
Tom Tromey
3b523c85c1
* java/lang/String.java (startsWith): Fixed javadoc.
...
From-SVN: r99746
2005-05-15 21:09:45 +00:00
Tom Tromey
0cb757cc06
javaprims.h: Updated.
...
* gcj/javaprims.h: Updated.
* java/lang/String.java (String(StringBuilder)): New constructor.
* java/lang/natStringBuilder.cc: New file.
* java/lang/StringBuilder.java: New file.
* Makefile.in: Rebuilt.
* Makefile.am (core_java_source_files): Added StringBuilder.java.
(nat_source_files): Added natStringBuilder.cc.
From-SVN: r99535
2005-05-10 18:28:31 +00:00
Michael Koch
f8af9e2861
String.java (rehash): Removed.
...
2004-11-23 Michael Koch <konqueror@gmx.de>
* java/lang/String.java (rehash): Removed.
* java/lang/natString.cc (rehash): Made static.
(_Jv_NewStringUtf8Const): Use static rehash method.
From-SVN: r91104
2004-11-23 21:33:01 +00:00
Michael Koch
1792f52d3a
String.java: Fixed javadocs all over.
...
2004-07-17 Michael Koch <konqueror@gmx.de>
* java/lang/String.java: Fixed javadocs all over.
From-SVN: r84870
2004-07-17 14:04:45 +00:00
Tom Tromey
651bed366a
natString.cc (init(gnu.gcj.runtime.StringBuffer)): New method.
...
* java/lang/natString.cc (init(gnu.gcj.runtime.StringBuffer)):
New method.
Include gnu/gcj/runtime/StringBuffer.h.
* java/lang/String.java (init(gnu.gcj.runtime.StringBuffer)): New
native method.
(String(gnu.gcj.runtime.StringBuffer)): Use it.
From-SVN: r69890
2003-07-28 16:12:00 +00:00
Tom Tromey
6a76da08a3
String.java (data, [...]): Documented.
...
* java/lang/String.java (data, boffset, count): Documented.
(String(byte[],String)): Reformatted.
(String(byte[])): Likewise.
(lastIndexOf(int)): Likewise.
(lastIndexOf(String)): Likewise.
(substring(int)): Renamed argument to match Classpath.
(String(StringBuffer)): Don't share buffer if it is nearly empty.
From-SVN: r65070
2003-03-31 01:03:21 +00:00
Tom Tromey
6a8873a754
String.java: Miscellaneous minor formatting changes to match Classpath more closely.
...
* java/lang/String.java: Miscellaneous minor formatting changes
to match Classpath more closely.
From-SVN: r65055
2003-03-30 21:14:32 +00:00
Eric Blake
7270451f19
natString.cc (hashCode): Use cachedHashCode.
...
2003-03-29 Eric Blake <ebb9@email.byu.edu>
Tom Tromey <tromey@redhat.com>
* java/lang/natString.cc (hashCode): Use cachedHashCode.
(init()): Removed.
(charAt): Put index in exception.
(contentEquals): New method.
Include StringBuffer.h.
* java/lang/String.java (cachedHashCode): New field.
(String()): Follow classpath implementation.
(init()): Removed.
(contentEquals): Declare.
(subSequence): Don't declare IndexOutIfBoundsException in throws
clause.
(matches, replaceFirst, replaceAll, split): New methods from
Classpath.
Co-Authored-By: Tom Tromey <tromey@redhat.com>
From-SVN: r65037
2003-03-30 06:43:45 +00:00
Tom Tromey
9ba99c63ab
String.java: Reordered to follow Classpath; merged in javadoc.
...
* java/lang/String.java: Reordered to follow Classpath; merged in
javadoc.
From-SVN: r65036
2003-03-30 05:38:28 +00:00
Eric Blake
ce1bb3bbba
natStringBuffer.cc (regionMatches): New function.
...
2003-03-23 Eric Blake <ebb9@email.byu.edu>
* java/lang/natStringBuffer.cc (regionMatches): New function.
* java/lang/String.java (count): Now package-private.
* java/lang/StringBuffer.java: Merged with Classpath.
From-SVN: r64770
2003-03-24 00:50:18 +00:00
Tom Tromey
93f7aeea7a
natString.cc (init): Handle case where DONT_COPY is true and OFFSET!=0.
...
* java/lang/natString.cc (init): Handle case where DONT_COPY is
true and OFFSET!=0.
* java/lang/String.java (String(char[],int,int,boolean): New
constructor.
* java/lang/Long.java: Imported new version from Classpath.
* java/lang/Number.java: Likewise.
* java/lang/Integer.java: Likewise.
* java/lang/Long.java: Likewise.
* java/lang/Float.java: Likewise.
* java/lang/Boolean.java: Likewise.
* java/lang/Double.java: Likewise.
* java/lang/Void.java: Likewise.
From-SVN: r54595
2002-06-13 18:16:26 +00:00
Tom Tromey
50cc5dd29b
String.java (String): New constructor.
...
* java/lang/String.java (String): New constructor.
* gnu/gcj/runtime/natStringBuffer.cc: New file.
* gnu/gcj/runtime/StringBuffer.java: New file.
* Makefile.in: Rebuilt.
* Makefile.am (ordinary_java_source_files): Added
gnu/gcj/runtime/StringBuffer.java.
(nat_source_files): Added gnu/gcj/runtime/natStringBuffer.cc.
From-SVN: r47883
2001-12-11 18:01:40 +00:00
Mark Wielaard
627a8b878e
Makefile.am: Add new classes
...
* Makefile.am: Add new classes
(core_java_source_files): CharSequence
(ordinary_java_source_files): Authenticator, PasswordAuthentication
* Makefile.in: regenerate
* gcj/javaprims.h: ditto
* java/lang/CharSequence: new class from Classpath
* java/lang/String.java: implements CharSequence
(subSequence (int,int)): new method
* java/lang/SubString.java: implements CharSequence
(subSequence (int,int)): new method
remerge comments with Classpath
* java/net/Authenticator.java: new class from Classpath
* java/net/PasswordAuthentication.java: ditto
From-SVN: r45969
2001-10-02 20:59:31 +00:00
Tom Tromey
7dcc5966f0
From Eric Blake, via Classpath:
...
* java/lang/String.java (CaseInsensitiveComparator): New class.
(CASE_INSENSITIVE_ORDER): Use instance of CaseInsensitiveComparator.
From-SVN: r45425
2001-09-05 19:32:57 +00:00
Per Bothner
ef0a7b49a9
javaprims.h (_Jv_FormatInt): New declaration.
...
* gcj/javaprims.h (_Jv_FormatInt): New declaration.
* java/lang/natString.cc (_JvFormatInt): New primitive, with logic
taken from old Integer.toString code.
(Integer::valueOf): Use _Jv_FormatInt.
* java/lang/Integer.java (toString): Just use call String.valueOf.
* java/lang/Long.java (toString): Fix typo in comment.
* java/lang/String.java (valueOf(int)): Make native.
* java/lang/StringBuffer.java (append(int)): Make native.
* java/lang/natStringBuffer.cc: New file, for append(jint).
* Makefile.am (ant_source_files): Add java/lang/natStringBuffer.cc.
From-SVN: r42419
2001-05-21 21:38:37 -07:00
Per Bothner
a3b63299e6
natString.cc (intern): If string's data does not point to this String, make a fresh String that does.
...
* java/lang/natString.cc (intern): If string's data does not point to
this String, make a fresh String that does.
* java/lang/natString.cc (unintern): Replace by static function.
* java/lang/String.java (unintern): Remove method.
From-SVN: r40990
2001-04-01 14:54:10 -07:00
Tom Tromey
9839499072
natString.cc: Include Locale.h.
...
* java/lang/natString.cc: Include Locale.h.
(toUpperCase): Added `locale' argument. Handle locale
sensitivity.
(toLowerCase): Added `locale' argument. Handle locale
sensitivity.
(ESSET, CAPITAL_S, SMALL_I, CAPITAL_I_WITH_DOT, SMALL_DOTLESS_I,
CAPITAL_I): New defines.
* java/lang/String.java (CASE_INSENSITIVE_ORDER): Now public and
final.
Import Locale.
(toUpperCase, toLowerCase): New methods. Variants which accept
locale now native.
* java/lang/ExceptionInInitializerError.java (printStackTrace):
New methods.
* java/util/PropertyPermission.java: Re-merged from Classpath.
* java/text/RuleBasedCollator.java (getCollationElementIterator):
New method.
* java/text/StringCharacterIterator.java: Reindented.
(setText): New method.
From-SVN: r37539
2000-11-18 02:29:13 +00:00
Bryce McKinlay
0f94c029e9
String.java (CASE_INSENSITIVE_ORDER): New static field.
...
2000-09-13 Bryce McKinlay <bryce@albatross.co.nz>
* java/lang/String.java (CASE_INSENSITIVE_ORDER): New static field.
Initialize with anonymous class.
(compareToIgnoreCase): New method.
* java/lang/ThreadGroup.java (had_uncaught_exception): New field.
(uncaughtException): Set had_uncaught_exception.
* prims.cc (JvRunMain): Check value of had_uncaught_exception and
exit with error status if set.
(_Jv_RunMain): Ditto.
From-SVN: r36385
2000-09-13 07:36:25 +01:00
Warren Levy
bc6ccd3316
PropertyChangeEvent.java (serialVersionUID): Added.
...
* java/beans/PropertyChangeEvent.java (serialVersionUID): Added.
* java/beans/PropertyVetoException.java (serialVersionUID): Added.
* java/io/File.java (writeObject): Added.
(readObject): Added.
(serialVersionUID): Added.
* java/io/ObjectOutputStream.java (writeObject): Initialized
fieldsAlreadyWritten before recursion rather than after.
* java/io/ObjectStreamClass.java (serialVersionUID): Added.
* java/io/OptionalDataException.java (serialVersionUID): Added.
(OptionalDataException): Made package private.
* java/io/SyncFailedException.java (SyncFailedException): Removed
default constructor to match spec.
* java/lang/Boolean.java (serialVersionUID): Added.
* java/lang/Byte.java (serialVersionUID): Added.
* java/lang/Character.java (serialVersionUID): Added.
* java/lang/Double.java (serialVersionUID): Added.
* java/lang/Float.java (serialVersionUID): Added.
* java/lang/Integer.java (serialVersionUID): Added.
* java/lang/Long.java (serialVersionUID): Added.
* java/lang/Number.java (serialVersionUID): Added.
* java/lang/Short.java (serialVersionUID): Added.
* java/lang/String.java (serialVersionUID): Added.
* java/lang/ThreadDeath.java (ThreadDeath): Removed constructor
to match spec.
* java/lang/reflect/InvocationTargetException.java
(serialVersionUID): Added.
* java/net/URL.java (handler): Made transient.
(hashCode): Added field for serialization, per spec. and use
cached value if available.
(serialVersionUID): Added.
(URL): Initialize hashCode.
(set): Adjust hashCode.
(readObject): New Method to initialize the protocol handler when
deserializing.
(writeObject): New method.
* java/text/BreakIterator.java: Removed 'implements Serializable'.
* java/text/Collator.java: Removed 'implements Serializable'.
* java/util/GregorianCalendar.java (serialVersionUID): Added.
* java/util/Properties.java (serialVersionUID): Added.
* java/util/Random.java (serialVersionUID): Added.
(seed): Made private.
(nextNextGaussian): Made private.
(haveNextNextGaussian): Made private.
* java/util/Stack.java (serialVersionUID): Added.
* java/util/TimeZone.java (serialVersionUID): Added.
* java/util/Vector.java (serialVersionUID): Added.
Serialization mods.
From-SVN: r36272
2000-09-08 19:37:09 +00:00
Tom Tromey
6c80c45e30
Jumbo patch:
...
* Imported beans and serialization
* Updated IA-64 port
* Miscellaneous bug fixes
From-SVN: r34028
2000-05-19 17:55:34 +00:00
Tom Tromey
2238de654f
StringBuffer.java (toString): Don't mark buffer as shared.
...
* java/lang/StringBuffer.java (toString): Don't mark buffer as
shared.
(insert(int,char[],int,int): New method.
(delete): New method from Classpath.
(deleteCharAt): Likewise.
(substring): Likewise.
(shared): No longer private.
Added JavaDoc comments from Classpath.
* java/lang/String.java (String(StringBuffer)): Ensure `buffer' is
shared.
From-SVN: r33809
2000-05-09 22:46:58 +00:00
Bryce McKinlay
065ccab369
String.java (toString): Remove `final' hack.
...
2000-04-28 Bryce McKinlay <bryce@albatross.co.nz>
* libjava/java/lang/String.java (toString): Remove `final' hack.
From-SVN: r33508
2000-04-28 08:56:34 +01:00
Tom Tromey
50b99cc8fe
natString.cc (unintern): Added `obj' argument.
...
* java/lang/natString.cc (unintern): Added `obj' argument.
(intern): Register finalizer for string.
* java/lang/String.java (unintern): Now static; added obj
argument.
From-SVN: r33124
2000-04-12 20:45:59 +00:00
Tom Tromey
2ba5f77454
All files: Updated copyright information.
...
* All files: Updated copyright information.
* COPYING: New file.
* COPYING.LIB: Removed.
* LIBGCJ_LICENSE: We now use GPL + special exception.
From-SVN: r32387
2000-03-07 19:55:28 +00:00
Tom Tromey
7c734b1758
* All files: Updated copyright to reflect Cygnus purchase.
...
From-SVN: r31504
2000-01-19 18:39:27 +00:00
Bryce McKinlay
659c26fc49
String.java (toString): Check for this == null and throw NullPointerException.
...
1999-07-01 Bryce McKinlay <bryce@albatross.co.nz>
* java/lang/String.java (toString): Check for this == null and throw
NullPointerException.
From-SVN: r27895
1999-07-01 20:58:04 +01:00
Tom Tromey
9d9cf1661d
String.java: Don't throw UnsupportedEncodingException.
...
* java/lang/String.java: Don't throw
UnsupportedEncodingException.
From-SVN: r26577
1999-04-21 12:12:39 +00:00
Tom Tromey
ee9dd3721b
Initial revision
...
From-SVN: r26263
1999-04-07 14:42:40 +00:00