EvaluateCallable wrong # of arguments (2 for 1)
-----------------------------------------------

                 Key: JRUBY-878
                 URL: http://jira.codehaus.org/browse/JRUBY-878
             Project: JRuby
          Issue Type: Bug
          Components: Core Classes/Modules
    Affects Versions: JRuby 0.9.9
         Environment: Mac OS X
            Reporter: R. Mark Volkmann
         Attachments: hello_swing.jrb

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

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: 
http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

---------------------------------------------------------------------
To unsubscribe from this list please visit:

    http://xircles.codehaus.org/manage_email

Reply via email to