Github user tbouron commented on a diff in the pull request:

    https://github.com/apache/incubator-brooklyn/pull/1039#discussion_r45347299
  
    --- Diff: 
core/src/main/java/org/apache/brooklyn/core/catalog/internal/BasicBrooklynCatalog.java
 ---
    @@ -859,6 +869,34 @@ private String makeAsIndentedObject(String yaml) {
             log.debug("Adding manual catalog item to "+mgmt+": "+yaml);
             checkNotNull(yaml, "yaml");
             List<CatalogItemDtoAbstract<?, ?>> result = 
collectCatalogItems(yaml);
    +
    +        // Iterate over the results to add the interfaces tag. We are 
doing this here to be able to get the backward-types.
    +        for (final CatalogItemDtoAbstract<?, ?> item : result) {
    +            if (item.getCatalogItemType().equals(CatalogItemType.ENTITY) 
|| item.getCatalogItemType().equals(CatalogItemType.TEMPLATE)) {
    +                Class<?> type = CatalogUtils.newClassLoadingContext(mgmt, 
item).tryLoadClass(item.getReferenceType()).orNull();
    --- End diff --
    
    That is the purpose of the lines right below 877 to 892


---
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.
---

Reply via email to