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 28990 Details for
Bug 114365
[1.5][compiler] Eclipse won't compile certain Combinations of generics
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Requests
|
Help
|
Log In
[x]
|
Terms of Use
|
Copyright Agent
Example code
test.java (text/plain), 1.93 KB, created by
dave leatherdale
on 2005-10-31 10:10:04 EST
(
hide
)
Description:
Example code
Filename:
MIME Type:
Creator:
dave leatherdale
Created:
2005-10-31 10:10:04 EST
Size:
1.93 KB
patch
obsolete
>import java.util.Collection; >import java.util.Iterator; >import java.io.Serializable; >import java.lang.Cloneable; >/* > *Eclipse JDT will not compile the following class declertion > *It claims i have not implemented the iterator() method. (which i have) > */ >public class test<A extends Collection & Serializable > implements Collection >/* > * The following definitions however do work correctly >* public class test<A extends Cloneable & Serializable > implements Collection > * public class test<A extends Collection & Serializable > > * public class test<A extends Serializable > implements Collection > * public class test<A extends Collection > implements Collection > */ >{ > > public int size() > { > // TODO Auto-generated method stub > return 0; > } > > public boolean isEmpty() > { > // TODO Auto-generated method stub > return false; > } > > public boolean contains(Object arg0) > { > // TODO Auto-generated method stub > return false; > } > > public Iterator iterator() > { > // TODO Auto-generated method stub > return null; > } > > public Object[] toArray() > { > // TODO Auto-generated method stub > return null; > } > > public Object[] toArray(Object[] arg0) > { > // TODO Auto-generated method stub > return null; > } > > public boolean add(Object arg0) > { > // TODO Auto-generated method stub > return false; > } > > public boolean remove(Object arg0) > { > // TODO Auto-generated method stub > return false; > } > > public boolean containsAll(Collection arg0) > { > // TODO Auto-generated method stub > return false; > } > > public boolean addAll(Collection arg0) > { > // TODO Auto-generated method stub > return false; > } > > public boolean removeAll(Collection arg0) > { > // TODO Auto-generated method stub > return false; > } > > public boolean retainAll(Collection arg0) > { > // TODO Auto-generated method stub > return false; > } > > public void clear() > { > // TODO Auto-generated method stub > > } > > > > >}
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 114365
: 28990