History | Log In     View a printable version of the current page.  
Issue Details (XML | Word | Printable)

Key: JRUBY-878
Type: Bug Bug
Status: Closed Closed
Resolution: Fixed
Priority: Major Major
Assignee: Unassigned
Reporter: R. Mark Volkmann
Votes: 0
Watchers: 1
Operations

If you were logged in you would be able to see more operations.
JRuby

EvaluateCallable wrong # of arguments (2 for 1)

Created: 24/Apr/07 09:48 AM   Updated: 06/May/07 09:49 PM
Component/s: Core Classes/Modules
Affects Version/s: JRuby 0.9.9
Fix Version/s: JRuby 1.0.0RC1

Time Tracking:
Not Specified

File Attachments: 1. File hello_swing.jrb (2 kb)

Environment: Mac OS X


 Description  « Hide
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



 All   Comments   Work Log   Change History      Sort Order: Ascending order - Click to sort in descending order
Thomas E Enebo - 26/Apr/07 12:48 PM
The attached script is running without problems or messages. Fixed on trunk

Charles Oliver Nutter - 06/May/07 09:49 PM
Closing for 1.0RC1