helidon-io / helidon

Java libraries for writing microservices
https://helidon.io
Apache License 2.0
3.44k stars 562 forks source link

Get annotation processing going with Eclipse Compiler for Java #8913

Open arouel opened 6 days ago

arouel commented 6 days ago

Problem

I'm writing a HTTP feature for Helidon (related to #8897) and want to work with Eclipse IDE, but the Helidon annotation processors throw an exception because the Eclipse Compiler for Java (ECJ) behaves slightly different compared to javac.

Solution

Some changes were necessary to get the annotation processing going:

I have successfully tested the changes suggested here in a current Eclipse IDE (Version: 2024-06 (4.32.0)) on my local computer.

oracle-contributor-agreement[bot] commented 6 days ago

Thank you for your pull request and welcome to our community! To contribute, please sign the Oracle Contributor Agreement (OCA). The following contributors of this PR have not signed the OCA:

To sign the OCA, please create an Oracle account and sign the OCA in Oracle's Contributor Agreement Application.

When signing the OCA, please provide your GitHub username. After signing the OCA and getting an OCA approval from Oracle, this PR will be automatically updated.

If you are an Oracle employee, please make sure that you are a member of the main Oracle GitHub organization, and your membership in this organization is public.

tomas-langer commented 6 days ago

If you want to go forward with this PR, kindly sign the OCA, as otherwise we cannot accept your contribution.

arouel commented 5 days ago

@tomas-langer I added one more commit to handle the last case I had issues with when using Eclipse IDE. Can you have a look at it as well? I signed the OCA already, I guess it needs a bit to be approved.

oracle-contributor-agreement[bot] commented 1 day ago

Thank you for signing the OCA.