title: Illegal reflective access when I stop SpringBoot web application with Tomcat 9 and Java10
body: <p>I'm trying Java 10 development with Spring Boot 2 and I encounter some issues.</p>
  
  <p>The application is a simple webapp based upon Spring Boot 2. The application launch is ok but when I stop it, I get this warning:</p>
  
  <pre><code>WARNING: An illegal reflective access operation has occurred
  WARNING: Illegal reflective access by org.apache.catalina.loader.WebappClassLoaderBase (file:/C:/Users/CS/.m2/repository/org/apache/tomcat/embed/tomcat-embed-core/9.0.11/tomcat-embed-core-9.0.11.jar) to field java.io.ObjectStreamClass$Caches.localDescs
  WARNING: Please consider reporting this to the maintainers of org.apache.catalina.loader.WebappClassLoaderBase
  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
  </code></pre>
  
  <p>As you see, I already switch the embeded Tomcat server from version 8 to 9.0.11 to be compliant with the Java module system. And the application is launched with the option <code>--add-opens java.base/java.lang=ALL-UNNAMED</code></p>
  
  <p>Does anybody know why I get this message ?</p>