Bug in reactorFactory.init() and BeanFactory argument name

5 views
Skip to first unread message

Richard Davies

unread,
Mar 30, 2011, 2:41:19 PM3/30/11
to reacto...@googlegroups.com
There's a bug in the init() method of reactorFactory.cfc. This method declares an optional second argument named "BeanFactory" but the actual code in the method on lines 19-21 reference arguments.factory:


   <!--- If we have passed in a BeanFactory set it for the following method --->
   <cfif StructKeyExists(arguments,"factory") AND isObject(arguments.factory)>
      <cfset variables.BeanFactory = arguments.factory>
      <cfset getObjectFactory().setBeanFactory(arguments.factory) />       
      <cfreturn this />
   </cfif>


This doesn't cause an error because it checks to see if the argument exists first, but it will also never work correctly because it's checking the wrong name so that argument will never exist.

Mark Drew

unread,
Mar 30, 2011, 6:05:54 PM3/30/11
to reacto...@googlegroups.com
I shall have a look at this tomorrow. I added that a while ago (I think) so I need to digg into that

MD
--
You received this message because you are subscribed to the Google Groups "Reactor" group.
To post to this group, send email to reacto...@googlegroups.com.
To unsubscribe from this group, send email to reactor-user...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/reactor-users?hl=en.
Reply all
Reply to author
Forward
0 new messages