capsule icon indicating copy to clipboard operation
capsule copied to clipboard

[JDK9] Illegal reflective access warning

Open sureshg opened this issue 6 years ago • 3 comments

First of all thanks for this awesome project, this is what I use for packaging all my java cli apps. I am using the latest version of capsule (using https://github.com/danthegoodman/gradle-capsule-plugin) to create a really executable package. But running the executable on JDK9 is throwing the following warning by JVM.

WARNING: An illegal reflective access operation has occurred
WARNING: Illegal reflective access by Capsule (file:xxxxxx) to field com.sun.jmx.mbeanserver.JmxMBeanServer.mbsInterceptor
WARNING: Please consider reporting this to the maintainers of Capsule
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

Also, is this project maintained any more?

sureshg avatar Mar 14 '18 21:03 sureshg

questions:

  • what's the purpose of the overridePlatformMBeanServer method?
  • is this just a variant of #110?

ritschwumm avatar Apr 20 '18 13:04 ritschwumm

is this just a variant of #110?

@ritschwumm seems like it is.

sureshg avatar May 06 '18 19:05 sureshg

Got bitten by the same bug here, and also wanted to thanks the authors for the software. REALLY useful.

vromero avatar Jul 10 '18 05:07 vromero