[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[news.eclipse.platform] Problem with generics reported errors at 3.2m5a

I've just installed Eclipse 3.2m5a to give it a try and checked out a project from our CVS rep. The problems dialog shows in 3.2m5a some errors in my code which didn't appear when working with Eclipse 3.1. The piece of code reporting an error is:

..

public abstract class TrackableCollection<DAO, RET_ELEM, A extends DAO & TrackableObjectInterface<RET_ELEM, CON>, CON extends DAOTransaction> implements TrackableCollectionInterface<DAO, Collection<RET_ELEM>, CON> {

..

}

Eclipse 3.2m5a reports this error:

Cannot specify any additional bound TrackableObjectInterface<RET_ELEM,CON> when first bound is a type parameter

It doesn't let me declare: ...,A extends DAO & TrackableObjectInterface<RET_ELEM,CON>,...

That was working perfectly on eclipse 3.1 as it's a Java 5.0 legal declaration, and in my case is compiled, installed and working on production enviroment since some months ago.

I've tried to change declaration order this way:

..

public abstract class TrackableCollection<DAO, RET_ELEM, A extends TrackableObjectInterface<RET_ELEM, CON> & DAO, CON extends DAOTransaction> implements TrackableCollectionInterface<DAO, Collection<RET_ELEM>, CON> {

..

}

but Eclipse reports this:

The type DAO is not an interface; it cannot be specified as a bounded parameter

for declaration: ...,A extends TrackableObjectInterface<RET_ELEM,CON> & DAO,...

Which really seems to be a wrong declaration.

Is this an Eclipse 3.2 bug? How can I report this in case it's a bug? Is there a way to ignore this error in Eclipse 3.2 or do I have to get stucked at version 3.1?

Thanks for your help

Pepe Ribas