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

EP 2.3.2 throws Illegal reflective access on JDK 11 #1158

Closed
mdindoffer opened this issue Oct 27, 2018 · 2 comments
Closed

EP 2.3.2 throws Illegal reflective access on JDK 11 #1158

mdindoffer opened this issue Oct 27, 2018 · 2 comments

Comments

@mdindoffer
Copy link

mdindoffer commented Oct 27, 2018

Please answer these questions before submitting your issue. Thanks!

What version of Error Prone are you using?

2.3.2

Does this issue reproduce with the latest release?

Yes

What did you do?

Tried to run errorprone as a maven plugin on my hobby project with Maven 3.5.4, Oracle JDK 11.0.1.
To reproduce simply clone the project, checkout 861b20 and use following configuration:

<configuration>
	<source>7</source>
	<target>7</target>
        <release>7</release>
	<compilerArgs>
		<arg>-XDcompilePolicy=simple</arg>
		<arg>-Xplugin:ErrorProne</arg>
	</compilerArgs>
	<annotationProcessorPaths>
		<path>
			<groupId>com.google.errorprone</groupId>
			<artifactId>error_prone_core</artifactId>
			<version>2.3.2</version>
		</path>
	</annotationProcessorPaths>
</configuration>

What did you expect to see?

No errors or warnings

What did you see instead?

WARNING: An illegal reflective access operation has occurred
WARNING: Illegal reflective access by com.google.errorprone.util.FindIdentifiers (file:/C:/Users/Xxx/.m2/repository/com/google/errorprone/error_prone_check_api/2.3.2/error_prone_check_api-2.3.2.jar) to method com.sun.tools.javac.comp.Resolve.findIdent(com.sun.tools.javac.comp.Env,com.sun.tools.javac.util.Name,com.sun.tools.javac.code.Kinds$KindSelector)
WARNING: Please consider reporting this to the maintainers of com.google.errorprone.util.FindIdentifiers
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
@chanseokoh
Copy link
Member

Related #1157.

@cushon
Copy link
Collaborator

cushon commented May 14, 2020

This is the same underlying problem as #1157.

@cushon cushon closed this as completed May 14, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants