Anonymous classes cannot be used
OrangeDog opened this issue · 1 comments
OrangeDog commented
Because Monitors.newObjectConfig()
uses Class.getSimpleName()
, which returns nothing for anonymous classes, failing BasicTag.checkNotEmpty()
.
This can be seen, for example, if any ribbon components (LoadBalancerContext
, etc.) are implemented with anonymous classes / lambdas.
OrangeDog commented
I've noticed that the way this was solved causes problems when there are multiple anonymous classes with the same enclosing class (e.g. a Spring @configuration).