Skip to content

Incorrect warning line #5976

@yamam

Description

@yamam

Environment

jruby 9.2.9.0 (2.5.7) 2019-10-30 458ad3e OpenJDK 64-Bit Server VM 11.0.4+11-post-Ubuntu-1ubuntu218.04.3 on 11.0.4+11-post-Ubuntu-1ubuntu218.04.3 +jit [linux-x86_64]

Expected Behavior

Warning line is correct in 9.1.17.0.

./jruby-9.1.17.0/bin/jruby.bash -e '1 if a = true'
-e:1: warning: found = in conditional, should be ==

Actual Behavior

Warning line is incorrect from 9.2.0.0 to 9.2.9.0.

./jruby-9.2.0.0/bin/jruby.bash -e '1 if a = true'
-e:15: warning: found = in conditional, should be ==
./jruby-9.2.9.0/bin/jruby.bash -e '1 if a = true'
WARNING: An illegal reflective access operation has occurred
WARNING: Illegal reflective access by com.headius.backport9.modules.Modules to method sun.nio.ch.NativeThread.signal(long)
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
-e:15: warning: found = in conditional, should be ==

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions