at_exit blocks fire before swing threads have exited
----------------------------------------------------

                 Key: JRUBY-5537
                 URL: http://jira.codehaus.org/browse/JRUBY-5537
             Project: JRuby
          Issue Type: Bug
            Reporter: Roger Pack
            Assignee: Thomas E Enebo


ref (with work around):
http://www.ruby-forum.com/topic/1142878


at_exit blocks get called before exit if swing threads are still left running.

ex:
{noformat}
 
 require 'java'
 
 include_class 'java.awt.event.ActionListener'
 include_class 'javax.swing.JButton'
 include_class 'javax.swing.JFrame'
 
 class ClickAction
include ActionListener
   def actionPerformed(event)
     puts "Button got clicked."
   end
 end
 
 class MainWindow < JFrame
   def initialize
     super "JRuby/Swing Demo"
     setDefaultCloseOperation JFrame::EXIT_ON_CLOSE
     pack
   end
 end
at_exit { puts 'yo' }

 MainWindow.new.setVisible true

{noformat}

jruby 1.6.0.RC2 (ruby 1.8.7 patchlevel 330) (2011-02-22 698a5e3) (Java 
HotSpot(TM) Client VM 1.6.0_18) [Windows 7-x86-java]


-- 
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