Skip to content

Instantly share code, notes, and snippets.

@griff
griff / bug_test.rb
Created June 8, 2010 14:25
Some small code to illustrate a bug in JRuby
class BugTest1 < Hash
# Any interface will do
include Java::JavaLang::Runnable
def run
puts "Hello from BugTest1"
end
end
@griff
griff / RealData.java
Created June 8, 2010 13:53
A small jruby program that slams the PermGen
public class RealData
{
// Works with any interface
private Runnable errors;
public void setErrors(Runnable errors)
{
this.errors = errors;
}
}