Sorry, pseudo-code I posted lacks some of the extensions and interface
implementations going on in the actual code. Was more as an example, hoping
someone else had already run into the same problem.
I ended up have the Inner class act as a decorator and implement methods with
the same names,
Sorry, pseudo-code I posted lacks some of the extensions and interface
implementations going on in the actual code. Was more as an example, hoping
someone else had already run into the same problem.
I ended up have the Inner class act as a decorator and implement methods with
the same names,
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
Matthew, I gave this a try using your mock classes and it work fine for me,
however a dump of outer.getInner() showed
Class Name: Outer$Inner
Parent Class: AbstractDecorator
Class Name: AbstractDecorator
Methods: getID() int
Parent Class: Wrapped
Class Name: Wrapped
Methods: getID() int
4 matches
Mail list logo