[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[cp-patches] [generics] Error Fix #06
From: |
Andrew John Hughes |
Subject: |
[cp-patches] [generics] Error Fix #06 |
Date: |
Thu, 13 Jan 2005 11:13:15 +0000 |
User-agent: |
Mutt/1.5.6+20040907i |
I'm committing the attached patch which allows the generics branch to compile.
2005-01-13 Andrew John Hughes <address@hidden>
* java/util/Arrays.java:
(sort(T[],int,int,Comparator<? super T>)): Typed
Object[] to T[]
* java/util/Collections.java;
(compare(T,T,<? super T>)): typed generically
(binarySearch(List<? extends T>,T,Comparator<? super T>)):
re-typed and added casts to List<T>
(rotate(List<? super Object>, int)): added (incorrect?)
super type to compile
(shuffle(List<? super Object>): likewise
(shuffle(List<? super Object, Random)): likewise
(entrySet()): singleton version changed for accuracy
(swap(List<? super Object>,int,int)): added (incorrect?)
super type to compile
(entrySet()): unmodifiable version removed invalid
static typing of K and V
* java/util/HashMap.java:
(entries): re-typed to Set<Map.Entry<K,V>>
(putAll(Map<? extends K, ? extends V>)): cast and foreach
statement added
(putAllInternal(Map<? extends K, ? extends V>)): likewise
* java/util/Hashtable.java:
same as for HashMap
* java/util/LinkedHashEntry.java:
(pred,succ): generically typed
(LinkedHashEntry(K,V)): likewise
(cleanup()): likewise
(get(Object)): likewise
(addEntry(K,V,int,boolean)): likewise
* java/util/LinkedList.java:
changed incorrect cast
(LinkedListItr<I>): re-typed to unique I from T
* java/util/TreeSet.java:
cast set to SortedSet<T> before using
--
Andrew :-)
Please avoid sending me Microsoft Office (e.g. Word, PowerPoint) attachments.
See http://www.fsf.org/philosophy/no-word-attachments.html
No software patents in Europe -- http://nosoftwarepatents.com
"Value your freedom, or you will lose it, teaches history.
`Don't bother us with politics' respond those who don't want to learn."
-- Richard Stallman
"We've all been part of the biggest beta test the world has ever known --
Windows"
-- Victor Wheatman, Gartner
errors_06.diff
Description: Text document
signature.asc
Description: Digital signature
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [cp-patches] [generics] Error Fix #06,
Andrew John Hughes <=