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

    https://github.com/apache/brooklyn-server/pull/625#discussion_r110695847
  
    --- Diff: 
utils/common/src/main/java/org/apache/brooklyn/util/javalang/Reflections.java 
---
    @@ -204,6 +209,7 @@ public Object loadInstance(String classname) throws 
ReflectionNotFoundException,
         }
     
         /** does not look through ancestors of outer class */
    +    /** @deprecated since 0.11.0, use {@link 
org.apache.brooklyn.util.core.ClassLoaderUtils} in a combination with {@link 
#invokeConstructorFromArgs(Class, Object...)} instead */
    --- End diff --
    
    Alternatively we could allow `Reflections to be constructed with a 
`ClassLoaderUtils`, and deprecate the method that creates it with a 
`ClassLoader`. We'd also deprecate the static methods that take a `ClassLoader`?


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