[ 
https://issues.apache.org/jira/browse/BROOKLYN-513?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16034343#comment-16034343
 ] 

ASF GitHub Bot commented on BROOKLYN-513:
-----------------------------------------

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

    https://github.com/apache/brooklyn-server/pull/714#discussion_r119810170
  
    --- Diff: 
core/src/main/java/org/apache/brooklyn/util/core/flags/MethodCoercions.java ---
    @@ -83,10 +86,11 @@ public boolean apply(@Nullable Method input) {
             Optional<Method> matchingMethod = Iterables.tryFind(methods, 
matchSingleParameterMethod(methodName, argument));
             if (matchingMethod.isPresent()) {
                 Method method = matchingMethod.get();
    +            Method accessibleMethod = 
Reflections.findAccessibleMethod(method);
    --- End diff --
    
    Good point. I'll defer that, and not try to do it in this PR.


> yaml location for azurecompute-arm templateOptions.ipOptions fails
> ------------------------------------------------------------------
>
>                 Key: BROOKLYN-513
>                 URL: https://issues.apache.org/jira/browse/BROOKLYN-513
>             Project: Brooklyn
>          Issue Type: Bug
>    Affects Versions: 0.11.0
>            Reporter: Aled Sage
>
> When attempting to use the very latest jclouds 2.1.0-SNAPSHOT 
> azurecompute-arm with the location yaml below, it fails to convert this to an 
> {{IpOptions}} instance.
> {noformat}
> templateOptions:
>   ipOptions:
>   - subnet: manual-subnet-ambari
> {noformat}
> This is because of how jclouds declares its builder. The 
> {{IpOptions.builder()}} method returns an instance of 
> {{AutoValue_IpOptions.Builder}}, but that class is package-private [1]. 
> Therefore reflectively trying to call 
> {{builder.subnet("manual-subnet-ambari")}} is failing because the method is 
> not accessible.
> [1] 
> https://github.com/jclouds/jclouds-labs/blob/master/azurecompute-arm/src/main/java/org/jclouds/azurecompute/arm/compute/options/IpOptions.java#L60



--
This message was sent by Atlassian JIRA
(v6.3.15#6346)

Reply via email to