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 SpringBoot 2.1.2 #24317

Closed
xbaker opened this issue Jan 8, 2020 · 2 comments
Closed

illegal reflective access on SpringBoot 2.1.2 #24317

xbaker opened this issue Jan 8, 2020 · 2 comments
Labels
status: duplicate A duplicate of another issue

Comments

@xbaker
Copy link

xbaker commented Jan 8, 2020

WARNING: An illegal reflective access operation has occurred
WARNING: Illegal reflective access using Lookup on org.springframework.cglib.core.ReflectUtils (file:/home/user/.m2/repository/org/springframework/spring-core/5.1.4.RELEASE/spring-core-5.1.4.RELEASE.jar) to class java.lang.Object
WARNING: Please consider reporting this to the maintainers of org.springframework.cglib.core.ReflectUtils
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

Spring boot : 2.1.2
java : OpenJDK Runtime Environment AdoptOpenJDK (build 11.0.5+10)

@spring-projects-issues spring-projects-issues added the status: waiting-for-triage An issue we've not yet triaged or decided on label Jan 8, 2020
@bclozel bclozel added status: duplicate A duplicate of another issue and removed status: waiting-for-triage An issue we've not yet triaged or decided on labels Apr 1, 2020
@bclozel
Copy link
Member

bclozel commented Apr 1, 2020

Closing as a duplicate of #22674, see this comment for more details.

@bclozel bclozel closed this as completed Apr 1, 2020
@buckett
Copy link

buckett commented Apr 11, 2020

You should read the linked comment @bclozel mentioned, #22674 (comment) . If you have a Spring Boot application and have enabled devtools using an optional dependency:

	<dependency>
		<groupId>org.springframework.boot</groupId>
		<artifactId>spring-boot-devtools</artifactId>
		<optional>true</optional>
	</dependency>

Then running the application while in development (mvn spring-boot:run or through the IDE) will cause this dependency to be on the classpath and you will see this warning, however when you build a JAR/WAR for production, this dependency is not pulled in and so you won't see this warning in production.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
status: duplicate A duplicate of another issue
Projects
None yet
Development

No branches or pull requests

4 participants