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

Illegal reflective access on Java 11 #1446

Closed
pkunk opened this issue Jan 19, 2021 · 1 comment
Closed

Illegal reflective access on Java 11 #1446

pkunk opened this issue Jan 19, 2021 · 1 comment

Comments

@pkunk
Copy link

pkunk commented Jan 19, 2021

Expected behavior

Support for Java >= 11 in 2.* and 3.* versions of ApplicationInsights. No warnings.

Actual behavior

Warning caused by shaded xstream dependency. x-stream/xstream#101

This issue is mitigated in xstream 1.4.13 and later, ApplicationInsights currently includes old 1.4.11.1 version.
See for more details:
x-stream/xstream#216
x-stream/xstream#218

To Reproduce

Steps to reproduce the behavior:

Sample Application

If applicable, provide a sample application which reproduces the issue.

System information

Please provide the following information:

  • SDK Version: 2.6.2

Logs

Executing task 'build'...

Task :compileJava
Task :processResources UP-TO-DATE
Task :classes
Task :bootJar
Task :jar SKIPPED
Task :assemble
Task :compileTestJava
Task :processTestResources NO-SOURCE
Task :testClasses

Task :test
WARNING: An illegal reflective access operation has occurred
WARNING: Illegal reflective access by com.microsoft.applicationinsights.core.dependencies.xstream.core.util.Fields (file:/home/pkunk/.cache/gradle/modules-2/files-2.1/com.microsoft.azure/applicationinsights-web/2.6.2/689b4af8d82bd54d8ba694fff77c63ddaa89afc/applicationinsights-web-2.6.2.jar) to field java.util.TreeMap.comparator
WARNING: Please consider reporting this to the maintainers of com.microsoft.applicationinsights.core.dependencies.xstream.core.util.Fields
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

@trask
Copy link
Member

trask commented Feb 9, 2021

Resolved by #1479

@trask trask closed this as completed Feb 9, 2021
@ghost ghost locked as resolved and limited conversation to collaborators Jul 20, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants