jdt-codemining icon indicating copy to clipboard operation
jdt-codemining copied to clipboard

Wrong parameter type derived for static method

Open odrotbohm opened this issue 5 years ago • 3 comments

bildschirmfoto 2018-11-13 um 12 11 24

The derived parameter type of the registerEvent(…) method is wrong. It should be ProductAdded as that's the return value of the static method generated by Lombok.

Also, note how there's an extra type hint rendered for the @RequiredArgsConstructor declaration on ProductAdded.

odrotbohm avatar Nov 13 '18 11:11 odrotbohm

Perhaps it's a problem with Lombok https://github.com/angelozerr/jdt-codemining/issues/37#issuecomment-399357306

@vogella I fear that more and more people wants lombox support, but JDT project will not agree to support it.

angelozerr avatar Nov 13 '18 12:11 angelozerr

@angelozerr I think having it available for standard Java code will already be a big gain.

vogella avatar Nov 13 '18 12:11 vogella

I think having it available for standard Java code will already be a big gain.

I had started to implement the lombok feature but it's an hard thing and Java code will ne specific for lombok. I would like to avoid doing work that JDT project will reject because of lombok code (but there is no dependency to lombok ).

Just find time to support lombok ...

angelozerr avatar Nov 13 '18 13:11 angelozerr