question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Unknown warning on Java 10

See original GitHub issue
import io.restassured.RestAssured;

public static main(String[] org) {
	public static void main(String[] org) {
	}
}

after running the above set with eclipse which includes the lib from restAssured, the result below will show up and still can’t find the reason. Is there anyone able to resolve it?

WARNING: An illegal reflective access operation has occurred WARNING: Illegal reflective access by org.codehaus.groovy.reflection.CachedClass (file:/Users/dampion/Tools/java-rest-assured/rest-assured-3/rest-assured-3.1.0-deps/groovy-2.4.12.jar) to method java.lang.Object.finalize() WARNING: Please consider reporting this to the maintainers of org.codehaus.groovy.reflection.CachedClass 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

Issue Analytics

  • State:open
  • Created 5 years ago
  • Reactions:6
  • Comments:9

github_iconTop GitHub Comments

12reactions
sasuwcommented, Sep 26, 2021

@zhe-zhao I still get the warning using Java 11 and rest-assured 4.4.0, which uses groovy 3.0.8.

WARNING: An illegal reflective access operation has occurred
WARNING: Illegal reflective access by org.codehaus.groovy.vmplugin.v9.Java9 (file:/home/sasu/.m2/repository/org/codehaus/groovy/groovy/3.0.8/groovy-3.0.8.jar) to constructor java.lang.AssertionError(java.lang.String)
WARNING: Please consider reporting this to the maintainers of org.codehaus.groovy.vmplugin.v9.Java9
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
4reactions
kullingsjocommented, Mar 6, 2020

I get this warning on Java 11. Using rest-assured 4.2.0 with dependency to groovy 2.5.9. Groovy 3.0.0 is available since feb. Will rest-assured be updated shortly?

Read more comments on GitHub >

github_iconTop Results From Across the Web

How to get rid of security warning “The publisher name is ...
Steps to Add URL to the Java Exception Site list: · Go to the Java Control Panel · Click on the Security tab...
Read more >
What is the list of valid @SuppressWarnings warning names ...
In The Java Tutorials unchecked and deprecation are listed as the two warnings required by The Java Language Specification, therefore, they should be...
Read more >
Security level settings in the Java Control Panel
You are prompted before an untrusted java application is run (MEDIUM or HIGH) or · Untrusted Java applications will be blocked so they...
Read more >
Java Software Errors: How to Avoid 50 Code Issues in Java
The “inconvertible types” error occurs when the Java code tries to perform an illegal conversion. TypeInvocationConversionTest.java:12: ...
Read more >
Fix: Eclipse Warning "There are no JREs installed ... - YouTube
In this video I'm going to show you how to fix the Eclipse Warning "Build path specifies execution environment Java SE 1.7.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found