Open arouel opened 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.
If you want to go forward with this PR, kindly sign the OCA, as otherwise we cannot accept your contribution.
@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.
Thank you for signing the OCA.
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:
javax.tools.StandardLocation.SOURCE_PATH
implemented and therefore the search formodule-info.java
fails with a thrownIllegalArgumentException
. Ignoring this exception when compiling with the ECJ is fine.Element
parameter is null. Returning an emptyOptional
enables the caller to fall back.FileObject
throws anIllegalStateException
. Ignoring any exception when compiling with the ECJ should be fine.I have successfully tested the changes suggested here in a current Eclipse IDE (
Version: 2024-06 (4.32.0)
) on my local computer.