diff --git a/src/org/jruby/runtime/ObjectSpace.java b/src/org/jruby/runtime/ObjectSpace.java index 07c2e57991a..79030fc43fa 100644 --- a/src/org/jruby/runtime/ObjectSpace.java +++ b/src/org/jruby/runtime/ObjectSpace.java @@ -92,7 +92,7 @@ public IRubyObject id2ref(long id) { private void cleanIdentities() { IdReference ref; while ((ref = (IdReference) deadIdentityReferences.poll()) != null) - identities.remove(long Long(ref.id())); + identities.remove(new Long(ref.id())); } public synchronized void add(IRubyObject object) {