@@ -1087,7 +1087,7 @@ public RubyBoolean empty_p(ThreadContext context) {
10871087 public RubyArray to_a (ThreadContext context ) {
10881088 final Ruby runtime = context .runtime ;
10891089 try {
1090- final RubyArray result = RubyArray .newBlankArrayInternal (runtime , size );
1090+ final RubyArray result = RubyArrayNative .newBlankArrayInternal (runtime , size );
10911091
10921092 visitAll (context , RubyHash .StoreKeyValueVisitor , result );
10931093
@@ -1955,7 +1955,7 @@ public void visit(ThreadContext context, RubyHash self, IRubyObject key, IRubyOb
19551955 @ JRubyMethod (name = "keys" )
19561956 public RubyArray keys (final ThreadContext context ) {
19571957 try {
1958- RubyArray keys = RubyArray .newBlankArrayInternal (context .runtime , size ());
1958+ RubyArray keys = RubyArrayNative .newBlankArrayInternal (context .runtime , size ());
19591959
19601960 visitAll (context , StoreKeyVisitor , keys );
19611961
@@ -1983,7 +1983,7 @@ public void visit(ThreadContext context, RubyHash self, IRubyObject key, IRubyOb
19831983 @ JRubyMethod (name = "values" )
19841984 public RubyArray values (final ThreadContext context ) {
19851985 try {
1986- RubyArray values = RubyArray .newBlankArrayInternal (context .runtime , size ());
1986+ RubyArray values = RubyArrayNative .newBlankArrayInternal (context .runtime , size ());
19871987
19881988 visitAll (context , StoreValueVisitor , values );
19891989
@@ -2313,7 +2313,7 @@ public void visit(ThreadContext context, RubyHash self, IRubyObject key, IRubyOb
23132313 */
23142314 @ JRubyMethod (name = "values_at" , rest = true )
23152315 public RubyArray values_at (ThreadContext context , IRubyObject [] args ) {
2316- RubyArray result = RubyArray .newBlankArrayInternal (context .runtime , args .length );
2316+ RubyArray result = RubyArrayNative .newBlankArrayInternal (context .runtime , args .length );
23172317 for (int i = 0 ; i < args .length ; i ++) {
23182318 result .storeInternal (context , i , op_aref (context , args [i ]));
23192319 }
@@ -2322,7 +2322,7 @@ public RubyArray values_at(ThreadContext context, IRubyObject[] args) {
23222322
23232323 @ JRubyMethod (name = "fetch_values" , rest = true )
23242324 public RubyArray fetch_values (ThreadContext context , IRubyObject [] args , Block block ) {
2325- RubyArray result = RubyArray .newBlankArrayInternal (context .runtime , args .length );
2325+ RubyArray result = RubyArrayNative .newBlankArrayInternal (context .runtime , args .length );
23262326 for (int i = 0 ; i < args .length ; i ++) {
23272327 result .storeInternal (context , i , fetch (context , args [i ], block ));
23282328 }
0 commit comments