Skip to content
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

GSON Illegal Reflective Access #34

Closed
keelerm84 opened this issue Jul 30, 2020 · 2 comments · Fixed by #54
Closed

GSON Illegal Reflective Access #34

keelerm84 opened this issue Jul 30, 2020 · 2 comments · Fixed by #54
Assignees
Labels

Comments

@keelerm84
Copy link

When sending an error to airbrake, I am receiving the following warning (using OpenJDK 14.0.2):

WARNING: An illegal reflective access operation has occurred                                                                                                                    
WARNING: Illegal reflective access by com.google.gson.internal.reflect.UnsafeReflectionAccessor (file:/home/keelerm/.gradle/caches/modules-2/files-2.1/com.google.code.gson/gson
/2.8.6/9180733b7df8542621dc12e21e87557e8c99b8cb/gson-2.8.6.jar) to field java.lang.Throwable.detailMessage                                                                      
WARNING: Please consider reporting this to the maintainers of com.google.gson.internal.reflect.UnsafeReflectionAccessor                                                         
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 

Are there any known solutions to this issue?

@AlexanderMann
Copy link

++ On this. I'm getting a different stack trace, but I think the core is that the version of GSON I need for my project is much higher than what this lib can handle.

I need at least [com.google.code.gson/gson "2.8.5"]. From what I can tell this library doesn't play nice with anything past implementation 'com.google.code.gson:gson:1.7.2'.

The gap between those deps looks to be about 8 years, not to mention the major and minor versions: https://mvnrepository.com/artifact/com.google.code.gson/gson

@scottsbaldwin
Copy link

Thanks @AlexanderMann for bumping this! We'll take a look.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

6 participants