summaryrefslogtreecommitdiffstats
path: root/libjava/java
Commit message (Collapse)AuthorAgeFilesLines
* 2002-01-07 Andreas Tobler <a.tobler@schweiz.ch>tromey2002-01-081-9/+5
| | | | | | | | * java/lang/reflect/natMethod.cc: Don't include alloca.h. (_Jv_CallAnyMethodA): Convert alloca to __builtin_alloca. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@48656 138bc75d-0d04-0410-961f-82ee72b054a4
* 2002-01-06 Andreas Tobler <a.tobler@schweiz.ch>tromey2002-01-061-22/+17
| | | | | | | | | * configure, include/config.h.in: Rebuilt. * java/lang/natSystem.cc (getSystemTimeZone): Check HAVE_TM_ZONE. * configure.in: Call AC_STRUCT_TIMEZONE. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@48588 138bc75d-0d04-0410-961f-82ee72b054a4
* * java/lang/Thread.java (stop): No longer synchronized.tromey2002-01-041-3/+3
| | | | | | | (start): Likewise. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@48540 138bc75d-0d04-0410-961f-82ee72b054a4
* * java/lang/ieeefp.h: Fix bug in my hand-application of previoustromey2002-01-021-1/+1
| | | | | | | patch. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@48475 138bc75d-0d04-0410-961f-82ee72b054a4
* 2002-1-1 Andrew Pinski <pinskia@physics.uc.edu>tromey2002-01-021-5/+2
| | | | | | | | * libjava/java/lang/ieeefp.h: Define __IEEE_BIG_ENDIAN for PPC Darwin, not for all of Darwin. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@48473 138bc75d-0d04-0410-961f-82ee72b054a4
* 2001-12-29 Andreas Tobler <a.tobler@schweiz.ch>tromey2002-01-011-0/+4
| | | | | | | | * libjava/java/lang/ieeefp.h: Define __IEEE_BIG_ENDIAN for Darwin. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@48455 138bc75d-0d04-0410-961f-82ee72b054a4
* * java/io/ObjectInputStream.java (enableResolveObject): Usetromey2001-12-212-5/+11
| | | | | | | | | correct security check. * java/io/ObjectOutputStream.java (enableReplaceObject): Use correct security check. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@48256 138bc75d-0d04-0410-961f-82ee72b054a4
* Fix for PR java/5165:tromey2001-12-211-5/+3
| | | | | | | | | * java/lang/natClassLoader.cc (_Jv_PrepareCompiledClass): Convert any constant string field to a String; not just final fields. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@48255 138bc75d-0d04-0410-961f-82ee72b054a4
* Fix for PR libgcj/2428:tromey2001-12-212-4/+29
| | | | | | | | | * java/lang/natClass.cc: Include RuntimePermission.h. (getClassLoader): Define. * java/lang/Class.h (Class.getClassLoader): Only declare. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@48253 138bc75d-0d04-0410-961f-82ee72b054a4
* * java/awt/FlowLayout.java (FlowLayout(), FlowLayout(int)): Settromey2001-12-191-26/+34
| | | | | | | | | | gaps to 5. (FlowLayout(int,int,int)): Use methods to set fields. (getSize): Skip invisible components. (layoutContainer): Skip invisible components. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@48182 138bc75d-0d04-0410-961f-82ee72b054a4
* * java/text/CollationElementIterator.java (secondaryOrder): Casttromey2001-12-181-3/+3
| | | | | | | | result to `short'. (tertiaryOrder): Likewise. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@48162 138bc75d-0d04-0410-961f-82ee72b054a4
* For PR java/5088:tromey2001-12-162-21/+19
| | | | | | | | | | | | | | | | | * java/lang/natClassLoader.cc (_Jv_InitNewClassFields): New function. (_Jv_NewClass): Use it. (defineClass0): Use it. * prims.cc (_Jv_InitPrimClass): Adjust vtable here. (_Jv_InitPrimClass): Use _Jv_InitNewClassFields. (_Jv_NewArray): Don't abort; just throw exception. Include InternalError.h. * java/lang/Class.h (Class::Class): Declare, don't define. (Class): Declare _Jv_InitNewClassFields as a friend. (union _Jv_Self): Removed. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@48081 138bc75d-0d04-0410-961f-82ee72b054a4
* * Makefile.in: Rebuilt.tromey2001-12-161-11/+27
| | | | | | | | | | | * Makefile.am (ordinary_java_source_files): Removed old file; added new file. * gnu/java/math/MPN.java: New file. * gnu/gcj/math/MPN.java: Removed. * java/math/BigInteger.java: Merged with Classpath. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@48080 138bc75d-0d04-0410-961f-82ee72b054a4
* * java/io/DataOutputStream (write (byte[], int, int)): Updatebryce2001-12-161-1/+1
| | | | | | | "written" correctly. Fix from the ORP team. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@48050 138bc75d-0d04-0410-961f-82ee72b054a4
* gcc/java:bryce2001-12-153-2/+221
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * java-tree.h (otable_methods, otable_decl, otable_syms_decl, otable_type, otable_ptr_type, method_symbol_type, method_symbols_array_type, method_symbols_array_ptr_type): New field/global tree definitions. (flag_indirect_dispatch): New flag. * decl.c (java_init_decl_processing): Initialize new otable and otable_syms type nodes and decls. Add new field "index" to method_type_node. * class.c (build_method_symbols_entry): New function. (make_method_value): Set "index" to to method's vtable index for virtual methods when indirect-dispatch is not used. (make_class_data): For indirect-dispatch, dont emit the dtable_decl, and set vtable_method_count to -1. Set otable and otable_syms field if indirect-dispatch is used and there was something to put in them. (build_method_symbols_entry): New function. (emit_offset_symbol_table): New function. * expr.c (get_offset_table_index): New function. (build_invokevirtual): Build array reference to otable at the index returned by get_offset_table_index, and use the result as the vtable offset. (build_invokeinterface): Similar. * jcf-parse.c (yyparse): If indirect-dispatch, call emit_offset_symbol_table at the end of compilation, after all classes have been generated. * jvspec.c: Don't pass findirect-dispatch to jvgenmain. * lang.c (flag_indirect_dispatch): Define. (lang_f_options): Add indirect-dispatch flag. libjava: * include/jvm.h (_Jv_VTable::idx_to_offset): New method. * java/lang/natClassLoader.cc (_Jv_PrepareCompiledClass): Call _Jv_MakeVTable and _Jv_LinkOffsetTable if needed. * java/lang/Class.h (_Jv_Method): Add "index" field. (_Jv_MethodSymbol): New struct type. (_Jv_LinkOffsetTable, _Jv_LayoutVTableMethods, _Jv_SetVTableEntries, _Jv_MakeVTable): Friends. (otable, otable_syms): New Class fields. * java/lang/natClass.cc (_Jv_LinkOffsetTable): New function. (isVirtualMethod): New static function. (_Jv_LayoutVTableMethods): New function. (_Jv_SetVTableEntries): New function. (_Jv_MakeVTable): New function. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@48038 138bc75d-0d04-0410-961f-82ee72b054a4
* Collections drop from Classpath:bryce2001-12-1524-6122/+11216
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 2001-12-15 Bryce McKinlay <bryce@waitaki.otago.ac.nz> * java/util/BitSet.java (and): Fix off-by-one bug, don't skip part of the bitset. (andNot): Likewise. (xor): Likewise. 2001-12-15 Bryce McKinlay <bryce@waitaki.otago.ac.nz> * java/util/LinkedList.java (LinkedListItr.add): Don't skip the next entry. 2001-12-15 Eric Blake <ebb9@email.byu.edu> * java/util/TreeMap.java (removeNode): Fix bug in node removal. 2001-12-15 Bryce McKinlay <bryce@waitaki.otago.ac.nz> * java/util/AbstractCollection.java (containsAll): Use size of the correct collection for loop bound. * java/util/AbstractList.java (iterator.next): Increment pos after calling get on backing list. (listIterator.next): Likewise. * java/util/LinkedList.java (addLastEntry): Don't increment size before checking for size == 0. (addFirstEntry): Rearrange to match addLastEntry. (add): Do not increment size before inserting the new entry. * java/util/AbstractCollection.java (addAll): Use size of the correct collection for loop bound. 2001-12-15 Bryce McKinlay <bryce@waitaki.otago.ac.nz> * java/util/AbstractSet.java (removeAll): Fix scoping thinko. * java/util/HashMap.java (putAllInternal): Set size here. * java/util/Hashtable.java (putAllInternal): New method. Copy contents of a map efficiently without calling put() or putAll(). (Hashtable (map)): Use putAllInternal. (clone): Likewise. 2001-12-15 Eric Blake <ebb9@email.byu.edu> * java/util/Collections.java: * java/util/Vector.java: * java/util/WeakHashMap.java: Fix spelling errors. 2001-12-15 Eric Blake <ebb9@email.byu.edu> * java/util/AbstractCollection.java (removeAllInternal), (retainAllInternal): Add hooks for use by ArrayList. * java/util/AbstractList.java: Minor code updates. Fix some scoping. * java/util/AbstractMap.java: ditto * java/util/ArrayList.java (readObject, writeObject): ditto (removeAllInternal, retainAllInternal): Optimize. * java/util/Arrays.java: ditto * java/util/Collections.java: ditto. Change order of parameters to equals(Object, Object) to match specs. * java/util/Dictionary.java: Improve javadoc. (Dictionary): Add explicit constructor. * java/util/HashMap.java: Improve javadoc. Rearrange methods to follow order in JDK. Cleanups related to recent code migration to AbstractMap. Fix some scoping. (entrySet): Cache the result. (modCount): Ensure that this is updated correctly. * java/util/HashSet.java: Improve javadoc. Fix some scoping. (init): Add hooks for LinkedHashSet. (map): Use "" instead of Boolean.TRUE in backing map. Use package-private API where possible for less overhead. (readObject, writeObject): Fix serialization. * java/util/Hashtable.java: Improve javadoc. Fix some scoping. (entrySet, keySet, values): Cache the result. (modCount): Ensure that this is updated correctly. (contains, remove): Fix NullPointer checking to match specs. (class Enumeration): Make more like HashIterator. * java/util/IdentityHashMap.java: Minor code updates. (modCount): Ensure that this is updated correctly. (readObject, writeObject): Fix serialization. * java/util/LinkedHashMap.java: Minor code updates. Cleanups related to recent code migration to AbstractMap. * java/util/LinkedHashSet.java: New file. * java/util/LinkedList.java: (readObject, writeObject): Fix serialization. * java/util/Makefile.am: List recently added files. * java/util/Stack.java: Minor code updates. * java/util/TreeMap.java: Improve javadoc. Overhaul the class to be more efficient. Fix some scoping. Rearrange the methods. (nil): Ensure that this can be thread-safe, and make it a static final. Initialize it to be more useful as a sentinal node. (Node): Specify color in constructor. (deleteFixup, insertFixup): Improve comments and algorithm. (fabricateTree): Redesign with less overhead. (lowestGreaterThan): Add parameter first to make SubMap easier. (removeNode): Patch hole where nil was being modified. Choose predecessor instead of successor so in-place swap works. (class VerifyResult, verifyTree, verifySub, verifyError): Remove this dead code after verifying the class works. (class SubMap): Rewrite several algorithms to avoid problems with comparing nil. * java/util/TreeSet.java: Improve javadoc. Fix some scoping. (clone): Fix ClassCastException when cloning subSet(). (readObject, writeObject): Fix serialization. * java/util/WeakHashMap.java: Improve javadoc. Fix some scoping. (NULL_KEY): Make it compare as null, for ease elsewhere. (Class WeakEntry): Rename from Entry, to avoid shadowing Map.Entry. Add missing toString. (modCount): Ensure that this is updated correctly. (clear, containsValue, keySet, putAll, values, WeakHashMap(Map)): Add missing methods and constructor. 2001-12-15 Eric Blake <ebb9@email.byu.edu> * java/util/ArrayList.java (checkBoundExclusive), (checkBoundInclusive): Rename from range??clusive, to match AbstractList. * java/util/LinkedList.java (checkBoundsExclusive), (checkBoundsInclusive): ditto * java/util/Vector.java (checkBoundExclusive), (checkBoundInclusive): Move bounds checking into common methods. 2001-12-15 Eric Blake <ebb9@email.byu.edu> * java/util/AbstractList.java: (modCount): Make sure it is updated in all needed places. * java/util/ArrayList.java: Improve javadoc. Implements RandomAccess. Add serialVersionUID. Reorder methods. (modCount): Make sure it is updated in all needed places. (rangeExclusive, rangeInclusive): Add common methods for bounds check. (isEmpty): Add missing method. * java/util/Collections.java: (class SynchronizedList): Make package visible. * java/util/ConcurrentModificationException.java: Improve javadoc. * java/util/EmptyStackException.java: Improve javadoc. * java/util/LinkedList.java: Improve javadoc. (modCount): Make sure it is updated in all needed places. (rangeExclusive, rangeInclusive): Add common methods for bounds check. * java/util/NoSuchElementException.java: Improve javadoc. * java/util/Stack.java: Improve javadoc. Fix synchronization issues. (modCount): Make sure it is updated in all needed places. * java/util/Vector.java: Improve javadoc. Fix synchronization issues. Implements RandomAccess. Reorder methods. (modCount): Make sure it is updated in all needed places. (setSize): Fix according to specifications: this does not dictate the backing array size. (removeAll, retainAll): Faster implementations. 2001-12-15 Eric Blake <ebb9@email.byu.edu> * java/util/BitSet.java: Improve javadoc. (cardinality(), clear(), clear(int, int), flip(int)), (flip(int, int), get(int, int), intersects(BitSet), isEmpty()), (nextClearBit(int), nextSetBit(int), set(int, boolean)), (set(int, int), set(int, int, boolean)): Add new JDK 1.4 methods. (clone): Fix so subclasses clone correctly. 2001-12-15 Eric Blake <ebb9@email.byu.edu> * java/util/AbstractCollection.java: Improve javadoc. (AbstractCollection()): Make constructor protected. (equals(Object, Object), hashCode(Object)): Add utility methods. * java/util/AbstractList.java: Improve javadoc. (AbstractList()): Make constructor protected. (indexOf(Object)): Call listIterator(), not listIterator(int). (iterator()): Follow Sun's requirement to not use listIterator(0). (listIterator(int)): Make AbstractListItr anonymous. (subList(int, int)): Add support for RandomAccess. (SubList.add(int, Object), SubList.remove(Object)): Fix bug with modCount tracking. (SubList.addAll(Collection)): Add missing method. (SubList.listIterator(int)): Fix bugs in indexing, modCount tracking. (class RandomAccessSubList): Add new class. * java/util/AbstractMap.java: Improve javadoc. (keys, values, KEYS, VALUES, ENTRIES): Consolidate common map fields. (AbstractMap()): Make constructor protected. (equals(Object, Object), hashCode(Object)): Add utility methods. (equals(Object)): Change algorithm to entrySet().equals(m.entrySet()), as documented by Sun. (keySet(), values()): Cache the collections. * java/util/AbstractSequentialList.java: Improve javadoc. (AbstractSequentialList()): Make constructor protected. * java/util/AbstractSet.java: Improve javadoc. (AbstractSet()): Make constructor protected. (removeAll(Collection)): Add missing method. * java/util/Arrays.java: Improve javadoc, rearrange method orders. (defaultComparator): Remove, in favor of Collections.compare(Object, Object, Comparator). (binarySearch, equals, sort): Fix natural order comparison of floats and doubles. Also improve Object comparison - when comparator is null, use natural order. (fill, sort): Add missing checks for IllegalArgumentException. (sort, qsort): Fix sorting bugs, rework the code for more legibility. (mergeSort): Inline into sort(Object[], int, int, Comparator). (class ArrayList): Rename from ListImpl, and make compatible with JDK serialization. Add methods which more efficiently override those of AbstractList. * java/util/Collections: Improve javadoc. (isSequential(List)): Add and use a method for deciding between RandomAccess and sequential algorithms on lists. (class Empty*, class Synchronized*, class Unmodifiable*): Make compliant with JDK serializability. (class Singleton*, class CopiesList, class RevereseComparator), (class UnmodifiableMap.UnmodifiableEntrySet), (class *RandomAccessList): New classes for serial compatibility. (class Empty*, class Singleton*, class CopiesList): Add methods which more efficiently override those of Abstract*. (search): Inline into binarySearch(List, Object, Comparator). (binarySearch): Make sequential search only do log(n) comparisons, instead of n. (copy(List, List)): Do bounds checking before starting. (indexOfSubList, lastIndexOfSubList, list, replaceAll, rotate), (swap): Add new JDK 1.4 methods. (binarySearch, max, min, sort): Allow null comparator to represent natural ordering. (reverse(List)): Avoid unnecessary swap. (shuffle(List, Random)): Do shuffle in-place for RandomAccess lists. (SingletonList.get): Fix logic bug. (SingletonMap.entrySet): Make the entry immutable, and cache the returned set. (SynchronizedCollection, SynchronizedMap, UnmodifiableCollection), (UnmodifiableMap): Detect null pointer in construction. (SynchronizedMap, UnmodifiableMap): Cache collection views. * java/util/BasicMapEntry: Improve javadoc. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@48035 138bc75d-0d04-0410-961f-82ee72b054a4
* * libjava/prims.cc: Some old cleanups. The collector nowhboehm2001-12-141-2/+5
| | | | | | | | | | | | | | handles test for out of memory. * libjava/prims.cc, libjava/gcj/javaprims.h: (_Jv_AllocObjectNoInitNoFinalizer, _Jv_AllocObjectNoFinalizer): New functions for finalizer-free allocation. (jvmpi_notify_alloc): Became separate function. * libjava/java/lang/Object.h, libjava/include/jvm.h: Adjust for revised vtable layout on IA64. With TARGET_VTABLE_USES_DESCRIPTORS, there is only one extra descriptor. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@48002 138bc75d-0d04-0410-961f-82ee72b054a4
* * java/lang/String.java (String): New constructor.tromey2001-12-111-0/+10
| | | | | | | | | | | | * 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. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@47883 138bc75d-0d04-0410-961f-82ee72b054a4
* Fix for PR libgcj/5064.tromey2001-12-111-3/+6
| | | | | | | | * java/lang/natClassLoader.cc: Don't include stdio.h. (_Jv_RegisterClassHookDefault): Don't use snprintf. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@47861 138bc75d-0d04-0410-961f-82ee72b054a4
* * Makefile.in: Rebuilt.tromey2001-12-093-18/+21
| | | | | | | | | | | | | | | | | * Makefile.am (java/lang/reflect/Method.h): ObjectInputStream now a friend. * java/lang/natClass.cc (getSignature): Only look at elements of non-null parameters. (getPrivateMethod): Removed old FIXME comment. * java/io/natObjectInputStream.cc (allocateObject): Removed old FIXME comment. (callConstructor): Simply use `NULL' for value of parameters. (ObjectClass): Removed. (ClassClass): Likewise. * java/io/ObjectInputStream.java (readObject): Fixed typo. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@47800 138bc75d-0d04-0410-961f-82ee72b054a4
* * java/lang/ClassLoader.java (defineClass): Rethrow anytromey2001-12-071-1/+1
| | | | | | | LinkageError. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@47780 138bc75d-0d04-0410-961f-82ee72b054a4
* * java/lang/ThreadGroup.java (uncaughtException): Print message totromey2001-12-071-3/+4
| | | | | | | System.err. Required by spec. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@47779 138bc75d-0d04-0410-961f-82ee72b054a4
* Fix for PR libgcj/2024, plus other class name cleanups:tromey2001-11-262-3/+9
| | | | | | | | | | | | | | | | | | | | | | | | | | * include/jvm.h (_Jv_VerifyFieldSignature, _Jv_VerifyMethodSignature, _Jv_VerifyClassName, _Jv_VerifyIdentifier, _Jv_ClassNameSamePackage): Moved from ... * include/java-interp.h: ... here. * defineclass.cc (UTF8_PEEK): No longer conditional on interpreter. (_Jv_VerifyOne): Likewise. (_Jv_VerifyFieldSignature): Likewise. (_Jv_VerifyMethodSignature): Likewise. (is_identifier_start): Likewise. (is_identifier_part): Likewise. (_Jv_VerifyIdentifier): Likewise. (_Jv_VerifyClassName): Likewise. (_Jv_VerifyClassName): Likewise. (_Jv_ClassNameSamePackage): Likewise. (_Jv_VerifyClassName): Fail if class name is too long. * java/lang/natClassLoader.cc (_Jv_NewArrayClass): Disallow array of void. * java/lang/natClass.cc (forName): Check syntax of class name. Include IllegalArgumentException.h. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@47334 138bc75d-0d04-0410-961f-82ee72b054a4
* Fix for PR libgcj/4583:tromey2001-11-251-8/+111
| | | | | | | | * java/math/BigDecimal.java (BigDecimal(double)): Rewrote. (BigDecimal(String)): Likewise. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@47329 138bc75d-0d04-0410-961f-82ee72b054a4
* Re-merge with Classpath, from Brian Jones:tromey2001-11-161-1/+4
| | | | | | | | | | * java/lang/Integer.java (getInteger): Attempt to decode the value of the system property instead of the name of the system property. (parseInt): Throw NumberFormatException explicitly in the case of a null argument in keeping with JDK 1.3. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@47095 138bc75d-0d04-0410-961f-82ee72b054a4
* * java/util/Timer.java (TaskQueue.isStopped): Remove method.mark2001-11-161-11/+10
| | | | | | | | (Scheduler.run): Try to re-schedule task and ignore exception if queue has been stopped. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@47093 138bc75d-0d04-0410-961f-82ee72b054a4
* * java/lang/natString.cc: correct argument order forhboehm2001-11-151-1/+1
| | | | | | | _Jv_AllocPtrFreeObj git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@47035 138bc75d-0d04-0410-961f-82ee72b054a4
* * java/lang/reflect/Constructor.java (toString): Use moretromey2001-11-141-1/+1
| | | | | | | efficient form of Modifier.toString(). git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@47031 138bc75d-0d04-0410-961f-82ee72b054a4
* Re-merges with Classpath, from various people:tromey2001-11-142-99/+162
| | | | | | | | | | * java/lang/reflect/Modifier.java: Reindented. (toString): Only trim trailing space if text was added to StringBuffer. * java/lang/reflect/ReflectPermission: Reindented. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@47028 138bc75d-0d04-0410-961f-82ee72b054a4
* Re-merges with Classpath, from various people:tromey2001-11-146-88/+215
| | | | | | | | | | | | | | | | | * java/lang/Double.java (parseDouble): Fixed ordering of modifiers. * java/lang/reflect/AccessibleObject.java: Javadoc, reindented. * java/lang/reflect/Member.java: Reindented. * java/lang/reflect/Modifier.java: Reindented. (toString): Only trim trailing space if text was added to StringBuffer. * java/util/ConcurrentModificationException.java: Javadoc updates. * java/util/EmptyStackException.java: Likewise. * java/util/NoSuchElementException.java: Likewise. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@47018 138bc75d-0d04-0410-961f-82ee72b054a4
* Fix for PR libgcj/4859:tromey2001-11-131-2/+11
| | | | | | | | | * java/util/Timer.java (TaskQueue.isStopped): New method. (Scheduler.run): Don't re-schedule task if queue has been stopped. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@46994 138bc75d-0d04-0410-961f-82ee72b054a4
* * java/lang/Class.h (Class): Made _Jv_BytecodeVerifier a friend.tromey2001-11-051-0/+2
| | | | | | | | | | | | | | | | | | | * Makefile.in: Rebuilt. * Makefile.am (libgcj_la_SOURCES): Added verify.cc. * verify.cc: New file. * include/java-interp.h (_Jv_count_arguments): Declare. (_Jv_VerifyMethod): Likewise. (class _Jv_InterpMethod): Made _Jv_BytecodeVerifier a friend. (class _Jv_InterpException): Likewise. * resolve.cc (_Jv_count_arguments): Renamed from count_arguments. No longer static. Updated callers. * defineclass.cc (int_bits_to_float): Removed. (long_bits_to_double): Likewise. (prepare_pool_entry): Updated. (handleCodeAttribute): Verify method (commented out for now). git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@46796 138bc75d-0d04-0410-961f-82ee72b054a4
* * java/util/ResourceBundle.java (class Security): Now static.bryce2001-11-051-1/+1
| | | | git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@46781 138bc75d-0d04-0410-961f-82ee72b054a4
* * java/util/ResourceBundle.java (getClassContext): Removed.bryce2001-11-042-56/+36
| | | | | | | | | | (Security): New class, extends SecurityManger. (getBundle): Use Security.getCallingClassLoader instead of getClassContext. * java/util/natResourceBundle.cc: Removed. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@46761 138bc75d-0d04-0410-961f-82ee72b054a4
* 2001-11-02 Hans Boehm <Hans_Boehm@hp.com>hboehm2001-11-031-1/+1
| | | | | | | | * java/util/natResourceBundle.cc:getClassContext: return array of Class instead of array of ClassLoader. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@46727 138bc75d-0d04-0410-961f-82ee72b054a4
* * HACKING, gnu/gcj/xlib/Pixmap.java, gnu/gcj/xlib/XException.java,jsm282001-10-3137-66/+66
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | gnu/java/rmi/rmic/RMIC.java, java/awt/Window.java, java/awt/AWTEvent.java, java/io/ByteArrayOutputStream.java, java/io/CharConversionException.java, java/io/PipedInputStream.java, java/io/PipedReader.java, java/io/PrintWriter.java, java/io/WriteAbortedException.java, java/io/natFileWin32.cc, java/lang/Class.h, java/lang/natClassLoader.cc, java/lang/natObject.cc, java/lang/Package.java, java/net/BindException.java, java/net/ConnectException.java, java/net/ProtocolException.java, java/net/SocketException.java, java/net/UnknownServiceException.java, java/security/cert/X509Certificate.java, java/security/interfaces/DSAKey.java, java/security/SecureRandom.java, java/security/SignedObject.java, java/sql/DatabaseMetaData.java, java/text/DecimalFormatSymbols.java, java/util/jar/Attributes.java, java/util/jar/JarEntry.java, java/util/jar/JarInputStream.java, java/util/jar/JarOutputStream.java, java/util/Calendar.java, java/util/Collections.java, java/util/GregorianCalendar.java, java/util/HashMap.java, java/util/List.java, java/util/Properties.java, java/util/Timer.java, java/util/Vector.java, java/util/WeakHashMap.java, javax/naming/NamingException.java, testsuite/libjava.lang/Thread_Wait.java, org/xml/sax/helpers/DefaultHandler.java, org/xml/sax/HandlerBase.java, org/xml/sax/SAXParseException.java, ChangeLog, acinclude.m4, aclocal.m4, posix-threads.cc: Fix spelling errors. * configure: Regenerate. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@46665 138bc75d-0d04-0410-961f-82ee72b054a4
* * java/util/zip/GZIPOutputStream.java (write(int)): New method.tromey2001-10-291-1/+7
| | | | | | | Fixes PR libgcj/4728. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@46618 138bc75d-0d04-0410-961f-82ee72b054a4
* * java/util/zip/Adler32.java: Use correct class name. (Re-mergetromey2001-10-261-1/+1
| | | | | | | from Classpath.) git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@46561 138bc75d-0d04-0410-961f-82ee72b054a4
* Oops!bryce2001-10-261-1/+1
| | | | git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@46526 138bc75d-0d04-0410-961f-82ee72b054a4
* * java/lang/VMClassLoader.java (getPrimitiveClass): Now native. Nowbryce2001-10-2610-36/+21
| | | | | | | | | | | | | | | | | | takes a jchar type-code argument, not a string. * java/lang/natClassLoader.cc (VMClassLoader::getPrimitiveClass): New method. Just call _Jv_FindClassFromSignature. * java/lang/Boolean.java (TYPE): Initialize from VMClassLoader.getPrimitiveClass using type-code. * java/lang/Character.java (TYPE): Likewise. * java/lang/Double.java (TYPE): Likewise. * java/lang/Float.java (TYPE): Likewise. * java/lang/Integer.java (TYPE): Likewise. * java/lang/Long.java (TYPE): Likewise. * java/lang/Short.java (TYPE): Likewise. * java/lang/Void.java (TYPE): Likewise. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@46521 138bc75d-0d04-0410-961f-82ee72b054a4
* 2001-10-25 Bryce McKinlay <bryce@waitaki.otago.ac.nz>bryce2001-10-251-3/+2
| | | | | | | | * java/lang/natClassLoader.cc (_Jv_RegisterClassHookDefault): Use snprintf, not asprintf. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@46482 138bc75d-0d04-0410-961f-82ee72b054a4
* * java/lang/reflect/Field.java: Made many methods private.tromey2001-10-241-10/+10
| | | | git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@46467 138bc75d-0d04-0410-961f-82ee72b054a4
* * java/sql/Types.java (Types): New constructor.tromey2001-10-241-1/+6
| | | | git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@46466 138bc75d-0d04-0410-961f-82ee72b054a4
* * java/lang/reflect/Field.java (Field): New constructor.tromey2001-10-242-0/+7
| | | | | | | | * java/lang/ClassLoader.java (defineClass(String,byte[],int,int)): Throw ClassFormatError. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@46458 138bc75d-0d04-0410-961f-82ee72b054a4
* * java/util/PropertyResourceBundle.java (handleGetObject): Nowtromey2001-10-242-4/+4
| | | | | | | | | public. * java/util/ListResourceBundle.java (handleGetObject): Now public and final, per spec. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@46452 138bc75d-0d04-0410-961f-82ee72b054a4
* * java/io/BufferedWriter.java (localFlush): Don't synchronize.tromey2001-10-231-5/+3
| | | | git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@46435 138bc75d-0d04-0410-961f-82ee72b054a4
* * java/io/BufferedWriter (write (String, int, int)): Removebryce2001-10-231-6/+0
| | | | | | | | redundant bounds checks. (write (char[], int, int)): Likewise. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@46426 138bc75d-0d04-0410-961f-82ee72b054a4
* * prims.cc (_Jv_Abort): Always print error message using fprintf,bryce2001-10-231-1/+12
| | | | | | | | | | | | don't try to allocate. (_Jv_CreateJavaVM): Set gcj::runTimeInitialized. * include/jvm.h (gcj::runTimeInitialized): New variable declaration. * java/lang/natClassLoader.cc (_Jv_RegisterClassHookDefault): Handle duplicate class registration with JvFail if the runtime hasn't been initialized yet. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@46424 138bc75d-0d04-0410-961f-82ee72b054a4
* * java/util/GregorianCalendar.java (getGregorianChange): Removedtromey2001-10-231-1/+1
| | | | | | | `date' argument. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@46423 138bc75d-0d04-0410-961f-82ee72b054a4
* * java/lang/Double.java: More Classpath mergingmark2001-10-203-19/+31
| | | | | | | | | | | | | (isInfinite): Don't use doubleToLongBits (isNaN (Object)): return v != v (initIDs): make native * java/lang/Float.java: Ditto (isInfinite): Don't use floatToIntBits (isNaN (Object)): return v != v * java/lang/natDouble.cc: add empty initIDs() git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@46370 138bc75d-0d04-0410-961f-82ee72b054a4
OpenPOWER on IntegriCloud