Github user aledsage commented on a diff in the pull request:
https://github.com/apache/incubator-brooklyn/pull/910#discussion_r39962566
--- Diff:
usage/camp/src/main/java/org/apache/brooklyn/camp/brooklyn/spi/dsl/BrooklynDslInterpreter.java
---
@@ -168,6 +168,17 @@ public Object evaluateOn(Object o, FunctionWithArgs f,
boolean deepEvaluation) {
String fn = f.getFunction();
fn = Strings.removeFromStart(fn, "$brooklyn:");
+ if (fn.startsWith("function.")) {
+ for (Class<?> c : clazz.getClasses()) {
+ if (c.equals(BrooklynDslCommon.Functions.class)) {
+ if (o instanceof Class) {
--- End diff --
It's not obvious what you're doing here or why. What do you expect to be
passed in (i.e. what is `o`)? Why will `clazz` be a sub-type of (or the
concrete type) `BrooklynDslCommon.Functions`?
---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at [email protected] or file a JIRA ticket
with INFRA.
---