Menu

Possible Bug in cfobjects-3.0.6 Release

Help
2002-02-26
2002-02-27
  • Michael Labriola

    It looks to me like there is a bug in the InvokeMethod.

    I have an pp where several "static" method calls are used referencing a class, rather than an instantiated object.

    I receive the following error:

    Error resolving parameter ATTRIBUTES.OBJECT

    The object OBJECT is not present in the scope named ATTRIBUTES. It is likely that you have misspelled the name of the object you are trying to access.

    At line 58 in the code for this method we see:
    // Define the 'self' and 'this' variable scope
    self = attributes.object;
    this = attributes.object;

    These lines are not part of the conditional logic and execute regardless of the wheter the class was instantiated or called as a static class method.

    Changing it to:

    if ( isDefined("attributes.object") )
    {
    // Define the 'self' and 'this' variable scope
    self = attributes.object;
    this = attributes.object;
    }

    seems to fix the issue, however, I have not tested this thoroughly and have no idea what else this might break.

    Thanks for the help,
    ML

     
    • Steven Brownlee

      Steven Brownlee - 2002-02-27

      Yes, that's the fix. In fact I have no idea why I took that code out.  I must have been playing around with something and forgot to put it back in correctly.

       

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.