lishunli / projectlombok

Automatically exported from code.google.com/p/projectlombok
0 stars 0 forks source link

Delegate handles generics not correct #565

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
Following Method in a delegate

public <C extends Component & Field<?>> void addComponent(C c, String 
propertyPath)

produces following method

<Field<?>> addComponent(Field<?> c, String propertyPath)

Original issue reported on code.google.com by christia...@gmail.com on 23 Aug 2013 at 3:03

GoogleCodeExporter commented 9 years ago
Ok, I am sorry for the bad description. @Delegate works properly. This error 
seems to happen only in a special circumstance and only in eclipse. I described 
the error and provide a demo of this error here: 
https://github.com/Waxolunist/lombok-test

Short:
If the Delegate and the Delegator implement the same interface, eclipse 
complains about the Delegator not implementing inherited abstract methods, if 
these methods contain generics.

Original comment by christia...@gmail.com on 27 Aug 2013 at 10:54