Ticket #236 (new defect)

Opened 1 year ago

Last modified 1 year ago

instantiate uses isDefined when not necessary?

Reported by: scorfield Owned by: sean@…
Type: defect Priority: normal
Milestone: Fusebox 5.6 Component: Extensions: Lexicons/Plugins
Version: Severity: normal
Keywords: Cc:

Description

Reported on the forums:

This code fails:

<instantiate class="contacts" object="myFusebox.getApplication().getApplicationData().Contacts" arguments="globals.datasource" />
<invoke object="myFusebox.getApplication().getApplicationData().Contacts" methodcall="addtocontact(attributes)" returnvariable="myvar" />

It causes isDefined() to be called on the dotted-name which is illegal.

Actually I suspect this is only true of similar code that uses overwrite="false". Still, it would be nice to be able to store objects / results to such an expression.

Attachments

Change History

Changed 1 year ago by scorfield

  • milestone changed from Fusebox 5.5 to Fusebox 5.6

This only happens with overwrite="false" so deferring to 5.6 to figure out a clean way to handle it.

Note: See TracTickets for help on using tickets.