-
Notifications
You must be signed in to change notification settings - Fork 76
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
Java 10 compatibility Issue #85
Comments
I don't have any problem with Java 10 besides method isJDK_N_OrHigher(int n) |
I'm also having the issue with java 11 @bcaure
Exception being thrown is:
If I flip it to 1.8
it executes without issues. Using latest (2.5.0) of audit4j |
Hrrm I debugged this on my home PC and when manually substituting in the version number in |
I'm getting this on trying to update a project to java 11 on my mac |
If I run I get |
@janithb any chance we could merge this (or fix it another way :)) I've an app at work that depends on this library (thank you for it btw) and we can't update to Java 11 because of this issue. |
@pauldambra I was able to eventually fix this on my mac by wiping out the JDK and doing a fresh install of adoptopenjdk. I'm still unsure what on my mac caused it but that did fix it. |
I can't risk having to try and do that through CI and into multiple application servers though The code change I've proposed does remove the issue (I think) It removes the need for this comment https://github.com/audit4j/audit4j-core/pull/94/files#diff-977dbf33e7beb1cd8309627cf774cbdfL53 |
I'd be happy picking up this issue if that's OK? 😄 |
Do you have commit permissions on this repo @jamietanna ? We've forked here https://github.com/coopdigital/audit4j-core (although looks like we've not updated it yet :/) |
No I don't @pauldambra - I was thinking of raising a PR to this repo via a fork of my own |
This is a short-term fix that allows consumers to use the project as-is, but ideally we would move to a more resilient setup that may support future JDK versions. Closes audit4j#85.
Ah, yeah, I've had a PR open for it for months. It's either abandoned or
the maintainer doesn't want this fix.
I'll check on Monday why we haven't updated our fork. We've been super busy
the last couple weeks but the intention is to leave our fork available with
the fix
…On Sat, 3 Oct 2020, 11:38 Jamie Tanna, ***@***.***> wrote:
No I don't @pauldambra <https://github.com/pauldambra> - I was thinking
of raising a PR to this repo via a fork of my own
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#85 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AAHQN4PRO3DVJM7XPKFJPZTSI35L7ANCNFSM4F66CGZQ>
.
|
Oh sorry I didn't realise, that makes sense |
No worries :) #94 that's my PR I don't have time to review yours this weekend (sorry!) you're welcome to review mine though! |
I am updating my application to Java10 and found Audit4J checks Java environment, I believe due to checking version in 1.X format, which works for 1.7, 1.8 etc but in Java10 version format has changed to 10.X.
I have updated this part of audit4J-core (locally only for now), the version issue seem to resolved but now SpringAudit4jConfig is causing issues, error log below:
--//--
Bean instantiation via factory method failed; nested exception is org.springframework.beans.BeanInstantiationException: Failed to instantiate [org.audit4j.integration.spring.SpringAudit4jConfig]: Factory method 'springAudit4jConfig' threw exception; nested exception is java.lang.LinkageError
--//--
Any suggestion please?
The text was updated successfully, but these errors were encountered: