Geenrics compiler error in eclipse 3.7.0/1 IDE

Description

The Eclipse 3.7.0/1 compiler throws an error when dealing with a fairly complex scenario in the Generics space.

In AbstractReferenceContext class the compiler would fail on:

return getManufacturer(cl, cdo.getCDOMCategory()).forgetObject(obj);

as cdo.getCDOMCategory() was not returning the expected generic type. The following change in code gives the same functionality but passes both the normal javac compiler as well as the Eclipse one

return getManufacturer(cl, Category<?>cdo.getCDOMCategory()).forgetObject(obj);

Environment

None

Activity

Show:
Martijn Verburg
December 9, 2011, 11:06 AM

Devon confirmed this

Martijn Verburg
December 9, 2011, 11:06 AM

Fixed as per description

Fixed

Assignee

Martijn Verburg

Reporter

Martijn Verburg

Labels

None

Theme

None

Epic/Theme

None

Pending User Input

None

Time tracking

0m

Time remaining

30m

Components

Fix versions

Affects versions

Priority

Minor
Configure