-
Notifications
You must be signed in to change notification settings - Fork 264
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: Warnings: Illegal reflective access: CloneableConverter #280
Comments
Any news on this? We're also seeing this |
Bump! Any chance to get it fixed soon? |
Bump! |
Nice! |
Quick answer: in Java >9 you'll need to add Actually this particular converter need to use Just keep in mind those warnings wont affect anything. Now a lot of infrastructure code in Java ecosystem are just ignoring those warnings. Some naughty people dared to disable the logger 😅
(from javassist) |
Branch 1.6.x is available (main repository, free of illegal access) please check it out and let me know. |
I am using orkia core 1.5.4 latest in maven till now, but I am still getting. Where to get 1.6.X ? |
Using "net.rakugakibox.spring.boot:orika-spring-boot-starter:1.9.0". Same problem (as it uses orika 1.5.4) |
Using java 11 and Orika 1.5.2 with the same problem |
Using java build 13.0.1+9 and orika-core 1.5.4 with same problem. |
Using java 11 and Orika 1.5.4 with the same problem |
This is not true in my case, the destination object's properties are all set to null on |
No news on this? |
Bump. |
1 similar comment
Bump. |
Bump |
Any chance of releasing the 1.6.0 version any time soon? It's been 2 years since you have mentioned it. |
I locally built 1.6.0 branch and used for our project with Java 11 open and it is working fine without any issues |
The * Error logs:
|
FYI: JDK 17 now has landed. |
So I guess the answer is - stay on JDK 11, or look for something else. Fortunately for me, I don't need to upgrade immediately, but it looks like it's time to reevaluate whether it's not better to just write the mapping layer by hand and forget about Orika. |
I mean, it's only been three years since this was first reported, so nobody could possibly expect any sort of solution in that time frame. |
In 2022, I am also affected by this problem.
|
Bump |
Bump |
Hi @elaatifi ya djari, think about releasing the 1.6.0, I'm having the same issue with 1.5.4. |
What
When starting a spring boot application, using Orika with Java 10, I receive the following warnings:
WARNING: An illegal reflective access operation has occurred
WARNING: Illegal reflective access by
ma.glasnost.orika.converter.builtin.CloneableConverter
(file:/xxxr) to methodjava.lang.Object.clone()
WARNING: Please consider reporting this to the maintainers of
ma.glasnost.orika.converter.builtin.CloneableConverter
WARNING: Use --illegal-access=warn to enable warnings of further illegal reflective access operations
WARNING: All illegal access operations will be denied in a future release
Versions
I am using Java 10.0.2 and orika-core 1.5.2
How can this issue be solved? I did not check with Java 9 but I expect it to be the same (as with other libraries, which use Reflections).
The text was updated successfully, but these errors were encountered: