brooklyn-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From neykov <>
Subject [GitHub] brooklyn-server pull request: Test clocker
Date Tue, 22 Mar 2016 16:46:59 GMT
Github user neykov commented on a diff in the pull request:
    --- Diff: core/src/main/java/org/apache/brooklyn/core/mgmt/persist/
    @@ -454,25 +460,25 @@ public Object unmarshal(HierarchicalStreamReader reader, UnmarshallingContext
                     return result;
                 } finally {
    -                instance = null;
    +                SpecConverterLocalInstance.remove();
                     if (customLoaderSet) {
    -        Object instance;
             protected Object instantiateNewInstance(HierarchicalStreamReader reader, UnmarshallingContext
context) {
                 // the super calls getAttribute which requires that we have not yet done
                 // so we do this earlier and cache it for when we call super.unmarshal
    +            Object instance = SpecConverterLocalInstance.get();
    --- End diff --
    I believe you can put arbitrary objects in the `context`, just for cases like this.

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

View raw message