Project

General

Profile

Actions

Bug #13120

closed

p [].class shows ThreadSafe::Array when it expects to show Array

Added by yahonda (Yasuo Honda) about 7 years ago. Updated about 7 years ago.

Status:
Closed
Assignee:
-
Target version:
-
ruby -v:
ruby 2.5.0dev (2017-01-10 trunk 57299) [x86_64-linux]
[ruby-core:79039]

Description

It has been filed as Rails issue https://github.com/rails/rails/issues/27631 and found there was a similar bug reported https://bugs.ruby-lang.org/issues/11977 . It looks it reproduces again.

Steps to reproduce:

$ ruby -v
ruby 2.5.0dev (2017-01-10 trunk 57299) [x86_64-linux]
$ bundle -v
Bundler version 1.13.7
$ git clone -b ruby250 https://github.com/yahonda/array_bug.git
$ cd array_bug
$ bundle
$ bundle exec ruby -w -e 'p [].class'
Array
$ bundle exec ruby -w -e 'require "rails"; p [].class'
ThreadSafe::Array

Related issues 2 (0 open2 closed)

Related to Ruby master - Bug #11977: Bug with array literals caused by r53376Closednormalperson (Eric Wong)Actions
Is duplicate of Ruby master - Bug #13114: test failures since r57284Closednobu (Nobuyoshi Nakada)Actions
Actions

Also available in: Atom PDF

Like0
Like0Like0Like0Like0Like0Like0Like0Like0Like0