Join GitHub today
GitHub is home to over 31 million developers working together to host and review code, manage projects, and build software together.Sign up
Fix cache-constructed-proxies #3602
Replicate the logic from org.jruby.javasupport.Java which determines whether an object should be cached.
I added some specs to ensure the caching is properly honored. If I comment out the new conditional, you can see that one of the new specs will correctly fail:
I wasn't sure if this was the right place to put these new specs, but it seemed like the most appropriate to me. Please let me know if I should move them.