Skip to content

Concurrent::ScheduledTask is broken on master JRuby #4407

@kirs

Description

@kirs

I'm running latest version of concurrent-ruby (1.0.3) and JRuby master.

require 'concurrent'
class Job
  def perform
    puts "ddd"
  end
end

job = Job.new
executor = Concurrent::ImmediateExecutor.new
Concurrent::ScheduledTask.execute(10, args: [job], executor: executor, &:perform)

The last line crashes with java.lang.NoSuchFieldError: SUPPORTS_FENCES (full stacktrace)

The same snippet works fine on jruby-9.1.6.0, so I believe there is a regression in 9.1.7 / master.

@headius

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