Skip to content

Illegal Reflective Access Operation Warning #5864

@keithrbennett

Description

@keithrbennett

Environment

➜  ~   rvm current
jruby-9.2.8.0
➜  ~   jruby -v
jruby 9.2.8.0 (2.5.3) 2019-08-12 a1ac7ff OpenJDK 64-Bit Server VM 11.0.1+13 on 11.0.1+13 +jit [darwin-x86_64]
➜  ~   echo $JRUBY_OPTS

➜  ~   uname -a
Darwin MacBook-Pro-KB-13.local 18.7.0 Darwin Kernel Version 18.7.0: Tue Aug 20 16:57:14 PDT 2019; root:xnu-4903.271.2~2/RELEASE_X86_64 x86_64

Erroneous Behavior

Whenever running any command that starts JRuby, the following warnings are output to the terminal:

➜  ~   jruby -e nil
WARNING: An illegal reflective access operation has occurred
WARNING: Illegal reflective access by com.headius.backport9.modules.Modules to method java.lang.Object.finalize()
WARNING: Please consider reporting this to the maintainers of com.headius.backport9.modules.Modules
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

I am aware that there are other similar issues (bug reports), but @headius requested that I file this issue separately.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions