Aws-sdk-java-v2: java 9: "Illegal reflective access by com.amazonaws.util.XpathUtils"

Created on 19 Jun 2018  路  1Comment  路  Source: aws/aws-sdk-java-v2

It's showing the following warnings when building with java 9+ and we should fix it.

WARNING: An illegal reflective access operation has occurred
WARNING: Illegal reflective access by software.amazon.awssdk.core.util.XpathUtils (file:...) to method com.sun.org.apache.xpath.internal.XPathContext.getDTMManager()
WARNING: Please consider reporting this to the maintainers of software.amazon.awssdk.core.util.XpathUtils
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

related to https://github.com/aws/aws-sdk-java/issues/1603

Reproduce Step

run integration tests for any xml protocol services.

Your Environment

  • AWS Java SDK version used: 2.0.0-preview-11-SNAPSHOT
  • JDK version used: java 10.0.1 2018-04-17
  • Operating System and version: mac
bug

Most helpful comment

Yay, XPathUtils has already been removed as part of #797 and there's no XPathFactory being used.

Closing the issue.

>All comments

Yay, XPathUtils has already been removed as part of #797 and there's no XPathFactory being used.

Closing the issue.

Was this page helpful?
0 / 5 - 0 ratings