lburgazzoli commented on a change in pull request #138: #137 Add the error log
when setting component property failed
URL: https://github.com/apache/camel-k-runtime/pull/138#discussion_r326972616
##########
File path:
camel-k-loader-groovy/src/main/groovy/org/apache/camel/k/loader/groovy/dsl/ComponentsConfiguration.groovy
##########
@@ -48,10 +49,10 @@ class ComponentsConfiguration {
}
if (type.isAssignableFrom(component.class)) {
- callable.resolveStrategy = Closure.DELEGATE_FIRST
+ // Just make sure the closure context is belong to component
+ callable.resolveStrategy = Closure.DELEGATE_ONLY
Review comment:
`Closure.DELEGATE_FIRST` was done on purpose to be able to reuse methods on
the `Component` class (although there's no method right now)
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
[email protected]
With regards,
Apache Git Services