Community
Participate
Working Groups
after installing the latest (cheetah_002) on my eclipse i get a very strange error: 2 The return type is incompatible with MenuElement.getSubElements(), JMenuItem.getSubElements() TestMenuItem.java this happens when i try to compile a class that extends jmenuitem and that class implements a ActionListener: class TestMenuItem extends JMenuItem implements ActionListener
It probably has to do with the fact we don't yet support covariance.
but it doesn't change if i compile agains 1.4.. and it gives the error on the class definition and not on a method.. But maybe it is, just wanted to report it.
I think I was wrong. I am seeing a similar failure when compiling JDTCore from head with the Cheetah... will investigate. It seems related to using an array type as a return type for a method...
Array types are supposed to be unique, however we seem to incorrectly record two instances of them and then they don't compare identical. This occurs in conjunction with the array denoting an (unresolved) binary leaf component type. Reproduced by compiling JDT Core sources using Cheetah, error shows up on JavaModelStatuts#getChildren() complaining about incompatible IStatus[] return type.
Actually the problem comes from the fact that certain binaries are referencing themselves. When resolving the ref to IStatus, askForType is indirectly creating further array bindings of IStatus, before it has updated the array cache. This bug was introduced when adding support for lazy generic bindings. Fixed.
forgot to assign
fixed