[MacRuby] #872: An Instance of Thread is not necessary to be able to reinitialize.
#872: An Instance of Thread is not necessary to be able to reinitialize. ----------------------------------+----------------------------------------- Reporter: watson1978@… | Owner: lsansonetti@… Type: defect | Status: new Priority: minor | Milestone: Component: MacRuby | Keywords: ----------------------------------+----------------------------------------- Test Script: {{{ #!ruby $ cat test_thread.rb def assert_raise(a, &block) begin block.call rescue => e p e p a == e.class else p :ng end puts "-----" end t1 = Thread.new { sleep 1 1234 } assert_raise(ThreadError) do t1.instance_eval { initialize { } } end p t1.value }}} Result of Ruby 1.9.1: {{{ $ ruby test_thread.rb #<ThreadError: already initialized thread - test_thread.rb:13> true ----- 1234 }}} Result of MacRuby Trunk: {{{ $ macruby test_thread.rb :ng ----- nil }}} -- Ticket URL: <http://www.macruby.org/trac/ticket/872> MacRuby <http://macruby.org/>
#872: An Instance of Thread is not necessary to be able to reinitialize. ----------------------------------+----------------------------------------- Reporter: watson1978@… | Owner: lsansonetti@… Type: defect | Status: closed Priority: minor | Milestone: MacRuby 0.7 Component: MacRuby | Resolution: fixed Keywords: | ----------------------------------+----------------------------------------- Changes (by lsansonetti@…): * status: new => closed * resolution: => fixed * milestone: => MacRuby 0.7 Comment: Should be fixed in r4455. -- Ticket URL: <http://www.macruby.org/trac/ticket/872#comment:1> MacRuby <http://macruby.org/>
participants (1)
-
MacRuby