The attached simple Swing application results in this stack trace, but the application runs anyway.
Exception in thread "AWT-EventQueue-0" hello_swing.jrb:57:in `__jcreate!': wrong # of arguments(2 for 1) (ArgumentError)
from hello_swing.jrb:57
...internal jruby stack elided...
from org.jruby.internal.runtime.methods.EvaluateCallable.call(EvaluateCallable.java:58)
from org.jruby.runtime.Block.yield(Block.java:217)
from org.jruby.runtime.Block.call(Block.java:178)
from org.jruby.RubyProc.call(RubyProc.java:166)
from org.jruby.RubyProc.call(RubyProc.java:142)
from org.jruby.javasupport.proxy.JavaProxyConstructor$1.invoke(JavaProxyConstructor.java:180)
from org.jruby.javasupport.proxy.gen.JFrame$Proxy0.invalidate(Unknown Source)
from java.awt.Window.dispatchEventImpl(Window.java:1771)
from java.awt.Component.dispatchEvent(Component.java:3869)
from java.awt.EventQueue.dispatchEvent(EventQueue.java:463)
from java.awt.EventDispatchThread.pumpOneEventForHierarchy(EventDispatchThread.java:269)
from java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:190)
from java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:184)
from java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:176)
from java.awt.EventDispatchThread.run(EventDispatchThread.java:110)
Swing$ jruby hello_swing.jrb
Exception in thread "AWT-EventQueue-0" hello_swing.jrb:57:in `__jcreate!': wrong # of arguments(2 for 1) (ArgumentError)
from hello_swing.jrb:57