| | 708 | class ChildExceptionWhileWaitingTestThread extends Thread |
|---|
| | 709 | { |
|---|
| | 710 | override protected function run():void |
|---|
| | 711 | { |
|---|
| | 712 | Static.log += 'p.run '; |
|---|
| | 713 | |
|---|
| | 714 | new ChildExceptionWhileWaitingTestChildThread().start(); |
|---|
| | 715 | |
|---|
| | 716 | error(Error, runError); |
|---|
| | 717 | wait(); |
|---|
| | 718 | } |
|---|
| | 719 | |
|---|
| | 720 | private function runError(e:Error, t:Thread):void |
|---|
| | 721 | { |
|---|
| | 722 | Static.log += 'p.error '; |
|---|
| | 723 | } |
|---|
| | 724 | |
|---|
| | 725 | override protected function finalize():void |
|---|
| | 726 | { |
|---|
| | 727 | Static.log += 'p.finalize '; |
|---|
| | 728 | } |
|---|
| | 729 | } |
|---|
| | 730 | |
|---|
| | 731 | class ChildExceptionWhileWaitingTestChildThread extends Thread |
|---|
| | 732 | { |
|---|
| | 733 | public var ex:Error = new Error(); |
|---|
| | 734 | |
|---|
| | 735 | override protected function run():void |
|---|
| | 736 | { |
|---|
| | 737 | Static.log += 'c.run '; |
|---|
| | 738 | |
|---|
| | 739 | next(run2); |
|---|
| | 740 | } |
|---|
| | 741 | |
|---|
| | 742 | private function run2():void |
|---|
| | 743 | { |
|---|
| | 744 | Static.log += 'c.run2 '; |
|---|
| | 745 | |
|---|
| | 746 | throw ex; |
|---|
| | 747 | } |
|---|
| | 748 | |
|---|
| | 749 | override protected function finalize():void |
|---|
| | 750 | { |
|---|
| | 751 | Static.log += 'c.finalize '; |
|---|
| | 752 | } |
|---|
| | 753 | } |
|---|
| | 754 | |
|---|