Permalink
Browse files

Eliminate calls to now-deprecated ObjectSpace.idOf

  • Loading branch information...
1 parent 04b4a61 commit ef19b4ad7490b69cd168ab9e8a26c4cafe42746f @headius headius committed Jun 3, 2010
Showing with 2 additions and 2 deletions.
  1. +2 −2 test/org/jruby/test/TestObjectSpace.java
@@ -62,8 +62,8 @@ public void testIdentities() {
RubyString o1 = runtime.newString("hey");
RubyString o2 = runtime.newString("ho");
- long id1 = target.idOf(o1);
- long id2 = target.idOf(o2);
+ long id1 = target.createAndRegisterObjectId(o1);
+ long id2 = target.createAndRegisterObjectId(o2);
assertEquals("id of normal objects must be even", 0, id1 % 2);
assertEquals("id of normal objects must be even", 0, id2 % 2);

0 comments on commit ef19b4a

Please sign in to comment.