From: JIRA (f. M. V. ) <ji...@pc...> - 2011-12-08 16:07:14
|
[ http://jira.pcgen.org/browse/CODE-1134?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Martijn Verburg closed CODE-1134. --------------------------------- > Geenrics compiler error in eclipse 3.7.0/1 IDE > ---------------------------------------------- > > Key: CODE-1134 > URL: http://jira.pcgen.org/browse/CODE-1134 > Project: Code > Issue Type: Bug > Components: Architecture > Affects Versions: 5.17.9, CDOM UI Build 1 > Reporter: Martijn Verburg > Assignee: Martijn Verburg > Fix For: 5.17.10, CDOM UI Build 2 > > Original Estimate: 30 minutes > Remaining Estimate: 30 minutes > > 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); -- This message is automatically generated by JIRA. - If you think it was sent incorrectly contact one of the administrators: http://jira.pcgen.org/secure/Administrators.jspa - For more information on JIRA, see: http://www.atlassian.com/software/jira |