Download
Getting Started
Members
Projects
Community
Marketplace
Events
Planet Eclipse
Newsletter
Videos
Participate
Report a Bug
Forums
Mailing Lists
Wiki
IRC
How to Contribute
Working Groups
Automotive
Internet of Things
LocationTech
Long-Term Support
PolarSys
Science
OpenMDM
More
Community
Marketplace
Events
Planet Eclipse
Newsletter
Videos
Participate
Report a Bug
Forums
Mailing Lists
Wiki
IRC
How to Contribute
Working Groups
Automotive
Internet of Things
LocationTech
Long-Term Support
PolarSys
Science
OpenMDM
Toggle navigation
Bugzilla – Attachment 28545 Details for
Bug 113273
[1.5][compiler] Compiler confused by multiply bounded type parameter
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Requests
|
Help
|
Log In
[x]
|
Terms of Use
|
Copyright Agent
Test case
IansCollection.java (text/x-java), 1.55 KB, created by
Ian Pilcher
on 2005-10-20 15:50:09 EDT
(
hide
)
Description:
Test case
Filename:
MIME Type:
Creator:
Ian Pilcher
Created:
2005-10-20 15:50:09 EDT
Size:
1.55 KB
patch
obsolete
>package temp; > >import java.util.*; > >public class IansCollection<E, C extends Collection<E> & Cloneable> > implements Collection<E> >{ > private C collection; > > public IansCollection(C c) > { > collection = c; > } > > private class IansIterator implements Iterator<E> > { > private Iterator<E> iterator; > > IansIterator() > { > iterator = collection.iterator(); > } > > public boolean hasNext() > { > return iterator.hasNext(); > } > > public E next() > { > return iterator.next(); > } > > public void remove() > { > iterator.remove(); > } > } > > public boolean add(E o) > { > return collection.add(o); > } > > public boolean addAll(Collection<? extends E> c) > { > return collection.addAll(c); > } > > public void clear() > { > collection.clear(); > } > > public boolean contains(Object o) > { > return collection.contains(o); > } > > public boolean containsAll(Collection<?> c) > { > return collection.containsAll(c); > } > > public boolean equals(Object o) > { > return collection.equals(o); > } > > public int hashCode() > { > return collection.hashCode(); > } > > public boolean isEmpty() > { > return collection.isEmpty(); > } > > public Iterator<E> iterator() > { > return new IansIterator(); > } > > public boolean remove(Object o) > { > return collection.remove(o); > } > > public boolean removeAll(Collection<?> c) > { > return collection.removeAll(c); > } > > public boolean retainAll(Collection<?> c) > { > return collection.retainAll(c); > } > > public int size() > { > return collection.size(); > } > > public Object[] toArray() > { > return collection.toArray(); > } > > public <T> T[] toArray(T[] a) > { > return collection.toArray(a); > } >}
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Raw
Actions:
View
Attachments on
bug 113273
: 28545