rafalszemraj / fabrication

Automatically exported from code.google.com/p/fabrication
2 stars 1 forks source link

Reflection mechanism creates not only extra mediator but also its component #33

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Register at least one mediator of a component (not main class)
2. Put a trace("Hello!") to component's constructor

What is the expected output? What do you see instead?
One would expect as many "Hello!" messages as components he created but there 
is one more.

Fabrication 0.7.6.2-as3.swc
PureMVC AS3 Multicore 1.0.5
Pipes 1.1
Flash Player 10.0
FlashDevelop 3.2.2
Windows XP

Please provide any additional information below.
Here it is:
http://forums.puremvc.org/index.php?topic=1838.0

Original issue reported on code.google.com by broadysm...@gmail.com on 4 Jan 2011 at 1:52

Attachments:

GoogleCodeExporter commented 9 years ago
Hi,

You're right - there is something wrong going in the reflection mechanism ( 
as3-reflect ). I will investigate this issue and try to get back with solution 
asap.

Thanks for very good example!

Original comment by rafael.s...@gmail.com on 4 Jan 2011 at 2:19

GoogleCodeExporter commented 9 years ago
Hi,

I've updated reflection library to latest version. Everything seems to be 
allright for now!

Original comment by rafael.s...@gmail.com on 4 Jan 2011 at 4:04

GoogleCodeExporter commented 9 years ago
Damn, You're fast, I was just finding out, that when You change
public function VidmoMediator(viewComponent:Vidmo)
to
public function VidmoMediator(viewComponent:Object)
the problem disappears (but maybe because reflection doesn't work then?)

I didn't set SVN for Fabrication yet, so I'll just wait for the swc - I'm not 
halted in any way by this bug anyway.

It's nice to know that a library You use is maintained so well :)

Original comment by broadysm...@gmail.com on 4 Jan 2011 at 4:38

GoogleCodeExporter commented 9 years ago
Fixed in 0.8.1 version

Original comment by PiotrZarzycki21@gmail.com on 23 Oct 2013 at 4:56