See the class definitions below. 

In CF7 if create an instance of Outer, say "outer", and code: 

  outer.getInner().getID() 

things are fine. 

In CF8, I get the error "The getID method was not found." If I cfdump "outer" 
in CF8 I see 

className: Outer$Inner 
Methods: [list of methods and return types, but not getID]  
Parent Class
  Class Name: AbstractDecorator 
  Methods: [list of methods and return types, including *getID*]  
  
Is there something different I need/can do w/CF8 to get to the method "getID" 
on the Parent Class? 

--- Skeleton Class Definitions ---  

public final class Outer {

  Inner inner;

  public Inner getInner() {
    return inner; 
  }

  public final class Inner 
    extends AbstractDecorator {

  }
}

abstract class AbstractDecorator extends Wrapped {
  private Wrapped _wrapped;
  public int getID() {
    return _wrapped.getID();
  }
}

class Wrapped {
  int ID;
  public int getID() {
    return ID;
  }
}

 

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Get the answers you are looking for on the ColdFusion Labs
Forum direct from active programmers and developers.
http://www.adobe.com/cfusion/webforums/forum/categories.cfm?forumid-72&catid=648

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:293928
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4

Reply via email to