aboutsummaryrefslogtreecommitdiff
path: root/libjava/java
AgeCommit message (Collapse)AuthorFilesLines
1999-05-07acconfig.h (GCJVERSION): New undef.Tom Tromey1-6/+25
* acconfig.h (GCJVERSION): New undef. * java/lang/natSystem.cc (init_properties): Define java.version, java.class.version, os.name, os.arch, os.version. Include <sys/utsname.h> if required. * configure: Rebuilt. * configure.in: Compute and define GCJVERSION. * java/lang/natSystem.cc (default_file_encoding): Now static. From-SVN: r26830
1999-05-07* java/lang/natCharacter.cc (isLowerCase): Use a binary search.Tom Tromey1-3/+18
From-SVN: r26829
1999-05-05natSystem.cc (DEFAULT_FILE_ENCODING): New macro.Per Bothner1-1/+6
� * java/lang/natSystem.cc (DEFAULT_FILE_ENCODING): New macro. (default_file_encoding): New global, initial value is above macro. (init_properties): Default file.encoding to default_file_encoding. From-SVN: r26797
1999-05-05*** empty log message ***Per Bothner1-0/+190
From-SVN: r26796
1999-05-05InflaterInputStream.java: New stub class.Per Bothner2-6/+152
� * InflaterInputStream.java: New stub class. * ZipInputStream.java: New class. Partly works. * ZipConstants.java: Add two (internal) constants. * ZipEntry.java (timeFromDOS): New static (non-public) method. * ZipFile.java: Make it mostly work, except for compression. * ZipOutputStream.java: Start implementation. From-SVN: r26795
1999-05-05InflaterInputStream.java: New stub class.Per Bothner1-0/+32
8 * InflaterInputStream.java: New stub class. * ZipInputStream.java: New class. Partly works. * ZipConstants.java: Add two (internal) constants. * ZipEntry.java (timeFromDOS): New static (non-public) method. * ZipFile.java: Make it mostly work, except for compression. * ZipOutputStream.java: Start implementation. From-SVN: r26794
1999-05-05InflaterInputStream.java: New stub class.Per Bothner1-1/+6
e * InflaterInputStream.java: New stub class. * ZipInputStream.java: New class. Partly works. * ZipConstants.java: Add two (internal) constants. * ZipEntry.java (timeFromDOS): New static (non-public) method. * ZipFile.java: Make it mostly work, except for compression. * ZipOutputStream.java: Start implementation. From-SVN: r26793
1999-05-05InflaterInputStream.java: New stub class.Per Bothner1-0/+12
u * InflaterInputStream.java: New stub class. * ZipInputStream.java: New class. Partly works. * ZipConstants.java: Add two (internal) constants. * ZipEntry.java (timeFromDOS): New static (non-public) method. * ZipFile.java: Make it mostly work, except for compression. * ZipOutputStream.java: Start implementation. From-SVN: r26792
1999-05-05Makefile.in: Rebuilt.Tom Tromey2-13/+61
* Makefile.in: Rebuilt. * Makefile.am (CLEANFILES): Don't mention $(class_files). (clean-local): New target * java/lang/natRuntime.cc: Include <ltdl.h> if required. (load, loadLibrary): Now native. (init): New method. * java/lang/Runtime.java (load, loadLibrary): Now native. (init): New native method. (Runtime): Use init. * prims.cc: Include <ltdl.h> if required. (JvRunMain): Call LTDL_SET_PRELOADED_SYMBOLS. From-SVN: r26785
1999-05-05Add AWT stubs and incomplete classes.Per Bothner40-0/+1321
From-SVN: r26778
1999-04-30StringBuffer.java (ensureCapacity): Don't resize vector when shared.Tom Tromey6-80/+96
* java/lang/StringBuffer.java (ensureCapacity): Don't resize vector when shared. * java/util/Locale.java (Locale(String,String)): Implement in terms of 3-argument version; variant now defaults to empty string. (toString): Assume variant is not null. (equals): Assume all strings are not null. (Locale): Throw NullPointerException if any argument is null. * java/util/ResourceBundle.java (getBundle): Don't try the base name; now implicit in partialGetBundle call. (trySomeGetBundle): Search for parent bundles and call setParent as required. (partialGetBundle): Added `langStop' argument. Use `Locale.toString' to compute bundleName. (resource_cache): New static field. (partialGetBundle): Cache the returned resource bundle. Now synchronized. * gnu/gcj/text/LocaleData_en.java (contents): [collatorRule] Added missing `<'. * mauve-libgcj: Enable Collator and RuleBasedCollator. * java/text/natCollator.cc (decomposeCharacter): `base' now `const'. * Makefile.in: Rebuilt. * Makefile.am (ordinary_java_source_files): Added CollationElementIterator, CollationKey, Collator, RuleBasedCollator. (nat_source_files): Added natCollator.cc. * java/text/RuleBasedCollator.java (ceiNext): No longer static. (compare): Pass `this' to CollationElementIterator constructor. (getCollationElementIterator): Likewise. (ceiNext): Fix off-by-one error when finding initial substring. (next): Correctly mask off bits when computing return value. Fixed return values when one string is shorter than the other. * java/text/CollationElementIterator.java (collator): New field. (CollationElementIterator): Added collator argument. (next): Call ceiNext on collator object. From-SVN: r26707
1999-04-26* natCollator.cc: New file.Tom Tromey1-0/+74
From-SVN: r26655
1999-04-26GregorianCalendar.java (setDefaultTime): New method.Tom Tromey6-1/+680
* java/util/GregorianCalendar.java (setDefaultTime): New method. (GregorianCalendar): Use it in all constructors. * java/util/Calendar.java (Calendar): Changed argument name to `zone' to match code. * gnu/gcj/text/LocaleData_en.java: Added collatorRule element. * java/text/CollationKey.java: New file. * java/text/CollationElementIterator.java: New file. * java/text/Collator.java: New file. * java/text/RuleBasedCollator.java: New file. From-SVN: r26654
1999-04-23Makefile.am: Added URLDecoder and URLEncoder.Warren Levy4-2/+121
* Makefile.am: Added URLDecoder and URLEncoder. * Makefile.in: Rebuilt. * java/net/ServerSocket.java (setSocketFactory): Renamed from setSocketImplFactory to match spec. * java/net/Socket.java (getSoLinger): Changed return type to match spec. * java/net/URLDecoder.java: New file. * java/net/URLEncoder.java: New file. From-SVN: r26605
1999-04-21natString.cc (getBytes): Reverted earlier change and applied correct fix ↵Tom Tromey1-3/+5
from Per Bothner. * java/lang/natString.cc (getBytes): Reverted earlier change and applied correct fix from Per Bothner. From-SVN: r26579
1999-04-21String.java: Don't throw UnsupportedEncodingException.Tom Tromey1-2/+20
* java/lang/String.java: Don't throw UnsupportedEncodingException. From-SVN: r26577
1999-04-21natString.cc (getBytes): Correctly size result buffer.Tom Tromey1-2/+2
* java/lang/natString.cc (getBytes): Correctly size result buffer. From Bryce McKinlay <bryce@albatross.co.nz>. From-SVN: r26575
1999-04-19natSystem.cc (init_properties): Only declare pwd_entry once.Tom Tromey1-1/+1
* java/lang/natSystem.cc (init_properties): Only declare pwd_entry once. From Anthony Green. From-SVN: r26545
1999-04-18* java/io/PrintStream.java (println): Remove extra println.Anthony Green1-1/+0
From-SVN: r26541
1999-04-18Makefile.in: Rebuilt.Anthony Green2-0/+86
* Makefile.in: Rebuilt. * Makefile.am (ordinary_java_source_files): Add new security files. * java/security/NoSuchAlgorithmException.java, java/security/MessageDigest.java: New files. * include/javaprims.h: Add security namespace. From-SVN: r26536
1999-04-16InputStreamReader.java (<init>): Set super.in correctly.Per Bothner3-55/+120
� * java/io/InputStreamReader.java (<init>): Set super.in correctly. * java/io/OutputStreamWriter.java (<init>): Set super.in correctly. (writeChars): Don't be quite so eager to flush. * java/io/PrintStream.java: Rewrite. Now more similar to OutputStreamWriter, using explicit UnicodeToBytes converter. Also, autoflush does not need to flush so often. * java/lang/natString.cc (getBytes): More efficient algorithm. (init(jbyteArray,jint,jint,jstring)): More efficient. From-SVN: r26509
1999-04-16InputStreamReader.java (<init>): Set super.in correctly.Per Bothner1-23/+56
� * java/io/InputStreamReader.java (<init>): Set super.in correctly. * java/io/OutputStreamWriter.java (<init>): Set super.in correctly. (writeChars): Don't be quite so eager to flush. * java/io/PrintStream.java: Rewrite. Now more similar to OutputStreamWriter, using explicit UnicodeToBytes converter. Also, autoflush does not need to flush so often. * java/lang/natString.cc (getBytes): More efficient algorithm. (init(jbyteArray,jint,jint,jstring)): More efficient. From-SVN: r26508
1999-04-15Makefile.am (ordinary_java_source_files): Added new Connection and Handler ↵Warren Levy1-1/+1
classes in gnu.gcj.protocol.file package. * Makefile.am (ordinary_java_source_files): Added new Connection and Handler classes in gnu.gcj.protocol.file package. * Makefile.in: Rebuilt. * gnu/gcj/protocol/file/Connection.java: New file. * gnu/gcj/protocol/file/Handler.java: New file. * gnu/gcj/protocol/http/Connection.java (getInputStream): Check if doInput allows input. (getOutputStream): Check if doOutput allows output. * java/net/URLStreamHandler.java (parseURL): Fix indentation. From-SVN: r26479
1999-04-14natInetAddress.cc (lookup): On glibc2.0 systems, make buffer larger to work ↵Tom Tromey1-0/+7
around bug. * java/net/natInetAddress.cc (lookup): On glibc2.0 systems, make buffer larger to work around bug. From Bryce McKinlay <bryce@albatross.co.nz>. From-SVN: r26447
1999-04-14natDouble.java (doubleToLongBits): ensure that all NaNs are always converted ↵Andrew Haley2-0/+13
to the same long value. 1999-04-14 Andrew Haley <aph@cygnus.com> * java/lang/natDouble.java (doubleToLongBits): ensure that all NaNs are always converted to the same long value. * java/lang/natFloat.java (floatToIntBits): ditto, but for float converted to int. From-SVN: r26439
1999-04-13natSystem.cc (arraycopy): Don't always use jbyteArray; instead switch on ↵Tom Tromey1-9/+51
actual element type. * java/lang/natSystem.cc (arraycopy): Don't always use jbyteArray; instead switch on actual element type. From-SVN: r26405
1999-04-12DataInputStream.java (readLine): Corrected handling of empty lines, from ↵Urban Widmark1-3/+6
null to "". 1999-04-12 Urban Widmark <urban@svenskatest.se> * java/io/DataInputStream.java (readLine): Corrected handling of empty lines, from null to "". From-SVN: r26381
1999-04-12natSystem.cc (SystemClass): New define.Tom Tromey1-3/+10
* java/lang/natSystem.cc (SystemClass): New define. (init_properties): Synchronize. From-SVN: r26372
1999-04-08natInetAddress.cc (lookup): Fix typo (AF_INET16 -> AF_INET6).Geoff Berry2-1/+2
1999-04-08 Geoff Berry <gcb@gnu.org> * natInetAddress.cc (lookup): Fix typo (AF_INET16 -> AF_INET6). * natPlainSocketImpl.cc (accept): Add missing else if check for AF_INET6. From-SVN: r26297
1999-04-08Long.java (parseLong): Corrected overflow detection code.Tom Tromey2-30/+20
* java/lang/Long.java (parseLong): Corrected overflow detection code. * java/lang/Integer.java (parseInt): Corrected overflow detection code. From-SVN: r26295
1999-04-08PrintStream.java (print): Handle null string argument.Tom Tromey1-2/+2
* java/io/PrintStream.java (print): Handle null string argument. (println): Likewise. From-SVN: r26294
1999-04-07natString.cc (init(jbyteArray,jint,jint,jstring)): Set count to 0 when ↵Warren Levy1-0/+4
InputStreamReader returns -1 for EOF. * java/lang/natString.cc (init(jbyteArray,jint,jint,jstring)): Set count to 0 when InputStreamReader returns -1 for EOF. From-SVN: r26273
1999-04-07Initial revisionTom Tromey271-0/+37903
From-SVN: r26263