dsoumis commented on PR #731:
URL: https://github.com/apache/tomcat/pull/731#issuecomment-2144545354

   @isapir It doesn't work for me. After pulling your patch I am getting errors 
such as:
   `java: java.lang.foreign.Arena is a preview API and is disabled by default.
     (use --enable-preview to enable preview APIs)`
     
   I tried to resolve this by unchecking the --release option for cross 
compilation and add the following compiler arguments in Java Compiler settings 
as seen below 
   ![Screenshot from 2024-06-03 
10-59-22](https://github.com/apache/tomcat/assets/31931534/87d6ee04-081f-4609-bb0a-7c5c38e066e8)
   
   However, now I am getting the following error:
   `java: invalid source release 20 with --enable-preview
     (preview language features are only supported for release 22)`
   
   My opinion is that we should not set language level to experimental, as 
sooner or later that will not be the case anymore.
   I think the best approach would be to add a comment, as you initially 
proposed, to build.xml "ide-intellij" target that will guide the developer how 
to handle this case.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: dev-unsubscr...@tomcat.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscr...@tomcat.apache.org
For additional commands, e-mail: dev-h...@tomcat.apache.org

Reply via email to