Github user neykov commented on a diff in the pull request:
https://github.com/apache/brooklyn-server/pull/208#discussion_r68217234
--- 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 --
It's very specific to this method call as we don't really care what the
fallback classloader is.
---
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.
---