Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Mutliple issues on jdk11 after ugrading to jRuby 9.2.9.0 #5969

@klobuczek

Description

@klobuczek

After upgrading to jruby-9.2.9.0 I have multiple test failures on jdk11.
jdk 1.8 and ruby-9.2.9.0 or jruby-9.2.9.0 works fine
jdk 11 and jruby-9.2.8.0 works fine too
It well may be my error but maybe you could give me a hint what change could affect it.

e.g.

  1) Parameters is able to set and return property is able to set and return Boolean property
     Failure/Error:
       session.run(query, value: parameter_processor(value)).each do |record|
         out_value = record['a.value']
         expect(block.call(value)).to be true
         expect(out_value).to eq value
       end

     TypeError:
       illegal access on 'forEach': class org.jruby.javasupport.JavaMethod (in module org.jruby.dist) cannot access a member of class java.util.stream.ReferencePipeline (in module java.base) with modifiers "public"
     # ./jruby/neo4j/driver/ext/internal_statement_result.rb:17:in `block in each'
     # ./jruby/neo4j/driver/ext/exception_checkable.rb:8:in `check'
     # ./jruby/neo4j/driver/ext/internal_statement_result.rb:17:in `each'
     # ./spec/integration/parameters_spec.rb:10:in `test_property'
     # ./spec/integration/parameters_spec.rb:25:in `block in <main>'
     # ./spec/support/neo4j_cleaner.rb:12:in `cleaning'
     # ./spec/spec_helper.rb:29:in `block in <main>'

You can see full details at https://travis-ci.com/neo4jrb/neo4j-ruby-driver/jobs/253161173

Environment

Provide at least:

  • JRuby version (jruby -v) and command line (flags, JRUBY_OPTS, etc) 9.2.9.0
  • Operating system and platform (e.g. uname -a)

Other relevant info you may wish to add:

  • Installed or activated gems
  • Application/framework version (e.g. Rails, Sinatra)
  • Environment variables

Expected Behavior

  • Describe your expectation of how JRuby should behave, perhaps by showing how CRuby/MRI behaves.
  • Provide an executable Ruby script or a link to an example repository.

Actual Behavior

  • Describe or show the actual behavior.
  • Provide text or screen capture showing the behavior.

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