framework icon indicating copy to clipboard operation
framework copied to clipboard

Printing the correct class name

Open damjangelovski opened this issue 9 years ago • 0 comments

AOP proxies the class with an extended class (say TimedProxy) and when we call CompConstructor.name we get "TimedProxy". In order to get the name of the original class it is best to call ComponentUtil.getComponentData(componentDefinition).componentName. This should be checked and changed in the whole code.

P.S. The error messages on decorator (and some other) errors dont need to do this as they are done before the post-processing

damjangelovski avatar Aug 29 '16 10:08 damjangelovski