-
Notifications
You must be signed in to change notification settings - Fork 90
Maintenance: Support Java 17 #1156
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
Thanks for your feedback. Would you be able to provide a pull request for this one? |
Hi @jeromevdl, I could try to update the library, see if everything works and create a PR. However, that is probably not enough.
Unfortunately, I am not familiar with aspectJ and cannot assess whether this means that the powertools lib is no longer compatible with Java 8. In addition, as far as I have seen, there are build processes running in the pipeline with Java 8, which would then no longer work. |
Hello @dagrammy, Please can you provide more details about your project configuration? If the answer is yes to both, could you try to change the According to this GH issue the plugin that we currently recommend does not support Java 17, and users are encouraged to utilise the dev-aspectj plugin instead. |
Hi @mriccia, we are using gradle as our build tool. For gradle we are using currently the plugin https://plugins.gradle.org/plugin/io.freefair.aspectj.post-compile-weaving |
thanks for the quick reply @dagrammy. |
Hi again @dagrammy I created a small example to reproduce the issue, and see the same error you noted. It seems that the gradle plugin will automatically select the version of Please can you try the following and report back? For reference, here a working |
Hi @mriccia we already tried to use a newer version of aspectj which supports Java 17. Iirc we got a a warning during build time (version conflict, aspect not applied or sth. like that). We deployed it anyways, but it didn't work. In our case we are using the powertools for large SQS message handling. I cloned your reproducer, built it and the same warnings are shown.
Did you deploy and test your example project? Is it working? |
hi @dagrammy , I'll check the large SQS message handling. |
@dagrammy I added 2 lambda functions to the example in this commit. Please take a look and let me know. |
Summary
Lambda now supports Java 17. We use the powertools, in particular SQS Large message handling.
We would like to update our projects to Java 17.
Unfortunately, this is currently not possible because of the AspectJ version used.
<aspectj.version>1.9.7</aspectj.version>
Build fails with:
[error] target level should be in '1.1'...'1.8','9'...'16' (or '5.0'..'16.0') or cldc1.1: 17
Why is this needed?
Upgrade to Java 17 not possible.
Which area does this relate to?
SQS Large Message Handling
Solution
Upgrade AspectJ to a version which supports Java 17.
At least version
1.9.8
should support it.https://htmlpreview.github.io/?https://github.com/eclipse/org.aspectj/blob/master/docs/dist/doc/README-197.html
Acknowledgment
The text was updated successfully, but these errors were encountered: