Github user geomacy commented on a diff in the pull request:
https://github.com/apache/brooklyn-server/pull/208#discussion_r67844244
--- Diff:
utils/common/src/main/java/org/apache/brooklyn/util/javalang/Reflections.java
---
@@ -242,7 +242,13 @@ public Object loadInstance(String classname) throws
ReflectionNotFoundException,
/** Invokes a suitable constructor, supporting varargs and primitives
*/
public static <T> Optional<T> invokeConstructorWithArgs(Class<T>
clazz, Object[] argsArray, boolean setAccessible) {
- Reflections reflections = new Reflections(clazz.getClassLoader());
+ ClassLoader cl = clazz.getClassLoader();
--- End diff --
Is it worth making this available as another public method in Reflections?
---
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.
---