Github user ahgittin commented on a diff in the pull request:
https://github.com/apache/incubator-brooklyn/pull/1138#discussion_r49582949
--- Diff:
brooklyn-server/camp/camp-brooklyn/src/main/java/org/apache/brooklyn/camp/brooklyn/spi/creation/BrooklynAssemblyTemplateInstantiator.java
---
@@ -89,6 +90,16 @@ private Application create(AssemblyTemplate template,
CampPlatform platform) {
// first build the children into an empty shell app
List<EntitySpec<?>> childSpecs = createServiceSpecs(template,
platform, loader, encounteredTypeSymbolicNames);
for (EntitySpec<?> childSpec : childSpecs) {
+
+ if (Application.class.isAssignableFrom(childSpec.getType())) {
--- End diff --
ah nvm -- it's harmless as it checks if the child might be a wrapper (not
what the child wraps), although it's unnecessary as it won't matter if the
generic types are wrong and the `canPromote` call will do the check
---
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.
---