brooklyn-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From neykov <...@git.apache.org>
Subject [GitHub] incubator-brooklyn pull request: Fix Java 8 build error
Date Tue, 27 Oct 2015 16:10:20 GMT
Github user neykov commented on a diff in the pull request:

    https://github.com/apache/incubator-brooklyn/pull/991#discussion_r43144083
  
    --- Diff: software/database/src/main/java/org/apache/brooklyn/entity/database/mysql/MySqlClusterImpl.java
---
    @@ -119,7 +121,7 @@ protected void initEnrichers() {
             enrichers().add(Enrichers.builder()
                     .aggregating(MySqlNode.DATASTORE_URL)
                     .publishing(SLAVE_DATASTORE_URL_LIST)
    -                .computing((Function)Functions.identity())
    +                .computing((Function<Collection<String>, List<String>>)(Function)Functions.identity())
    --- End diff --
    
    Can't do the cast directly because the types are incompatible, first need to erase the
generics and then do the cast. 


---
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 infrastructure@apache.org or file a JIRA ticket
with INFRA.
---

Mime
View raw message