Bug 63838 - Illegal reflective access by WebappClassLoaderBase$1 in Java 13
Summary: Illegal reflective access by WebappClassLoaderBase$1 in Java 13
Alias: None
Product: Tomcat 7
Classification: Unclassified
Component: Catalina (show other bugs)
Version: trunk
Hardware: PC All
: P2 enhancement (vote)
Target Milestone: ---
Assignee: Tomcat Developers Mailing List
Depends on:
Reported: 2019-10-11 12:41 UTC by Konstantin Kolinko
Modified: 2019-10-28 21:49 UTC (History)
0 users


Note You need to log in before you can comment on or make changes to this bug.
Description Konstantin Kolinko 2019-10-11 12:41:22 UTC
Testing a release candidate for 7.0.97:

When I run it with Java 13 (13u0 64-bit from Oracle, running on Windows 10) I see the following messages in the output of Apache Ant:

> [junit] WARNING: An illegal reflective access operation has occurred
> [junit] WARNING: Illegal reflective access by org.apache.catalina.loader.WebappClassLoaderBase$1 (file:/D:/workspace/temp/temp.2019-10-10_tc7097/apache-tomcat-7.0.97-src/output/classes/) to method java.lang.ClassLoader.registerAsParallelCapable()
> [junit] WARNING: Please consider reporting this to the maintainers of org.apache.catalina.loader.WebappClassLoaderBase$1
> [junit] WARNING: Use --illegal-access=warn to enable warnings of further illegal reflective access operations
> [junit] WARNING: All illegal access operations will be denied in a future release

See bug 63837 and ant_test.log attached to it for the details and the full log output.

I am marking this issue as an enhancement. It as warning and not a showstopper.
Comment 1 Konstantin Kolinko 2019-10-11 12:59:23 UTC
I do not see the warnings when I start Tomcat normally with catalina.bat.
Comment 2 Mark Thomas 2019-10-28 21:49:05 UTC
Fixed in:
- master for 9.0.28 onwards
- 8.5.x for 8.5.48 onwards
- 7.0.x for 7.0.98 onwards