aboutsummaryrefslogtreecommitdiff
path: root/libjava
AgeCommit message (Collapse)AuthorFilesLines
2000-11-28Makefile.am: Added natTimeZone.cc.Warren Levy8-560/+2221
* Makefile.am: Added natTimeZone.cc. * Makefile.in: Rebuilt. * gnu/gcj/text/LocaleData_en.java: Added DateFormat entries. * java/text/DateFormatSymbols.java (ampms): Made package private. (eras): Made package private. (months): Made package private. (shortMonths): Made package private. (shortWeekdays): Made package private. (weekdays): Made package private. (formatPrefixes): New private field. (localPatternCharsDefault): Made private. (dateFormats): New package private field. (timeFormats): New package private field. (formatsForKey): New private method. (DateFormatSymbols(Locale)): Set dateFormats and timeFormats. (DateFormatSymbols(DateFormatSymbols)): Ditto. * java/text/SimpleDateFormat.java: Merged with Classpath. * java/util/TimeZone.java: Merged with Classpath. * java/util/natTimeZone.cc: New file. From-SVN: r37808
2000-11-27MIssing ChangeLog entry for my last commits.Anthony Green1-0/+13
From-SVN: r37788
2000-11-27More new classes.Anthony Green10-0/+232
From-SVN: r37786
2000-11-27Vector.java (ensureCapacity): Don't increment modCount.Bryce McKinlay4-39/+55
2000-11-27 Bryce McKinlay <bryce@albatross.co.nz> * java/util/Vector.java (ensureCapacity): Don't increment modCount. (addElement): Don't increment elementCount twice. Doh. * java/util/ArrayList.java (add): Only call ensureCapacity if the array needs to be expanded. (addAll): Ditto. * java/util/Collections.java (UnmodifiableCollection): Implement toString(). (UnmodifiableList): Throw UnsupportedOperationException from modification methods. Set `l' from the one-parameter constructor. (UnmodifiableMap): Implement toString(). (SynchronizedCollection): Ditto. (SynchronizedList): Set `l' from the one-parameter constructor. (SynchronizedSortedSet): Set `ss' from the one-parameter constructor. (SynchronizedMap): Implement toString(). From-SVN: r37785
2000-11-27Replace stubs with actual implementationAnthony Green2-31/+45
From-SVN: r37782
2000-11-27More JNDI changes.Anthony Green28-3/+848
From-SVN: r37779
2000-11-27Reverted erroneous Makefile.am commitTom Tromey2-13/+6
From-SVN: r37774
2000-11-27Forgot to commit these ChangeLog entries.Bryce McKinlay1-0/+32
From-SVN: r37773
2000-11-27Makefile.in: Rebuilt.Tom Tromey8-37/+241
* Makefile.in: Rebuilt. * Makefile.am (core_java_source_files): Added RuntimePermission.java. * java/lang/RuntimePermission.java: Imported from Classpath. * java/lang/Thread.java (getContextClassLoader): Now synchronized. Added security code. (setContextClassLoader): Likewise. From-SVN: r37772
2000-11-27prims.cc (_Jv_NewObjectArray): Use const_cast to initialize length field of ↵Tom Tromey3-4/+23
array. * prims.cc (_Jv_NewObjectArray): Use const_cast to initialize length field of array. (_Jv_NewPrimArray): Likewise. * gcj/array.h (__JArray): `length' field now const. Added constructor. From-SVN: r37771
2000-11-27Initial jndi check-inAnthony Green19-0/+676
From-SVN: r37770
2000-11-26* libjava.compile/weirddecl.java: New file.Tom Tromey3-0/+13
From-SVN: r37767
2000-11-26Forgot to commit this ChangeLogAnthony Green1-1/+36
From-SVN: r37752
2000-11-26prims.cc (_Jv_NewObjectArray): Undo placement change.Anthony Green8-98/+191
2000-11-25 Anthony Green <green@redhat.com> * prims.cc (_Jv_NewObjectArray): Undo placement change. (_Jv_NewPrimArray): Likewise. * gcj/array.h (__JArray): Undo const change. Removed constructor. (class JArray): Removed constructor. * java/lang/Thread.java (context_class_loader): New private data. (getContextClassLoader): New method. (setContextClassLoader): New method. (Thread): Initialize context_class_loader. * java/net/URLClassLoader.java: Import java.util.Enumeration. (getResource): Rename to findResource. (findResource): New method. Used to be getResource. (getResourceAsStream): Deleted. (jarFileize): Extracted logic from URLClassLoader constructor into this new private method. (addURL): New protected method. (URLClassLoader): Call jarFileize. Use addElement instead of insertElementAt. (findResources): New method. * java/lang/ClassLoader.java: Import java.util.Enumeration. (getResource): Implement correct logic. (findResource): New method. (getResources): New method. (findClass): Create a ClassNotFoundException with the name of the class rather than nothing at all. (defineClass) Only throw ClassFormatError. * java/lang/Class.java (forName): New method. * java/lang/Class.h (forName): New method. * java/lang/natClass.cc (forName): New method. From-SVN: r37751
2000-11-26System.java (setProperties): Only call init_properties() if properties is null.Bryce McKinlay9-374/+371
2000-11-24 Bryce McKinlay <bryce@albatross.co.nz> * java/lang/System.java (setProperties): Only call init_properties() if properties is null. (getProperties): Ditto. (getProperty): Ditto. (setProperty): Call init_properties if properties are null. (prop_init): Remove field. * java/lang/natSystem.cc (init_properties): Synchronize the entire method. Check for null properties after synchronizing instead of prop_init flag. Set the properties field last for thread safety. * java/io/ObjectInputStream.java (ObjectInputStream): If DEBUG is set, test for gcj.dumpobjects property and enable object stream dumping if it is set. (dumpElement): No longer native. (dumpElementln): Ditto. (setDump): Do not define. * java/io/natObjectInputStream.cc (dumpElement): Removed. (dumpElementln): Removed. (setDump): Removed. 2000-11-24 Bryce McKinlay <bryce@albatross.co.nz> * configure: Rebuilt. * Makefile.in: Rebuilt. * Makefile.am (built_java_source_files): Add Configuration.java. * configure.in: Add Configuration.java to CONFIG_FILES. Set LIBGCJDEBUG substitution if --enable-libgcj-debug is specified. Create `gnu' directory in the build tree. * gnu/classpath/Configuration.java.in: New file. From-SVN: r37749
2000-11-24libjava.exp (bytecompile_file): Change default from javac to gcj -C.Anthony Green3-3/+13
Fri Nov 24 11:25:20 2000 Anthony Green <green@redhat.com> * lib/libjava.exp (bytecompile_file): Change default from javac to gcj -C. (libjava_arguments): Fix classpath. * libjava.compile/PR129_B.no-link: New file. From-SVN: r37719
2000-11-24prims.cc (_Jv_NewObjectArray): Use palcement new to create array.Tom Tromey3-7/+32
* prims.cc (_Jv_NewObjectArray): Use palcement new to create array. (_Jv_NewPrimArray): Likewise. Include <new>. * gcj/array.h (__JArray): `length' field now const. Added constructor. (class JArray): Added constructor. From-SVN: r37718
2000-11-24* libjava.compile/PR375.java: New file. For PR gcj/375.Tom Tromey2-0/+9
From-SVN: r37717
2000-11-24* libjava.compile/PR374.java: New file. For PR gcj/374.Tom Tromey2-0/+13
From-SVN: r37716
2000-11-23name-finder.cc (lookup): Check for a NULL _Jv_argv before attempting lookup.Mark Wielaard2-2/+7
2000-11-23 Mark Wielaard <mark@klomp.org> * name-finder.cc (lookup): Check for a NULL _Jv_argv before attempting lookup. From-SVN: r37687
2000-11-23Vector.java: Improve exception messages.Bryce McKinlay2-18/+32
2000-11-23 Bryce McKinlay <bryce@albatross.co.nz> * java/util/Vector.java: Improve exception messages. (Vector): Check initialCapacity for IllegalArgumentException. (tromToSize): Don't check for elementCount == elementData.length case. (toArray): Don't try to set null marker if target array is the same length as the vector. From-SVN: r37685
2000-11-22Makefile.in: Rebuilt.Bryce McKinlay8-421/+2824
2000-11-22 Bryce McKinlay <bryce@albatross.co.nz> * Makefile.in: Rebuilt. * Makefile.am (core_java_source_files): Added Collections.java. * java/util/List.java: Merged from classpath. * java/util/Vector.java: Ditto. * java/util/Collections.java: From classpath. * java/util/ArrayList.java (addAll(Collection)): Call addAll(int,Collection) instead of duplicating code. (indexOf): Clean up int initialization. (clear): Set cleared array entries to null, to allow garbage collection. * java/util/List.java: Minor formatting fixes. * java/util/SimpleTimeZone.java: ditto. From-SVN: r37652
2000-11-20Makefile.in: Rebuilt.Tom Tromey6-3/+370
* Makefile.in: Rebuilt. * Makefile.am (core_java_source_files): Added new files. * java/lang/reflect/ReflectPermission.java: New class. * java/io/FileFilter.java: From Classpath * java/io/FilePermission.java: From Classpath. From-SVN: r37586
2000-11-18AccessibleObject.java (isAccessible, [...]): Now public.Tom Tromey2-26/+29
* java/lang/reflect/AccessibleObject.java (isAccessible, setAccessible): Now public. From-SVN: r37540
2000-11-18natString.cc: Include Locale.h.Tom Tromey7-159/+327
* 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-18backport: *.java: Reformat all to unofficial standard coding style.Mark Wielaard8-1323/+1461
Merge with Classpath (changes by Bryce McKinlay) * java/util/jar/*.java: Reformat all to unofficial standard coding style. No changes of substance. From-SVN: r37538
2000-11-17* java/util/zip/*.java: Javadoc and copyright updates.Mark Wielaard19-195/+670
From-SVN: r37526
2000-11-17CollationKey.java: Implement Comparable.Tom Tromey5-10/+78
* java/text/CollationKey.java: Implement Comparable. (compareTo(Object)): New method. * java/text/Collator.java (compare(Object,Object)): New method. Implement Comparator. * java/util/zip/InflaterInputStream.java (available): New method. (close): New method. (read, available, skip, fill): Throw exception if stream closed. * java/util/zip/ZipInputStream.java (read, skip, readFully, fill, getNextEntry): Throw exception if closed. From-SVN: r37525
2000-11-17PushbackReader.java: Merged with Classpath.Tom Tromey7-811/+1790
* java/io/PushbackReader.java: Merged with Classpath. * java/util/Arrays.java: Updated from Classpath. * scripts/blocks.pl: New file. * java/lang/Character.java (Subset): New class. (UnicodeBlock): New class. * java/lang/Math.java (toDegrees, toRadians): New methods. * java/lang/Float.java: Implement Comparable. (compareTo): New methods. * java/lang/Double.java: Implement Comparable. (compareTo): New methods. From-SVN: r37512
2000-11-16PropertyChangeSupport.java (propertyListeners): Made transient.Warren Levy4-21/+118
* java/beans/PropertyChangeSupport.java (propertyListeners): Made transient. (listeners): Made transient. (source): Renamed from 'bean'. (children): New field for serialization. (propertyChangeSupportSerializedDataVersion): Ditto. (serialVersionUID): Ditto. (writeObject): New serialization method. (readObject): New serialization method. * java/beans/VetoableChangeSupport.java (propertyListeners): Made transient. (listeners): Made transient. (source): Renamed from 'bean'. (children): New field for serialization. (vetoableChangeSupportSerializedDataVersion): Ditto. (serialVersionUID): Ditto. (writeObject): New serialization method. (readObject): New serialization method. * java/lang/reflect/natMethod.cc (_Jv_CallAnyMethodA): Fixed assert to allow constructor to have a return type (i.e. the class that the constructor constructs). Serialization mods. From-SVN: r37506
2000-11-14Makefile.in: Rebuilt.Tom Tromey3-30/+59
* Makefile.in: Rebuilt. * Makefile.am (libgcj.zip): Fail immediately if compilation fails and -k not given. From-SVN: r37464
2000-11-07sjis_comment3.java: Removed.Tom Tromey7-30/+9
* libjava.compile/sjis_comment3.java: Removed. * libjava.compile/sjis_comment2.java: Removed. * libjava.compile/sjis_comment1.java: Removed. * libjava.compile/euc_comment3.java: Removed. * libjava.compile/euc_comment2.java: Removed. * libjava.compile/euc_comment1.java: Removed. From-SVN: r37298
2000-11-06libjava.exp (libjava_arguments): Set --tag on libtool invocation.Tom Tromey2-1/+6
* lib/libjava.exp (libjava_arguments): Set --tag on libtool invocation. From-SVN: r37268
2000-11-03ObjectInputStream.java (readObject): Added code to conditionally dump out ↵Warren Levy3-21/+136
the serialized data. * java/io/ObjectInputStream.java (readObject): Added code to conditionally dump out the serialized data. Handle ENDBLOCKDATA case a bit more gracefully since the current behavior doesn't seem to work as expected. (readStreamHeader): Added code for serialized data dumper. (readNextBlock): Ditto. (readFields): Ditto. (dump): New private static field for turning on/off dumper. (setDump): New native method. (dumpElement): New native method. (dumpElementln): New native method. * java/io/natObjectInputStream.cc (setDump): New method. (dumpElement): New method. (dumpElementln): New method. Serialization dumper. Enable by configuring with --enable-libgcj-debug and calling java.io.ObjectInputStream.setDump(true) in your test program. The output will be generated as the object is deserialized (i.e. the readObject() method is executed). From-SVN: r37223
2000-11-03InetAddress.java (addr): Renamed from 'address'.Warren Levy5-37/+120
* java/net/InetAddress.java (addr): Renamed from 'address'. (address): New field to match Serialized Form doc. (hostName): Renamed from 'hostname' to match Serialized Form doc. (family): New serialization field. (serialVersionUID): New field. (readObject): New method. (writeObject): New method. (getFamily): New native method. (InetAddress): Set family. * java/net/natInetAddress.cc (getFamily): New method. (addr): Renamed from 'address'. (hostName): Renamed from 'hostname' to match Serialized Form doc. * java/net/natPlainDatagramSocketImpl.cc (addr): Renamed from 'address'. * java/net/natPlainSocketImpl.cc (addr): Renamed from 'address'. Serialization mod. From-SVN: r37222
2000-11-03AbstractList.java (SubList): Make it a top-level private class.Bryce McKinlay5-259/+268
2000-11-03 Bryce McKinlay <bryce@albatross.co.nz> * java/util/AbstractList.java (SubList): Make it a top-level private class. * java/util/LinkedList.java (remove): Do update modCount and knownMod. (add): Ditto. * Makefile.am (ordinary_java_source_files): Add LinkedList.java. * Makefile.in: Rebuilt. From-SVN: r37218
2000-11-02Makefile.in: Rebuilt.Tom Tromey3-4/+10
* Makefile.in: Rebuilt. * Makefile.am (install-exec-hook): Make `.la' link, not `.so' link. From-SVN: r37210
2000-11-02AbstractList.java (remove): Comment out modCount increment to work around ↵Bryce McKinlay2-2/+10
compiler bug. 2000-11-02 Bryce McKinlay <bryce@albatross.co.nz> * java/util/AbstractList.java (remove): Comment out modCount increment to work around compiler bug. (add): Ditto. From-SVN: r37204
2000-11-02AbstractList.java: Throw messages with IndexOutOfBoundsExceptions.Bryce McKinlay5-452/+657
2000-11-02 Bryce McKinlay <bryce@albatross.co.nz> * java/util/AbstractList.java: Throw messages with IndexOutOfBoundsExceptions. (listIterator()): Call listIterator(0). (size): New field. Initialize to size(). (hasNext): Test position against size, not size(). (remove): Increment knownMod by one instead of resetting it from modCount. (add): Ditto. (SubList.upMod): Removed. (SubList.set): Don't call upMod() or update knownMod. (SubList.add(int,Object)): Increment modCount instead of calling upMod(). (SubList.remove): Ditto. (SubList.addAll): Don't call backingList.size(). Increment size from c.size(). (SubList.iterator): New method. Call listIterator(0). (SubList.listIterator): New method. Restore code to return an anonymous listIterator implementation (with some changes). * java/util/AbstractSequentialList.java: Throw messages with IndexOutOfBoundsExceptions. (addAll): Add a specnote. * java/util/ArrayList.java (removeRange): Get the math right. (addAll): Increment modCount _before_ creating iterator. * java/util/LinkedList.java: Rewritten, mostly. From-SVN: r37203
2000-11-01encodings.pl: Added `ASCII' alias.Tom Tromey10-21/+246
* scripts/encodings.pl: Added `ASCII' alias. * Makefile.in: Rebuilt. * Makefile.am (convert_source_files): Added new files. * gnu/gcj/convert/Input_ASCII.java: New file. * gnu/gcj/convert/Output_ASCII.java: New file. * gnu/gcj/convert/Output_8859_1.java (write): Use `?' to represent out-of-range characters. * gnu/gcj/convert/natIconv.cc (iconv_init): New method. (read): Swap bytes if required. Treat `count' as character count, not byte count. (write): Likewise. Also, handle case where iconv fails on a given character. (init): Put encoding into exception. * gnu/gcj/convert/IOConverter.java (iconv_byte_swap): New global. (static): Call iconv_init. Rebuilt alias list. (iconv_init): New private method. From-SVN: r37190
2000-11-01Makefile.in: Rebuilt.Tom Tromey5-328/+361
* Makefile.in: Rebuilt. * Makefile.am (install-exec-hook): Only make a single symlink, and remove the destination before making the link. * configure: Rebuilt. * configure.in: Call AC_PROG_LN_S. From-SVN: r37189
2000-11-01jni.cc: Added include of java/lang/ThreadGroup.h.Warren Levy3-2/+7
* jni.cc: Added include of java/lang/ThreadGroup.h. * gcj/javaprims.h: Removed Replaceable and Resolvable from namespace per change of 2000-10-05. From-SVN: r37173
2000-10-30Reader.java: Merge docs from classpath.Bryce McKinlay4-49/+299
* java/io/Reader.java: Merge docs from classpath. (skip): Synchronize on `lock'. * java/io/FileReader.java: Import correct implementation from classpath. * java/io/StringReader.java: Merge docs from classpath. (ready): Throw IOException if stream is closed. From-SVN: r37143
2000-10-30BitSet.java: Updated @specnote.Bryce McKinlay2-11/+10
2000-10-30 Bryce McKinlay <bryce@albatross.co.nz> * java/util/BitSet.java: Updated @specnote. From-SVN: r37138
2000-10-29AbstractCollection.java (addAll): Use size() instead of hasNext() in ↵Bryce McKinlay8-891/+979
iterator loop. 2000-10-29 Bryce McKinlay <bryce@albatross.co.nz> * java/util/AbstractCollection.java (addAll): Use size() instead of hasNext() in iterator loop. (clear): Ditto. (contains): Ditto. Simplify loop. (containsAll): Ditto. (remove): Ditto. (removeAll): Ditto. (retainAll): Ditto. (toArray): Ditto. (toString): Ditto. Use string concatenation operators, not StringBuffer. * java/util/AbstractList.java (addAll): Use size() instead of hasNext() in iterator loop. (equals): Ditto. (hashCode): Ditto. (indexOf): Ditto. Don't take null check outside of the loop. (iterator): Return an AbstractListItr instead of anonymous class. (lastIndexOf): Use a for loop bounded by size() instead of hasPrevious() in iterator loop. (listIterator): Return an AbstractListItr. (removeRange): Remove bounds checking code and docs. (AbstractListItr): New inner class. Code moved here from listIterator(). (SubList.iterator): Removed. Use default implementation from AbstractList instead. (SubList.listIterator): As above. * java/util/AbstractMap.java (clear): Use a for loop bounded by size() instead of hasNext() in iterator loop. (containsValue): Ditto. (equals): Ditto. (get): Ditto. (put): Ditto. (putAll): Ditto. (remove): Ditto. (toString): Ditto. Use string concatenation operators, not StringBuffer. * java/util/AbstractSequentialList.java (addAll): Use a for loop bounded by size() instead of hasNext() in iterator loop. * java/util/AbstractSet.java (hashCode): Don't catch exception as part of normal execution flow. Do an explicit null check instead. * java/util/ArrayList.java (_iSize): Rename to `size'. (_arData): Rename to `data'. (get): Check lower bounds also. Simplify IndexOutOfBoundsException message. (remove): Ditto. (removeRange): Make protected. Don't check bounds. (add): Check lower bounds also. Simplify IndexOutOfBoundsException message. (addAll (Collection)): Use a size-bounded for loop instead of hasNext() check. (addAll (int, Collection)): Check lower bounds. Simplify exception string. (clone): Clone the data array too. (indexOf): Inline doesEqual(). (lastIndexOf): Ditto. (clear): Don't set array data to null. (set): Check lower bounds. Simplify exception string. (toArray): Correct comment. (trimToSize): Don't update modCount, this is not a structural change. Add comment. * java/util/BitSet.java: Merged with classpath, new JDK 1.2 methods implemented. (toString): Declare `bit' as long, not int. (data): Made package-private, not private. From-SVN: r37116
2000-10-29Re-indent in preparation for diff.Bryce McKinlay1-36/+36
From-SVN: r37115
2000-10-29Re-indent in preparation for diff.Bryce McKinlay1-120/+120
From-SVN: r37114
2000-10-27natGregorianCalendar.cc (computeFields): Set the isSet__ array elements to true.Warren Levy2-0/+7
* java/util/natGregorianCalendar.cc (computeFields): Set the isSet__ array elements to true. From-SVN: r37081
2000-10-27Makefile.am: Added locale files from Classpath.Warren Levy15-397/+2221
* Makefile.am: Added locale files from Classpath. * Makefile.in: Rebuilt. * gnu/java/locale/Calendar.java: New file. * gnu/java/locale/Calendar_de.java: New file. * gnu/java/locale/Calendar_en.java: New file. * gnu/java/locale/Calendar_nl.java: New file. * java/lang/ClassNotFoundException.java: Replaced with Classpath file. * java/math/BigDecimal.java (intVal): Renamed from 'num' for serialization compatibility. (scale): Made private. (serialVersionUID): New field. * java/math/BigInteger.java (ival): Made transient. (words): Made transient. (bitCount): New serialization field. (bitLength): Ditto. (firstNonzeroByteNum): Ditto. (lowestSetBit): Ditto. (magnitude): Ditto. (signum): Ditto. (serialVersionUID): New field. (readObject): New method. (writeObject): New method. * java/util/BitSet.java (serialVersionUID): New field. * java/util/Calendar.java: Replaced with Classpath file. * java/util/GregorianCalendar.java (GregorianCalendar): Pass result of getDefault() for TimeZone or Locale instead of passing nulls. * java/util/Locale.java (serialVersionUID): New field. (writeObject): New method. (readObject): New method. * java/util/SimpleTimeZone.java: Replaced with Classpath file. Serialization mods. From-SVN: r37080
2000-10-25Makefile.am (GCJCOMPILE): Pass --tag=GCJ to libtool.Bryce McKinlay5-463/+468
2000-10-25 Bryce McKinlay <bryce@albatross.co.nz> * Makefile.am (GCJCOMPILE): Pass --tag=GCJ to libtool. (core_java_source_files): Put java.lang, java.io, and java.util here. (ordinary_java_source_files): Order so that core_java_source_files are built first. (java_source_files): Reorder so that special_java_source_files are built first. * configure.in: Don't pass -I flag to gcj. * Makefile.in: Rebuilt. * configure: Rebuilt. From-SVN: r37060