Skip to main content
Participant
October 22, 2010
Question

Possible Issue - Need others to verify same behavior on cfdump/writeDump:

  • October 22, 2010
  • 2 replies
  • 789 views

This issue started ever since I patched to CF 9.0.1 update and the latest hotfix.  When I dump a CFC that inherits another CFC, the output does not show any inherited methods or properties.  Are other folks seeing this same issue?

Phill M Nacelli

Senior Software Architect

AboutWeb, LLC

Rockville, MD

Setup:
Server ProductColdFusion
Version9,0,1,274733
EditionDeveloper
Operating SystemWindows XP
OS Version5.1
Update Level/C:/JRun4/servers/cfusion/cfusion-ear/cfusion-war/WEB-INF/cfusion/lib/updates/chf9010001.jar
Adobe Driver Version4.0 (Build 0005)
Java Version1.6.0_17
    This topic has been closed for replies.

    2 replies

    cfjedimaster
    Inspiring
    November 26, 2010

    I'm confused. What's missing in the screen shot? I do see it shows 'firstname' not 'name', but I assume you changed it.

    cfjedimaster
    Inspiring
    November 26, 2010

    Oh wait - I see - child didn't have the properties. Let me test something. I only tested w/ methods.

    cfjedimaster
    Inspiring
    November 26, 2010

    For me, inherited methods show up. Not inherited properties. I'd call it a bug. It would be trivial to fix dump.cfm to handle this - if it wasn't encrypted.

    cfjedimaster
    Inspiring
    October 22, 2010

    Nope, it worked ok for me.

    Participant
    November 26, 2010

    Hey Ray,

    Thanks for the reply, I'm not sure what's happening here. Here's a screenshot of the dump for the code below:

    Below is the code (simple sample):

    Parent.cfc

    component displayname="Parent" output="false" accessors="true"
    {

        property name="id" type="Numeric" default="0";
        property name="name" type="String";

        public Parent function init(Numeric id=0)
        {
            setId(arguments.id);

            return this;
        }

    }

    Child.cfc

    component displayname="Child" extends="Parent" output="false" accessors="true"
    {

        property name="favoriteToy" type="String";

        public Child function init(Numeric id=0)
        {
            super.init(id:arguments.id);

            return this;
        }

    }

    tst.dumpInheritance.cfm

    <cfscript>

        father = new Parent(id:1);
        father.setName("Bob");

        son = new Child(id:2);
        son.setName("Bobby Jr");
        son.setFavoriteToy("Airplanes");

        writeDump(father);
        writeDump(son);


    </cfscript>